Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Replication?
Okay,
You could do a count of the local table before you begin to verify you got all of the rows before you start popul. into MAINTAB.
Oracle OCP DBA
-----Original Message-----
Sent: Wednesday, May 14, 2003 4:02 PM
To: Multiple recipients of list ORACLE-L
You could use relication but it's not absolutely necessary. You could do something like this
On Server:
Run a query: SELECT * FROM MAINTAB
If they like it, issue INSERT INTO LOCALTAB_at_LOCALMACHINE SELECT * FROM
MAINTAB;
OR From the local machine : INSERT /*+ APPEND */ INTO LOCALTAB SELECT * FROM
MAINTAB;
When done with the edits, you can merge with the main table. If the changes
are exclusively done by a single user, you could
- delete the records from MAINTAB
- and, insert /*+ APPEND */ into MAINTAB select * from
LOCALTAB_at_LOCALMACHINE.
If that's not possible, use a simple PL/SQL block to read the localtab and
insert/update/delete the MAINTAB.
This operation will be much simpler than replication.
HTH.
Arup Nanda
www.proligence.com
> Hello DBAs
>
> I am going to experiment with copying subset of data to another database
and
> merging changes. In short I need the user to run a query against the
master
> database, copy the resultset to their local database, do whatever they
need
> and later merge the changes in their local DB to the master DB.
> It looks like replication is the technology to look into. Is there
anything
> else in the big Oracle world?
>
> Thanks
>
> Witold
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Witold Iwaniec
> INET: wiwaniec_at_novalistech.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Arup Nanda INET: orarup_at_hotmail.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: INET: Paula_Stankus_at_doh.state.fl.us Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed May 14 2003 - 16:42:01 CDT