What is recommended to load existing files CLOB data?

In another post (Re: using TYPE for the different data types Billy gave a great example of why you don't want to build on-the-fly SQL and what is the significance of the performance improvements are using shareable cursors.)

Part of the question that the OP was trying to solve, however, seems to come back several times and I saw a good response in any one place.

So for Billy or other, which is the recommended method for loading CLOB data (and only the existing files CLOB data.

1. the user and non-clob CLOB data.
2. the non-clob data are loaded (or can easily be loaded) in several ways using treatment in bulk.
3. the CLOB data exist in a file on a file system; each file must be associated with a unique ID value.
4 assume that all the files are in a physical location, but not on the database server.
5. Suppose you use 11 GR 2 (you can use an earlier version if you just want to mention what it is and why you chose it.

What options are available for loading CLOB data in Oracle and what is the recommended option?

Whether to actually load the data into a CLOB or leave it on the file system with just a pointer from the database using a BFILE type is more a matter of architecture. Personally, I'd rather have LOB data in the database where you have the options of much more robust security, where it will include database backups, and where I don't have to worry that someone will inadvertently move files on the disk and break links to them. On the other hand, have the files on the file system allows you to use all the operating system utilities you have to manage or manipulate them without having to unload and reload (but you can use XML DB to expose LOB data in the database as if they were on a file server (if you want to go on the configuration path that). It reduces the size of the backup of the database (even if it increases the size of the file system backup). And it can allow you to use the less expensive disk to store large amounts of LOB data (although you might do the same in Oracle with the LOB data in a separate tablespace).

If you want to load LOB data, my preference would certainly be to have files on the database server (or a drive mounted on the database server) so that I could use external tables rather than SQL * Loader that makes it much easier to make loads in parallel and to trigger charges of the ETL process which is , presumably, running in the database.

Justin

Tags: Database

Similar Questions

  • How to load several files column data into essbase using the rule of load.

    Hello

    I need to load a file of data into essbase, which includes data from several columns.

    Here is a sample file.


    Year, Department, account, Jan, Feb, Mar, Apr, may, June, July, August, Sept, Oct, Nov, Dec
    FY10, ministere1, account1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
    FY10, agencies2, account1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
    FY10, ministere3, account1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12


    Thank you
    Sirot

    But this isn't an error as such, that is to say that no data values have been changed so that they possible already exist in the database.
    If there is no release, they should be in a file of errors.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Not able to load csv file CLOB columns in table

    Hello

    I'm trying to load a table with the Source file CLOB columns which is in .csv format. I get the following messages

    "SQL * Loader-292: setting LINES ignored when an XML, VARRAY or LOB column is loaded.

    Can anyone help me on how to proceed with my load of data.

    Thank you!!!

    Hello

    Ignore "SQL * Loader-292: setting LINES ignored when loading an XML, VARRAY or LOB column" error

    After you import your csv file just change the length CHAR (100000).

    ex: your column col1 CHAR (1000) to change CHAR (100000).

    and deploy your mapping and execution

    Kind regards
    Vincent

  • Add a new node to an existing XML (CLOB) data type

    Hi guys,.

    I have a table with one of his field as a CLOB data type that stores a XML here, now I need to add an additional node to the XML.

    <?xml version="1.0" encoding="UTF-8"?><alert>
     
         <tab0 comment="section in XSL component" name="Initial Information">
              <details>     
                   <Priority>0001</Priority>
                   <DateVRUClaimInitiated>2010-06-29</DateVRUClaimInitiated>
              
              </details>
              <contacts comment="grid in XSL component">
                   many child nodes here
              </contacts>               
         </tab0>
     
         <tab1 comment="section in XSL component" name="Additional Information">
              <details comment="list collection in XSL component">
                   <Channel1>123</Channel1>
              </details>
              <IPAddresses>
                   Many child nodes here
              </IPAddresses>          
              <ANIPhones>
                   Many child nodes here
              </ANIPhones>
         </tab1>
    </alert>
    Here, in this xml file, I need to add this node < / canal2 >... so my xml should look like
    <?xml version="1.0" encoding="UTF-8"?><alert>
     
         <tab0 comment="section in XSL component" name="Initial Information">
              <details>     
                   <Priority>0001</Priority>
                   <DateVRUClaimInitiated>2010-06-29</DateVRUClaimInitiated>
              
              </details>
              <contacts comment="grid in XSL component">
                   many child nodes here
              </contacts>               
         </tab0>
     
         <tab1 comment="section in XSL component" name="Additional Information">
              <details comment="list collection in XSL component">
                   <Channel1>123</Channel1></Channel2>
              </details>
              <IPAddresses>
                   Many child nodes here
              </IPAddresses>          
              <ANIPhones>
                   Many child nodes here
              </ANIPhones>
         </tab1>
    </alert>
    I can do using an update or something?

    but it converts my CLOB to ORAXML.

    then use getclobval():

    select insertchildxml(xml, '/alert/tab1/details', 'Channel2' ,xmltype('')).getclobval() xml from t
    
  • Loading XML file where data structure may vary

    Hi guys,.

    I'm trying to load a XML data file in an Oracle table, with some success, but it will fail to load certain lines when an element is missing. Here is an example of two rows of data:

    <? XML version = "1.0" encoding = "utf-8"? >

    < ReportDetails >

    < ReportRequest >

    < ExtractDate > 25/03/2010 < / ExtractDate >

    < CaseNoReportRequest > 1234567 < / CaseNoReportRequest >

    individual details < IndividualDetailsText > < / IndividualDetailsText >

    < IndividualDetails >

    < CaseNoIndividual > 1234567 < / CaseNoIndividual >

    < title > < /title > MR

    <>men < / Type >

    Steve < FirstName > < / name >

    < Name > test < / name >

    Detail of < occupation > < / Occupation >

    < / IndividualDetails >

    Information about insolvency < CaseDetailsText > < / CaseDetailsText >

    < CaseDetails >

    < CaseNoCase > 1234567 < / CaseNoCase >

    STEVE TEST < CaseName > < / CaseName >

    Court of County of Preston < > < / Court >

    Bankruptcy of < CaseType > < / CaseType >

    < / CaseDetails >

    < InsolvencyContactText > of insolvency services contact information < / InsolvencyContactText >

    < InsolvencyContact >

    < CaseNoContact > 1234567 < / CaseNoContact >

    Blackpool < InsolvencyServiceOffice > < / InsolvencyServiceOffice >

    Bureau of investigation < contact > < / Contact >

    < / InsolvencyContact >

    < / ReportRequest >

    < ReportRequest >

    < ExtractDate > 25/03/2010 < / ExtractDate >

    < CaseNoReportRequest > 8901234 < / CaseNoReportRequest >

    individual details < IndividualDetailsText > < / IndividualDetailsText >

    < IndividualDetails >

    < CaseNoIndividual > 8901234 < / CaseNoIndividual >

    < title > < /title > MISS

    Female < sex > < / Type >

    Francesca < FirstName > < / name >

    < Name > test < / name >

    Clerk Administration < occupation > < / Occupation >

    < / IndividualDetails >

    < BankruptcyRestrictionsDetails >

    < RestrictionsType > BANKRUPTCY RESTRICTIONS ORDER (BRO) < / RestrictionsType >

    < RestrictionsStartDate > 19/07/2005 < / RestrictionsStartDate >

    < RestrictionsEndDate > 19/07/2012 < / RestrictionsEndDate >

    < / BankruptcyRestrictionsDetails >

    Practitioner of the insolvency of < InsolvencyPractitionerText > contact information < / InsolvencyPractitionerText >

    < IP >

    < CaseNoIP > 8901234 < / CaseNoIP >

    < MainIP > Kevin Morrison < / MainIP >

    < /IP >

    < InsolvencyContactText > of insolvency services contact information < / InsolvencyContactText >

    < InsolvencyContact >

    < CaseNoContact > 8901234 < / CaseNoContact >

    Cardiff < InsolvencyServiceOffice > < / InsolvencyServiceOffice >

    Bureau of investigation < contact > < / Contact >

    < / InsolvencyContact >

    < / ReportRequest >

    < / ReportDetails >

    It is the PL/SQL that I use to try to load it:

    DECLARE

    acct_doc XMLTYPE: = XMLTYPE (BFILENAME('FLA','data_file.xml'), NLS_CHARSET_ID ('AL32UTF8'));

    BEGIN

    INSERT INTO target_table)

    extract_date,

    case_no_report_request,

    case_no_individual,

    title,

    gender,

    first name,

    family name,

    occupation,

    case_no_case,

    case_name,

    Court,

    case_type,

    case_no_contact,

    insolvency_service_office,

    contact

    )

    SELECT x1.extractdate,

    x1.casenoreportrequest,

    X2.casenoindividual,

    X2.title,

    x 2. Gender,

    x 2. FirstName,

    x 2. Surname,

    X2.occupation,

    x 3 .case_no_case,

    x 3 .case_name,

    X3.Court,

    x 3 .case_type,

    x 4 .case_no_contact,

    x 4 .insolvency_service_office,

    X4.contact

    FROM XMLTABLE)

    ' / ReportDetails/ReportRequest.

    PASSAGE acct_doc

    COLUMNS header_no to ORDINALITE,

    extractdate PATH VARCHAR2 (10) "ExtractDate."

    casenoreportrequest NUMBER of path 'CaseNoReportRequest '.

    ) x 1,

    XMLTABLE)

    "$d/ReportDetails/ReportRequest [$hn] / ' IndividualDetails"

    PASSAGE acct_doc "d."

    x 1 .header_no LIKE "hn".

    Casenoindividual COLUMN NUMBER PATH "CaseNoIndividual."

    title VARCHAR2 (20) PATH "Title."

    sex VARCHAR2 (20) PATH "Gender."

    First name VARCHAR2 (30) PATH "First name",

    name VARCHAR2 (30) PATH "name."

    occupation VARCHAR2 (50) PATH "Profession".

    ) x 2,

    XMLTABLE)

    "$d/ReportDetails/ReportRequest [$hn] / ' CaseDetails"

    PASSAGE acct_doc "d."

    x 1 .header_no LIKE "hn".

    Case_no_case COLUMN NUMBER PATH "CaseNoCase."

    case_name PATH VARCHAR2 (50) "CaseName"

    VARCHAR2 (40) path 'Court',

    case_type PATH VARCHAR2 (40) "CaseType.

    ) x 3.

    XMLTABLE)

    "$d/ReportDetails/ReportRequest [$hn] / InsolvencyContact'"

    PASSAGE acct_doc "d."

    x 1 .header_no LIKE "hn".

    Case_no_contact COLUMN NUMBER PATH "CaseNoContact."

    insolvency_service_office PATH VARCHAR2 (20) "InsolvencyServiceOffice."

    Contact PATH VARCHAR2 (30) "Contact".

    ) x 4;

    COMMIT;

    END;

    The first row of the loads fine, but the second row is not at all responsible. I expected he would charge what information there but with NULL values for the missing "CaseDetails" element but it charge nothing at all. If I change the data and manually add it in an element 'CaseDetails', line load. Can someone explain to me how I can get all the lines to load even if some parts are missing?

    Wrong approach altogether.

    There is no need to join via a positional predicate in this case, just use a single query:

    SQL> SELECT x.*
      2  FROM XMLTABLE (
      3         '/ReportDetails/ReportRequest'
      4         PASSING xmltype(bfilename('XML_DIR','data_file.xml'), nls_charset_id('AL32UTF8'))
      5         COLUMNS extractdate                VARCHAR2(10) PATH 'ExtractDate'
      6               , casenoreportrequest        NUMBER       PATH 'CaseNoReportRequest'
      7               , casenoindividual           NUMBER       PATH 'IndividualDetails/CaseNoIndividual'
      8               , title                      VARCHAR2(20) PATH 'IndividualDetails/Title'
      9               , gender                     VARCHAR2(20) PATH 'IndividualDetails/Gender'
     10               , firstname                  VARCHAR2(30) PATH 'IndividualDetails/FirstName'
     11               , surname                    VARCHAR2(30) PATH 'IndividualDetails/Surname'
     12               , occupation                 VARCHAR2(50) PATH 'IndividualDetails/Occupation'
     13               , case_no_case               NUMBER       PATH 'CaseDetails/CaseNoCase'
     14               , case_name                  VARCHAR2(50) PATH 'CaseDetails/CaseName'
     15               , court                      VARCHAR2(40) PATH 'CaseDetails/Court'
     16               , case_type                  VARCHAR2(40) PATH 'CaseDetails/CaseType'
     17               , case_no_contact            NUMBER       PATH 'InsolvencyContact/CaseNoContact'
     18               , insolvency_service_office  VARCHAR2(20) PATH 'InsolvencyContact/InsolvencyServiceOffice'
     19               , contact                    VARCHAR2(30) PATH 'InsolvencyContact/Contact'
     20       ) x ;
    
    EXTRACTDATE CASENOREPORTREQUEST CASENOINDIVIDUAL TITLE    GENDER     FIRSTNAME     SURNAME    OCCUPATION              CASE_NO_CASE CASE_NAME    COURT                 CASE_TYPE    CASE_NO_CONTACT INSOLVENCY_SERVICE_OFFICE CONTACT
    ----------- ------------------- ---------------- -------- ---------- ------------- ---------- ----------------------- ------------ ------------ --------------------- ------------ --------------- ------------------------- ---------------
    25/03/2010              1234567          1234567 MR       Male       Steve         Test       Retail                       1234567 STEVE TEST   Preston County Court  Bankruptcy           1234567 Blackpool                 Enquiry Desk
    25/03/2010              8901234          8901234 MISS     Female     Francesca     Test       Administration Clerk                                                                         8901234 Cardiff                   Enquiry Desk
    
  • existing file of data created with the data file name

    Hi Experts

    We accidentally created a data file with the same name in the same place
    TABLESPACE_NAME           FILE_NAME                                                  FILE_ID STATUS    ONLINE_ size in MB AUT maxbytes in MB
    ------------------------- ------------------------------------------------------- ---------- --------- ------- ---------- --- --------------
    WP_DATA                   /NEXWPLPR/dbase/wpdata/wp_data01.dbf                             8 AVAILABLE ONLINE  32767.9844 YES     32767.9844
    WP_DATA                   /NEXWPLPR/dbase/wpdata/wp_data02.dbf                            12 AVAILABLE RECOVER
    WP_DATA                   /NEXWPLPR/dbase/wpdata/wp_data02.dbf                            11 AVAILABLE ONLINE        1000 NO               0
    on OS lavel
    -rw-r-----  1 oracle dba  1048584192 Oct 21 12:44 wp_data02.dbf
    -rw-r-----  1 oracle dba  1048584192 Oct 21 13:09 wp_data02.dbf
    -rw-r-----  1 oracle dba 34359730176 Oct 21 13:10 wp_data01.dbf
    Please suggest how we can solve the problem?

    Database: 10g
    OS: linux

    Concerning
    Rahul
    Rahul

    Published by: 825075 on October 21, 2011 05:25

    One of them is 2 characters at least other two. You have twice ascii code 32, it's space.
    What happens if you run now:

    select file_id,file_name from dba_data_files
    where file_name='/NEXWPLPR/dbase/wpdata/wp_data02.dbf  ';
    

    Notice the 2 spaces at the end.

    Nicolas.

  • The ERPi load mapping file for data import error

    Hello


    I am creating the ERPi mapping and download of mapping for a dimension via a file. It gives an error. I use the explicit mapping. Please help me with this. Error screenshot is attached. ERPi_Error.png

    Hello Asad,

    Create a unique mapping using the FDM web application and then export the map that you just created and it will show the required format

    Rgds,

    SH

  • Photoshop does not open all the files on my Imac it will open work and recent files very well but will not save. I have the latest version. What is "cleanmymac3" that prevents the loading of files?

    Photoshop does not open all the files on my Imac it will open work and recent files very well but will not save. I have the latest version. What is "cleanmymac3" that prevents the loading of files?

    I must add that when I try and open a file, it freezes and I have to force photoshop completely.

    Try resetting your Photoshop preferences.

  • I download upgrade assets 13, items 9, 2 files to download, after that 1 of the 2 loaded 2nd file will not download message indicates that the part of the Archives of photoshop 13 is missing. you need all parts in the same folder. What should do?

    I download upgrade assets 13, items 9, 2 files to download, after that 1 of the 2 loaded 2nd file will not download message indicates that the part of the Archives of photoshop 13 is missing. you need all parts in the same folder. What should do?

    You can also try to download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

  • Illustrator crash when I try to open a new file or an existing file. What should I do?

    Illustrator crash when I try to open a new file or an existing file. What should I do?

    Our creative cloud has had some problems in the updates and I've installed illustrator again with the new version of the cc for 2014, but the rest of the problem.

    I found the solution! I begged the rep and the supervisor to help me, even if they are not (like a policy) support Surface Pro 3 because "it's a tablet" (LOL!-c' is still a laptop with a detachable keyboard). It's a necessary printer updated driver. That's all. Unfortunate as a broken printer driver my paperless work stream, but happy, it is fixed.

  • What Version of Adobe do I need power "extract" a page to an existing file and save/download another file?

    What Version of Adobe do I need power "extract" a page to an existing file and save/download another file?

    Hi fcrawford,

    You can use Acrobat Pro 11 or Std to accomplish this.

    Please visit: http://acrobatusers.com/tutorials/extracting-pages

    Kind regards

    Rave

  • appvolume Setup is complete but get error below when opening the web app-volume Manager interface. Cannot start the volume App Manager "cannot load this file - tiny_tds.

    "failed to start volume App Manager" boot failure Unable to load the file of this type - tiny_tds

    error after installation.JPG

    Hi Paul amstaur,.

    This question says, I've met before, and there is a permission problem. Please do below things to get rid of.

    Since you have already installed the app volume, go back to the snapshot, or install a vanilla OS. Provide a sufficient permission in the local security policy, if you install SQL express as well as the volume of the app as the backup Administrator, debug as an administrator, log in as a service to the domain user. Also make sure the time is correct on the computer. You must restart the computer after you gave permission.  Most of the cases you already have full filled what mentioned above, but still you get an error.  To get rid of it, you must copy the appvolume installation files to the local directory, may be in the C drive and recommending only not to mount the ISO in virtual CD ROM, instead of copy and extract the ISO locally.  the next important thing is that you must run the setup.exe AppVolume run as administrator.

  • I'm loading .mbx file in my directory of files C:\Users\Marylfletcher\AppData\Roaming\Thunderbird\Profiles\etmnp0du.default\Mail\Local. and I can't see message

    I'm loading .mbx file in my directory of files C:\Users\Marylfletcher\AppData\Roaming\Thunderbird\Profiles\etmnp0du.default\Mail\Local. In some cases, I'm not able to see the message. I need help on troubleshooting. As it is a stop for my team and myself.

    Thank you in advance.

    MBX is an electronic file created by Microsoft Outlook Express format. Thunderbird uses mbox (without a file extension) for mail storage.
    What you're trying to achieve in the first place?

  • Load audio files in Mainstage 3 sampler

    Is it possible to load files in without Logic Pro EXS24 sampler? I have not (logical) but I can't figure out how to get the sound files to play on the sampler. I will create new areas and load an existing file is however will not play. Something I noticed is that I should be able to drag and drop a file in the editor, but it does not allow me to do. I just need to get the logic? Or is it possible to load files that I don't know?

    It seems like you did right. To make sure, that the basic functionality working, please try this:

    Create a channel with an EX. Strip

    Press the change in the UI EXES to open the instrument Editor.

    The Editor opens with an empty sampler instrument.

    Drag an audio file in the editor.

    Now, press a key to play the audio file.

    Can you confirm that it does not work?

    Best,

    DaCaptain

  • Cannot load the file MatLab

    Hello

    I am trying to load a MatLab file using DIAdem 2011.  I downloaded the plugin from data from the Web site of NOR and installed.

    When I try to load a *. MAT file I get the following error.

    Unable to load the file "C:\Documents and Settings\All Users\My Documents\SignalExpress Data\08062012_104428_AM\voltage_current_ni_test1.mat" with the charger "MatLab."

    Additional information:
    Impossible to copy a block of data from the file 'C:\Documents and Settings\All my Data\08062012_104428_AM\voltage_current_ni_test1.mat Documents\SignalExpress' in the internal data.

    I never had any other use, by using plugins for DIAdem until I tried to condition a *. MAT file.

    Hi, smooth,

    MatLab use worked very well in the past.  My best guess is that this particular *.mat file may contain some data types (3D arrays, structures, etc.) that are not yet supported.  You have no way to verify what are the types of variables are stored in the *.mat file?  MatLab use works with all other *.mat files you have?

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

Maybe you are looking for

  • Thinkpad R31 LCD screen

    My LCD is flashing. If I bend/wigggle it the flicker disappears. No idea what can be the reason?

  • Prism3dengine

    Hi, I play American Long Haul, a simulation of trucking game. The game plays well, but also sometimes slow especially when im in a heavy traffic or going through different cities. I was wondering how do I change that to go much faster. Another proble

  • C# Visual Studio 2010 Express

    Hello. where I can download Visual c# 2010 Express offline Studio. Thank you

  • Apache Tomcat and the online edition

    We have successfully installed Tomcat with webdav for our QA 6.1.1.4 PLM4P system and online edition for excel and word works very well.We have a server QA DRL where Tomcat was installed and main server QA were other applications running, GSM, NDP, e

  • Activation error: invalid SN for this product

    I read support articles in all directions into the wee hours of the morning to try to help out myself, and I have not found any that is worked. My last computer kicked the bucket, trying to reload CS5.5 Master Collection on my new computer (Mac w / Y