Is it possible to use MERGE with sql*plus and if yes how?

Hello everybody,
I have an xls file and I have to load its data with sql*loader, but instead of "APPEND" operation stated in the control file I need MERGE operation.Here is what my control file contains:
LOAD DATA
INFILE 'C:\WORK\DSK_WH\LOAD_FIRST\sqlldr\data.csv'
BADFILE 'C:\WORK\DSK_WH\LOAD_FIRST\sqlldr\p_badfile.txt'
APPEND
INTO TABLE D_ACCOUNT_NAMES_TMP
FIELDS TERMINATED BY ";"
TRAILING NULLCOLS
(account_number , consignment, sub_consignment, consign_sub_consign, account_name_bg, account_number_2, consign_parent_2, account_name_bg_2, account_number_3, account_name_bg_3, account_number_4, account_name_bg_4, account_number_5 , ACCOUNT_NAME_BG_5 ).
How can I use merge in this case , instead of insert ?
Regards,
Maria

I'm not sure if there is any MERGE thing in SQL*Loader, but you can have a backup table which gets loaded by SQL*Loader and then use MERGE statement from backup to the original table, if your data is not huge to become a performance barrier. This is just a suggestion, may be you can try some reading of SQL*Loader here.
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/part2.htm#436160
Cheers
Sarma.

Similar Messages

  • Input with sql*plus and Output it with PL/SQL

    Hi everyone,
    I try to understand how can I get input and input by using sqlplus and plsql together. I get output like this:
    Get User Input
    Given Name: Iron
    Family Name: Man
    old   6:        Given_Name := '&GivenName';
    new   6:        Given_Name := 'Iron';
    old   7:        Family_Name := '&FamilyName';
    new   7:        Family_Name := 'Man';
    Given Name: Iron
    Family Name: Man
    PL/SQL procedure successfully completed.My Codes:
    PROMPT Get User Input
    ACCEPT GivenName PROMPT "Given Name: "
    ACCEPT FamilyName PROMPT "Family Name: "
    DECLARE
         Family_Name Varchar(15);
         Given_Name Varchar(15);
    BEGIN
         Given_Name := '&GivenName';
         Family_Name := '&FamilyName';
         DBMS_OUTPUT.PUT_LINE('Given Name: ' || Given_Name); 
         DBMS_OUTPUT.PUT_LINE('Family Name: ' || Family_Name);
    END;
    /My question is why I get
    old   6:        Given_Name := '&GivenName';
    new   6:        Given_Name := 'Iron';
    old   7:        Family_Name := '&FamilyName';
    new   7:        Family_Name := 'Man';this bit?Is there something wrong in my code? Thanks.

    Hi,
    From SQL*Plus reference:
    After you enter a value at the prompt, SQL*Plus lists the line containing the substitution variable twice: once before substituting the value you enter and once after substitution. You can suppress this listing by setting the SET command variable VERIFY to OFF.
    So. you can remove current output with
    SET VERIFY OFF
    and enable your PL/SQL output by
    SET SERVEROUTPUT ON
    Regards
    Peter

  • Error with Sql*Plus and Spatial

    When i create a new table with a column SDO_GEOMETRY (spatial), i insert a new field.
    When i do a simple select * from this table, i receive this error :
    SP2-0591: Unable to allocate dynamic space needed (37748736 bytes)
    I can't find any information about this error. I thougth it was an error of the configuration on the server, but i've found that SQL*PLUS use lot of virtual space on my PC when i query on 'Spatial table' and don't free this space. After three execution of my query, I receive an error NT 'Not enough virtual space'!
    What do i have to do ?
    Thanks

    Yeah, I am also encountering this problem too! Can anyone help?
    null

  • Integrtion Scenario using BPM with two sender and multiple receiver

    integrtion Scenario using BPM with two sender and multiple receiver
    How many Application Components are required?

    Hi Vinod,
    1) In integration repository you can have one or many software components it depends on your landscape orchestration
    2) In integration direcory you need at least one service for bpm and one or many for each system in your bpm
    also each connection between systems and bpm must have receiver determination and so on.
    Advice: Please treat BPM as a separate system.
    best,
    Wojciech

  • How to connect to SQL*Plus and issue a query all in one command?

    Hi everyone,
    Does anyone know of a way to connect to a db with SQL*Plus, and issue a simple query, all with one command?
    I know that I can save a .sql script with a query, then do this:
    sqlplus user/pwd@db @myscript.sql
    But I'm wondering if there's any way to put the actual query right into the connect command, something like:
    sqlplus user/pwd@db "select count(*) from dba_tables;"
    Does anyone know of a way to do this?

    you didn't mention windows or unix. so, here's a link with both
    Re: windows sql script
    it also has a link to another thread on how to deal with the parens when using ehco in dos.

  • Sql Plus and Unicode (or utf-8) characters.

    Hello,
    i have problem with Sql Plus and unicode files. I want to execute Start {filename}, where {filename} is file in unicode format (this file have to contains german and polish characters). But i receive error message. It is possible to read from unicode (or utf-8) file and execute commands from this file)?
    Thanks in advance.
    Pawel Przybyla

    What is your client operating system characterset?

  • Is it possible to use FaceTime With my two IPad With the same email address? I Will Google to china next month And i would like to communicate With my kids.

    IS it possible to use FaceTime With my two IPad That has the same address? I Will Go to China soon And i would like to discuss With my kids from there i.e. One IPad in China And one in Montréal.

    No, this is not possible.  It would be like dialing your own phone number.  You must verify an additional new email address for your second iPad.  See the following link which will tell you how to do this.  You will need to add this new address to Facetime app in one of your iPads.
    http://support.apple.com/kb/HE68

  • Hi all, I want to know if is possible to use imessage with iphones in different countries, like bb??, Hi all, I want to know if is possible to use imessage with iphones in different countries, like bb??

    Hi all, I want to know if is possible to use imessage with people in a different contry

    yes it is possible to use imessage with your contacts in different countries.

  • Possible to use BlazeDS with GAE Java?

    Is it possible to use BlazeDS with the new GAE Java update? It's working on the local development server, but not on the online one. Apparently, BlazeDS uses some Java classes not in GAE's whitelist yet. Any workarounds? PyAMF on GAE works fine for Python, but I'd like to use BlazeDS and Java. Thanks!

    Yes, it is very much possible. I have done the integration, please check the steps in my post.
    http://sixtyfourarts.blogspot.com/2009/05/gae-integration-with-blazeds-in-eclipse.html

  • Ist it possible to use icloud with iphone3g

    ist it possible to use icloud with iphone3g

    The only formally supported thing is manually setting up an iCloud mail account. Even though Find My Phone will seemingly connect my iPhone 3G doesn't show up as it being connected through the iCloud web site.
    http://support.apple.com/kb/HT4864

  • Is it possible to use Blockbuster with AppleTV?

    Is it possible to use Blockbuster with AppleTV.  I bought the AppleTV 06/2012 at an Apple Store...not sure if I have v1 or v2.  Thx

    Not natively. If they have an app and it's enabled for airplay you could use an IOS device to beam content.

  • IS IT POSSIBLE TO USE HIBERNATE WITH NETBEAN?

    Hi and Happy New year,
    Please, is it possible to use hibernate with netbean. If yes, where can I get the materials on the configuration.
    Thanks
    Emeka

    NetBeans is an IDE. Hibernate is a data access API/solution. So not sure what you're asking. If you want to know if NetBeans IDE has Hibernate integration, go look at NetBeans feature set and/or plugins. Either way, Google...

  • Is it possible to use jdbcappender with jboss's logger?

    Hi
    Is it possible to use JDBCAppender with org.jboss.logging.Logger instead of org.apache.log4j.Logger? secondly can i also use jboss.logging.logger to send my logs to the database (not manually, using configuration file as with apache.log4j) ?
    TIA.

    Back in my days, when you were new to Java, you wrote all sorts of stupid console programs and crapplets to get the hang of it.
    Anyway, without seeing JBoss' logging framework, I'm gonna say "no, you can't" unless they've actually bothered to make it compatible with commons-logging (or was that log4j). However, you probably could write your own JDBCAppender for their framework or at least a small adapter that would forward the logging requests to log4j.

  • Is it possible to use emoji with email on snow leopard

    Is it possible to use emoji with email on snow leopard?

    Probably not, since those are Lion/ML items and SL doesn't have them. That's my WAG.

  • Is it possible to use iMessage with restrictions turned on?

    Is it possible to use iMessage with restrictions turned on?
    To be more specfic is it possible to use iMessage with the camera feature block via restrictions?  It appears that iMessage cannot be use with the Camera restricted, but I want to verify my experience with the community.
    Thanks

    Other users have reported the same blocking.  This one gives a good explaination.
    https://discussions.apple.com/message/16411942#16411942

Maybe you are looking for

  • Getting the Runaround on Promotional Data

    In the Springfield, Virginia Verizon Store at 6432 Springfield Plaza, on September 22, 2014 I upgraded 3 phones that were no longer under contract.  It was clear that I would not receive or activate the new iPhones until they arrived on October 14, 2

  • Space Bar & Delete Key Not Functioning Properly in Safari/Chrome

    I have Googled extensively on this problem to no avail. I'm hoping the Apple Community faithful can help. I recently had the logic board on my work Mac Pro crash, and updated to a new Mac Pro (Snow Leo). The local Apple Store was of course able to tr

  • Does iMovie support swf files?

    Are the files drag and drop? Thanks

  • Create folders and navigate through server folder structure in Linux

    Hello, I want to know if there are any examples on how to reate folders and navigate through server folder structure in Linux OS. I currently can navigate trough Windows, but need to be able to do it in Linux, by using a GUI for it. Any suggestions?

  • Adobe CC applications in a trail mode

    hello. This morning, after my office PC had a hardware issue, i got a new PC. i installed the Adobe CC but all the applications are in a trail mode. can you please assist me with this? i tried to sign out and sign in - but nothing.  i also tried to r