Query information on oracle streams setup
Is there a way to find out information of all "capture" , "propagation" and "apply" processes running on a database , therefore we can write a small script to manage (Start/stop) the above processes dynamically .
In otherwords, can we query any table and get information (names) of all above processes running on a database.
Hi Satish,
You can query the following tables to get the names of all capture,apply and propagation porcesses
DBA_CAPTURE
DBA_APPLY
DBA_PROPAGATION
http://download.oracle.com/docs/cd/B10501_01/server.920/a96571/strms_trouble.htm
Regards
Bilahari
Similar Messages
-
Oracle Streams setup for multiple schemas in a same database
We are on 11.1.0.7 and will be using Oracle 11g Streams that will replicate the data real-time for two schemas between the source and target set of schemas with in the same database. We will be doing DDL as well as DML replication.
I created the following plan and want your inputs. After implementing this, I created a table in SCOTT but it's get replicated to RPT_SCOTT later I tried inserting a row in the table created under SCOTT but that too didn't get replicated to RPT_SCOTT.
Here are the steps that I used to set up my STREAMS -
Database Instance: TESTDB
Schemas:
Source: SCOTT
HR
Target: RPT_SCOTT
RPT_HR
Configuring Streams:
1. Database is in Archive log mode
2. Set up the Streams administrator.
create user STRMADMIN identified by STRMADMIN default tablespace USERS temporary tablespace temp;
grant resource, dba, AQ_ADMINISTRATOR_ROLE to STRMADMIN;
BEGIN
DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE(
grantee => 'STRMADMIN',
grant_privileges => TRUE);
END;
3. Set up Streams queues
CONNECT STRMADMIN/****
BEGIN
DBMS_STREAMS_ADM.SET_UP_QUEUE(
queue_name => 'STREAMS_QUEUE',
queue_table => 'STREAMS_QUETAB',
queue_user => 'STRMADMIN');
END;
4. Add the Apply rule
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'RPT_SCOTT',
streams_type => 'APPLY',
streams_name => 'APPLY_CC_STREAM',
queue_name => 'STRMADMIN.STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
inclusion_rule => true,
source_database => 'TESTDB');
END;
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'RPT_HR',
streams_type => 'APPLY',
streams_name => 'APPLY_AB_STREAM',
queue_name => 'STRMADMIN.STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
inclusion_rule => true,
source_database => 'TESTDB');
END;
BEGIN
DBMS_APPLY_ADM.ALTER_APPLY(
apply_name => 'APPLY_CC_STREAM',
apply_user => 'STRMADMIN');
END;
BEGIN
DBMS_APPLY_ADM.ALTER_APPLY(
apply_name => 'APPLY_AB_STREAM',
apply_user => 'STRMADMIN');
END;
5. Add the Capture Rule
CONNECT STRMADMIN/*****
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'SCOTT',
streams_type => 'CAPTURE',
streams_name => 'CAPTURE_CC_STREAM',
queue_name => 'STRMADMIN.STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
inclusion_rule => true,
source_database => 'TESTDB');
END;
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'HR',
streams_type => 'CAPTURE',
streams_name => 'CAPTURE_AB_STREAM',
queue_name => 'STRMADMIN.STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
inclusion_rule => true,
source_database => 'TESTDB');
END;
6. Set the instantiation system change number (SCN)
CONNECT STRMADMIN/******
DECLARE
source_scn NUMBER;
BEGIN
source_scn := DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();
DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN (
source_schema_name => 'SCOTT',
source_database_name => 'TESTDB',
instantiation_scn => source_scn);
END;
7. Start the Apply
CONNECT STRMADMIN/******
BEGIN
DBMS_APPLY_ADM.START_APPLY('APPLY_CC_STREAM');
END;
BEGIN
DBMS_APPLY_ADM.START_APPLY('APPLY_AB_STREAM');
END;
8. Start the Capture
CONNECT STRMADMIN/******
BEGIN
DBMS_CAPTURE_ADM.START_CAPTURE('CAPTURE_CC_STREAM');
END;
BEGIN
DBMS_CAPTURE_ADM.START_CAPTURE('CAPTURE_AB_STREAM');
END;
Waiting for your inputs!If I understand from your code, you want to do this on the same DB :
SCOTT --> RPT_SCOTT
HR --> RPT_HRSo there is a schema transformation, where is it coded ?
General info : http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_transform.htm
More specific on schema rename : http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_mtransform.htm#CHDGDHDE
Next : where are the initialisation of both capture schema ?
Missing :
execute DBMS_CAPTURE_ADM.PREPARE_SCHEMA_INSTANTIATION( schema_name => 'scott'');
execute DBMS_CAPTURE_ADM.PREPARE_SCHEMA_INSTANTIATION( schema_name => 'HR'');This tell Streams from where to capture the SCN.
Also there is an (WRONG) instantiation of SCOTT for the apply, which tells the apply to consider as valuable candidate all LCR after source_scn,
but where is the code or RPT_HR. Alas, you put for the APPLY target schema 'SCOTT' while it should have been 'RPT_SCOTT'.
the fact that is correct or false depends where you put the schema transformation. If you put the transformation at apply time then use the SOURCE schema name (SCOTT, HR) for the LCR will contains their name. If you put the transformation at capture time, then put target schema name for the LCR will contain their name (RPT_HR,RPT_SCOTT).
Let's say you put the schema transformation at capture time then
Missing:
DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN (
source_schema_name => 'RPT_HR',
source_database_name => 'TESTDB',
instantiation_scn => source_scn);If you attache the transformation on the apply process then the code is :
DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN (
source_schema_name => 'HR',
source_database_name => 'TESTDB',
instantiation_scn => source_scn);And this is useless:
-- useless code
BEGIN
DBMS_APPLY_ADM.ALTER_APPLY(
apply_name => 'APPLY_CC_STREAM',
apply_user => 'STRMADMIN');
END;
BEGIN
DBMS_APPLY_ADM.ALTER_APPLY(
apply_name => 'APPLY_AB_STREAM',
apply_user => 'STRMADMIN');
END;
/Last : You are using the same queue for 2 separated capture/apply transformation.
Do yourself a favor and give each couple capture/tranform/apply its own queue. -
Oracle stream - Downstream new table setup
Hi,
I want to add new table to my existing oracle stream setup. Below are the step. Is this OK?
1) stop apply/capture
2) Add new rule to the the existing captue which internally will call DBMS_CAPTURE_ADM.PREPARE_TABLE_INSTANTIATION too(I guess).
BEGIN
DBMS_STREAMS_ADM.ADD_TABLE_RULES(
table_name => 'NIG.BUILD_VIEWS',
streams_type => 'CAPTURE',
streams_name => 'NIG_CAPTURE',
queue_name => 'STRMADMIN.NIG_Q',
include_dml => true,
include_ddl => true,
source_database => 'PNID.LOUDCLOUD.COM'
END;
3) Import (which will initialize the table
impdp system DIRECTORY=DBA_WORK_DIRECTORY DUMPFILE=nig_part2_srm_expdp_%U.dmp exclude=grant,statistics,ref_constraint
4) start apply/captureHave you applied this way? What was the result?
regards -
Reconfigure the Oracle streams incase of Server move from 192 to 191
Hi All,
We have bi directioanl oracle streams setup between two databases.
Recently, We have moved our server from cin192 to cin191. After server moved we checked the all the streams process.
Capture process shows Wating for Dictionary Redo First SCN XXXXXXXXX on both the database.
When i checked these SCN ,i got cin192 archive log.
Can you please help how can i resolve these issue..
Do we need to reconfigure the streams or we can assign new SCN to capture process without dropping anything with cin191 server archive log file...
Means , How to point new server archive log file to capture process..
Any help would be appreciated...
It's urgent...Plzzzzzzzzzz Help.
Thanks,
SinghHi Singh,
If I would know what cin191 and cin192 are, I would probably be able to redirect you to the right forum.
If you are looking for Oracle streams, I suggest you to try the Database - General forum: General Database Discussions
If is Oracle replication what you are looking for, please check here: Replication
This is the Berkeley DB High Availability forum ( http://www.oracle.com/technology/documentation/berkeley-db/db/ref/rep/intro.html )
Bogdan -
I am getting the below error now on downstream database. This constraint doesn't exist on downstream because I am
excluding constraint on downstream
when importing.
ORA-00001: unique constraint (PCAT_NT.PK01_DCS_CAT_CATINFO) violated
Is this mandatory to include constraint in Oracle stream setup?
My steps are as below:
1) Create the downstream capture process
BEGIN
DBMS_CAPTURE_ADM.CREATE_CAPTURE (
queue_name => 'STRMPCAT_QUEUE',
capture_name => 'DOWNSTRMPCAT_CAPTURE',
rule_set_name => null,
start_scn => null,
source_database => 'PCAT',
use_database_link => true,
first_scn => null,
logfile_assignment => 'IMPLICIT');
END;
2) Add schema rule on Downstream database
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'PCAT_NT',
streams_type => 'CAPTURE',
streams_name => 'DOWNSTRMPCAT_CAPTURE',
queue_name => 'STRMPCAT.STRMPCAT_QUEUE',
include_dml => true,
include_ddl => false,
source_database => 'PCAT');
END;
3) Initializing SCN on Downstream database
--on source
expdp system SCHEMAS=PCAT_NT DIRECTORY=DATA_PUMP_DIR DUMPFILE=PCAT_expdp.dmp exclude=user,grant,statistics,synonyms,procedure,constraint FLASHBACK_SCN=7620529799615
--on target
impdp system SCHEMAS=PCAT_NT DIRECTORY=DATA_PUMP_DIR DUMPFILE=PCAT_expdp.dmp
RegardsAre you stating that the constraint PCAT_NT.PK01_DCS_CAT_CATINFO does not exist on the destination database and that you are getting a constraint violation error on the destination database? That strikes me as exceptionally unlikely.
How do you know that the constraint was not created on the destination database? I would tend to suspect that you created the constraint potentially unintentionally.
I would be interested in why you're getting duplicate rows as well. If there are no duplicate rows in the source database, duplicates in the destination would imply that you're doing something wrong in the setup (i.e. the SCN in your export is incorrect) or that you have something in the Streams config which is causing duplicates (i.e. a custom DML handler).
Justin -
Setup between Oracle streams and MQ
Hi All,
I m trying to create the setup between oracle streams and Messing Queue(MQ).i have already install MQClient on my machine and messing gateways is also working fine,but accoring to setup docs i have created one user having all the granst they provide in docs and created queuetable,queue,dml handler,tables rules and starting queue after that we have done Capture and Apply process on that user, in other word u have say the entire setup but our data is not propagating that messaage to MQ.
So if anyone has specific setup code then pl provide or any suggestion u want can give.
thnks & regards
SanjeevHi Sanjeev,
There is a special forum dedicated to Oracle Streams: Streams
You may want to try there.
Extra tip: post the code you used. That way it is easier for people to see what you might have done wrong.
Regards,
Rob. -
Performance tuning and Periodic Maintance in Oracle Streaming Environment
We had Setup the Bi-Directional Oracle Streaming between two remote Sites each of 2-Node RAC Databases
This is Our Enviroment Summary.
Database Oracle 10g R2 version 10.2.0.4.0
Os: Solaris[tm] OE (64-bit)
Currenly Oracle Streaming working Successfully and I'm Daily Monitor the Same.
As Mention in the Master Note for Streams Performance Recommendations [ID 335516.1]
Purging Streams Checkpoints
10.2: Alter the capture parameter CHECKPOINT_RETENTION_TIME from the default retention of 60 days to a realistic value for your database.
A typical setting might be to retain 7 days worth of checkpoint metadata :
exec dbms_capture_adm.alter_capture(capture_name=>'your_capture', checkpoint_retention_time=> 7);
My Query
===> Currenly In My Environment CHECKPOINT_RETENTION_TIME is as default 60 days
I want to change the checkpoint_retention_time=> 7 so what should I take care for before execute the above command in my Live Streaming Environment.
Edited by: user8171787 on Apr 13, 2011 11:00 PMWe had Setup the Bi-Directional Oracle Streaming between two remote Sites each of 2-Node RAC Databases
This is Our Enviroment Summary.
Database Oracle 10g R2 version 10.2.0.4.0
Os: Solaris[tm] OE (64-bit)
Currenly Oracle Streaming working Successfully and I'm Daily Monitor the Same.
As Mention in the Master Note for Streams Performance Recommendations [ID 335516.1]
Purging Streams Checkpoints
10.2: Alter the capture parameter CHECKPOINT_RETENTION_TIME from the default retention of 60 days to a realistic value for your database.
A typical setting might be to retain 7 days worth of checkpoint metadata :
exec dbms_capture_adm.alter_capture(capture_name=>'your_capture', checkpoint_retention_time=> 7);
My Query
===> Currenly In My Environment CHECKPOINT_RETENTION_TIME is as default 60 days
I want to change the checkpoint_retention_time=> 7 so what should I take care for before execute the above command in my Live Streaming Environment.
Edited by: user8171787 on Apr 13, 2011 11:00 PM -
Does anyone know how to configure oracle streams and dataguard to work together? I've set up an environment which successfully captures and applies records in a streams environment using
log_archive_config=SEND, RECEIVE, NODG_CONFIG
as soon as I try to introduce the streams setup into a database which already has dataguard setup it begins to get convoluted as setting DG_CONFIG requires you to then set the db_unique_name and it seems that the streams log mining will not work without being fully incorporated into the Dataguard configuration.
Has anyone set up streams in a dataguard environment?Lets see what's missing from your request:
1. Oracle version number?
2. Physical or logical Data Guard?
3. Which Data Guard mode? Synch or Asynch?
4. Which Data Guard protection level?
5. ARCH or LGWR?
6. Which streams mode? Synch or Asynch?
7. Hotlog or Autolog?
8. Streams on the production server or the standby server?
I'm all out of guesses tonight. Please provide enough information for someone to help you. -
hi ,
I’m trying to configure oracle stream one direction ( tables level )..
my source and destination database is 10.2.0.4 and destination in rac (three nodes)
source database is one node
please help if there is some configuration required in racHello
Please find the Oracle RAC Specific Configuration while implementing Oracle Bidirectional streaming Setup
#Propagation
queue_to_queue parameter
-- Assign Primary / Secondary Instance IDs
dbms_aqadm.alter_queue_table(queue_table => 'capture_srctab',
primary_instance => 1,
secondary_instance => 2);
dbms_aqadm.alter_queue_table(queue_table => 'apply_srctab',
primary_instance => 1,
secondary_instance => 2);
All Streams processing is done at the owning instance of the queue used by
the Streams client. To determine the owning instance of each ANYDATA queue
in a database, run the following query:
SELECT q.OWNER, q.NAME, t.QUEUE_TABLE, t.OWNER_INSTANCE
FROM DBA_QUEUES q, DBA_QUEUE_TABLES t
WHERE t.OBJECT_TYPE = 'SYS.ANYDATA' AND
q.QUEUE_TABLE = t.QUEUE_TABLE AND
q.OWNER = t.OWNER;
#tbsnames.ora
Service_name=global_name=db_name
Please find the metalink document
10gR2 Streams Recommended Configuration [ID 418755.1]
Regards
Hitgon -
SHA1 certificates for Oracle Stream Security
Since we know that MD5 certificates are vulnerable, we are trying to use SHA1 certificates in our product for secure oracle streams communication. But orapki generates MD5 certificates by default. Is there a way to generate SHA1 certificates using orapki ??
Link to the vulnerability - http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2004-2761
Also I would like to understand if oracle streams is validating the entire certificate or only validating the certifcate hash. We need this information to calculate the risk score for this vulnerability.Hi
the workflow is generally that you use Oracle Wallet manager to generate a certificate request, then have this certificate request
signed with your prefered Certificate Authority like Verisign or any other trusted CA, then when you get the signed certificate back
it is very important you can only import this in the wallet that has the pending certificate request (this is where it usually goes wrong:
you cannot import the signed certificate into a new wallet). For more information, please see : Configuring NET8 TCP/IP via SSL (Doc ID 112490.1)
There are many MOS notes about ssl, please clarify also for what purpose you want to use the certificate, like in your case
I assume you want to setup ssl for sqlnet (tcps protocol), if you want a less complicated way to encrypt oracle network traffic
you can use generic ASO encryption, but arguably ssl has the added benefit that your clients can be certain to communicate
with the entity verified in the certificate, with 'simple' ASO encryption there 's in theory the risk of the dreaded man-in-the middle,
greetings,
Harm ten Napel
Edited by: hnapel on Jan 24, 2013 8:32 AM -
Doubt in Oracle streams .Can you please help me in understanding the terms
1. Message
2.User defined Event
3. Event
4.Rules
5.Oracle supplied PL/SQL packages
6.Subscriber,ConsumerHi
Message
A message is the smallest unit of information that is inserted into and retrieved from a queue.
Queue
A queue is repository for messages. Queues are stored in queue tables
Enqueue
To place a message in queue
Dequeue
To comsume a message
Agent
An agent is a end user or the application uses a queue
Thanks
Venkat -
I am getting following error while doing stream setup
Error - java.sql.SQLException: ORA-20411: Incorrectly specified parameter oracle_home ORA-06512: at "SYSMAN.MGMT_JOBS", line 242 ORA-06512: at "SYSMAN.MGMT_JOBS", line 78 ORA-06512: at line 1
its urgent
Help in advanceI too am getting the same error using Oracle EM to set up Streams Replication. It cannot be a TNSNAMES issue because I have setup a public database link between the two databases (on separate Windows 2003 server machines) using the TNSNAMES entries and I can select data from the remote database via this link in both databases.
Can any one assist me? Where can I find the scripts referred to above to set up Oracle Streams Replication?
To recap: The error is
Error - java.sql.SQLException: ORA-20411: Incorrectly specified parameter oracle_home ORA-06512: at "SYSMAN.MGMT_JOBS", line 242 ORA-06512: at "SYSMAN.MGMT_JOBS", line 78 ORA-06512: at line 1
on Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - both databases running Windows 2003 Server SP2 on a domain of which I am the administrator. -
Help on Oracle streams 11g configuration
Hi Streams experts
Can you please validate the following creation process steps ?
What is need to have streams doing is a one way replication of the AR
schema from a database to another database. Both DML and DDL shall do
the replication of the data.
Help on Oracle streams 11g configuration. I would also need your help
on the maintenance steps, controls and procedures
2 databases
1 src as source database
1 dst as destination database
replication type 1 way of the entire schema FaeterBR
Step 1. Set all databases in archivelog mode.
Step 2. Change initialization parameters for Streams. The Streams pool
size and NLS_DATE_FORMAT require a restart of the instance.
SQL> alter system set global_names=true scope=both;
SQL> alter system set undo_retention=3600 scope=both;
SQL> alter system set job_queue_processes=4 scope=both;
SQL> alter system set streams_pool_size= 20m scope=spfile;
SQL> alter system set NLS_DATE_FORMAT=
'YYYY-MM-DD HH24:MI:SS' scope=spfile;
SQL> shutdown immediate;
SQL> startup
Step 3. Create Streams administrators on the src and dst databases,
and grant required roles and privileges. Create default tablespaces so
that they are not using SYSTEM.
---at the src
SQL> create tablespace streamsdm datafile
'/u01/product/oracle/oradata/orcl/strepadm01.dbf' size 100m;
---at the replica:
SQL> create tablespace streamsdm datafile
---at both sites:
'/u02/oracle/oradata/str10/strepadm01.dbf' size 100m;
SQL> create user streams_adm
identified by streams_adm
default tablespace strepadm01
temporary tablespace temp;
SQL> grant connect, resource, dba, aq_administrator_role to
streams_adm;
SQL> BEGIN
DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE (
grantee => 'streams_adm',
grant_privileges => true);
END;
Step 4. Configure the tnsnames.ora at each site so that a connection
can be made to the other database.
Step 5. With the tnsnames.ora squared away, create a database link for
the streams_adm user at both SRC and DST. With the init parameter
global_name set to True, the db_link name must be the same as the
global_name of the database you are connecting to. Use a SELECT from
the table global_name at each site to determine the global name.
SQL> select * from global_name;
SQL> connect streams_adm/streams_adm@SRC
SQL> create database link DST
connect to streams_adm identified by streams_adm
using 'DST';
SQL> select sysdate from dual@DST;
SLQ> connect streams_adm/streams_adm@DST
SQL> create database link SRC
connect to stream_admin identified by streams_adm
using 'SRC';
SQL> select sysdate from dual@SRC;
Step 6. Control what schema shall be replicated
FaeterBR is the schema to be replicated
Step 7. Add supplemental logging to the FaeterBR schema on all the
tables?
SQL> Alter table FaeterBR.tb1 add supplemental log data
(ALL) columns;
SQL> alter table FaeterBR.tb2 add supplemental log data
(ALL) columns;
etc...
Step 8. Create Streams queues at the primary and replica database.
---at SRC (primary):
SQL> connect stream_admin/stream_admin@ORCL
SQL> BEGIN
DBMS_STREAMS_ADM.SET_UP_QUEUE(
queue_table => 'streams_adm.FaeterBR_src_queue_table',
queue_name => 'streams_adm.FaeterBR_src__queue');
END;
---At DST (replica):
SQL> connect stream_admin/stream_admin@STR10
SQL> BEGIN
DBMS_STREAMS_ADM.SET_UP_QUEUE(
queue_table => 'stream_admin.FaeterBR_dst_queue_table',
queue_name => 'stream_admin.FaeterBR_dst_queue');
END;
Step 9. Create the capture process on the source database (SRC).
SQL> BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name =>'FaeterBR',
streams_type =>'capture',
streams_name =>'FaeterBR_src_capture',
queue_name =>'FaeterBR_src_queue',
include_dml =>true,
include_ddl =>true,
include_tagged_lcr =>false,
source_database => NULL,
inclusion_rule => true);
END;
Step 10. Instantiate the FaeterBR schema at DST. by doing export
import : Can I use now datapump to do that ?
---AT SRC:
exp system/superman file=FaeterBR.dmp log=FaeterBR.log
object_consistent=y owner=FaeterBR
---AT DST:
---Create FaeterBR tablespaces and user:
create tablespace FaeterBR_datafile
'/u02/oracle/oradata/str10/FaeterBR_01.dbf' size 100G;
create tablespace ws_app_idx datafile
'/u02/oracle/oradata/str10/FaeterBR_01.dbf' size 100G;
create user FaeterBR identified by FaeterBR_
default tablespace FaeterBR_
temporary tablespace temp;
grant connect, resource to FaeterBR;
imp system/123db file=FaeterBR_.dmp log=FaeterBR.log fromuser=FaeterBR
touser=FaeterBR streams_instantiation=y
Step 11. Create a propagation job at the source database (SRC).
SQL> BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_PROPAGATION_RULES(
schema_name =>'FaeterBR',
streams_name =>'FaeterBR_src_propagation',
source_queue_name =>'stream_admin.FaeterBR_src_queue',
destination_queue_name=>'stream_admin.FaeterBR_dst_queue@dst',
include_dml =>true,
include_ddl =>true,
include_tagged_lcr =>false,
source_database =>'SRC',
inclusion_rule =>true);
END;
Step 12. Create an apply process at the destination database (DST).
SQL> BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name =>'FaeterBR',
streams_type =>'apply',
streams_name =>'FaeterBR_Dst_apply',
queue_name =>'FaeterBR_dst_queue',
include_dml =>true,
include_ddl =>true,
include_tagged_lcr =>false,
source_database =>'SRC',
inclusion_rule =>true);
END;
Step 13. Create substitution key columns for äll the tables that
haven't a primary key of the FaeterBR schema on DST
The column combination must provide a unique value for Streams.
SQL> BEGIN
DBMS_APPLY_ADM.SET_KEY_COLUMNS(
object_name =>'FaeterBR.tb2',
column_list =>'id1,names,toys,vendor');
END;
Step 14. Configure conflict resolution at the replication db (DST).
Any easier method applicable the schema?
DECLARE
cols DBMS_UTILITY.NAME_ARRAY;
BEGIN
cols(1) := 'id';
cols(2) := 'names';
cols(3) := 'toys';
cols(4) := 'vendor';
DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER(
object_name =>'FaeterBR.tb2',
method_name =>'OVERWRITE',
resolution_column=>'FaeterBR',
column_list =>cols);
END;
Step 15. Enable the capture process on the source database (SRC).
BEGIN
DBMS_CAPTURE_ADM.START_CAPTURE(
capture_name => 'FaeterBR_src_capture');
END;
Step 16. Enable the apply process on the replication database (DST).
BEGIN
DBMS_APPLY_ADM.START_APPLY(
apply_name => 'FaeterBR_DST_apply');
END;
Step 17. Test streams propagation of rows from source (src) to
replication (DST).
AT ORCL:
insert into FaeterBR.tb2 values (
31000, 'BAMSE', 'DR', 'DR Lejetoej');
AT STR10:
connect FaeterBR/FaeterBR
select * from FaeterBR.tb2 where vendor= 'DR Lejetoej';
Any other test that can be made?Check the metalink doc 301431.1 and validate
How To Setup One-Way SCHEMA Level Streams Replication [ID 301431.1]
Oracle Server Enterprise Edition - Version: 10.1.0.2 to 11.1.0.6
Cheers. -
How to find out the tables effected information from oracle from
can any one tell me how to find out the tables effected information from oracle form
Hi,
Please refer to the following documents.
Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i
Note: 241628.1 - How to Find the Query That Succeeded Recently?
Regards,
Hussein -
Oracle Streaming Queues in Oracle 10G standard Edition
I would like to configure and implement Oracle Streaming Queues in Oracle 10G standard Edition. If it is possible then please guide me and give me some clues and if not then please advise me some alternate method.
Here is the guidance you requested.
License information:
http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/toc.htm
Technical information:
http://tahiti.oracle.com/
Since I don't even know what version you have ... this is as far as I can take you.
Maybe you are looking for
-
No longer able to use single link mini DVI adaptor
I have a 27" iMac, model 11,1, and my second monitor is a 27" ViewSonic that was hooked up via the short-cable mini-DVI adaptor. Not long ago I started having odd slow-down issues, almost system hangs, and as it turned out the cure was to unplug the
-
Bring object to front on mouseover
Hello, Another simple question here. I have 2 objects next to each other. On mouseover I have them enlarge. I would like to make it so that whatever object is being enlarged is brought to the front. Here is my code. lowgaugefinished.addEventListe
-
Hello, I have a qustion regarding User Groups in Afaria. If I have configured the active directory authentication in the Security settings of the Afaria Server. I also configured 2 AD groups where my user is in 1 of the group and 2 User groups in Afa
-
Dear all, When should one go for object oriented programming...Also i am new in OOPs..how should i start about it? Also can anyone tell me which books to study from ABAP certification...i know there are TAW10 and TAW12...but how to find out which are
-
Do I/Can I reformat ipod from windows to mac?
My 30gb ipod is formatted for windows. I have successfully transferred all of my itunes (thank you for all of your help!!!). Now do I need to reformat my ipod for mac? Is that even possible? If so, how do I do that? Thank you in advance!!!! Jen