Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

1. Create a new table in the source database. On the source server (dbv01) logon as the OE schema and create a new table

sqlplus oe/oe
SQL> create table sales (
prod_id number primary key,
cust_id number not null,
quantity_sold number(10,2) not null,
amount_sold number(10,2) not null,
amount_received number(10,2),
sales_status varchar2(10) not null
);

2. Insert data into this table and commit the data

SQL> insert into sales values ( 101, 201, 233, 1299, null, 'overdue');
insert into sales values ( 102, 301, 30, 1099, 1099, 'paid');
insert into sales values ( 103, 401, 30, 120, 120, 'paid');
insert into sales values ( 104, 401, 40, 160, null, 'overdue');
commit;

3. The replication console will show the new table. The DDL and the DML will be replicated so the table will be in sync on the target database

OE.SALES:                     100%  Mine:4/4             Unrecov:0/0         Applied:4/4

4. Go to the target database and verify that the data is in sync

sqlplus oe/oe
SQL> select * from sales;
   PROD_ID    CUST_ID QUANTITY_SOLD AMOUNT_SOLD AMOUNT_RECEIVED SALES_STAT
---------- ---------- ------------- ----------- --------------- ----------
       101	  201		233	   1299 		overdue
       102	  301		 30	   1099 	   1099 paid
       103	  401		 30	    120 	    120 paid
       104	  401		 40	    160 		overdue

 

 

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.