 |
|
Oracle Tips by Burleson |
Oracle 10g ROWID option
After performing a typical LogMiner operation, a
ROWID clause is included in the reconstructed sql_redo and sql_undo
statements by default, and the statements are ended with a semicolon
ready for execution.
However with the new no_rowid_in_stmt option
for the start_logminr procedure, you can now filter out the ROWID
clause from the reconstructed sql_redo and sql_undo statements. For
example:
EXEC
DBMS_LOGMNR.START_LOGMNR( OPTIONS => DBMS_LOGMNR.NO_ROWID_IN_STMT);
How does this feature help? Rowid(s) are not
consistent between databases (unless there is a physical standby).
So if you intend to re-execute the sql_redo or sql_undo statements
against a different database than the original one, this option
becomes important. Instead of rowids, primary key constraints are
used to identify the rows to manipulate.
Get the complete Oracle10g story:
To get the code instantly, click here:
Need an Oracle Mentor?
BEI is now offering personal mentors for Oracle DBAs where you can have an
Oracle expert right at your fingertips, anytime day or night. We work with
hundreds of Oracle databases every year, so we know exactly how to quickly
assist you with any Oracle question.
Why risk an unplanned outage? You can now get telephone access to Don
Burleson or any of his Oracle Certified DBAs with more than 20 years of
full-time IT experience. Click here for details:
http://www.dba-oracle.com/service_oracle_backup.htm

|