Get huge XML/CSV files to oracle data in less time

Hello

I have a scenario.

We have a source system that gives us data in XML format files. Medium is now in large format. And they give us data in several files of 2 GB each. So if the data of the day is 9 GB, then we have 4 files (file_20150922_02, file_20150922_03, file_20150922_01, file_20150922_04 to 2 GB) and a file of 1 GB (file_20150922_05).

We want to import this data into our system.

We have Oracle as a target system.

If I opt for am approach to get the files one by one, it takes too much time.

What would be the best approach to get all the data in the tables in the least possible time.

Any help would be great.

Kind regards

Mahesh

Take a look at the use of the external tables.

Tags: Business Intelligence

Similar Questions

  • Not possible to export a list of virtual machines that are created in the past 7, 30, 120 and 180 days since an imported csv file containing the date of creation of virtual machine

    Not possible to export a list of virtual machines that are created in the past 7, 30, 120 and 180 days since an imported csv file containing the date of creation of virtual machine. My questions is the correct statement to the variable: $VmCreated7DaysAgo: $_CreatedOn "-lt" $CDate7.

    # #SCRIPT_START

    $file = "C:\Users\Admin\Documents\WindowsPowerShell\08-18-2014\VM-Repo.csv".

    $Import = import-csv $file

    $VMCreatedLast7RDayRepoFile = "C:\Users\Admin\Documents\WindowsPowerShell\08-18-2014\Last7Days.csv".

    $start7 = (get-Date). AddMonths(-1)

    $CDate7 = $start7. ToString('MM/dd/yyyy')

    $VmCreated7DaysAgo = $Import | Select-object - property name, Powerstate, vCenter, VMHost, Cluster, file, Application, CreatedBy, CreatedOn, NumCpu, MemoryGB | Where-Object {$_.} CreatedOn - lt $CDate7} | Sort-Object CreatedOn

    $TotalVmCreated7DaysAgo = $VmCreated7DaysAgo.count

    $VmCreated7DaysAgo | Export-Csv-path $VMCreatedLast7RDayRepoFile - NoTypeInformation - UseCulture

    Write-Host "$TotalVmCreated7DaysAgo VMs created in 7 days" - BackgroundColor Magenta

    Invoke-Item $VMCreatedLast7RDayRepoFile

    # #SCRIPT_END

    You can use the New-Timespan cmdlet in the Where clause, it returns the time difference between 2 DateTime objects.

    An example of this cmdley

    New-TimeSpan-start (Get-Date). AddDays(-7)-end (Get-Date). Select days - ExpandProperty

    In your case, you could do

    Where {(New Timespan-démarrer ([DateTime] $_.))} CreatedOn) - end $start7). {7 days - gt}

    But beware of negative numbers.

  • Data how to laod csv file in oracle


    Hi all

    I have the csv file that are many clob columns and date.

    I want to load the data from the csv, oracle db, but when I tried to get data using sql loader at the time I was getting error due to clob columns.

    so now I'm trying to move data using external tables...

    could you people please help move data using external tables, because I am new with external tables.

    Thank you

    Hi Abed,

    Try with a maximum length of CLOB data in the control file. Try it out below and let me know in case of any problems

    DOWNLOAD THE DATA

    INFILE ' / orahome/oracle/Scripts/QualData.txt'

    ADD IN THE TABLE quals_test

    FIELDS TERMINATED BY ' ' POSSIBLY PROVIDED BY ' "' "

    TRAILING NULLCOLS

    (

    QUALS_ID,

    CLIENT_ID,

    LAST_MODIFIED_DATE,

    QUALS_NAME,

    NOM_EMETTEUR,

    QUALIFIER_TEXT TANK (1000000),

    SUBMITTER_COUNTRY,

    SUBMITTER_REGION,

    CREATED_BY,

    CREATED_ON,

    MODIFIED_BY,

    MODIFIED_ON

    )

  • Import from CSV file into oracle using pl/sql - sql loader 3.1

    Hello

    I am trying to learn how to import a CSV file in an oracle table. I tried the import utility in SQL Loader, but it generates specific lines of code to import each line. I would like a loop to go through the CSV file stored on my local disk and transferred it to my table.

    I tried the following, but not luck
    DOWNLOAD THE DATA
    INFILE 'sample_csv.csv '.
    IN THE TEST TABLE
    FIELDS TERMINATED BY ', '.
    ;

    951716 wrote:
    Hello

    I am trying to learn how to import a CSV file in an oracle table. I tried the import utility in SQL Loader, but it generates specific lines of code to import each line. I would like a loop to go through the CSV file stored on my local disk and transferred it to my table.

    line-by-line is slow by slow.
    PL/SQL will be NEVER faster than simple SQL
    INSERT INTO MYTABLE SELECT * FROM EXTERNAL_TBL;

    http://www.orafaq.com/wiki/External_table

  • View the name of the CSV file based on date?

    So I have this CSV file where there are two columns Date and name. And I want to show the correct name on the correct date in the field of the name_txt, how can I do this? pls help.

    Use the urlloader class to load your csv file and string flash methods to analyze the data.

  • Reversing a CSV file in a data store

    Hi people,

    When I am trying to reverse a CSV file in the designer on a data view place it fails.

    It throws the error "The directory" ODIWORK does not exist in the schema

    ODIWORK is to be the repository of work that works very well

    Can you enlighten us on the same

    Thank you

    Mauricette

    Hi seb,

    Make sure that the correct physical path, using the shcema good points to your logic diagram.

    The technology should be the file.

    Thank you
    Preet.

  • Performance problem when downloading the CSV files into Oracle tables

    We have implemented the Vikas solution ([http://htmldb.oracle.com/pls/otn/f?p=38131:1]) to download CSV files into tables Oracle permanent and it works fine. However, whenever we try to send more than 5,000 records, it takes a lot of time and often wait times. What can we do to improve performance? We are running HTMLDB 2.0.

    For example, a CSV file with 12000 documents and 40 columns takes 40 minutes to load (while a recording of CSV 2000 file takes 2 minutes to load).

    For large external files, copy us our CSV files to the Oracle server and then make reference to the file in an Oracle external table. Once the external table defined you then load your APEX table via a stored procedure by using:

    INSERT INTO your_tbl (columns)
    SELECT (columns)
    Of external_tbl

    Hope that gives you another option to consider.

    Jeff

  • Getting error while running ua.bat file to Oracle Data Integrator 12cR1 (12.1.2.0.0) version

    Hello

    I use windows 7 Professional (service pack 1) 64 bit operating system.

    After installation by running the file odi_121200.jar of odi 12 c (Enterprise edition), I get the following error when you attempt to run the ua.bat file.

    [2013 10-24 T 16: 49:07.861 + 05:30] (Framework) [INCIDENT_ERROR] [UPGAST-00056] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] error of initialization of the plugin update for ODI. ODI1

    [2013 10-24 T 16: 49:07.861 + 05:30] (Framework) [INCIDENT_ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Cause: an unexpected error has occurred a upgrade plug-in initialization.

    [2013 10-24 T 16: 49:07.861 + 05:30] (Framework) [INCIDENT_ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Action: Contact Oracle Support Services.  See the secondary error for more details.

    [2013 10-24 T 16: 49:07.861 + 05:30] (Framework) [INCIDENT_ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] []

    java.lang.reflect.InvocationTargetException

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

    at oracle.ias.update.plugin.Plugin.instantiatePlugin(Plugin.java:248)

    to oracle.ias.update.plugin.Plugin. < init > (Plugin.java:229)

    at oracle.ias.update.plugin.Plugin.getPlugin(Plugin.java:180)

    at oracle.ias.update.plan.PlanStep.getPlugin(PlanStep.java:335)

    to oracle.ias.update.plan.PlanString. < init > (PlanString.java:66)

    to oracle.ias.update.plan.PlanCustom. < init > (PlanCustom.java:74)

    to oracle.ias.update.plan.PlanStep. < init > (PlanStep.java:189)

    to oracle.ias.update.plan.PlanComponent. < init > (PlanComponent.java:203)

    at oracle.ias.update.plan.Template.load(Template.java:161)

    at oracle.ias.update.plan.Template.loadAllTemplates(Template.java:102)

    at oracle.ias.update.UpgradeDriver.loadConfiguration(UpgradeDriver.java:838)

    at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:257)

    at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:175)

    Caused by: java.util.MissingResourceException: can't find oracle.ias.update.plugin.odi.bundle.ODIResourceBundle bundle

    at java.util.logging.Logger.setupResourceInfo(Logger.java:1518)

    to java.util.logging.Logger. < init > (Logger.java:265)

    to java.util.logging.Logger. < init > (Logger.java:260)

    to oracle.ias.update.UpgradeLogger. < init > (UpgradeLogger.java:60)

    at oracle.ias.update.UpgradeLogger.getLogger(UpgradeLogger.java:93)

    at oracle.ias.update.LoggingManager.create(LoggingManager.java:249)

    at oracle.ias.update.plugin.UpgradePlugin.createPluginLogger(UpgradePlugin.java:195)

    to oracle.ias.update.plugin.UpgradePlugin. < init > (UpgradePlugin.java:181)

    to oracle.ias.update.plugin.odi.ODIPlugin. < init > (ODIPlugin.java:136)

    ... more than 17

    ]]

    [2013 10-24 T 16: 49:07.869 + 05:30] (Framework) [ERROR] [UPGAST-00259] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] method getInitialValue for plugin ODI. ODI1 will not be called because of a previous error.

    [2013 10-24 T 16: 49:07.869 + 05:30] (Framework) [ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Cause: an error occurred when loading or initializing the plugin that prevents the getInitialValue of execution method.

    [2013 10-24 T 16: 49:07.869 + 05:30] (Framework) [ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Action: review the log file for more details.

    [2013 10-24 T 16: 49:07.870 + 05:30] (Framework) [INCIDENT_ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] UPGAST-00251: an error occurred reading file descriptor to upgrade ODI\INSTALLATION\odi12cInstallation_1\odi\plugins\upgrade\odi.xml

    [2013 10-24 T 16: 49:07.870 + 05:30] (Framework) [INCIDENT_ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] file is not consistent with the expected syntax.

    [2013 10-24 T 16: 49:07.870 + 05:30] (Framework) [INCIDENT_ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] see the secondary message for more information. Contact the Oracle Support.

    [2013 10-24 T 16: 49:07.871 + 05:30] (Framework) [INCIDENT_ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] UPGAST-00259: method getInitialValue for plugin ODI. ODI1 will not be called because of a previous error.

    [2013 10-24 T 16: 49:07.871 + 05:30] (Framework) [INCIDENT_ERROR] [] [update. Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] []

    oracle.ias.update.exception.UpgradeException: UPGAST-00259: method getInitialValue for plugin ODI. ODI1 will not be called because of a previous error.

    at oracle.ias.update.plugin.Plugin.getInitialValue(Plugin.java:317)

    to oracle.ias.update.plan.PlanString. < init > (PlanString.java:67)

    to oracle.ias.update.plan.PlanCustom. < init > (PlanCustom.java:74)

    to oracle.ias.update.plan.PlanStep. < init > (PlanStep.java:189)

    to oracle.ias.update.plan.PlanComponent. < init > (PlanComponent.java:203)

    at oracle.ias.update.plan.Template.load(Template.java:161)

    at oracle.ias.update.plan.Template.loadAllTemplates(Template.java:102)

    at oracle.ias.update.UpgradeDriver.loadConfiguration(UpgradeDriver.java:838)

    at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:257)

    at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:175)

    ]]

    Thanks and greetings

    Sunil

    OK - I think I did.  Seems to be a known issue.  You must apply the hotfix p17073913_121200.

    Which I downloaded and applied to my version of Linux - then re-directed to the AU.  This time the GUI started and now I'm going through the upgrade steps.

    The patch is generic, so should work for your windows environment.  Good luck.

  • Get the error loading file csv to oracle table

    Hello

    I'm tryitng to load the csv file into oracle db table.

    Source:

    CSV file have account_numbers, customer_names. all the fields, it took as channel.

    Target: Oracle db

    If I took all the fields as varchar, it loads very well. but I want to

    Oracle table fields: digital account numbers or decimal (20.2)

    customer_names as varchar2 format.

    When I'm trying to load csv to oracle table, I am getting following error.

    err7.png

    ODI-1228: fgh1 (integration) task fails on the target odi_user1 ORACLE connection.

    Caused by: java.sql.SQLSyntaxErrorException: ORA-01722: invalid number

    I tried so many times. I am still getting error.

    TO_NUMBER function I also used, getting same error

    Please help me,

    Thank you and best regards,

    A.Kavya.

    Hi, String, CSV file data type have values of amount a 54,356,4657.89 format. Like this. In odi, I took number (30.2) of data types for the target table. When I traced in odi, I get error like invalid number. to do this, I changed the values in csv file format. I removed commas. for example, 543564657.89. Yet once, I traced csv to oracle in odi. executd successfully. Thanks & regards, A.kavya.

  • Fusion of data CSV file does not open

    Hello

    Problems of selection/update CSV files to merge data.

    This is a file that I worked for a while now with no probs in CS6.

    But it doesn't in CC.

    Get the following error "the data source selected has one or more empty field names.

    I tried zapping all data and data of collage in the new file, filling all the empty cells with data (although it worked fine before), also tried a TXT file. All this without success.

    A new CSV with little or no data in it works very well. But that is not very useful.

    Any thoughts?

    See you soon,.

    N *.

    The problem seems to be with the title of the column #

    I changed it to digitaland the new csv imported without problems or warnings.

  • Add data to the input csv file

    I'm using a csv file as my data entry for a test. Test data are simply saved in a table. How can I add these data from table to the CSV of origin, as an additional column, once you click on the stop button?

    To add a new column, the only way is to read the entire file, convert a 2D array, add the new column and then write the new 2D array in file. This is a limitation of the windows way written files and has nothing to do with LabVIEW.

  • PowerCLI Move-hard disk in csv file

    Hi all

    Summer banging my head with it's drving me crazy I hope someone can help please. I use LucD excellent orphaned files and folders - spring cleaning - LucD notes script to identify orphaned VMDK files. I ran the script and export the results to a CSV file.

    What I have to do now is to run a script that will move each VMDK in the csv file in another data store. I'm fighting to get the order correct powercli and I hope that someone will be able to help please.

    I tried these:

    Moving - hard drive () Disk hard- Import-Csv C:\csvfilename.csv | %{$_. Nom })


    Cannot bind parameter 'hard drive '. Cannot convert the value of 'filename_0001.vmdk' to type 'System.String' to type 'VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.HardDisk'

    And

    Get - hard drive -Name ()Import-Csv C:\Users\DeanE\Documents\ListofDeletedDC2_A_T1_SRM_PL003VMDKs.csv | %{$_. Nom })

    Get-hard drive please specify at least one of the following: path, Datastore, VirtualMachine, model or snapshot.

    And

    Get - hard drive -Data store DatastoreName -name ()Import-Csv C:\csvfilename.csv | %{$_. Nom }) 

    Parameter set cannot be resolved using the values of named parameters.

    Any help would be greatly appreciated please.

    Thank you very much

    OK, had a different perspective.

    The following seems to work for me, at least for entries that have 'flat' in the VMDK file name

    C:\orphan.csv Import-Csv - UseCulture | %{

    $ds = $_. Extents.Split(']') [0]. Trim('[')

    $dsPath = $_. Extents.Replace('-flat','')

    Get-hard drive - data store $ds - DatastorePath $dsPath

    }

    If you have entered in the CSV file for which it doesn´t work, let me know what is the area of the extensions.

  • Creating a table to a csv file

    I use the JDeveloper 11.1.1.6.

    I'm looking to recover data to a .csv file and load it into a custom table made just for the data in the file.

    I managed to load the csv file in a data control with a Service URL data control. I wonder how to take data from the data control and place it in a Java object so that I can make the dynamic creation of sql create statement table. I know how to do dynamic creation - it's just to access the data of the data control to which I am at this point.

    If there is a better way to do it, I would be also open to it! Thank you!

    Published by: Jim W. 26 September 2012 08:00

    I found this documentation. Is not myself. The documentation is newer than your version, so it may not work.

    http://docs.Oracle.com/CD/E24382_01/Web.1112/e16182/bcquerying.htm

    Stuart

  • Error importing CSV files with "hidden" characters using the external Table

    Hi people

    Bit of a strange here.

    Well, we are accustomed to the use of the external Table method to load data from CSV files in the database, but a recent event presented us a problem.

    We have received some CSV files that "look like" regular CSV files, but Oracle will not load them.

    When we looked at the CSV using VIM on a UNIX machine, we saw the following characters 'hidden' between each regular character in the file.
    ^@
    If a string that looks like this when opened in Excel/Wordpad etc.
    "TEST","TEXT"
    Looks like this when exmained with VIM
    ^@"^@T^@E^@S^@T^@"^@,^@"^@T^@E^@X^@T^@"
    Has anyone encountered this before?

    Thank you very much

    Simon Gadd
    Oracle 11g 11.2.0.1.0

    Hi Simon,.

    ^ @ represents the ZERO character (0x00).
    So, most likely, you have a file encoded in Unicode.

    You need to specify the character set in the record specification (and if necessary the byte order mark), for example:

    CREATE TABLE ext_table
    (
      col1 VARCHAR2(10),
      col2 VARCHAR2(10)
    )
    ORGANIZATION EXTERNAL
    (
      TYPE ORACLE_LOADER
      DEFAULT DIRECTORY dump_dir
      ACCESS PARAMETERS
      (
       RECORDS DELIMITED BY '
    ' CHARACTERSET 'UTF16'
      FIELDS TERMINATED BY ','
      )
      LOCATION ('dump.csv')
    )
    REJECT LIMIT UNLIMITED;
    

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e16536/et_params.htm#i1009499

  • Correct format of the cells after the writing of csv file?

    I tried, still struggling with what are probably simple enough to do.  I write the data to a csv file, but my data is not from the way in which I need to look into the worksheet once its been written.  Each of the string from the Panel data must be in their own column.  Please see attached csv for what I aim to do in a finished program.  Right now, I can write in the csv file, but the data and the fields are not in their correct columns/rows.  Can someone make me jump started on this please?  I am very new and green in Labview.  This is my first program.  Thank you.

    Wire "T" in "transpose"?

Maybe you are looking for

  • Equium A100-147 - bought the bad battery

    My Equium A100-147 is about 3 years now and won't hold its charge longer than 10 minutes so I bought a used one on eBay for a broken machine.The battery itself is quite new in terms of use-life, his laptop computer that failed! It's the wrong kind. B

  • Error Msg appears "Csrsc.exe" when I start laptop Windows XP

    Error Msg appears "Csrsc.exe" when I start laptop Windows XP

  • program file not recognize files

    When I download a new program in my program file and try to open it in the start menu or shortcut, it said said file that this shortcut refers has been changed or moved... I can only download things to my documents. This message happens no matter wha

  • Stickers and warranty

    Hello. I want to remove all the stickers advertising from the front of my new laptop (under the keyboard, for example, Intel, Windows 7, Energy Star, Radeon). And I was wondering if removing the stickers on my laptop voids my warranty. So remove them

  • 13 elements PhotoShop image overwhelms the screen

    How can I reduce the size of the 13 items when it comes to the screen? I want to drag and drop to the desktop, but elements occupies the entire screen so I don't see what is on the desktop.