Posts

Oracle tracing and events ORADEBUG

Oracle made big improvements to its diagnosability infrastructure in database version 11g.The new 11g kernel debug and diagnostics infrastructure allows you to be much more precise when tracing & dumping diagnostic info. Before Oracle 11g versions, the diagnostic events was more limited syntax en usable.Now you can enable tracing/actions only when the current function call stack contains a specific function name (or prefix)or tracing is only done when the SQL statement executed has specified SQLID. Trace Example - Trace events activation before 11g. alter session set event 'sql_trace level 12'; alter session set event 'sql_trace off'; Trace example - Trace events activation after 11g. Not the whole session only the SQLID will be traced. alter session set 'sql_trace [sql:fb2yuOp1kgvhr] level 12''; alter session set 'sql_trace [sql:fb2yuOp1kgvhr] off'; ORADEBUG DOC Type insite sqlplus session the following text command ORADEBUG DOC . ...

RDBMS and listener log (xml) from SQL*Plus with V$DIAG_ALERT_EXt view [ADR - Automatic Diagnostic Repository]

With the V$DIAG_ALERT_EXT (Query alertlog of the database) it is possible to read the logs of all the databases and listeners from the ADR location Great for monitoring. Now only one connection to a database is needed to see all the database alert files and listener logs registered inside the ADR structure.Yes Multiple databases.

Oracle parameter REDO_TRANSPORT_USER for dataguard - standby configuration - redo transport authentication

Make log shipping to work without copying password file from primary to physical standby when changing sys password on primary? Sometimes in a dataguard configuration the user SYS must be changing because of security policies. This results in a failed redolog shiping problem as describe by Harald van Breederode " Password file maintenance in a Data Guard environment " In this blogpost Harald was also mentioning redo transport authentication by an other Oracle user then SYS. To use an other Oracle user then SYS for redo transport authentication you have to do the following steps: In Oracle 11gR1 Oracle has introduced an new init.ora parameter called REDO_TRANSPORT_USER,  with this parameter Oracle can activate the redo transport authentication to be done by an other user then the default  user SYS.

Preprocess clause External Tables - ORACLE_LOADER Access Driver

External tables exists since Oracle version 9i, enable to view a file as if it were data in a database. To simplyfy the Extract, Transform, and Load (ETL) processes oracle had added a parameter  PREPROCCESS   to sqlloader for extrations by external tables. The  PREPROCESSING    parameter is introduced in Oracle version 11Gr2 which allow ETL processes handle any type of file without additional out-of-line action. (For example execute a shell script, unzip).

Quick Introduction to Agile Scrum less than 10 Minutes

Image

RMAN>STARTUP DBA - restrict database

Image
How to startup a database in rman for restricted sessions. You would say conform SQLPLUS SQLPLUS SQL> startup restrict RMAN RMAN> startup restrict It's not working, the word restrict generate an error inside RMAN.

Edition Based Redifinition - The key to online application upgrade

Download the demo EBR zip file