Is it necessary to prepare objects if use dbms_apply_admin to instantiation

Metalink says instantiation of database objects for Oracle Streams involves the steps as:
1. Prepare the objects for instantiation at the source site.
2. Create a copy of the objects at the destination site (ifnecessary).
3. Set the instantiation SCN for the objects at the destination site.
My question is: if we didn't use exp/imp as we already has the objects in the destination database, do we still need the step one? Can't we execute the dbms_apply_admin directly?

Hi,
Yes you can issue the apply directly. If the tables are the same (I like to insert-select) then you need to run the following steps:
1. Set up the q at the source (DBMS_STREAMS_ADM.SET_UP_QUEUE)
2. Set up the q at the target
3. Add the prop rules (DBMS_STREAMS_ADM.ADD_TABLE_PROPAGATION_RULES)
4. Add the capture rules at the source
5. Set the scn (from source) at the target (DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN)
6. add the apply rules
7. start apply
8. start capture
You can skip the ones you have already done but I would stop what you have and start when everything is in place.
Mike

Similar Messages

  • Looking up values from Map/HashMap  when Objects are used as keys

    I'm trying to understand why Map/HashMap don't test for equals() when looking up a key ( which is an Object that overrides equals() and hashCode()) in the Map.
    I've written this code, based on some code from the SCJP book, but it is not exactly the same, this code talks about a different issue not addressed in the book.
    I've added my questions inside the comments below, I think that is the best way I can ask it.
    import java.util.*;
    class Bird{
         public String name;
         public Bird(String name){
              this.name = name;
         //Override equals()
         public boolean equals(Object o){
              if(((Bird)o).name.equals(this.name)){
                   return true;
              }else{
                   return false;
            //Override hashCode
         public int hashCode(){
              return name.length();
    class TestMapLookup{
         static public void main(String[] args){
              Map<Object, Object> hashMap = new HashMap<Object, Object>();
              Bird b = new Bird("crow");
              hashMap.put(b, "somevalue");
              //according to the book, the map object calls the key's (Bird object's)
              //hashCode() first and then equals()
              //to find this key in the map
              System.out.println(hashMap.get(b));
              //Using the b reference to lookup value
              //ouputs - somevalue
              System.out.println(hashMap.get(new Bird("crow")));
              //Using a new Bird object to lookup value
              //outputs - somevalue
              //because Bird overrides equals and hashCode
              //otherwise we'd get null
              //Now change the name of the bird in the b reference
              b.name = "sparrow";
              //Notice that the crow's hashCode is 4
              //sparrow's hashCode is 7 , in the above implementation of hashCode
              System.out.println(hashMap.get(b));
              //Again using b reference to lookup value
              //ouputs - null
              //because the hashCode of b.name does not match
              //the hashCode of any of the keys stored in the map
              System.out.println(hashMap.get(new Bird("crow")));
              //This also outputs null
              //for the same reason that there's no key in the map
              //with a hashcode of 7
              //This is where it becomes strange......................
              //Change the name of the bird in the b reference
              //so that the new name has the same hashCode, as the key in the map
              b.name = "dove";
              System.out.println(hashMap.get(b));
              //In the above - the hashCode matches
              //but equals() fails
              //even though equals() fails, the key is still located and the value is output
              //output is "somevalue"
              //same here:
              b.name = "1234";
              System.out.println(hashMap.get(b));
              //output is "somevalue" instead of null
              b.name = "abcd";
              System.out.println(hashMap.get(b));
              //output is "somevalue" instead of null
              //why does it output "somevalue" instead of null , even though when the map
              //looks up the key , equals() returns false?     
              System.out.println(hashMap.get(new Bird("crow")));
              //In this case ( new Bird reference ) it prints null
    }I'm aware of best practices in coding and coding conventions but haven't used them here, because this is in preparation for SCJP - which tests on a lot of different things.
    I appreciate any info.

    It is correct that b is referring to the same object that the map's key is pointing to, but why does the following
    print null , instead of "somevalue"?
    at these lines in the code above.
    b.name = "sparrow";
    System.out.println(hashMap.get(b));Because the hashCode used when you stored b was 4, and now it's 7. You should read the Wikipedia article on Hashtable, but a simplistic explanation is that a HashMap has a bunch of "buckets," say 10, each indexed with a number 0-9. To decide which bucket to put a new key-value pair in, you take the hashcode (say 2112) and take the remainder of hashcode/number of buckets (in this case, 2112%10=2). So when you store the key-value, it gets "put" in this bucket.
    When you change the hashcode of b by changing its name attribute, it doesn't change the fact that the pair is in that bucket. But, it now looks in the wrong bucket and so can't find the pair.
    A hashtable gets its good efficiency by not having to look through all values to find the pair. It can jump directly to the correct bucket, which takes constant time instead of being dependent on the number of items in the collection.
    endasil wrote:
    You should never, ever change an object being used as a key in a map.I guess this is a best practice, I just wanted to try changing the key object to test a few things for SCJP, which does not test on coding best practices but tests on how the code behaves.Yep, and what you should take away is that this is WHY it's bad to change the key :).

  • Runtime error 429, activeX component cant create object while using netbet pro on windows 7 & 8.1 HELP!!!

    runtime error 429, activeX component cant create object while using netbet pro
    does anyone know what I could do to fix this problem??? netbet pro was't available for a while then it's back but has yet to run

    What's netbet pro?
    I'd recommend asking questions about third party applications in the vendor's forum, not a Microsoft forum meant for admin scripting.
    EDIT: Ah, some gambling website...
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Can't open iPhoto "To open your library with this version of iPhoto, it first needs to be prepared. To prepare the library, use the iPhoto Library Upgrader available from Apple." Doesn't work...

    I've tried to open my iPhoto and a message box opens up and reads "To open your library with this version of iPhoto, it first needs to be prepared. To prepare the library, use the iPhoto Library Upgrader available from Apple." I update this and this message continues to pop up. I've even tried to rebuild it, but no matter what I do the same message appears and iPhoto still wpn't open. Can somebody please help me?!

    i'm having the same problem with my iMac (Mac OS X 10.7.5) . i haven't really made any updates to it and yesterday when i tried to access the iPhoto library of my MBP (from my iMac) is when problems started. The iPhoto on the iMac initially said I need to install the recent version of the iPhoto. Since I can't find a 9.0 download, I went to buy the iPhoto on the App store.
    When I tried to install iPhoto (version 9.4.3) to the iMac, I got this message:
    The iPhoto Library Upgrader is a tool that prepares libraries from iPhoto 5 or earlier, so you can upgrade them with the current version of iPhoto. You can download the tool here.
    Note: If your library is from iPhoto 6 or later, this tool is not required."
    I then installed the iPhone Library Upgrader, but I got the same prompt:
    'You can't open your current photo library using this version of the iPhoto. You have made changes to your library using a newer version of iPhoto. Please quit and use the latest version of iPhoto."
    I guess this takes me back to square one? I am inclined to buy the iLife on eBay with the iPhoto 9.0 version, but needed to know if this is the case before I unfortunately bite the bullet.

  • Generic Object Services using Web Dynpro

    I am using Web Dynpro for ABAP and would like to access Generic Object Services (GOS) to view attachments to an SAP Business Object.  Using the cl_gos* classes does not work when running WebDynpro as it uses the controls framework. 
    How can I access the functionality of GOS from a Web Dynpro application?
    Regards,
    Bob

    Hi,
    I assume that you wantted to have the attachements in a mail.
    Please check out the Adobe Forms(ie PDF attachements) and Office Control UI elements in WDA.
    Regards
    Lekha

  • Photo flow object not using thumbnails, only the primary image

    I'm currently evaluating the trial version of this to see if it's something we can tweak to the way we'd like it, and I can't seem to get the object to use the thumbnail views (presumably for the angled views to either side of the centered image).  What we're trying to do is to use a version of the image with a fixed location "tool tip" above it when it's centered and displayed at the full size, but use a "thumbnail" image that doesn't have this.  The intention is when an image is centered, a box will be above the image with a brief description (the powers that be want it stationary rather than hover with the mouse location), but the thumbnail views to either side will not have it.
    The link to the page using it is www.perleyhalladay.com/beta/index.html, and the XML file is www.perleyhalladay.com/beta/PhotoFlow/gallery.xml.  "magesFolder" is set to PhotoShow/images (relative to the location of index.html), and the images load fine...it's just that I've tried swapping thumbnail images to mix them up (even with the example version I downloaded), and it seems as though it's using the primary image for both the thumbnails and the centered version.  Is there a variable missing from the XML file or a PARAM missing from the HTML file that would enable/disable the use of thumbnails globally.
    Is this perhaps an undocumented limitation in the trial download version that would be remedied in the paid version, or is there something else amiss?

    If you are addressing some applicarion that someone created and is selling, you'll need to contact the seller to get details about their product.

  • Is there a way to find which DB object is used in which all pages

    Hi All,
    Is there any way by which we can find out which All Database objects are used in which all pages in an Application. Our Application is quite big and has lots of pages, So is there any report like functionality where I can check the DB objects used on page basis or any underlying view where we can get this information.
    Thanks,
    Vikas

    Hello Vikas,
    There are a couple of APEX Views which provide you with that information.
    If you go to Home>Utilities>Application Express Views
    following views may be useful to you:
    - APEX_APPLICATION_PAGE_DB_ITEMS
    - APEX_APPLICATION_PAGE_PROC
    There are a couple of others (for ex if you make use of flash charts, interactive reports etc) but if you start with the above you'll have a good starting point.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • FM that retrieve the inner authorization object BBP_ROLE using user's role

    Hi Experts!
    Do you know what Function Module can be use to retreive the inner authorization object BBP_ROLE using the user's role
    e.g. BUYER : YT:PU:XXXX:BUYERROLE
    Object       : BBP_ROLE      SRM: User function / Role
    field name : BBP_ROLE      SRM: User function / Role
    Activities
    Sel      Activity      Text
    x       EMP             Employee
    x       OPP             Operational Purchaser
    ......etc
    Thanks!

    Hi
    Execute Txn S_BCE_68001414 in debug mode, and figure out how system takes the inner authorizations through the flow of this program
    Regards
    Virender Singh

  • What FM retrieve inner authorization object BBP_ROLE using the user's role

    Hi Experts!
    Do you know what Function Module can be use to retreive the inner authorization object BBP_ROLE using the user's role
    e.g. BUYER : YT:PU:XXXX:BUYERROLE
    Object       : BBP_ROLE      SRM: User function / Role
    field name : BBP_ROLE      SRM: User function / Role
    Activities
    Sel      Activity      Text
    x       EMP             Employee
    x       OPP             Operational Purchaser
    ......etc
    Thanks!

    Hi
    Execute Txn S_BCE_68001414 in debug mode, and figure out how system takes the inner authorizations through the flow of this program
    Regards
    Virender Singh

  • Integration Directory Objects Transport Using the File System

    Hi
    I am trying to do the IR and ID Objects Transport Using the File system... I am able to Transport the IR Objects and IMport in to QA ... but when i try to Import ID objects its giving me the error...bcoz all the ID objects pointing to theSAP R/3 DEV system ( Interface Detremination, receiver determination ...)... do i have to config something in SLD ..so when i import the ID objects in to QA system it points to correct SAP R/3 QAS system...
    and we are using single SLD for all the DEV , QAS and PRD system
    SV
    Edited by: S V on Oct 15, 2008 4:08 AM

    Hi,
    You will have to configure transport targets like for different business systems in your dev environment, there shouls be corresponding Business systems in QUA environment. For more details refer the link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/a21e3e0987760be10000000a114084/frameset.htm
    Thanks!

  • Create object name using a String variable

    Hi,
    I�m making a jsp page and I need to add several objects to a vector. The vector's name is arrayGrupo, and the object is Grupo. The problem is that when I create the instance of the object, I cant �give him different names, so the add in the Vector will always be of the same object instance. Is there anyway to create an object name using a variable?
    Something like this:
    <% if (request.getParameter("grupoNome") != null ) {
                                       nomeG=request.getParameter("grupoNome");
                                       descG=request.getParameter("grupoDesc");
                                       int nG=arrayGrupo.getTamanho(); //size of the array
                                       String xpto=String.valueOf(nG);
                                       Grupo "xpto"= new Grupo(); //here is the problem
                                       xpto.setNomeGrupo(nomeG);
                                       xpto.setDescricao(descG);
                                       xpto.setIdgrupo(arrayGrupo.getTamanho()+1);
                                       arrayGrupo.addGrupo(xpto);
    }%>
    Thanks
    Rui Gon�alves

    I want to show a list of objects that are stored in a vector. But I also want to add objects to that vector. If I just want to add one object, I can use this code:
    <% if (request.getParameter("grupoNome") != null ) {
                                       nomeG=request.getParameter("grupoNome");
                                       descG=request.getParameter("grupoDesc");
                                       Grupo newGrupo = new Grupo(nomeG,descG,arrayGrupo.getTamanho()+1);
                                       arrayGrupo.addGrupo(newGrupo);
    %>
    What should I do if I want to add more than one object to the vector?
    I don�t know if I made myself clear but is quite hard to explain my problem.
    Thanks

  • Tool to create Java Object classes using the Database Tables

    Hi,
    Is their any tools or utility available to create the Java Object Classes using the Database Tables as input.
    Lets Say I am having the Employee, Employee_Salary tables in the Database.The utility has to create the Java Object classes with the relation.
    Please Help...
    Thx..

    Hm, for generating regular Java classes I wouldn't know one from memory. But I suggest you start searching in for example the Eclipse marketspace for a third party plugin that can do it. If all fail, you could always use Hibernate Tools from the Jboss Tools Eclipse plugin set to generate Hibernate/JPA entities and then strip the annotations from them to turn them into regular POJO classes.
    How many tables are we talking about anyway? It might be less effort to just create the classes with properties and then use an IDE to generate getters and setters for them.

  • Read Object Message using JMS Adapter

    Hi,
    My JMS queue receives an object message.I want to read that object message using JMS adapter.Currently the JMS Adapter payload type is given options to read only 'TextMessage','BytesMessage','MapMessage'.How to read ObjectMesage using this adapter?Please help me on this?

    Hi,
    As far as i know, JMS Object Messages is not supported by XI JMS adapter.
    you need to have the JMS provider to transform the message to bytes messages.
    (Refer to SAP note 856346)

  • Handle a non existance of report object while using find_report_object ?

    How to handle a non existance of report object while using find_report_object?
    HOW CAN I HANDLE THE ERROR FRM-41219 PROGRAMATICALLY.
    SINCE ID_NULL IS NOT SUPPORTING FOR REPORT OBJECT.
    1) Message level for FRM-41219 is 20, even if i set the message level to 20, it's not getting suppresed.
    As per my follwoing code, error is rasing once immidiatlly after the find_report_object.
    DECLARE
    REPID REPORT_OBJECT;
    BEGIN
    REPID := FIND_REPORT_OBJECT('REP_OBJECT');
    --NOTE 'REP_OBJECT' DOES NOT EXIST, IT'S NOT GOING TO THE EXCEPTION
    --SECTION AND RASING THE ERROR 41219 CANNOT FIND REPORT : INVALID ID.
    --QUESTION : HOW CAN I HANDLE THIS ERROR?
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('INSIDE EXCEPTION');
    MESSAGE('INSIDE EXCEPTION');
    END;

    This is really more of a Forms issue since these are Forms built-ins. However, check out note 209513.1 in Metalink. It describes how to check if the report objects exists and how to trap the error.
    Hope that helps,
    Toby

  • Am I need to Eliminate the object after used??

    Am I need to Eliminate the object after used to release the resource ? Which like C code: free(Dynamic variable). And why and how they works in java??
    Thank alot !!!

    You may want to read about garbage collection in java. Basic intro in [url http://java.sun.com/docs/books/tutorial/java/data/garbagecollection.html]tutorial, after that search around the site for garbage collection and related topics
    Mike

Maybe you are looking for

  • ConsoleOne on Windows 7

    I have finnaly gotten the word that next year we will move to Windows 7. I have downloaded the GroupWise 8.02 sp2 installer, installed ConsoleOne. When I try to run C1 I get the error "You have Novell client version lower than 4.91". My PC is running

  • HT201250 old data transferred to new computer via time machine, is external hard drive still usable

    I set up my new macbook from an old macbook via time machine and an external WD Harddrive. The setup partitioned my macbook to two user id's, now I need to back up.  The old user id is backing up everything again and the new user id wants to create a

  • Playbar Buttons Not Available?

    I seem to be missing something.  I want to give my users the ability to move ahead using the forward and back buttons, but the skin editor will not let me select them. See the image below with the grayed out buttons. Why is this happening? I cant fin

  • FilenotFoundException (Access Denied) on windows

    I have an intranet web application from which I am trying to access files on a windows network share. I have a domain userid and password of an account that has access to the files, but I do not wish to permanenty map a drive to the location of the f

  • Is there a fix for the disappearing of  wifi on 4s?

    Is there a fix for the disappearing of  wifi on 4s?