How can I replicate table from a user to another user?

I want replicate a table from a user to another user, I use DBMS_STREAMS_ADM.RENAME_SCHEMA, but it didn't work.
who can tell this reason?
scripts as following:
create user strmadmin IDENTIFIED BY strmadmin;
grant dba to strmadmin;
BEGIN
DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE(
grantee => 'STRMADMIN',
grant_privileges => TRUE);
END;
connect strmadmin/strmadmin
--queue
BEGIN
DBMS_STREAMS_ADM.SET_UP_QUEUE(
queue_table => 'STREAMS_QUEUE_TABLE',
queue_name => 'STREAMS_QUEUE');
END;
--capture
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
schema_name => 'SCOTT',
streams_type => 'CAPTURE',
streams_name => 'S_CAPTURE',
queue_name => 'STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
include_tagged_lcr => false,
source_database => 'ORCL.REGRESS.RDBMS.DEV.US.ORACLE.COM',
inclusion_rule => true);
END;
--instantiation
DECLARE
iscn NUMBER;
BEGIN
iscn := DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();
DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN(
source_schema_name=>'SCOTT',
source_database_name => 'ORCL.REGRESS.RDBMS.DEV.US.ORACLE.COM',
instantiation_scn=>iscn);
DBMS_APPLY_ADM.SET_TABLE_INSTANTIATION_SCN(
source_object_name=>'SCOTT.DEPT',
source_database_name => 'ORCL.REGRESS.RDBMS.DEV.US.ORACLE.COM',
instantiation_scn=>iscn);
END;
--apply
--transformation
DECLARE
s_dml VARCHAR2(30);
s_ddl VARCHAR2(30);
BEGIN
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
          schema_name => 'SCOTT',
streams_type => 'APPLY',
streams_name => 'S_APPLY',
queue_name => 'STREAMS_QUEUE',
include_dml => true,
include_ddl => true,
source_database => 'ORCL.REGRESS.RDBMS.DEV.US.ORACLE.COM',
dml_rule_name => s_dml,
ddl_rule_name => s_ddl);
DBMS_STREAMS_ADM.RENAME_SCHEMA(
          rule_name => s_dml,
          from_schema_name => 'SCOTT',
          to_schema_name => 'TEST',
          step_number => 0,
          operation => 'ADD');     
END;
--start
BEGIN
DBMS_APPLY_ADM.SET_PARAMETER(
apply_name => 'S_APPLY',
parameter => 'DISABLE_ON_ERROR',
value => 'N');
END;
BEGIN
DBMS_APPLY_ADM.START_APPLY(
apply_name => 'S_APPLY');
END;
BEGIN
DBMS_CAPTURE_ADM.START_CAPTURE(
capture_name => 'S_CAPTURE');
END;
/

select * from dba_streams_rename_schemaWhat do you have there?

Similar Messages

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • How can I copy tables from Numbers to Pages without formula?

    hi everyone
    i need help
    How can I copy tables from Numbers to Pages without formula in the cells?

    Ok... I see your problem... when pasting into Pages, the formulas from Numbers are included. Perhaps this is really more of a Pages question (in which case I'm far from expert). A couple of ideas:
    • In Pages, try "Edit"/"Paste and Match Style", which may insert tab delimited cell values (no formulas). Then, if you want the table format back, select these newly pasted tabbed values and use Page's "Format"/"Table"/"Convert Text to Table"/
    • In Numbers, before copying, make a temporary table of the plain values first, then copy and paste that into Pages. To do this, select the range of cells you desire in the Numbers and "Edit"/"Copy". Then "Edit"/"Deselect All" and "Edit"/"Paste Values" and "Edit"/"Cut". Now just a table of values is on the clipboard and you can head over to Pages to paste.

  • How can we replicate UOM from ECC to SRM.

    Hi ,
    In ECC I have assign ISO code against the UOM.
    I have replicate ISO code from ECC to SRM. But unable replicate UOM.
    How can we replicate UOM from ECC to SRM?
    Thanks with regards
    Sachin

    Hi Sachin,
    UOM are uploaded in SRM through object DNL_CUST_BASIS3. It's part of master data replication.
    You should refer following link, it will give you idea how to load mentioned object in SRM:
    MASTER DATA REPLICATION: SETTINGS
    I hope it helps.
    Regards,

  • How can I migrate everything from one account to another on same computer?

    How can I migrate everything from one account to another on same computer?

    Transferring files from one User Account to another

  • How can I transport data from one client to another client?

    How can I transport data from one client to another client? 
    Regards,
    Subho

    hmmm, CTS = cutomizing transport?
    If you have a customizing table, there are still two possibilities.
    1. customize in DEV system and transport
    2. customize right there where you need it.
    this depends on how the maintainance view is built. If it is a simple customizing table and you get not asked for a TR when customizing a new record or changing an existing one, you hit possibility 2.

  • How can I transfer work from one computer to another?

    How can I transfer work from one computer to another?

    Welcome to the forum.
    I can think of three basic ways to accomplish what you wish to do:
    Use the Project Archiver to archive your Project (and check the box to gather the media files), to an external HDD. Probably the easiest way to do it.
    Copy the Project and ALL media files to an external HDD, but be prepared to relink the media files to the Project, as the drive letter (part of the Absolute Path) will have changed.
    Edit loosely, and Share to an AV file, which will be Imported into a New Project on that second computer. Or, edit VERY tightly, and do the same. I like the first, as removing, replacing Transitions, etc., can be much more difficult, unless that "tight edit" is 100% done.
    Good luck,
    Hunt
    Message was edited by: Bill Hunt to correct formatting

  • How can I transfer information from one ipad to another?

    how can I transfer information from one ipad to another ?

    What kind of information? You can sync things like Contacts and Calendars by using iCloud. You can backup one iPad to iTunes on a computer and then sync the backup to the other iPad. You can configure your iTunes content and sync the same content to both iPads.
    It is based on what you want to do. Or are you looking for a way to send files from one iPad to another wirelessly? There are apps to do things like that, as well as cloud services, such as DropBox.

  • How can I send stuff from one iPhone to another via Bluetooth?

    How can I send stuff from one iPhone to another via Bluetooth?

    There are some apps that will let you send photos from one iOS device to another over BT.

  • How can i copy apps from one computer to another?

    how can i copy apps from one computer to another?

    You don't mention which operating system you have so it's difficult to provide an answer since the mac and Windows stores the files differently.
    The other thing you can do is just re-download the apps from the iTunes Store. Just login to the iTunes Store on the other computer using the same Apple ID. On the right-hand side of the iTunes Store page you will see a 'Purchased' link. Clicking on that will take you to a page that will list your past purchases which you can re-download to the new computer.

  • How can I copy text from one card to another while creating cards using Iphoto?

    I created two cards with different pictures using Iphoto on Macnotebook. 
    I want to use the same text message.
    How can I copy text from one card to another?

    select the text and copy (edit menu ==> copy) tehn gpo to the next card and paste
    LN

  • How can you transfer data from one ipod to another ?

    How can you transfer data from one ipod to another ipod ?

    The geniusbar told me what to do, I understood but there is still a problem for me >:/ It's not showing up though. Like "device."  Nothing is happening, and I tried as soon as I got home. Then after half an hour, then an hour, then 3 hours. My problem is that it's not showing up! It's stuck in recovery mode! There's still like 25% battery. So I have no idea why.

  • About photoshop organizer: how can I shift pictures from one catalogue to another one?

    how can I shift pictures from one catalogue to another one?

    Sync to computer then from there to other device.  Photo stream can be used to sync between devices, but that has to be set up BEFORE the photos are taken.
    Read this...  import photos to your computer...
    http://support.apple.com/kb/HT4083

  • How can we transfer stock from one vendor to another vendor?

    Dear Gurus,
    How can we transfer stock from one vendor to another vendor?
    pls tell the steps to follow..
    Thanks..

    This is the Normal Third Party Sub Contracting
    Follow these steps
    If components to be provided to a vendor are supplied not by your company but by a third-party, you can order the components from the third-party and specify the subcontractor in the purchase order as the delivery address. At goods receipt the components are posted directly to the stock of the material provided to vendor.
    Entering a Purchase Order for Components
    To order components for a subcontract order from a vendor and have them delivered direct to the subcontractor, enter a standard purchase order with a different delivery address:
    From the Purchasing menu, choose Purchase order ® Create ® Vendor known.
    Maintain the data on the initial screen. Make sure you enter the vendor of the components and the plant concerned.
    Enter the items.
    Then choose Item ® More functions ® Delivery address.
    A dialog box appears in which you enter the delivery address.
    In the field Vendor enter the number of the subcontractor and select the SC vendor box.
    Selecting the box causes the components at goods receipt to be posted directly to the stock of the material provided to vendor when the goods receipt is posted.
    Save the purchase order.
    Posting the Goods Receipt of the Components
    If the subcontractor lets you know that the components have arrived, you can enter the goods receipt for the purchase order. The components are posted directly to the stock of the material provided to vendor.
    Stock Update
    A goods receipt posting has the following results in the system:
    the stock of material provided to vendor at plant level is increased. The stock of material provided to vendor is not managed at storage location level, since the stock is no longer stored at your company.
    Valuated stock at plant level increases.
    Documents
    An accounting document is created for the material document.
    After this normal subcontracting order for finished product.

  • How can you Sync something from one iPad to another?

    How can I Sync things from one iPad to another?

    I'd take a look at this thread, and the referenced ( at the bottom) kb. 
    https://discussions.apple.com/thread/3018061

Maybe you are looking for

  • Getting music from itouch to a new pc w/o losing music

    I have a new pc hard drive and want to copy my itouch music to the computer. My concern is that if I sync to a blank itunes account I may lose all the music in the itouch.

  • Sqldeveloper 3.2 unknown publisher?

    I just downloaded sqldeveloper 3.2.09.23 (32 bit with JDK) on Windows XP but everytime I run it I get the annoying "Unknown Publisher" dialog. This didn't happen with the 3.1 version anyone know how to keep this message from appearing everytime I sta

  • Why are my apps still in trial mode after subcription is paid

    my adobe  cc trial apps are about to expire and but i have a paid subscription and have tried to download the full apps but have only been given the option to download apps in trial mode, what to do?

  • Minimum and maximum order qty

    we want to configure minimum and maximum allowed order qty in STO for our internal stock transfers. plz suggest the config steps to be follow for deploying this activity.

  • Font Display Panel Problems

    I was reading an online article about using iWeb http://www.mymac.com/showarticle.php?id=3047 and there is a screen shot of the font display panel This is the panel many applications use to allow the user to adjust the fonts. If you open TextEdit and