How it can be achieved ?

Hi,
I am having two servers one at london another in new york. On London server I can not do any changes in database while in new york server I can do any changes and I want to replicate a data of a single table london server to new york server.
Suppose in London server I have table call 'a' which should be replaced on newyork server. Table 'a' is currently having less number of insert records and no deletees and expected to large no of rows in future.
How can I achive this ? I thought using mv on newyork server using refresh fast but I can not create mv log in london server I had tried this
drop database link s0055;
create database link s0055
connect to scott
identified by tiger
using 'test'
create materialized view log on t@s0055 with rowid;
create materialized view t
with rowid
as
select *
from t@s0055
11:33:17 SQL> @benoit
Database link dropped.
Database link created.
create materialized view log on t@s0055 with rowid
ERROR at line 1:
ORA-00949: illegal reference to remote database
with rowid
ERROR at line 2:
ORA-00905: missing keyword
Kindly suggest urgently.
thanks & regards
PJP

Can you use MERGE statement to cynchronize two tables???
create database link remote_db_scott
connect to scott identified by tiger using 'v9'
NOW USE FOLLOWING QUERY TO ACCESS REMOTE EMP
select * from emp@remote_db_scott;
CREATE A SYNONYM FOR "emp@remote_db_scott"
create synonym remoteEMP for emp@main_db_scott;
NOW REMOTE EMP CAN BE ACCESSES USING THIS SYNONYM
select * from remoteEMP;
WRITING A MERGE STATEMENT TO SYNCHRONIZE THE LOCAL EMP TABLE WITH REMOTE EMP TABLE. THIS STATEMENT WILL
ADD NEW ROWN AND ALSO UPDATE EXISTING ROIWS TO SYNCHRONIZE THE LOCAL EMP TABLE WITH REMOTE EMP TABLE BUT IF SOMT ROWS HAVE
BEEN DELETED FROM THE REMOTE EMP. THOSE WILL STILL REMAIN IN LOCAL EMP
merge into emp le using remoteEMP re on (le.empno=re.empno)
when matched then
update set le.ename=re.ename,le.job=re.job,le.mgr=re.mgr,le.hiredate=re.hiredate,le.sal=re.sal,le.comm=re.comm,le.deptno=re.deptno
when not matched then
insert values(re.empno,re.ename,re.job,re.mgr,re.hiredate,re.sal,re.comm,re.deptno);
FOR SYNCHRONIZATION OF DELETE ROWN IN REMOTE TABLE, USE FOLLOWING STATEMENT
delete from emp where empno not in(select empno from remoteEMP);

Similar Messages

  • How delegation can be achieved

    How delegation can be achieved in BPM?
    Say I have a participant A in a specific role X. Once A is on leave the process instances should be transfered to B automatically and once A join back office the same process instances should back to A.
    First of all is this possible, if yes than how can we acheive it?
    Thanks a lot in advance.

    Yes - automatic reassignment of work items is possible on Enterprise 10g and earlier products. Take a look at the Admin guide documentation. The reason you might be having trouble finding this feature is because "delegate" means something else in Oracle BPM terms. What I think you are describing is that you'd like to specify something instead called "Absence Periods / Replacements"
    It's done using the Process Admin tool in the Organization section. Click one of the participants after you have expanded "Organization" -> scroll to the bottom of the participant's infomation -> click "Absence Periods". There you can specify the start and stop time and the "Replacement" (who you want to assign the work that this person is specifically assigned to). You need to be aware of two things with this:
    1. the participant you assign the work to has to have the role(s) required for the work item instances
    2. the original participant cannot log in to the workspace during this time that they have been designated as absent.
    Dan

  • How I can change the z-order of objects?

    Hi,
    I'm creating subform that contains "tabs", I want to change the z-order of the a tab when it's clicked to be on top of other tabs.
    it seems instanceIndex does not work or it wan not mint for this kind of visual effects. 
    Any idea on how this can be achieved?
    BR,
    Yasser

    Simple. Use the reorder button on the toolbar.
    Message Edited by Dennis Knutson on 10-18-2007 03:06 PM
    Attachments:
    Reorder Button.PNG ‏2 KB

  • How Server can read client side SSL certificates through java code?

    My code will be running on server which will be a java class that should read any SSL certificates for the user that is logging in to the application.
    Kindly let me know how it can be achieved ? I have very rare knowldge on Security. how i can read SSL certificates of the client machine.
    Also let me know the possible solutions for above question.

    For my mud written in java, I used TCP/IP for the connections. When a client connects, he gets his own thread. Those threads are held in a vector in a manager class. each tick of the server does a quick run thru the vector and if the current thread/socket its on is null or !isAlive() its remove from the vector(which in turn removes it from getting any more game updates. This removal can be caused by two things. The clients disconnects by accident(kills his game, locks up has an internet connection hiccup, etc.) or he uses the games "quit" method. The quit method calls a method that does any player saving of data, etc then closes the socket, and sets it to null. thus the manager sees this and removes him frm the vecotr list on the next server tick. Seems to work great form a mud and worked really well in a multiplayer applet game I had up for a while.

  • How can i achieve tis in Bex Query Designer

    Hi Experts,
    Please advise on how can i achieve this in Query.
    I got Location,Material_ID,Price and Change_Date.
    (Change_Date is defined as both CHAR & KF in cube)
    (Change date is on monthly basis they execute a programe in non sap source system to update the prices of material)
    The Price of material tends to change or may not change ...
    Every month we get a record from source system on material price
    My requirment is to bulid a report that show
    LocationMaterial_IDCurrent Price  and Previous Price
    Please advise how can i develop this report

    While loading into cube, normally you map  price field coming from datasaource to
    infobject  ZPRICE_CURRENT   in your infocube.
    So in transformation you map like this
    price  -
    > ZPRICE_CURRENT
    Now, Maintain another keyfigure in cube  ZPRICE_PREVIOUS.
    That is not mapped with anything.But is assigned a value in the Start routine
    which just runs before, the transformation.
    In the start routine write code something like this :
    Read current value of price from cube for that Material.
    (Select  ZPRICE_CURRENT into price_curr  from cube where material = DATA-PACKAGE- Material   )
    if  DATA_PACKAGE-price <> price_curr   ( if new_price <> old_price)
    ZPRICE_PREVIOUS = price_curr. (storign present value of price in the cube )
    endif.
    Now save the Start routine. When mapping the fields in the transformation
    dont map anythign to  ZPRICE_PREVIOUS as it is already filled in teh start routine from the above  code.Leave it unmapped.
    The below mapping is normally maintained without change..
    price  -
    > ZPRICE_CURRENT
    If you find this to be useful ..please do the needful (points)

  • I want to delete my current exchange account. How can I achieve this and not lose stored information such as contacts, photos etc. please help. Thank you.

    I want to delete my current exchange account and replace it with my new one. How can I achieve this and not lose my contacts, photos, etc associated with this account? Please help..
    Thank you,

    Bad idea.
    What information do you want to share, exactly?  You can share contacts, reminders, and calendars with other iCloud users without the need for both of you to use the same iCloud account.  You can authorize both phones to use apps purchased under the same Apple ID without sharing an iCloud account.
    Sharing an iCloud account is a bad idea in general. There is too much opportunity for someone to damage or delete data that will affect both.

  • How can i achieve Outerjoin type of results using Reports Datalink option

    Hi,
    i am developing a Oracle Report. i am using Datalink to maintain parent-child relationship between 2 queries. If no matching value found then i want to return 0 Records. how to achieve this.
    Ex: I have 2 tables like Dept & EMP
    DEPT has 2 rows HR and FINANCE
    I have only one employee in HR and no employee in FINANCE.
    I am using the below datalink properties:
    SQL clause : WHERE
    CONDITION ; =
    PARENT GROUP: DEPT
    PARENT Column : DEPTID
    CHILD QUERY : EMP
    CHILD Column : DEPTID.
    In the report it is showing matching columns without any issues> i want non matching columns also with Zero employess like
    HR     1
    FINANCE 0
    I need OUTER JOIN kind of thing. How can i achieve this. Just i have written one example. I have very complex query to implement this and datalink is absolutely necessry for me. Any help please.

    Following can be checked in order to return column value from child Group to Parent Group at data modal.
    a. create a PlaceHolder column ( say CP_1 and CP_2) at parent Group.
    b. create one Formula column at each Child group ( say cf_1 and cf_2 )
    c. write code at formula to return reg_emp as ( say for cf_1)
    srw.reference(:cp_1);
    :cp_1 := :rep_emp;
    for unreg_emp as
    srw.reference(:cp_2);
    :cp_2 := :unreg_emp;
    .. this way now reg_emp and unreg_emp counts can be made available to parent Group.
    To get a difference and return "Yes" or "No" write formula column at Parent Group ..
    Create a Formula column ( say cf_3) at parent group
    write following
    begin
    if :cp_1 = :cp_2 >0 then
    return 'Yes';
    else
    return 'No';
    end if;
    end;
    Now use this formula as source to show value at layout under Parent Repeating Frame.
    Hope this helps..

  • I was login a website ,and i have opened cookies , i want to open another window to login the same website use another account , and in the same windows can use the same account , how can i achieve it ? thinks

    i want to use firefox to login a website ,in the same window and different tags can user the same session
    but when i open other window and login the same website use different account .
    how can i achieve it ? thinks

    Your problem has nothing to do with the faults or limitations of a web browser.
    ''There can be only ONE active user logged in on a specific website during a whole Browsing Session. Even if you try to log-in using a new window it will sign-out the earlier User ID from that website. It will keep the most recent logged-in User ID active.''
    This is the general policy on which all websites are built. Even if you try to login the same website from another web browser, you won't be able to login from the second platform either. I just check it. Tried on Mozilla and Internet Explorer.

  • Suggest an IDEA how we can achieve this

    Hi Folks
       I have the below requirement:
    Can you please anyone give me the idea how we can achieve this.
    Requirement is:
    Some body in the organization (Representative ) will raise the salesorder .
    When the sales order is created and when the creator  pressed the save button,an email with that order details has to be send to that Representative.
    This Representative will have the supervisor and based on the Representative using some ztable we have to fetch the Supervisor ID and based on that id we have to get the supervisor's mail id and the same mail has to be sent to that Supervisor also.
    Similarly one big boss is there for all these process.
    The mail with the similar content has to sent to that big Boss also.
    All these has to be carried out when the creator of the sales order press the Save Button.
    Points are assured for useful and correct answers.
    Regards,
    Sreeram

    Hi Sreeram,
    I would try to archive this by using the workflow. The workflow should start when the sales order is saved. The event "salesorder create" you can used for starting the workflow. The Workflow functionality is good documeted by the SAP standard documetation.
    Best regards
    Dirk

  • Sorry - Could you please help me how can I achieve this Search help ?

    I am creating search help for the profit_center field,
    For the search help :
    The scenario is I have three Z-tables.
    Example: The Data in tables are as shown below ( where F1, F2 are the fields ).
    Ztable1
    F1
    A
    B
    C
    D
    Ztable2
    F1 F2
    A 1
    A 2
    B 112
    B 113
    C 34
    D 43
    D 55
    D 87
    Ztable3
    PRCTR F1 F2
    123 A 1
    124 A 2
    123 B 112
    124 B 113
    125 C 34
    123 D 43
    124 D 43
    125 D 43
    I need to create search help (Search Help is similar to Collective Search Help) for the field PRCTR of table Ztable3 like as below.
    By pressing F4 on the field, a pop up should appear which should contains text labels& text fields on TAB-Screen ( A, B, C , D as shown below as text lables )against which text fields should appear.
    TAB-Screen :
    A ____________
    B ____________
    C ____________
    D ____________
    If F4 is pressed on I/O field (text fields) against A in the above TAB-Screen, Corresponding values ztable2-F2 of A from ztable2 ( = 1, 2 ) should appear as F4 help.
    so that user can select ...
    Is it possible to acieve this ? It would be a great help ....How can I achieve this ?
    Finally based on above user selections say
    A ____________
    B ____________
    C ____________
    D ____________
    corresponding prctr values should be collected.

    <b>You can acheive   this .... first by creating the search help exit    ... by  creating the maintaince  view   then   using it in the   Creation of the search help </b> ...
    see the link for attaching the view   to the serach help .
    <a href="http://">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_elementary.htm</a>
    reward  points if it is usefull...
    Girish

  • System Log(SM21), how I can achieve this?

    How I can display the fields that were changed during the debug mode through System Log. What are the Function Modules to read the system log.

    Look at these Function Groups :
    SLO2 System log: Read and analyze
    SLO3 System log: Table caches
    SLO4 System log: Parameter buffer
    SLO5 System log: Errno analysis
    Regards

  • How we can get the output in excel format for Spawned programs?

    My requirement is to get the excel output for some of the programs (like -Adjustment Register, Applied Receipts Register). I am trying to achieve this by BI Publisher. But these programs has "Spawned" executable. And when I am changing the output type as"XML" I am getting below error in output-
    "XML Parsing Error: syntax error"
    Can anyne suggest how we can get an XML output and then excel output for Spawned programs?
    Thanks in advance,

    Hi,
    If I get it right, you want to convert RXi (Reports Exchange) reports such as Adjustment Register & Applied Receipts Register into XML Publisher. Normally, you need to change the "Output Format" of the program called by the "Spawned" program to 'XML' -- not the "Spawned" program itself.
    However, I believe RXi reports does not support XML output (atleast in 11i). It could only work on Text & Html format. Check on the metalink note below:
    432719.1 - RXi-Only Reports Generate XML Format Exception With No Output Setting the Output Format to XML
    Hope this helps.
    regards,..
    Rownald

  • How, please, can I get rid of the icons in the bookmarks toolbar so I have space for more bookmark names? Thank you

    I try to get as many items as I can in the bookmarks menu toolbar (typically using 3 letter names). F4 adds an icon next to each name - taking up valuable space. How, please, can I get rid of the icons in the bookmarks toolbar so I have space for more bookmark names? Thank you.

    If you remove the names then you may have a problem with organizing or searching for bookmarks.<br />
    If you do not want to use the extension then you can achieve the same effect with code in userChrome.css<br />
    That is what I would do.
    Add code to userChrome.css below the @namespace line.
    * http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #personal-bookmarks .toolbarbutton-icon { display:none !important;}
    </nowiki></pre>
    * http://kb.mozillazine.org/Editing_configuration
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html

  • How i can make the code execute after file finish downloading

    Hi,
    i have a code that downloads a file
    then some code after , my problem is that code after does not wait to the file finish downloading
    how i can achieve that
    code is:
    String contentType = "application/x-download" ;
    FacesContext fc = FacesContext.getCurrentInstance();
    HttpServletResponse response =
    (HttpServletResponse)fc.getExternalContext().getResponse();
    response.setHeader("Content-Disposition",
    "attachment; filename=" + l_patch_name + ".zip");
    response.setContentType(contentType);
    try
    FileInputStream fis=new FileInputStream("c:\\patches\\"+ l_patch_name + ".zip");
    OutputStream os= response.getOutputStream();
    int byteRead;
    while(-1 != (byteRead = fis.read()))
    os.write(byteRead);
    os.close();
    if (fis != null)
    fis.close();
    catch(Exception e){
    DisplayMessage("Error in downloading the file");
    // now update the token
    OperationBinding operationBinding2 =
    bindings.getOperationBinding("UpdateTokenField");
    String UpdateTokenResult = (String)operationBinding2.execute();
    DisplayMessage(UpdateTokenResult);
    // now refresh the table
    OperationBinding operationBinding3 =
    bindings.getOperationBinding("RefreshPatches");
    Object result3 = operationBinding3.execute();

    Hi,
    the above code is excuted succesfully, but if i have
    return "Navigation" ;
    it is not working
    any idea why??????????

  • How we can create the batch file to download the data in from URL in ssis

    hi,
    any one help on one the below requirement.
    i have to create one batch file to download the report(reports is in csv format) from URL...
    requirement should be like this...
    1. we have some reports is there in the URL..
    2.when ever we execute the url, the report should be download and save it to the local folder.
    3. this requirement i have to write in the batch file
    should any one let me know how we can create the batch file for the above requirement.

    Hi Priya.N,
    If you use SQL Server Reporting Services for reporting, you can use Visakh’s suggestion to create a script file which calls Reporting Services Web Service to render a report in CSV format and save a batch file to the destination folder, and then create a
    batch file to run the rs.exe utility which can executes the .rss script file. For more information, please see:
    Report Server Web Service
    ReportExecutionService.Render Method
    rs Utility (rs.exe) (SSRS)
    If you use other reporting tools, it depends on the reporting functionality and this requirement may be not achieved.
    Regards,
    Mike Yin
    TechNet Community Support

Maybe you are looking for

  • How to make use of the Legend from XY graph?

    The hardware i am using will create a plot everytime i do a scan. I will upload the it result(plot) to another XY graph. I try to create a multi plot on the XY graph but it seems not working. I am wondering how can i make use of the legend that come

  • Charges not apportioned to items in PO

    Hi All, For a purchase order, we received delivery in 2 shipments. The charges (freight, landing) is being apportioned only for the 2nd shipment and not for both. This should not be the case since it should be apportioned to both shipments. There are

  • Java beans and jsp's

    Hi, I created an ErrorBean for my html form. So when the user clicks submit the servlet checks for errors, if there are errors it creates the ErrorBean with the appropriate messages. Then i sendRedirect back the that HTML form. The errors do display

  • Project Documentation Format

    Hi SAPians, We are a bunch of SAP trainees, and have recently completed a corporate training as a final year project. We need to prepare documentation, report and presentation for project completion and degree. we have all the screen shots, theory ex

  • Import/export workflows and other objects

    Hi! We are developing many workflows in a developing machine and eventually we are going to deploy them in production. What is the recomended way to do this? We cannot just dump the whole database... I could use the BPE to save each and every modifie