For Oracle support & training call (800) 766-1884
Free Oracle Tips

Home
Oracle Tips
Oracle Code Depot
Oracle Monitoring
Oracle Consulting
Oracle Training
Oracle News
Oracle Forum
Oracle Support





 

Free Oracle Tips

image

 
HTML Text

Free Oracle App Server Tips

image

 
HTML Text


Privacy Policy

Redneck

Dress Code

Oracle tuning

Oracle training

Oracle support

Remote Oracle


 

   
  Oracle Tips by Burleson

Oracle Streams
Chapter 3 - Streams Replication

How Tags are used in Streams

For example, the following procedure can be used to set the tag to the hexadecimal value of 2A in the current session:

BEGIN
DBMS_STREAMS.SET_TAG(tag => HEXTORAW('2A')  );
END;
/

After running this procedure, each redo entry generated by DML or DDL statements in the current session will have a tag value of 2A. Running this procedure affects only the current session.

The tag for all redo entries generated by the current session can be retrieved by using the get_tag procedure in the dbms_streams package. For example, to get the hexadecimal value of the tags generated in the redo entries for the current session, use the following SQL block:

SET SERVEROUTPUT ON
DECLARE
raw_tag RAW(2000);
BEGIN
raw_tag := DBMS_STREAMS.GET_TAG();
DBMS_OUTPUT.PUT_LINE('Session Tag Value = ' ||  RAWTOHEX(raw_tag));
END;
/


The above text is an excerpt from:

Oracle Streams
High Speed Replication and Data Sharing

ISBN 0-9745993-5-2

by Madhu Tumma
 


For more details and scripts, see my new book " Oracle Tuning: The Definitive Reference", over 900 pages of BC's favorite tuning tips & scripts. 

You can buy it direct from the publisher for 30%-off and get instant access to the code depot.

  
 

 
 
 
 
Oracle performance tuning software
 
 

 

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

 

Fast-Track Oracle Support
PO Box 511
Kittrell, NC 27544


Email BC: