What to do in this scenario...

Good Morning Friends,
I have given task for finding out solution for the below case..
Scenario..
We have 2 Oracle databases one on 10gr1 with Linux Operating system and other is 11g on windows....
There is Employee_Master in one database and User_master in other database..
Both of them contains same data...
Now I have to write a script so that whenever a new data is entered in Employee master..automatically data is entered into the User_Master...
Kindly plz help that how should i processed..what area i should search for...
I never did this kind of stufff before..
Thanks in advance friends..

sai121 wrote:
Good Morning Friends,
I have given task for finding out solution for the below case..
Scenario..
We have 2 Oracle databases one on 10gr1 with Linux Operating system and other is 11g on windows....
There is Employee_Master in one database and User_master in other database..
Both of them contains same data...
Now I have to write a script so that whenever a new data is entered in Employee master..automatically data is entered into the User_Master...
Kindly plz help that how should i processed..what area i should search for...
I never did this kind of stufff before..
Thanks in advance friends..Sounds like you want to look into Streams (replication).
Trying to write code to maintain the same table across 2 database instances won't be fun, you should attempt to consolidate your databases if possible and have a single host for the table.

Similar Messages

  • What fits better to this scenario? ESB or BPEL? (SOA suite 10.1.3.1)

    Hi,
    Below is a sample situation which needs to be built as a set of processes/flow in ESB. Could anybody pls tell us if we are on the right track here?
    a. A partner system needs to invoke one of our web services to perform an operation supported by the web service (this is a synchronous service). However the message that is generated by this partner system is not in teh same format as what is expected by our service. Which is why we have landed up trying to write an adapter in ESB which will do the transformation among other things.
    b. The message sent by the partner system is received by (possibly) a router service in the ESB and it applies the necessary transformation.
    c. Once transformed, this x-formed message is sent onward to our underlying web service. The response received back from the web service would also now need to be x-formed back to the format of the partner system
    d. However, we could not find any mechanism of x-forming a response in ESB.
    e. A workaround we can think of is to add another router service in this ESB flow, which will apply reverse transformation and then pass this reverse x-formaed message to a dummy process (possibly a BPEL) which just sets the response = request.
    f. This response then gets sent back all the way to the initial partner which requested the same.
    Should we really use ESB in such a situation? Or are we better of doing this in BPEL where all this is as easily possible? Frankly, we have already implemented this in BPEL (in 10.1.2) and now since ESB and BPEL are integrated in 10.1.3, as part of the migration to 10.1.3, we are exploring if we should move fully to ESB from BPEL since our process flows hardly have any business logic.
    The thought process of migrating to ESB emanates from material which seems to suggest that x-formation, routing and adapters are functionality that should be utilised in ESB and only true-blue business logic needs to stay in BPEL. Since our processes are more like integration processes which only do x-formation and route to underlying web services, they seemed to be natural fits for moving to ESB to us...
    Another point in consideration is that the message received from the partner system is a string which is a XML at runtime. This was not a problem in BPEL where we could use parseEscapedXML and convert to XML before working on the XML. But now in ESB....? Would this throw any spanner in the works?
    Would appreciate any kind of responses on the same. Pls do revert in case further information is necessary.
    With Regards....

    This is a classic ESB service virtualization use case and is trivial to do req/resp with xslts in ESB. The only issue I see is the last thing you mentioned, needing parseEscapedXML which has not been made available in ESB as of yet. I can think of several workarounds for an async use case but for sync you need an intermediary to create the dom. I'll record this use case and make sure we cover it for AS11 and investigate how feasible it is for 10.1.3 patch. Thanks for the feedback.

  • What’s the best practice for this scenario?

    Hi,
    My users want the ability to change the WHERE and/or ORDER BY clause at runtime. They may define user preferences on each screen ( which is bind to a view object). They want to see the same records based on WHERE/ORDER BY defined on the last visit. That is why I keep the users preferences and load the screen based on that, using :
    View.setWhereClause(...);
    View.setOrderByClause(...);
    View.executeQuery();
    This works good when only one user working with the application but faced low performance when more than one user working with the application.
    What are the points to increase the performance and what is the best practice for this scenario?
    Thanks for your help in advance.

    Sung,
    I am talking only about 2 users in my testing. I am sure i missed something but could not recognize that.
    This page is my custom query page including a tag to instantiate app module in stateful mode at the top <jbo:ApplicationModule..> and a tag to instantiate data source <jbo:Datasource...> and release tag at the bottom <jbo:ReleasePageResources..> and some java code in the middle(body). The java code constructed the query statement and then fires the query to set the view object based on the query statement using the above methods.
    So, I am facing very slow performance(speed) when two clients load this page at the same time. Looks like the entire application locks for others when one client load this page and fire the query. i realized the battle neck is where executeQuery() is executing.
    what do you think.
    Thanks in advance for your comments.

  • What is the best Skype setup for this scenario?

    I live in the United States and about to be deployed to Afghanistan for about one year.  I will have a laptop and an International capable Android phone, both with Skype software installed.  I want to be able to use Skype to Skype via the laptop, and also be able to call both landlines and cell phones in the United States while I am in Afghanistan.  What would be the best Skype subscription plan in this scenario to keep costs to a minimum.

    Hi,
    As you probably know, Skype to Skype calls are free, but if you wish to call phones then you would need a subscription that covers calling destination.
    You might find Unlimited US&Canada subscription from: http://www.skype.com/go/subscriptions
    Fair usage policy applies, but 6hours per day should be more than enough to call your family and friends back home in US.
    http://www.skype.com/go/terms.fairusage
    Skype also offers Online Numbers for US. For example if you purchase an Online Number in US then your friends who don't have Skype can call that number. They will be charged with local rates and call will be directed to your Skype account when you are online on your phone or laptop.
    Tip: If you do decide to purchase an Online Number for 12months then purchase calling subscription first and you will get 50% discount on Online Number.
    https://support.skype.com/en/faq/FA331/What-is-an-Online-Number
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • What Permission Set Is Required For This Scenario?

    Hello,
    I currently have an environment where I have limited users to being able to create/delete databases that only they have created.  I did this by creating a Login with Public access and granting them the  CREATE ANY DATABASE permissions to their
    login. This works great as the users can create a database and delete their database but not anyone else's. The issue I have is the following scenario:
    Database A is backed up from Server 1 (a different server than the restore server) and the DB was created by User 1
    Database A is restored to Server 2 by User 2 who has CREATE ANY DATABASE permission (successfully).
    User 2 can see the restored database, but cannot access it: The database is not accessible error.
    When I view the database I see that the DB Owner is listed as User 1.
    I've been trying to figure out how to be able to allow the user to become the new owner so they can edit/delete the database, but still not affect other databases that they do not own.
    I've played with various permission sets but they end up being able to delete other user databases which I'm trying to avoid.  I also don't want to have to change the owner myself. 
    Is there a permission set that I can grant that will allow this scenario?

    That's a valid statement, let me explain my scenario and perhaps there is a better way to construct what I'm after.
    I have a QA server where different developers create databases.  All the databases backed up on the QA server are stored in a shared folder.  This shared folder is accessible on our DEV server.  We have a different set of developers
    who at times need to restore one of the QA backups on the DEV server for different testing reasons.  The permission set applied was simply to prevent someone from accidently deleting someone else's database.  Restoring someone else's database in
    our environment is not a concern.
    With this in mind, I was hoping there was an additional permission I could grant that would allow the user restoring the database to become the new owner. I don't want the burden of approving it as it will always be approved.
    I clicked on the connect link, but it returns as invalid -
    The system has encountered an
    unexpected error. We apologize for the inconvenience. The issue will be
    addressed as quickly as possible.

  • What I have to do in this scenario ?

    Hi all,
    I have this scenario.
    I have a separate custom transaction (A module pool program). In that module pool program I have to keep a print button by clicking which a SAP-Script will go to spool/printer (by triggering the driver program). What is the standard procedure to do this? Should I have to create any output type for this? If yes how can I create that? And how can I trigger the driver program?
    Any help will be great.
    Thanks in advance.
    <i></i>

    Hi,
    in sapscript it's more depending on the print program.
    I made a little report, to test my smartform, even when message aren't customized yet. This is for invoices, other forms have different values (but you should get the picture):
    TABLES: nast.
    DATA: return_code TYPE syst-subrc,
          us_screen  TYPE xflag.
    PARAMETERS p_vbeln LIKE vbrk-vbeln.
    INITIALIZATION.
      p_vbeln = '0090115726'.
    START-OF-SELECTION.
      nast-objky = p_vbeln.
      nast-parnr = '0002010633'.
      nast-kappl = 'V3'.
      nast-spras = 'D'.
      nast-parvw = 'RE'.
      nast-kschl = 'ZXXX'.
      PERFORM entry(<your_report>)
                  USING
                     return_code
                     us_screen.
    Regards,
    Christian

  • What is RFC to XI scenario

    Hi Forum,
    What is a RFC-->XI scenario
    When do we configure Sender RFC channel,
    Does it mean calling a RFC enabled Function Module in XI from a R/3,
    Does it mean executing a Function Module in a R/3 and sending the output to XI,
    how do i go about writing a ABAP code for such a situation (pls provide a sample code)
    How do i make a message interface in XI for the RFC message coming from the R/3 to my XI
    What is the purpose of doing such kind of scenarios
    pls help
    Edited by: sudeep dhar on May 7, 2008 8:58 AM
    Edited by: sudeep dhar on May 7, 2008 8:59 AM

    Hi Sudeep
    What is a RFC-->XI scenario
    >> It means passing data fior RFC call to XI and XI inturn will pass the data to some other application system.
    When do we configure Sender RFC channel
    >> We need this when your RFC call is on sender application system and the processing is done on receiver applciation system.
    Does it mean calling a RFC enabled Function Module in XI from a R/3,
    >> NOP, it doesn't mean calling a function module in XI as XI is just a integration broker it wont process any data.The call is intend for other receiver systems passed via XI.
    Does it mean executing a Function Module in a R/3 and sending the output to XI,
    >> NOP, it is not passing output to XI.
    how do i go about writing a ABAP code for such a situation (pls provide a sample code)
    >>Sample code will contain call to the sender message interface in the configured scenario.
    How do i make a message interface in XI for the RFC message coming from the R/3 to my XI
    >> Import the RFC from the sender system to XI and then you can use that message interface in your scenario creation.
    What is the purpose of doing such kind of scenarios
    >> This is used when you intend to place a RFC call from a sender system to receiver system, so the processing of the RFC is done on the receiver system.
    The main points to be considered while RFC to XI scenario is
    1) The RFC destination is TCP and the program name mentioned in the desnation should be registered in though sender communication channel. The program name mentioned in the RFC desnation and sender commnucation channel should be same.
    Thanks
    Mitesh

  • How to implement this Scenario(JMS to IDOC)

    Hi Frnds,
    I am working on one scenario JMS to IDOC .based on JMS Message my XSLT Mapping will genarate Multiple Idocs(max 3) or 2 or one.
       I have to send this IDOCS based on some conditions,the conditions mentioned below.
    xslt mapping genarats one message ,but this contains 3 IDOCS or 2 or 1.(Order Create , Order Change and Order Response),
    what is the best approach to implement this scenario
    1)f Order Create  segment exists (new PO), first check SAP to see if PO does actually exist using RFC Z_BBPR46_GET_PO_FROM_FPA ,If it does not exist, pass Order Create idoc to SAP to create new purchase order
    If it does exist, retrieve PO details from RFC and pass Order Change idoc to SAP to update existing purchase order
    2)If Order Change segment exists (change PO), retrieve PO details using RFC Z_BBPR46_GET_PO_FROM_FPA and pass Order Change idoc to SAP to update existing purchase order
    3)If Order Response segment exists (goods movement), retrieve PO details using RFC Z_BBPR46_GET_PO_FROM_FPA and pass Order Response idoc to SAP to create goods movement.
    Above logic i implemented in one mesage mapping Source is XSLT Mapping Output and Receiver message in message mapping is Multimapping selected 3 IDOCS.
    Regards,
    raj

    thanks

  • Help required specifying Transation attributes for this scenario

    Hi ,
    I am trying to create/update rows in a database using BMP and CMP beans.
    A business method ( Method1 )in session bean calls a non-business method ( Method2) in the same session bean which inturn calls an EntityBean ( EB1-BMP) . EB1 can throw a certain business exception upon which , the Method1 in the session bean calls another EntityBean in a loop( EB2-CMP).
    The problem is that , when the EB1 throws the business exception, i am getting an exception ( part of the stack trace attached below ).
    Could any please explain what should be the transaction attributes to be specified for this scenario.
    Using RequiresNew for the EntityBeans would not work ( or would it ?? ) because the entity bean is being called in a loop and the commit or rollback should happen for all the methods.
    I feel the problem should be solved by specifying the transaction attribute for Method2 ( non business method in session bean ) as Required, but i guess this is not possible.
    How exactly will the transaction behave in this scenario, is the exception caused because EB1 has thrown an exception and i am trying to continue the transaction.
    Could someone please suggest a solution or workaround for this problem.
    Regards,
    Harsha
    ---- Begin backtrace for nested exception
    java.lang.IllegalStateException
    at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1694)
    javax.ejb.EJBException: nested exception is: com.ibm.ws.ejbpersistence.utilpm.PersistenceManagerException: PMGR6022E: Error using adapter to create or execute an Interaction. com.ibm.ws.rsadapter.cci.WSInteractionImpl@28d16547
    .

    tryout business method ( Method1 )in session bean with transaction as RequiresNew.
    catch exception in Method2 originated from EB1-BMP
    make the method in EB2-CMP as Required/Mandatory
    I have made a guess here so just tryout and let me know if works.
    Its recommend that not to use both BMP's and CMPs in your application. Have any one either.

  • Part 2: Flat files and Business Contents: Any issues with this scenario?

    I will appreciate some clarification on the some points made in response to my previous post "Flat files and Business Contents: Any issues with this scenario?"
    1.
    " ...you’d better analyze those cubes for data redundancy and presence of data you’ll never use. " I will appreciate some clarification on the type of analysis you are referring to. Examples will help.
    2.
    "If you want to combine several found IOs in your custom dataprovider, then again you must know (or figure out) relationships between these IOs." I will appreciate some clarification on the type of relationship you are referring to. Examples will help.
    3.
    I am a bit confused with "..include into ODS structure ALL fields required for the cube" but you also noted noted that "...except navigational attributes and chars and KFs that are going to be determined in TRs or URs."
    If you exclude ALL these, haven't you excluded all the fields you included in the ODS structure?
    4.
    "Consider carefully the ODS’ key fields selection. Their combination should not allow data aggregation that you don’t need."
    I may be missing the point here, I understand that you need to select the fields which will form the unique ID for the records in the ODS under the Key Field (please correct me if I am wrong with the purpose of the Key Field), but I don't understand the discussion of "aggregation" in the context.
    Thanks in advance

    Hallo
    I try to give some exaplanation based on the previous answer.
    1. Data redundancy - make sure you do not store the same information. does not make sense to have data redundanty across you Data Warehouse. this is also a cost. just sotre the same information one time if you get all what you need.
    2. whatwhever you build you dp, which consist of IO, you need to know with kind of relation (1:1 or 1:n - n:n and so on) exist between them. that will help you when you model you infoprovider. For example I would never pit togheter IO (n:m) in the same dimension if you expect an high number of cardinality. Sometime an IO can be an attribute of another one (depend on relation. For example
    Business Partner and his Address. Usually you have a relation 1:1, in this case address is an attribute of BParten and store it in the Masterdata instead then DP
    3. Sometime when you load from ODS to CUBE, you can fill some IO (which are in the infocube and not in the ODS)through ABAP routine in TR-Start Routine of Update Rule. Does not make sense to include these IO in the ODS as they are NULL or Blank (the deault value). This can happen when for example, you first load in the ODS (Price and Quantity) and then you calculate Sell price later (Price * Quantity). of course it could be doen also in the Bex. Depends on other factors (Performance - Loaidng -Sizing)
    4. Make sure that the KEY definition of ODS is accordingly to the data otherwise you will aggregate the data and later maybe if you need the detail you miss it.
    for example: customer - product - Distr Chan - Sell Price
    if each Customer can buy each product for any Distrution Channel, then when you build your ODS(Customer - Product and Distribution must be KEY) otherwise (if you have only Customer - Product KEY for example) you will lose the details for Distribution Channel.
    I hope eveyrhting is clear
    Regards
    Mike

  • Hello can anyone explain me how to solve this scenario.

    Hello Experts,
    Today i have attended an interview .. the interviewer has given me this scenario and gave me a system and asked me to solve this scenario practically..
    So this is the scenario.. How to solve can any one send me some idea and if possible probable solution..
    <b>scenario.</b>
    IBM sells Notebooks and Machines through dealers.they provide direct selling to corporates.
    .they give 10% discount to orders of 10 pcs and more.
    <b>scope</b>
    <b>.masters</b>
    maintaining dealers
    maintaining product list and price
    maintainig corporate details.
    <b>transactions</b>
    no of orders placed and delivery date.
    <b>reports</b>
    . dealer wise order report
    . company stock report
    .sales report monthly and yeraly wise.
    So what i am asking you is kindly guide me how to approach to solve this scenario.

    this is the exception,I don't know why this exception exist sometimes and isn't exist sometimes
    java.io.UTFDataFormatException
         at java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(ObjectInputStream.java:2963)
         at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:2888)
         at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2701)
         at java.io.ObjectInputStream.readString(ObjectInputStream.java:1536)
         at java.io.ObjectInputStream.readTypeString(ObjectInputStream.java:1344)
         at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:540)
         at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:762)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1503)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
         at REDCSecurity.RSAKeyPair.readFromFile(RSAKeyPair.java:122)
         at REDCTools.USBHandler.getPrivKey(USBHandler.java:99)
         at REDCClient.Disconnected.compare(Disconnected.java:289)
         at REDCClient.Disconnected.authenticate(Disconnected.java:185)
         at REDCClient.Disconnected.connect(Disconnected.java:75)
         at REDCClient.ConnectionAgent.connect(ConnectionAgent.java:28)
         at REDCClient.testConnect.main(testConnect.java:13)

  • Need inputs from u for this scenario?

    Hi all,
    I have one scenario I need all inputs from u all.
    My scenario is like this.
    I will get data from online transactions I need to collect all the day transaction into one folder and upload them into SAP system at one particular time.
    Which are the best adapters for this scenario.
    If I have standard IDOC I will go with IDOC adapter at receiver side if not proxy.
    But collecting all the data into one folder and schedule the process at particular time.
    How to do this and what are the adapter I can use.
    Thanks and Regards,
    Phani Kumar.

    Hi,
    I hope for online transactions and for tracking it and saving you can write a java script where you can prepare a XML file to get all transactions for particular order and always append it to the end of that xml file. At end of the day you will have a complete transaction list in the XML you are creating. You can use the file name as you desired but i will prefer datewise name.after the completion of that Transaction recording step, put it in some In folder from where your XI system willo take input.
    Now this is file to Idoc scenario or whatever you want to use to post data to SAP Systems. The sechdule this scenario to run in the night or your desired time. After processing the XML file put that file\ to some other complete folder , not to get it again.
    For collection of transactions you can also use databases. Then you scenario will be JDBC to IDOC or the thing you want to post data in SAP system.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward pints if helpful

  • Oracle features available for this scenario

    What is the best methos for replcating oracle database from a production database with every 15 min interval..
    what are the oracle features available for this scenario
    Thanks
    Shiju

    orashiju wrote:
    What is the best methos for replcating oracle database from a production database with every 15 min interval..
    what are the oracle features available for this scenario
    Thanks
    ShijuIs there any specific reason to open a new thread for the same discussion that you have started here,
    Please suggest a suitable method
    Aman....

  • Which pattern for this scenario ?

    Hi all,
    I have an EJB which connects to an external system (written in Perl) using plain HttpConnections and posting HTML content.
    I would like to centralize this access using a design pattern.
    Which pattern is would fit this scenario ?
    I wonder if I should use the Adapter pattern or the Bridge Pattern.
    What do you say to it ?
    Thanks
    Francesco

    I'd kind-of guessed it was uni work :-)
    in all honesty, I wouldn't even approach the problem from a patterns perspective. all I see is a subsystem I don't want to deal with directly, so I define an interface to hide it behind. could argue that it's an Adapter, since it's taking the Http interface and abstracting away from it, to a java one. on the other hand, since mucking around with Http in java isn't exactly straight-forward, you're defining a more simple interface, so it could be considered a facade. which do you think is closer?
    most people, once au fait with design patterns, think less in terms of those patterns, and more in terms of what OO principles to apply. score some extra credit by writing a passage about how design patterns are not prescriptive, and that many coders lift ideas about encapsulation and separation from patterns, rather than use the pattern exactly as described.

  • What is wrong with this code? on(release) gotoAndPlay("2")'{'

    Please could someone tell me what is wrong with this code - on(release)
    gotoAndPlay("2")'{'
    this is the error that comes up and i have tried changing it but it is not working
    **Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 2: '{' expected
         gotoAndPlay("2")'{'
    Total ActionScript Errors: 1 Reported Errors: 1
    Thanks

    If you have a frame labelled "2" then it should be:
    on (release) {
        this._parent.gotoAndPlay("2");
    or other wise just the following to go to frame 2:
    on (release) {
         this._parent.gotoAndPlay(2);
    You just had a missing curly bracket...

Maybe you are looking for