Call for Oracle support & training (800) 766-1884
Free Oracle Tips

Home
Corporate Oracle Training
Custom Oracle Training
Oracle New Features Training
Advanced Oracle DBA Classes
Oracle Tuning Courses
Oracle Tips & Tricks
Oracle Training Links
Oracle Training Links
Oracle Training Links

We are top for USA Oracle Training Clients

 

Free Oracle Tips


 
HTML Text AOL

Free Oracle App Server Tips


 
HTML Text

Oracle support

Oracle training

Oracle tuning

Rednecks!

Remote Oracle

Custom Oracle Training

 

   
  Oracle Tips by Burleson

Oracle Streams
Chapter 7 -
Monitoring and Troubleshooting Oracle Streams

Display Error Transaction Details

DBMS_OUTPUT.PUT_LINE('-- Source DB: ' || source);
  -- DBMS_OUTPUT.PUT_LINE('-- Error in Message: '|| msgno);
 DBMS_OUTPUT.PUT_LINE('-- Error Number: '||errno);
 DBMS_OUTPUT.PUT_LINE('-- Message Text: '|| substr(errmsg,1,60)  );

FOR i IN 1..msgcnt LOOP
 DBMS_OUTPUT.PUT_LINE('In record Loop Msg: ' || i);
 lcr := DBMS_APPLY_ADM.GET_ERROR_MESSAGE(i, txnid);
 lcr_print_values (lcr);
 END LOOP;
END LOOP;
END lcr_print_errors_all;
/

This procedure calls another procedure, lcr_print_values, which extracts the values from the SYS.AnyData type event and displays. The lcr_print_values code listing is located in the code depot.

To display information about a specified transaction, the lcr_print_error procedure will be used.  The code listing is in the code depot and the transaction id will be passed as a parameter.

This first part of a typical output listing is shown below. Please refer to the code depot for the complete listing.

DNYOIP20 SQL>set serveroutput on size 200000
DNYOIP20 SQL>exec LCR_PRINT_ERRORS_ALL ;
*************************************************
-- ERROR #1


The above text is an excerpt from:

Oracle Streams
High Speed Replication and Data Sharing

ISBN 0-9745993-5-2

by Madhu Tumma
 


Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

 
 
 

Oracle performance tuning book

 

 

Oracle performance tuning software

 
Oracle performance tuning software
 
Oracle performance Tuning 10g reference poster
 
Oracle training in Linux commands
 
Oracle training Excel
 
 
 
 

 

email BC:


Copyright © 1996 -  2014 by Burleson Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.