Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 24th, 2005, 03:28 PM
Moe_w90 Moe_w90 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 76 Moe_w90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 7 h 19 m 27 sec
Reputation Power: 4
Oracle replication

Hi everyone,

I'm want to implement a simple data replication between two tables located on two different oracle 10g databases. I appreciate any guidance on the easiest and fastest way to do that. Again i just want to replicate regular data between the two tables.

Thanks in advance.

Reply With Quote
  #2  
Old February 24th, 2005, 03:58 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,907 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 9 h 21 m 6 sec
Reputation Power: 279
Set up a dblink from master (A) to slave (B), then create a synonim in B of A's tables through dblink and create materialized views in B based on synonims.

Reply With Quote
  #3  
Old February 24th, 2005, 04:20 PM
Moe_w90 Moe_w90 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 76 Moe_w90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 7 h 19 m 27 sec
Reputation Power: 4
Great you make its sound easy,

I'm actually in newbie in oracle. I would appreciate it if you can provide me with more details about that. A link maybe that talks about synonims and materialized view.

Thanks.

Reply With Quote
  #4  
Old February 25th, 2005, 03:14 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,907 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 9 h 21 m 6 sec
Reputation Power: 279
Can't you do a Google search????
Start reading http://srmwww.gov.bc.ca/gis/oratransfer.html and http://www.databasejournal.com/features/oracle/article.php/2192071

Reply With Quote
  #5  
Old February 25th, 2005, 03:25 AM
shammat shammat is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 1,005 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 11 h 53 m 24 sec
Reputation Power: 67
And of course right from the horse's mouth:

http://www.oracle.com/technology/documentation/index.html

Reply With Quote
  #6  
Old February 25th, 2005, 03:32 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,907 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 9 h 21 m 6 sec
Reputation Power: 279
Comments on this post
Moe_w90 disagrees!

Reply With Quote
  #7  
Old February 25th, 2005, 01:13 PM
Moe_w90 Moe_w90 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 76 Moe_w90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 7 h 19 m 27 sec
Reputation Power: 4
Well i have lot of reading to do. Thanks guys !!

Reply With Quote
  #8  
Old February 26th, 2005, 04:52 PM
Moe_w90 Moe_w90 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 76 Moe_w90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 7 h 19 m 27 sec
Reputation Power: 4
Hi everyone,

Pabloj, the method you mentioned to me for replicating data creates a materialized view on B. In my scenario i already have a table with the same fields as the table on A. This table has data. If i create this materialized view, does it act as a regular table. If that's the case i can get rid of the table i currently have, create the materialized view with the same name and then my application that uses the deleted table should run fine. Is that the case?
Can anyone tell me what's the difference between creating a db link and creating an entry in the tnsnames.ora.

Thanks..

Reply With Quote
  #9  
Old February 27th, 2005, 04:21 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,907 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 9 h 21 m 6 sec
Reputation Power: 279
If B only needs to read from that table you can use the mview and get rid of your original table.
Adding an entry in the tnsnames.ora is editing a text file, making the infos added available to oracle.
Adding a dblink is making a database aware of another one (another local instance or a remote one), an entry in the tnsnames is needed to build a dblink.

Reply With Quote
  #10  
Old February 27th, 2005, 02:51 PM
Moe_w90 Moe_w90 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 76 Moe_w90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 7 h 19 m 27 sec
Reputation Power: 4
Hi,

I set up the materialized view with fast refresh. It was created successfully and all the data on the remote table were copied to the materialized view. The problem i'm having now is that when i add a new entry to the master table, it doesn't get reflected in the materialized view. I checked my master log and the new entry was written to it,
The Weird thing is that when i query the master table locally i get the new entry but when i do a query from the remote machine it doesn't reurn the new entry. I guess that's the problem.
One thing I created my db link under the public schema, and all my other tables and materialized view is created under a vipuser schema.

Thanks..

Reply With Quote
  #11  
Old February 27th, 2005, 03:25 PM
Moe_w90 Moe_w90 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 76 Moe_w90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 7 h 19 m 27 sec
Reputation Power: 4
Hi Pabloj,

Well i figured out my problem. I had NEXT SYSDATE +1/48 and it was taking forever to replicate. I changed it to 1/(48*60) and the data get replicated fast . Thanks for everything.

Regards,

Moe

Reply With Quote
  #12  
Old February 28th, 2005, 04:03 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,907 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 9 h 21 m 6 sec
Reputation Power: 279
Did you check the "refresh fast on commit" option for your materialized view?

Reply With Quote
  #13  
Old February 28th, 2005, 02:43 PM
Moe_w90 Moe_w90 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 76 Moe_w90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 7 h 19 m 27 sec
Reputation Power: 4
Hi,

I was using FAST START WITH SYSDATE option. I'll go ahead and change that to fast on commit.

Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Oracle replication


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |