DBA_TAB_COLUMNS vs DBA_TAB_COLS

Not sure how many DBAs have noticed the difference between DBA_TAB_COLUMNS view and DBA_TAB_COLS view. Both views look pretty identical, if you are not paying too much attention. According to Oracle documentation, DBA_TAB_COLS describes the columns of all tables, views, and clusters in the database. This view differs from “DBA_TAB_COLUMNS” in that system-generated hidden columns … Read more

Two Cool Utilities in DBMS_UTILITY

Oracle Database DBMS_UTILITY package has several useful subprograms. GET_DEPENDENCY shows the objects depended on the object. Here is an example (the procedure uses DBMS_OUTPUT to show the result, hence SET SERVEROUTPUT is required in SQL*Plus): SQL> set serveroutput on SQL> exec dbms_utility.get_dependency(‘VIEW’,’HR’,’EMP_DETAILS_VIEW’); – DEPENDENCIES ON HR.EMP_DETAILS_VIEW —————————————————————— *VIEW HR.EMP_DETAILS_VIEW() PL/SQL procedure successfully completed. SQL> exec … Read more

OracleDB12c New Feature: Unified Auditing

Unified Auditing is a new feature introduced in Oracle Database 12c, to streamline and standardize all audit trail information. The traditional auditing architectures involve many audit-trail locations and tables to review information for the auditors, and do not follow a standard. Every new product introduced in the database had to essentially have a new audit table … Read more

Validate Database Links – Script

Here is a PL/SQL script to validate the database links accessible to an user.  I wrote this to identify the working links after a database refresh or to verify links that connect from non-prod to prod… Hope it helps…   REM Validate Database Links REM Private links under connected user and Public links REM REM … Read more

OPatch Options!

A friend of mine was working to apply the July 2013 PSU, and had to rollback two one off patch conflicts. Since the instance was cloned from production, OPatch was failing with this error… $ $ORACLE_HOME/OPatch/opatch rollback -id 12834800 The patch should be applied/rolled back in ‘-all_nodes’ mode only. Converting the RAC mode to ‘-all_nodes’ … Read more

Oracle Database 12c Licensing Trivia!

Was reading the licensing doc, and this is a note to self… [any decisions must be based on the licensing doc and not this blog]. Couple of things not changed… Almost all “cool” features are available only in EE edition. Almost all “cool” features outside of storing data requires some kind of “Extra Cost” option I … Read more

MOS Docs to Review for EBS DB Upgrade to 11gR2 (Latest Patch Release)

If you are considering Oracle database upgrade from 9i/10g to 11gR2 or applying release patches (11.2.0.1 to 11.2.0.3 or 11.2.0.4), several issues can be avoided by applying the recommended patches and PSU.  And if you are not on the latest 11gR2 release (11.2.0.3 or 11.2.0.4), I strongly recommend getting there, with the latest PSU possible… … Read more

Streams Answer…

I posted the question few days back on a streams issue I have been working on… https://bijoos.com/oraclenotes/oraclenotes/2013/199 It looks like there was a open or long transaction, and before that transaction was committed or rollback, the archivelog file got deleted by the RMAN backup and cleanup job…  or we just hit a bug (patch 13853654)… so, … Read more