JDBC Connection strings for Oracle (thin driver)
This is a subject that I am often asked about by developers and support teams changing application configuration details: What is the correct format of JDBC connection strings for the thin driver?...
View ArticleIntermittent ORA-12514 error connecting to SCAN listeners
Users were complaining of ORA-12514: TNS:listener does not currently know of service requested in connect descriptor errors whilst connecting to a database on a RAC cluster. Testing manually: The TNS...
View ArticleUnusual ORA-01031: insufficient privileges error
Whilst investigating a user issue today, I came across an unusual occurrence of the “ORA-01031: insufficient privileges” error which was not caused to the usual suspects of missing grants and/or...
View ArticleScripting: Is the DB DataGuarded?
Whilst developing some administrative functions within PL/SQL I needed to know whether the database that the code was being run in was part of an Oracle DataGuard setup, which you would think would be...
View ArticleWrapping PL/SQL code from within the database
If you have ever wanted to wrap PL/SQL code that already exists within the database, then you can do so using the simple procedure below which uses a combination of DBMS_METADATA and DBMS_DDL. Our...
View ArticleFinding the origin of failed login attempts
This guide is intended to aid in establishing the origin of failed database login attempts. Most of the time these failed attempts are due to typos or outdated application configurations and are...
View ArticleCRS: pullup() dependency test
Introduction We were recently creating some custom CRS resources that we need to automatically startup and shutdown to follow the Primary database in a DataGuard configuration. To achieve this, we were...
View ArticleHow to determine flashback database progress
After you have issued the FLASHBACK DATABASE command how can you monitor the progress of the command, and more importantly, how can you predict when it will complete? With Oracle 11g this information...
View ArticleObtaining Database PSU history from SQL
It is possible to determine all Patch Set Updates that has been applied to a database using a simple SQL statement - but note that this will only retrieve the details of patchsets that contained a...
View ArticleOracle October 2015 Critical Patch Update issues
After applying the October 2015 Critical Patchset Update to our databases (12.1.0.2 on IBM AIX) , we discovered a number of invalid objects within the XDB and GSMADMIN_INTERNAL schemas: select owner,...
View Article