Skip to content

Instantly share code, notes, and snippets.

@torstello
Created February 25, 2014 22:36
Show Gist options
  • Save torstello/9219437 to your computer and use it in GitHub Desktop.
Save torstello/9219437 to your computer and use it in GitHub Desktop.
check_mk-oracle
# 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