Generating configuration scripts with Oracle Streams Wizard ____oracle
Source: Internet
Author: User
Guide:
The last few days are used package to complete the streams configuration, but in the management of OEM will feel more intuitive, of course, all the relevant package very understanding, it is almost. In the 9i OEM, it looks like the streams function is not very strong. Just a few simple applications. There is time to engage in 10gr2, want to skip 10gr1. The following is a process script that creates a single table copy in an OEM.
SOURCE database: GATES
Target database: CLONE
1. Set up Operation -Turn on supplemental logging and switch log file at source database.
-Create and set default tablespace for Logminer at source database.
-Capture the following tables in the source database, and then propagate and apply the changes to the target database.
"SCOTT". " BONUS "
2. Export/import Operations -Export all objects selected from the source database.
-Import them to the target database.
3. Start Operation -Start the application process in the target database first.
-Initiates the capture process in the source database.
--
Setup Operations:
Rem
REM The following sections setup streams at the destination database
Rem
ACCEPT dest_strmadmin_passwd PROMPT ' Please enter target database
Password for user strmadmin in CLONE: ' HIDE
Connect Strmadmin/&dest_strmadmin_passwd@clone
Rem
REM addapply rules fortables at the destination database
Rem
BEGIN
Dbms_streams_adm. Add_table_rules (
table_name => ' SCOTT. ' BONUS "',
Streams_type => ' APPLY ',
Streams_name => ' Strmadmin_gates_vongates_ ',
Queue_name => ' "Strmadmin". Streams_queue "',
Include_dml =>true,
Include_ddl =>true,
Source_database => ' GATES. Vongates. COM ');
End;
/
Rem
REM The following sections setup streams at the source database
Rem
ACCEPT source_strmadmin_passwd PROMPT ' Please enter the source database
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.