Build precise queries to find exactly what you need
Press ESC to close
This is an excellent script. I had to made few changes for making it to work with Oracle 12c PDBs.
First, my sqlplus binary is 64 bits, so I edited the script changing it for ‘sqlplus64’.
In Oracle 12c you can use a “Container” and put many datbases in there, as PDB. But in this case, they don’t use the variable SID, instead, you must use SERVICE_NAME.
So, I changed this: ==> sub logon { ==> open (SQL,”sqlplus -s aloha/teste@\(DESCRIPTION=\(ADDRESS=\(PROTOCOL=TCP\)\(Host=$host\)\(Port=$port\)\)\(CONNECT_DATA=\(SID=$sid\)\)\) sub logon { ==> open (SQL,”sqlplus64 -s aloha/teste@\(DESCRIPTION=\(ADDRESS=\(PROTOCOL=TCP\)\(Host=$host\)\(Port=$port\)\)\(CONNECT_DATA=\(SERVICE_NAME=$sid\)\)\)racle 12c
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!