Use .CSV files to UPDATE

Hi,
I have a requirement to process .CSV files and use the info to UPDATE an existing table. One line from the file matches a row in the existing table by an unique key. There is no need to keep the data from the .CSV files after.
I was planning to use a temporary table with an INSERT trigger that will perform the UPDATE, with ON COMMIT DELETE ROWS, and have sqlldr load the data in this temporary table.
But I found out that sqlldr cannot load into temporary tables (SQL*Loader-280).
What would be other options? The .CSV files are retrieved periodically (every 15 min), have all the same structure, their number can vary, and their filename is unique.
Thank you in advance.

SQL*Loader-280 "table %s is a temporary table"
*Cause: The sqlldr utility does not load temporary tables. Note that if sqlldr did allow loading of temporary tables, the data would
disappear after the load completed.
*Action: Load the data into a non-temporary table. Can't you load data into non-temporary table and drop after update?

Similar Messages

  • Is it possible to run a script each time a .CSV file is updated?

    I am having trouble with a script I am trying to write, which is made up of two parts:
    A .CSV file generated by PHP/MySQL whenever an RSS feed is updated. The contents of the .CSV are overwritten each time the PHP runs.
    A DataMerge script, written in JavaScript.
    What I would like to do is run the DataMerge script each time the .CSV file is updated. Is this possible, perhaps using an Event Listener within the PHP to trigger the DataMerge script? Or am I approaching this in the wrong way? I'm grateful for any thoughts you might have. Thanks, F.H.

    I would use Rorohiko's APID ToolKit: http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/
    It has fileChanged event that is sent after the observed external file has changed.
    sorry guys for "labouring the point", but I'm working on very advanced project - and I need to know what my tool can or can't do
    and in this case - using APID will break point 2.3 of EULA, right ? interaction with external datasource - without user action ?
    robin
    www.adobescripts.co.uk

  • I used the utility, MozBackup.exe, to create: Firefox___.pcv and Thunderbird___.pcv. How do I import or use these files to update from AutoCADGuru to ProCADGuru

    Firefox Team,
    I used the utility, MozBackup.exe, to create:
    Firefox 3.6 (en-US) – 2013-02-10.pcv
    Thunderbird 13.0.1 (en-US) – 2013-02-10.pcv
    How do I import or use these files to update from AutoCADGuru to ProCADGuru?
    Thanks in Advance,
    Kenny

    You are giving conflicting information
    Your question started with "How do I import or use these files to update from AutoCADGuru to ProCADGuru? "
    Then you said:
    "Autodesk's legal department threatened me with a law suit, because my domain name had “AutoCAD in it. So I change it to ProCADGuru. I created” Firefox 3.6 (en-US) – 2013-02-10.pcv and Thunderbird 13.0.1 (en-US) – 2013-02-10.pcv to back everything up. Now I need to know how to use them to restore all of that saved data and update it to my new domain. "
    Then you said:
    "How do I import or use these files to update from www.AutoCADGuru.com to www.ProCADGuru.com?"
    So all that you have explained so far has been about closing down one webhost and moving to another, which has nothing to do with Firefox or Thunderbird.
    Then today you say:
    "I need to know how to use these to restore all of my Address books, email books, sent, saved, and settings for both Firefox and Thunderbird. "
    What is the problem you are trying to solve here? is this about transferring Email settings in Thunderbird, Bookmarks in Firefox, moving a website from one host to another, or something totally different?

  • Button to import a csv file to update an existing table

    hi ALL,
    I'm pretty new with apex, on a page f my application, I want to add a button to import a csv file to update an existing table.
    Have you any suggestions?
    thanks in advance

    Hi,
    an easy solutuion would be if ypu could place the CSV file on a location which your database can access.
    Access the CSV via an external table (CSV file can be accessed as if it was a readonly table ).
    Create a dynamic action (PL/SQL) for the button which reads the external table and adds the data to your target table.
    Cheers
    Bas

  • Transfer using CSV-files

    Hello!  In our project we discussing about possibility to use CSV-files to transfer information.
    Can I use CSV in PI ?

    Hi,
    Yes you can. Use File adapter to read and do a file content conversion on it. By doing it the CSV format will be converted to XML format in PI
    Lot of weblgs are available on this
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/sundararamaprasad.subbaraman/blog/2005/12/09/making-csv-file-lookup-possible-in-sap-xi
    /people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
    /people/swaroopa.vishwanath/blog/2005/06/24/generic-approach-for-validating-incoming-flat-file-in-sap-xi--part-1
    Regards
    Suraj
    Edited by: S.R.Suraj on Sep 30, 2009 9:18 AM

  • How can i update an existing item in sap using CSV file?

    Hi,
    i am trying to update an existing Item in SAP using a CSV file.
    in the message log i get an error message that the item already exists.
    what should i do in order to update the existing record?
    Thanks, Udi

    Hi..........
    I would sugest you to use Tab delimited file and choose proper option in order to update the itsm master in DTW......
    Regards,
    Rahul

  • How to change an existing line item in CCM catalog using CSV file?

    Dear All,
    We are using SRM5.0 and CCM 2.0
    We have uploaded the material and service master to CCM as supplier catalog from R/3.
    The initial Upload was doen successfully.
    My query is how to reflect the delta changes in CCM happening in R/3?
    If I can generate a CSV file with all those items wich has been changed (Changes can be in description, Plant, status etc) and upload the same file in CCM, will it update the existing line in CCM or create a new line item?
    How do i update an existing line item in CCM catalog using a CSV file?
    Thanks
    Abhishek

    Hi Atul,
    I am using CCM 2.0 and SRM 5.0 (EBP5.5).
    We are not using XI, so i guess we cant use the program "/ccm/file_upload".
    we have migrated the product master data from R/3.
    We have developed a report which takes product category as input and gives out flat file in csv format containg all the items in that prod category.
    Then we upload the file in CCM by logging thro the brpwser.
    Similarly, i can develop another program which will give me a CSV file foll all those items changed in R/3 in a day.
    Then we can upload that file in CCM.
    But i have doubt if it will update the existing items in catalog.
    Hope I could make myself clear.
    Thanks
    Abhishek

  • Using .csv file and adding data into database

    hi,
    i'm working on a project which shows all the share prices on a webpage from the FTSE100..
    my problem is..i connect to yahoo.co.uk to get my share price information which is updated every 15mins..they return a .csv file to me...at the moment, i am just printing the information onto my website, but is there any way that i could store this information into a database if i needed the data to be used elsewhere...thanx for the help in advance

    below is my code which i used to get my info onto the web...i'd just like to know how i would use this to store the data into a database..
    import java.net.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    public class SharePrice
         private String line;
         private int maxShares = 101;//maximun shares a user can have
         private int details = 5;//five details, name,date,time,price,change.
         public String [][] shareData = new String[maxShares][details];
    public SharePrice(String [] shares) throws Exception
              getShare(shares);
         //returns a double array containing share data of each share as a seperate row in the array
    public String [][] getShare(String [] sh) throws Exception
                   for(int i=0; i<sh.length; i++)
                        //if the entry is null we have reached the end of the array
                        if(sh!=null)
                             String share = sh[i];
                             //part of url of the resource
                             String address ="http://uk.finance.yahoo.com/d/quotes.csv?s=";
                             //adds the share tothe url so that particular shares data is retieved
                             address = address+share;
                             System.out.println(address);
                             try
                                  //connection is created to the resource and input stream opened to read data
                                  URL url = new URL(address);
                                  BufferedReader in = new BufferedReader(
                                            new InputStreamReader(
                                            url.openStream()));
                                  line = in.readLine();
                                  in.close();
                             }catch(Exception e){System.err.println("Exception: " + e.getMessage());
                                  e.printStackTrace();}
                             //the line of data retrieved is spli and placed in a single row of the array
                             //beause the each piece of data is seperated by commas it is easily seperated.
                             StringTokenizer t = new StringTokenizer(line, ",");
                             int count = t.countTokens();
                             System.out.println(" count= "+count);
                             while(t.hasMoreTokens())
                                  for(int j=0; j<count; j++)
                                       String s = t.nextToken();
                                       shareData[i][j] = s;
              return shareData;

  • Problem when opening CSV files after update

    Hello
    I have updated a Mac to OS 10.6
    Before the update, when clicking on a CSV file (bank statements) the file would open in Microsoft Excel and display all the fields in their own columns.
    Afer the update, all the fields are contained in one column. It looks like excel is not seeing the commas ? Previewing the CSV file in numbers works correctly though.
    How can I resolve this?
    Secondly, the CSV file has numbers (deposits) listed as +0000000023.99 for example. Before the update, that transaction would have showed as 23.99 in its column in excel - now it shows it as +0000000023.99.
    Any assistance would be greatly appreciated.

    This looks like an Excel issue. You didn't say which Excel version you're using. Try posting your question on Microsoft's Mactopia Office forum, but include the version and update number in your inquiry. I can tell you though that in the current Excel 2008 version, I open up csv files all the time without any problem at all.

  • Export Address Book using CSV file to Verizon Webmail

    I need to export the contents of my address book using a CSV file format which is compatible with Verizon Webmail.
    Verizon Webmail will not acknowledge any other format other than CSV and reject my attempts to use Mac sys tem formats.
    Help.... Chan

    I need to export the contents of my address book using a CSV file format which is compatible with Verizon Webmail.
    Verizon Webmail will not acknowledge any other format other than CSV and reject my attempts to use Mac sys tem formats.
    Help.... Chan

  • How to use csv file to populate all the items in a form

    Our environment - Forms 6i/IAS 9i on Solaris/8.1.6 database on
    Solaris.
    In the web form I want the user to type in the name of an
    existing csv file(which contains 1 record). Then press a button
    and all the items on the form should be populated with the data
    in the csv file.
    One method is load the data in the csv file into the database
    using sqlloader and then execute a query to populate the form.
    Is there another way - instead of loading the file in the databas
    e? Thanks

    Hi Afroz,
    To be more specific, if the csv file doesn't has header, please refer to this script to add header:
    $csv = Import-Csv d:\haha.csv -Header "UserA","UserXYZ","EmailA"
    Then you can loop this csv file to run the "add-mailboxpermission" cmdlet, I recommend you can test this script before running against production environment, please also note I haven't tested this script:
    $csv = Import-Csv d:\users.csv -Header "UserA","UserXYZ","EmailA"
    foreach($each in $csv){
    write-host "assign fullaccess permission of user $($each.UserXYZ) on mailbox $($each.EmailA)"
    get-mailbox -identity $each.EmailA | add-mailboxpermission -user $each.UserXYZ -accessrights 'fullaccess'
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to use csv files in OWB

    Hi Experts
    I have one UNIX server and i my user is putting the csv files on windows machine. I want
    1. If User put some new csv file in windows machine it should automatically reflect in UNIX machine.
    2. If user enter some data in windows csv files then it should be reflect in UNIX csv files automatically
    3. Now I want to connect my OWB with these UNIX csv fils. my csv files are in /home/oracle.source directory.
    Regards
    Frnd

    Let me give an insight of how it works for me:
    1. A CSV file is created in unix at a specified location.
    2. Using ULTRAEDIT software(installed on windows client) FTP is configured to access the unix server.
    3. Open the file stored in unix through ULTRAEDIT from windows.
    4. MAKE changes to the file from ultraedit in windows.
    5. SAVE it and close ULTRAEDIT.
    The changes will be automatically reflected in unix without having the need to FTP it.
    OWB accesses the CSV file from unix and does further processing.
    Not sure if OPs can do this but this is probably the easiest way of achieving what he wants and this approach works very well for me.

  • Read .csv File and Update DB

    I have a .csv file with about 11 columns and multiple rows.
    I need to read this file and from each row extract the first
    4 columns and update my local database.
    If the value if 1st column (unique#) is already in DB do an
    Update else do an Insert.
    How do I read this .csv file and accomplish this goal?

    You read the file with <cffile>
    It then becomes nested lists. For the outer list, your
    delimiter is chr(10). Each list item is a row from your file. For
    your inner list, the delimiter is a comma.
    That should get you started. Details list functions and
    <cffile> are in the cfml reference manual. If you don't have
    one, the internet does.

  • Crystal Reports for Eclipse - Using .csv files?

    I recently installed crystal reports for Eclipse and much of the basic CR functionality seems to be there, but then I added a .csv file as an ODA flat file data source and I can see it in my "Data Source Explorer", but can not seem to drag it into my report to actually use the data.  Am I missing some basic step?
    Thanks,
    Chris

    Hello Chris,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Create Response groups multiple reponse groups using CSV file

    Hi Champs,
    We have good amount of response groups has to be created, I try to write the script but failed. Can any one help me to create Response groups through script.
    In below script agents should be taken from CSV file.
    Import-Module Lync
    $serviceId="service:"+(Get-CSService | ?{$_.Applications -like "*RGS*"}).ServiceId;
    $ag = New-CsRgsAgentGroup -Name "agent group" -Parent $serviceId;
    $ag.Description = "Contain the agents";
    $ag.ParticipationPolicy = "Formal"
    $ag.AgentAlertTime = "20"
    $ag.AgentsByUri.Add("sip:[email protected]")
    $ag.AgentsByUri.Add("sip:[email protected]")
    $ag.AgentsByUri.Add("sip:[email protected]")
    Set-CsRgsAgentGroup $ag
    Regards
    Vijendhar

    You also need to create queue and workflow. Please check how to create Response Group using Lync Server Management Shell at
    http://blogs.technet.com/b/csps/archive/2010/09/15/rgscreateresponsegroup.aspx.
    Lisa Zheng
    TechNet Community Support

Maybe you are looking for