Select records from one database and insert it into another database

Hi
I need to write a statement to select records from one database which is on machine 1 and insert these records on a table in another database which is on machine 2. Following is what I did:
1. I created the following script on machine 2
sqlplus remedy_intf/test@sptd @load_hrdata.sql
2. I created the following sql statements in file called load_hrdata.sql:
rem This script will perform the following steps
rem 1. Delete previous HR data/table to start w/ clean import tables
rem 2. Create database link to HR database, and
rem 3. Create User Data import table taking info from HR
rem 4. Drop HRP link before exiting
SET COPYCOMMIT 100
delete from remedy.remedy_feed;
commit;
COPY FROM nav/donnelley@hrp -
INSERT INTO remedy.remedy_feed -
(EMPLID, FIRST_NAME, MI, LAST_NAME, BUSINESS_TITLE, WORK_PHONE, -
RRD_INTRNT_EMAIL, LOCATION, RRD_OFFICE_MAIL, RRD_BUS_UNIT_DESCR) -
USING SELECT EMPLID, FIRST_NAME, MI, LAST_NAME, BUSINESS_TITLE, WORK_PHONE, -
RRD_INTRNT_EMAIL, LOCATION, RRD_OFFICE_MAIL, RRD_BUS_UNIT_DESCR -
FROM ps_rrd_intf_medium -
where empl_status IN ('A', 'L', 'P', 'S', 'X')
COMMIT;
EXIT;
However, whenever I run the statement I keep getting the following error:
SP2-0498: missing parenthetical column list or USING keyword
Do you have any suggestions on how I can fix this or what am I doing wrong?
Thanks
Ali

This doesn't seem to relate to Adobe Reader. Please let us know the product you are using so we may redirect you or refer to the list of forums at http://forums.adobe.com/

Similar Messages

  • I want to cut out a head from a photo and insert it into another photo again. In the head hair flying in the wind and the blue sky can be seen between the hairs. This blue sky I want to remove, so I can only use the head with hair flying in another photo.

    I want to cut out a head from a photo and insert it into another photo again. In the head hair flying in the wind and the blue sky can be seen between the hairs. This blue sky I want to remove, so I can only use the head with hair flying in another photo. Is it possible to simply delete this blue color of the sky?

    Make your selection and then use Refine Edge.
    See this video tutorial from Bob Gager.
    https://www.youtube.com/watch?v=xrl3Qwg6zSc

  • How do i select a clip from one project and enter it into another?

    how do I select a clip from one project and enter it in another?

    This doesn't seem to relate to Adobe Reader. Please let us know the product you are using so we may redirect you or refer to the list of forums at http://forums.adobe.com/

  • Can I take a selection from one clip and put it into another?

    I'm pretty new to this so thanks. I want to assemble a clip that has parts of three different takes. Splitting the screen works for a couple of the takes..but i'm wondering if I can use the four point matting to isolate a character and put him into another clip...the backgrounds are the same and the set up when shot is the same...but there is no blue or green screen involved so I'm wondering if this is possible in FCP. Hopefully the question makes sense...thanks!

    So you are trying to "cut out" your subject and paste him onto another take? Should be easy enough- just use the four or eight point matte to cut out a square around the subject, then layer that clip on top of the other take you want to superimpose him in. As long as the angle/lighting were the same, it should work. If you find you want a more complicated matte, try Tom's 50 Point Matter, which has a bezier curves option.

  • Iterative query to fetch from one column and insert/update in another colum

    i have a table with 5 columns as shown below
    Devicedetails
    userid ip deviceid makeby makedate
    123 100.00.20.11 | 00002011 xyz 10/11/2009
    456 102.03.21.12 | 02032112 def 11/12/2009
    678 null 02032112 def 11/12/2009
    896 111.22.33.44 02032112 def 11/12/2009
    in the above example i need to pick the value from deviceid - 022032112 and brake it in ot 02.03.21.12 (. after every tow digits) and prefix 1 (number one) at the end
    i am trying to write using cursor below not getting any idea
    1) I need to get the deviceid and subsctring it and update if the ip is there else insert

    SELECT REGEXP_REPLACE
              ('022032112',
               '([[:digit:]]{2})([[:digit:]]{2})([[:digit:]]{2})([[:digit:]]{2})([[:digit:]]{1})',
               '\1.\2.\3.\4.1\5'
              ) TEST
      FROM DUAL
    WHERE LENGTH ('022032112') = 9;o/p
    TEST
    02.20.32.11.12
    SELECT REGEXP_REPLACE
              ('02032112',
               '([[:digit:]]{2})([[:digit:]]{2})([[:digit:]]{2})([[:digit:]]{2})',
               '\1.\2.\3.1\4'
              ) TEST
      FROM DUAL
    WHERE LENGTH ('02032112') = 8;Edited by: DeepakDevarapalli on Nov 11, 2009 10:57 AM

  • How can I copy a slide from one presentation and paste it into another?

    Hoe can I copy a slide from one presentation to another?

    In the first Keynote, Click the slide in the Navigator panel to select it
    Copy the slide;   command C or Edit > Copy
    Go to the 2nd Keynote, click in the navigator panel and paste; command V or Edit > Paste

  • Exporting video from one machine and then importing into another not working...

    Here is my situation:
    I wanted to import some videoes into iMovie on my Mac (OSX Lion) that my wife shot on her iPhone 4S (ios 5.x). I first synched her photos and video with iTunes/iPhoto on her machine (OSX Snow Leopard), then exported them from iPhoto onto a thumb drive. Then I imported them into iPhoto on my machine.
    The pics are fine. But the videos are not playing. iPhoto sees they are videos, but each one is like a still: there is no duration to the video when you hit the play arrow. They also will not play by clicking on them directly in a Finder window from the thumb drive. The are showing up (for example) as IMG_0133.mov, with the proper "Quicktime movie" in the "Kind" column, but each one is 1 to 1.5 MB or less, so something is up.
    Anyone know what has happened? Perhaps they don't export correctly?

    Yes, I do, and I will do that when I re-do the process tonight.
    Do I need to (or is it advisable) to export the .mov files separately?
    I admit I was in a hurry and never having done this before, I did not look closely at the options.

  • How can download the roles from one system and upload them into another  ??

    Do anyone have the solution ..... ......it  very  important.

    Hi,
    Visit [Role Maintenance Functions|http://help.sap.com/saphelp_nw04/helpdata/en/e4/15e48efd6c11d296430000e82de14a/content.htm] in section Download/Upload.
    To avoid inconsistencies, all roles from which a role is derived are also downloaded. When you download composite roles, all the roles which they contain are also downloaded.
    When you upload a role, all role data, including authorization data is uploaded from a file into the SAP system. The user assignments for the role and the generated profiles for the role are exceptions in this case. You must therefore regenerate the authorization profiles after the upload.
    Mass Download:
    Save several roles on the PC.
    You can choose on the selection screen whether you:
         Also want to transport the single roles contained in the selected composite roles (Customizing switch ADD_COMPOSITE_ROLES in table SSM_CUST)
         Also want to transport the generated profiles for all single roles (PROFILE_TRANSPORT in table PRGN_CUST)
    You can define the default setting for both options using the value in the Customizing switch. If you explicitly set a switch to NO, the option in question on the selection screen is not active. Otherwise, it is active.
    Regards,
    Srilatha.

  • How do i deactivate now leopard from one computer and activate it into another?

    I updated with snow leopard my old computer and now i want to use it on another computer instead. how do i deactivate it from an old computer to use it with another one? since you cant use it on multiple computers i need to get this done! please help!

    Erase the drive or partition it was installed to, and then install it on the desired computer. There is no authentication or activation required for the client version of Mac OS X 10.6; Apple uses the honor system for it.
    (67521)

  • I have just updated Photoshop Elements from 12.0 to 12.1 and I am now unable to drag layers from one file and drop them into another. Help!

    I was able to do this until I updated. I need help fast as I need this feature to complete daily tasks for my job. I've come to a halt with my work because of this.
    I have the two files open as shown below. I'm trying to insert the image in the file on the left to the file on the right but when I drag to drop into the file, it doesn't happen.
    The cursor indicates it has picked up the image but it doesn't indicate that it can't be dropped, it just doesn't work. Help!!

    Given that you're on XP, we'd better try the following document:
    iTunes displays -50 error message when syncing iPod on Windows XP

  • Looking for best apple software for image extraction i.e. select an image from one photo and place it on another photo

    looking for best apple software for image extraction i.e. select an image from one photo and place it on another phot

    Cannot guarantee it's the best, but it certainly is the least expensive:
    http://www.gimp.org/downloads/

  • PHP/MySQL: Get value from one field, subtract 2, multiply by 20,   and insert value into another column on form submit

    Hello all,
    I'm pulling my hair out--thank you for any help you can give
    me.
    I have a form that a person fills out that has a field that
    asks "How
    many visitors including you" and I'd like them to type in a
    number, and
    on submit of the form, have that value -2 multiplied by 20
    and inserted
    into a "total cost" column.
    I'm using the standard DW server behaviors and I've searched
    the
    internet. How do I perform basic math on that value and
    insert it into
    the database?
    If you have any pointers, that would be great.
    Thank you!
    -John

    John R. Lenz wrote:
    > Your code below works great, and I just noticed links to
    your book were
    > available on your web site, and it's in the mail to me.
    Looking forward
    > to it.
    Thanks, hope you find it useful.
    > After the form is posted, I'd like to address the person
    who posted it
    > by their first name and last name, as well as some of
    the details. How
    > would you go about doing this in the best way? Would you
    set a variable
    > and echo it on the 'Thank you' page, or are there better
    ways of doing
    > it with a recordset and filtering it on form submit?
    To pass the details to a thank you page, you would need to
    store the
    information in $_SESSION variables. You could amend the
    earlier script
    like this:
    <?php
    session_start();
    if (isset($_POST['visitors'])) {
    if ($_POST['visitors'] < 3) {
    $num = 0;
    } else {
    $num = $_POST['visitors'] - 2;
    $_POST['total_cost'] = $num * 20;
    $_SESSION['total_cost'] = $_POST['total_cost'];
    $_SESSION['first_name'] = $_POST['first_name'];
    $_SESSION['last_name'] = $_POST['last_name'];
    ?>
    In the thank you page, put the following at the top of the
    page:
    <?php session_start(); ?>
    It must go before anything is output to the browser, so put
    it above the
    DOCTYPE declaration, and make sure there's no space before
    it.
    You can then use the $_SESSION variables in the thank you
    page.
    At the end of the page, add this to clear up the session
    variables:
    <?php
    $_SESSION = array();
    destroy_session();
    ?>
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

  • Can you edit a person from one photo and add them to another photo?

    Can you edit a person out of one photo and add them to another photo?  Like if you need the head shot from one photo to replace closed eyes in the other photo?  Thanks.

    Thank you very much!  Does this require software to be purchased?  I'm new to Photoshop. 
    From: Bill Hunt <[email protected]>
    To: Kittie Gugenheim <[email protected]>
    Sent: Monday, April 25, 2011 11:46 AM
    Subject: Re: Can you edit a person from one photo and add them to another photo?
    Welcome to the forum.
    Yes, this is done often. You will need to create a Mask of that person, to separate them from the background of the original Image.
    I like to do this with a Layer Mask, as it offers control, and really does not alter the Image, so you can go back and make changes.
    Let's say that you have Image 01 w/ the head of your subject, and want to place it into Image 02. In Image 01, make a rough Selection. I would include a bit of extra background, as we will take care of that in a moment. With that Selection active, Copy the head shot. Go to Image 02, and Paste it. It will Paste in its own Layer. Ctrl+T (Free Transform) can be used to Scale and also position that Layer with the head. Once you have that Scaled and positioned about where you want it, create a Layer Mask. In QuickMask Mode, just paint in the additional Mask to remove all traces of the background that came in with the head shot. As you can paint OUT, and also paint IN the Mask, you can work on this, as many times as you wish - even next year.
    For getting that Layer Mask looking good, work slowly, also see this http://graphicssoft.about.com/od/photoshop/l/blrbps_5agirl.htm.
    I've got another tutorial, that addresses the hair area, and will post that, when I find my bookmark.
    Good luck,
    Hunt

  • How can I take an item from one image and move it to another image?

    How can I take an item from one image and add it to another image, and rotate it to fit?

    Carefully select the objects of interest in one image and then copy, scale and position them into the other image. Then touch up the composite.
    Have to Love Photoshop for Retouching Images!

Maybe you are looking for

  • A problem with Itunes and adding music to library

    I've been using my Ipod touch for about a month now (recently purchased). I first connected my Ipod to my laptop, because my desktop needed a format and reinstall of the OS, so I wanted to be slightly organized with it. I finally got around to format

  • Can't download large file on dial up connection!

    My computer internet connection "cuts off" before an update is downloaded, then I try it again and it starts from the beginning and does it again...I am new to .mac and I know I want to tell my computer or internet connection to stay on, I just don't

  • Annoying Ads Wont Go Away

    I keep getting these "visual match" ads, pop ups, and redirect tabs.  Its never happen before until a couple of days ago.  I use chrome and my macbook is up to date.  Is there anyway I can get rid of these without having to buy anything?

  • PLEASE PLEASE! HELP .. iTunes gone CRAZY!

    I downloaded 3 videos from LOST and all downloaded fine. The next day I tried again (3 more), but my internet conection failed and the videos were left on hold. EVERYTIME I go to ADVANCE --> Check for Purchases ... It sort of names one by one, and th

  • Can't upload photos to Flickr with Safari - Safari always crashes.

    Help, I can't upload photos to Flickr with Safari.  Safari always crashes and I recieve the following error message (and I've not included all of it just to keep it somewhat short): Process:         com.apple.WebKit.WebContent [673] Path: