Oracle Streams and Materialized View

I have two tables as follows

<<Complaints>> 10 Million Records

ID
Description
Type
DeptNo
---

<<Department>> 200 Records

DeptNo
DeptName
Mgr
Email
Loc

---------------------------------------------

****  Requirement is to replicate Complaints' Complete Record to an other Database daily

     For examle i want to replicate following information, using Oracle Streams
   
     ID, Description, type, DeptName, Mgr, Loc

1)  Should I use Materialized View and then replicate it using Oracle Streams

2) Please Provide me Web links where i can get more detailed information about Oracle Streams
LVL 13
sonicefuAsked:
Who is Participating?
 
sujith80Connect With a Mentor Commented:
>>1)  Should I use Materialized View and then replicate it using Oracle Streams
Not required. MV is an alternative replication mechanism to streams.
To use streams
- should have archived log-ing enabled
- You can define table level rules that replicates only a single table.

All you need is available at this link:
http://download.oracle.com/docs/cd/B14117_01/server.101/b10785/toc.htm
0
 
MUHABBATConnect With a Mentor Commented:
Hi Dear,
   The requirement that you want to achieve is also possible through Materialized View.That is much easier and simple instead of maintaining Streams..
 For MV
    1. you will create Database link for both database.  e.g.
         Create DATABASE LINK ABC  CONNECT TO userName IDENTIFIED BY Password USING 'tnsEntry'
(where tnsentry is the DB Alias in Tnsnames.ora)
 
    2.  then create a MV  in Destination DB that gets data from Source DB.
    3.Then create a trigger on the Materialized View that will insert MV data in a Table (Backup)


Thanx

0
 
sonicefuAuthor Commented:
Hi MUHABBAT !
You have a nice name MUHABBAT (Love),

*)   Using Oracle Streams is must (it is compulsory)
**)  I want to send (stream) following columns (from two tables) to a remote database
      ID, Description, type, DeptName, Mgr, Loc
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
gvsbnarayanaCommented:
Hi,
   Is there any particular reason that streams is compulsary?
Regards,
Badri.
0
 
jwittenmCommented:
Streams is not compulsory.  In fact, while I do like Streams for many, many things, and have implemented in in some very large environments, in your case I would use MViews instead.  Even in 10.2 Oracle has many problems with Streams.  For more (definitive) information on anything Oracle, go to technet.oracle.com.
0
 
sujith80Connect With a Mentor Commented:
MVs doesnt provide a real-time replication. You have to use streams for such cases.
The data will always be stale upto the last refresh. Once the db is running in archived log mode, its not a problem replicating a few tables.
0
 
sujith80Connect With a Mentor Commented:
>> The data will always be stale upto the last refresh.
In case of MVs.
0
All Courses

From novice to tech pro — start learning today.