Created
February 25, 2014 22:36
-
-
Save torstello/9219437 to your computer and use it in GitHub Desktop.
check_mk-oracle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check_mk oracle | |
useradd checkmk | |
>> sqlplus / as sysdba; | |
SQL> create user ops$checkmk identified externally; | |
SQL> grant connect to ops$checkmk; | |
SQL> grant select on v_$session to ops$checkmk; | |
SQL> grant select on v_$loghist to ops$checkmk; | |
SQL> grant select any dictionary to ops$checkmk; | |
grep oraclehomeproperties.xml /usr/local/bin/oraenv | |
--- if [ -w $ORACLE_HOME/inventory/ContentsXML/oraclehomeproperties.xml ]; then | |
+++ if [ -w $ORACLE_HOME/inventory/ContentsXML/oraclehomeproperties.xml ]; then | |
sudo chmod 664 /opt/oracle/product/11.2.0/db_1/inventory/ContentsXML/oraclehomeproperties.xml | |
sudo chmod 6751 /opt/oracle/product/11.2.0/db_1/bin/oracle | |
sudo chmod o+x /opt/oracle/product/11.2.0/db_1/inventory | |
sudo chmod o+x /opt/oracle/product/11.2.0/db_1/inventory/ContentsXML |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment