Which way is the best instantiate the Table level replication tables

Hello

I just got a doubt. Which way is the best to instantiate the tables of replication at the Table level.
I need 20 100 tables replicate tables.
In this way or

DECLARE
ISCN NUMBER;
BEGIN
ISCN: = DBMS_FLASHBACK. GET_SYSTEM_CHANGE_NUMBER();
DBMS_APPLY_ADM. () SET_TABLE_INSTANTIATION_SCN
source_object_name = > ' SCOTT. EMP',.
source_database_name = > ' DB1. WORLD ',.
instantiation_scn = > iscn);
DBMS_APPLY_ADM. () SET_TABLE_INSTANTIATION_SCN
source_object_name = > ' SCOTT. DEP. ',.
source_database_name = > ' DB1. WORLD ',.
instantiation_scn = > iscn);
END;
/


This way:

DECLARE
ISCN NUMBER;
BEGIN
ISCN: = DBMS_FLASHBACK. GET_SYSTEM_CHANGE_NUMBER();
DBMS_APPLY_ADM. () SET_TABLE_INSTANTIATION_SCN
source_object_name = > ' SCOTT. EMP',.
source_database_name = > ' DB1. WORLD ',.
instantiation_scn = > iscn);
END;
/


DECLARE
ISCN NUMBER;
BEGIN
ISCN: = DBMS_FLASHBACK. GET_SYSTEM_CHANGE_NUMBER();
DBMS_APPLY_ADM. () SET_TABLE_INSTANTIATION_SCN
source_object_name = > ' SCOTT. DEP. ',.
source_database_name = > ' DB1. WORLD ',.
instantiation_scn = > iscn);
END;
/


How can I apply ISCN even or the of the ISCN individual.

Thank you
Ray

Hello

Find the RCS of the source, and set if for all tables by using the dbms_apply_adm.set_table_instantiation_scn API.

Thank you
Florent

Tags: Database

Similar Questions

  • which way is the best to write this query?

    Hello
    consider the following 2 queries

    SCENARIO 01
    =========
    Select a.company_name, a.company_address, a.company_contact, b.item_name, b.item_unit_price
    of company_master an inner join company_items b on a.company_id = b.company_id

    SCENARIO 02
    =========
    Select a.company_name, a.company_address, a.company_contact, b.item_name, b.item_unit_price
    company_master a, company_items b
    where a.company_id = b.company_id

    which method is the fastest? (more than 1000 companies and 1000000 + elements) is 01 or 02?
    and what is the 2nd method usually called? ;)

    novicedba wrote:
    Hello
    consider the following 2 queries

    SCENARIO 01
    =========
    Select a.company_name, a.company_address, a.company_contact, b.item_name, b.item_unit_price
    of company_master an inner join company_items b on a.company_id = b.company_id

    SCENARIO 02
    =========
    Select a.company_name, a.company_address, a.company_contact, b.item_name, b.item_unit_price
    company_master a, company_items b
    where a.company_id = b.company_id

    which method is the fastest? (more than 1000 companies and 1000000 + elements) is 01 or 02?
    and what is the 2nd method usually called? ;)

    Queries are probably the same, the difference being one are written in ANSI SQL and the other in SQL ANSI traditional pre. To be sure, test the two - get execution plans, execution and execute the metrics.

    What is the best, it is to you. Some people prefer ANSI that uses IT to indicate the joins and WHERE indicated condtions filter; Personally, I prefer the traditional syntax it is easier to read.

    Outer joins make queries run more slowly. Avoid them if you can. Outer joins are used to return a row in a table if the join data does not exist in the other table. Once again, they degrade performance.

    Cross joins are almost never necessary. They are useful to indicate joins Cartesian intentional for the results of Matrix Games. Cartesian joins are notorious for using too many system resources (especially when you work with a large amount of data) and returrning of incorrect results and can happen by running a join without specifying a join condition: all columns will be joined between the two tables, even when they do not match. In 10g and 11g the optimizer sometimes will perfom Cartesian joins make queries run faster but is always scary to see the "Cartesian" word in an execution plan

  • How to get a variable of a sub - VI all the way to the top level vi (GUI)

    Hi all

    I am currently working on controlling the movement of the six axes with labview through RS232 communication. These axes are controlled in order so not more than one axis moves at a certain point in time. To do this, I need to query the axis status bit to see whether or not the move is done. Basically a while loop to stop "asking" for the State when the statusbit is '1 '. This is done by a somewhat deep nested vi in software architecture (low level vi). The behavior of this vi is necessary because it blocks the execution of the remaining vi until the movement is finished. Therefore, I am sure that no command is sent to move a second axis during the movement of the axis of another.

    I want to do is to bring the traffic all the way to the front of the user interface so that the operator can see if the axis is in motion or not. But the problem is that the vi that handles these requests status only publishes the output data when the while loop stops, in this case when the movement is completed. And I would like to know the status on a regular basis, for example every 100ms or so?

    How can I get the value of the bit on the status in the GUI? I have to place another vi on the upper level which requires also that the status?

    Any help is much appreciated,

    Best regards.

    You can pass a reference to what ever VI main control/indicator panel you want to display it on.  Then in your Subvi loop, use this reference with a knot of property value for updating control/indicator light panel.

  • He had to find the way of the table based on conditions...

    Hello

    Please look at the specimen below...
     
    AMOUNT      ID NO             Date
              
    588     0000053125     07/01/09
    612     0000053125     06/01/09
    528     0000053125     05/01/09
    635     0000053125     04/01/09
    700     0000053125     04/02/09
    588     0000053126     07/01/09
    612     0000053126     06/01/09
    528     0000053126     05/01/09
    635     0000053126     04/01/09
    700     0000053126     04/02/09
    588     0000053127     07/01/09
    612     0000053127     06/01/09
    528     0000053127     05/01/09
    635     0000053127     04/01/09
    700     0000053127     04/02/09
    588     0000053128     07/01/09
    612     0000053128     06/01/09
    I need to know the average of (AMOUNT) of the last three months, based on the given ID no..
    Please note that for the registration of the sample, there are only 3 ID no.... but in real time will come more ID no..

    Note:
    ID no. 0000053128 is to have only two recordings... here, the average should be calculated accordingly.

    Hello!

    It should provide AVG ol 3 last records (assuming that you have in your data in a record for a month)

    SELECT id_no, AVG(amount)
       FROM (SELECT amount, id_no, date1, row_number() over(PARTITION BY id_no ORDER BY date1 DESC) rn
                    FROM Your_table ORDER BY id_no, date1 DESC )
    WHERE rn <= 3 GROUP BY id_no
    

    T

  • The table layout where the new line can be inserted / updated rest is read only

    Jdev Studio Edition Version 11.1.1.3.0.

    I have a (JSF) page that has table. My requirement is I need make the line as read only with the exception of the newline (created with the new button) as update / insert able. Please suggest a way around so that the user can only add records to the table but couldn't change all existing records in the table.

    Please advice.
    Thank you.

    S Chatterji.

    S. Chatterji,

    If you are using ADF business components, just go to the VO on which is based the table and brand every attribute as "Editable when new" only.

    John

  • I put the table of contents to view all levels, not just one?

    I'm in RH 8 and using Webhelp.

    When I generate, I have 2 levels of books.

    When I click on a book at level 2, it closes another book that can be opened at level 2.

    Is there a way to make all the books and pages and all the themes appear when generated?

    Thank you.TOC.png

    Hello

    Unfortunately, there is no characteristic or parameter that you can activate in RoboHelp which will cause the table of contents display initially in a fully developed State. You should consider to send a form would ask option to add in a future version.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • How can I create a custom button to format the table borders?

    I often paste to Excel in a message e and would like a button or a context menu for the PROPERTIES of TABLE FORMAT it takes 2-3 clicks each time to access. Is there such a thing? I searched the Add-ons nothing helps. There may be a change in config I can do which would have the table to stick with borders already in place (I have to change the thickness of the border on '1' each and every time that she missed to '0' - maybe there is a place to have it by default on '1'?)

    I have attached a picture of the menu on that I wonder.

    I don't know of a setting for this...

    It would be easier to click on, but based on underscores bit indicating the keys Accelerator, the keyboard sequence would be:

    • ALT + o b o
    • ALT o b o
  • Right to the left on the Table in the tree view

    Hello

    I draw a tree with oracle adf and I want to use the right to left function for (which show that the table from left to right mode)

    Can someone help me?

    Thank you

    The true value trinidad-config.xml file.

    But, what is the expected result? The right-to-left simply defines the direction of default page rendering.

  • Display the filter on the Table button.

    Hi all

    I use Jdev 11.1.1.2

    I created a page ADF with a table. When I created the table I do not flag 'filtering '.
    Now, I want to filter on the table. How to make the button Visable filter?

    I set filterVisible = 'true' on the table and filterable = "true" on a single column.

    What's left to do?

    Thank you.

    Hello

    If you select the table and open the editor properties, and then in the toolbar of it it is a pencil icon "Edit component Definition" which opens again the table configuration window. Just check the option filter here, and you're all set.

    Frank

  • Audit of the tables - what are the best ways to do so?

    Hi all

    DB version: 10g.

    Brief description of the problem: at the moment, I'm working on an application that has a java interface and oracle
    back-end. We have no access to the java code at all. So, it's a complete black box. . I was wondering, if I could go for a trigger level diagram to know which tables columns are altered on certain measures to the interface. Or, if I know the tables specifically, let's say A tab and tab B. I should go to a level trigger line on them, instead of going a
    schema level trigger. What approach will be the best? If possible, would you please point me to some code examples
    for each of them.

    Thank you.

    http://www.Oracle.com/pls/db102/search?remark=quick_search&Word=audit&tab_id=&format=ranked

  • What is the best way to refresh the table after autosubmit (10.1.3.4)

    What is the best way to refresh the table after autosubmit?

    I have a page that contains a table where if one of the fields is changed it autosubmitted where the view object changes some attributes, based on the field having been changed. I need these modified attributes that appear in the table. But without doing anything, the only way to see these values is to cause the iterator updated table.

    I've been refreshing the table is having a method in a grain of beacking called "getSystemSettingIter.getCurrentRow ();". This seems to be a bit of a hack for me and I was wondering if there is a better way to get the table to update.

    Thanks in advance!

    Have you tried setting between the two partial page refresh?
    http://www.Oracle.com/pls/as111120/lookup?ID=ADFUI385

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/web_form.htm#CACEIEEI

  • Best way to search for a value in the table

    Hello world

    Need help to decide which application should be used in the following scenario.
    Table  temp_a
    ( col_1 varchar2(20),
     status_flag varchar2(10)
    );
    col_1 is the primary key


    I want to know if a given value is present in "col_1" of the table "temp_a.

    So what query wud be faster:

    1.
     select count (*)
    from temp_a
    where col_1 = v_col_1   -- using variable to check for value
    and status_flag ='active' ;
    2.
     
     select count (*)
    from temp_a
    where col_1 = v_col_1   -- using variable to check for value
    and status_flag ='active' 
    and rownum =1 ;
    Here, I am not concerned about the number (*), I just need to check if the v_col_1 is present or not.

    1. then please let me know, if both are one and the same. or one of them is faster over another.

    2. also, is there a better way to check?

    Thank you
    Abhishek

    The two approaches are the same, because col_1 is a primary key.
    I think that there is a query then faster:

    select count (*)
    from temp_a
    where col_1 = v_col_1
    ;
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

  • What is the best way to make a sort of table?

    Hello world

    Twice a year, our magazine prints financial reports for our Organization. The layout is always exactly the same thing: the only thing that changes are the numbers. I have the exactly how I want. The workflow easier (but less efficient) was to manually replace the numbers each time, typing hand.

    I was wondering if there was something of a slick way to automate this process. Financial data is delivered in a native Excel file. I was wondering if I could set up some sort of thing where InDesign can read raw data from another application?

    No matter what come to mind?

    Thank you

    You import text from excel, it is a table.

    As long as the table has the exact same lines and columns, in the same configuration.

    You can convert the table to text, insert a TAB for the separation of the columns and the paragraph for columns when asked

    You can then copy and paste the text in the table.

  • What is the best way to change the elements of the array (without copies of the table)?

    Hi all

    I am new to Labview, so I'm sorry for the newbie question.

    I'm using Labview check parts in an assembly as a precursor to the test. For my 'list' I create an array of clusters, with the cluster containing a string for the part number and a Boolean value if the latter has been analyzed. I read in my parts list, and then I add on behalf of the party to each cluster in the table. I don't want to do multiple table if possible copies. The code below does not work - I've had the 'matrix' (my Checklist) outside the while loop, because I assumed that the box of items inplace should not output. The cluster created in the inplace elements is correct, but the 'picture' does not change.

    Any help woud be appreciated, I would have preferred a simpler solution elements inplace if possible (once again without making multiple copies).

    Concerning

    Ray

    You do not show the rest of the code, but I'm guessing that your "matrix" is never initialized with all values. Thus, 'replace' will not work since you can't replace an element that does not exist. If the case you are showing is supposed to be the initialization of the table (and based on what you say, it seems as if this is the case), and then abandon the inplace structure. All you need to do is automatic index of your array of strings and just do this:

  • What would be the best type of table/chart to use?

    I'm testing a grid tie inverter. To the side of the grid, I need to provide a table/chart, which has:

    X axis: fixed, from 00:00 (midnight) and ending at 23:59

    Y axis: last watts measurment purchase / sale

    The table/graph must be emptied at midnight every night

    Measurements are performed at intervals of 10 seconds.

    This program will be running continuously for long periods of time (months in a row)

    I'm leaning towards a xy chart because the program can be started and stopped at any time and it's the only way I can think of to make sure that the line of measurnents correctly on the X axis.

    But I'm afraid that, since all XY graph is held in RAM (each line has its own displacement register) and measurment taken at intervals of 10 seconds.

    Who's going to add up quickly as the days go by finally out of memory and crash.

    Also I can not know how to delete the chart every day to avoid said memory leak.

    To make matters worse I need also a same table/chart for the release of load, batteries and solar panels.

    Here is my grid purchase sub - vi that I call after each action is taken and a message of State output and graphics for the main program.

    RavensFan wrote:

    I would follow the advice of Lynn and manage each day of data as a separate table of data.  So do not grow a value of several days of data in a single table.  Move to another storage such as file system and clear the table and start again at midnight.

    But I think what they XY graph is the best display for all the reasons you listed as discontinuous data.

    Yes I'm still with the XY graph as we are still in the first part of the development lifecycle and it is possible that the device could be stopped and started several times during the day and I don't want the graphics to get all out of whack.

    But looking at my sub - vi, it occurred to me to treat it as an engine of the action or functional global and put an initialization state it I can call at midnight to clear the shift registers.

    For what is to come back a day or more, maybe it's something that I have work later. Daily data are saved locally in a separate file and using the XLR8 tool I'll roll seven daily files in a weekly Excel workbook for later analysis.

Maybe you are looking for