SQL Loader or UTL_FILE , Which is better ??

Hello All,
In my system I have to Download the data from a file each day in some table.
The file is of fixed format. And the number of records (lines) in the file is not more than 1000 (say) each day.
I would like to know for such scenario what will be better to use, SQL Loader or UTL_FILE package to read the file?
DB - Oracle Database 10g on Linux platform.
Thanks & Regards,

Subject: Re: SQL Loader or UTL_FILE , Which is better ??
Hey,
My control file 'ATTENDANCE.ctl' is as follows
load data
infile 'C:\DATA\06012007.CAP'
badfile 'C:\DATA\atncap.bad'
append
into table NIS.atncap
COMP_CODE constant 'SP',
TXN_SRNO sequence(max,1),
TXN_DATE POSITION(05:12) date 'MM/DD/YYYY' ,
TXN_ATDATE POSITION(05:16) date 'MM/DD/YYYY HH24:MI',
TXN_EMPL POSITION(17:24) INTEGER EXTERNAL,
TXN_TIME POSITION(13:16) ,
CREATED_BY constant '---',
CREATED_DT sysdate,
MODIFIED_BY constant '---',
MODIFIED_DT sysdate,
TXN_FILE POSITION(05:12) INTEGER EXTERNAL,
TXN_INOUT POSITION(26:26) INTEGER EXTERNAL
and sample data from my file which is to be loaded is
CC000601200707300025831201FF09D071
CC000601200708330025836601FF09D17F
CC000601200710260025830001FF09D271
CC001201200718480025836201FF09D374
CC000601200719100025836601FF09D47B
which contains some flags, date, in/out times, employee code etc. and the positions of all the fields is fixed. The file is generated on daily basis with system date as the file name.
i.e. above data is from file '06012007.CAP'. We can easily see the date field is at positions 05 to 12 in the file.
So, for this purpose each time I have to update the control file for 'infile' parameter.
Thats what I said in my second post.
Message was edited by:
Abhijit Deshmukh

Similar Messages

  • Using SQL*Loader and UTL_FILE to load and unload large files(i.e PDF,DOCs)

    Problem : Load PDF or similiar files( stored at operating system) into an oracle table using SQl*Loader .
    and than Unload the files back from oracle tables to prevoius format.
    I 've used SQL*LOADER .... " sqlldr " command as :
    " sqlldr scott/[email protected] control=c:\sqlldr\control.ctl log=c:\any.txt "
    Control file is written as :
    LOAD DATA
    INFILE 'c:\sqlldr\r_sqlldr.txt'
    REPLACE
    INTO table r_sqlldr
    Fields terminated by ','
    id sequence (max,1) ,
    fname char(20),
    data LOBFILE(fname) terminated by EOF )
    It loads files ( Pdf, Image and more...) that are mentioned in file r_sqlldr.txt into oracle table r_sqlldr
    Text file ( used as source ) is written as :
    c:\kalam.pdf,
    c:\CTSlogo1.bmp
    c:\any1.txt
    after this load ....i used UTL_FILE to unload data and write procedure like ...
    CREATE OR REPLACE PROCEDURE R_UTL AS
    l_file UTL_FILE.FILE_TYPE;
    l_buffer RAW(32767);
    l_amount BINARY_INTEGER ;
    l_pos INTEGER := 1;
    l_blob BLOB;
    l_blob_len INTEGER;
    BEGIN
    SELECT data
    INTO l_blob
    FROM r_sqlldr
    where id= 1;
    l_blob_len := DBMS_LOB.GETLENGTH(l_blob);
    DBMS_OUTPUT.PUT_LINE('blob length : ' || l_blob_len);
    IF (l_blob_len < 32767) THEN
    l_amount :=l_blob_len;
    ELSE
    l_amount := 32767;
    END IF;
    DBMS_LOB.OPEN(l_blob, DBMS_LOB.LOB_READONLY);
    l_file := UTL_FILE.FOPEN('DBDIR1','Kalam_out.pdf','w', 32767);
    DBMS_OUTPUT.PUT_LINE('File opened');
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.READ (l_blob, l_amount, l_pos, l_buffer);
    DBMS_OUTPUT.PUT_LINE('Blob read');
    l_pos := l_pos + l_amount;
    UTL_FILE.PUT_RAW(l_file, l_buffer, TRUE);
    DBMS_OUTPUT.PUT_LINE('writing to file');
    UTL_FILE.FFLUSH(l_file);
    UTL_FILE.NEW_LINE(l_file);
    END LOOP;
    UTL_FILE.FFLUSH(l_file);
    UTL_FILE.FCLOSE(l_file);
    DBMS_OUTPUT.PUT_LINE('File closed');
    DBMS_LOB.CLOSE(l_blob);
    EXCEPTION
    WHEN OTHERS THEN
    IF UTL_FILE.IS_OPEN(l_file) THEN
    UTL_FILE.FCLOSE(l_file);
    END IF;
    DBMS_OUTPUT.PUT_LINE('Its working at last');
    END R_UTL;
    This loads data from r_sqlldr table (BOLBS) to files on operating system ,,,
    -> Same procedure with minor changes is used to unload other similar files like Images and text files.
    In above example : Loading : 3 files 1) Kalam.pdf 2) CTSlogo1.bmp 3) any1.txt are loaded into oracle table r_sqlldr 's 3 rows respectively.
    file names into fname column and corresponding data into data ( BLOB) column.
    Unload : And than these files are loaded back into their previous format to operating system using UTL_FILE feature of oracle.
    so PROBLEM IS : Actual capacity (size ) of these files is getting unloaded back but with quality decreased. And PDF file doesnt even view its data. means size is almot equal to source file but data are lost when i open it.....
    and for images .... imgaes are getting loaded an unloaded but with colors changed ....
    Also features ( like FFLUSH ) of Oracle 've been used but it never worked
    ANY SUGGESTIONS OR aLTERNATE SOLUTION TO LOAD AND UNLOAD PDFs through Oracle ARE REQUESTED.
    ------------------------------------------------------------------------------------------------------------------------

    Thanks Justin ...for a quick response ...
    well ... i am loading data into BLOB only and using SQL*Loader ...
    I've never used dbms_lob.loadFromFile to do the loads ...
    i 've opend a file on network and than used dbms_lob.read and
    UTL_FILE.PUT_RAW to read and write data into target file.
    actually ...my process is working fine with text files but not with PDF and IMAGES ...
    and your doubt of ..."Is the data the proper length after reading it in?" ..m not getting wat r you asking ...but ... i think regarding data length ..there is no problem... except ... source PDF length is 90.4 kb ..and Target is 90.8 kb..
    thats it...
    So Request u to add some more help ......or should i provide some more details ??

  • Sql loader utl_file & external table

    can any one let me know the differences between.
    1.sql loader
    2.utl_file
    3.external table
    Regards.
    Asif.

    To expand on Aron's answer....
    SQL*Loader - An operating system utility which uses control files (which you create) to load data files onto database tables.
    UTL_FILE - A database package which can be used for reading and writing files in any format you care to design programmatically.
    External Table - The latest thing which can be used instead of SQL*Loader. This is done from the database end, by creating a table as an external table and pointing it at the source file on the operating system. It also allows information similar to that put in the SQL*Loader control files to be specified against the table. By querying against the table you are in fact querying against the source file. There are some limitation compared to regular database tables such as there is no ability to write to the external table.
    ;)

  • External Parser - XML to Pipe Delimited - Sql Loader BETTER DBMS_XMLSTORE

    Hi All,
    If I have got data in GIGs in a complex format.
    Can Using an External Java based XML Parser to convert XML to Pipe Delimited FIle and then Using SQL Loader
    BE BETTER THAN
    Using XSL to convert to Oracle <ROWSET> <ROW> Format and using DBMS_XMLSTORE to load data into tables.
    In terms of:
    Performace
    Scalability
    Exception Handling
    Regards....

    Go to the {forum:id=34} forum and look at the second page of the XML DB FAQ Thread (stickied to the top of the posts). While it doesn't compare using external tools to parse XML and load via SQL*Loader, it does talk about better ways to load large amounts of XML into the DB. This is also a good thread on the subject too from that forum, {thread:id=1096784}

  • How to Eliminate Special Character in SQL LOADER Script

    How to eliminate special character from SQL LOADER script file which suppose not to insert in TABLE
    example.CSV lile like this
    <ABC/ , 7747>
    <DEF/ , 7763>
    <NEW/ , 7779>
    <OLD/, 7795>
    I have to remove < > and / character at the time of loading into table. How It could be done. It is not possible to remove < , > , / character manually from CSV file

    On Unix/Linux that's very easy, on Windows... I don't know...
    $ cat myfile.csv
    <ABC/ , 7747>
    <DEF/ , 7763>
    <NEW/ , 7779>
    <OLD/, 7795>
    $ tr -d "\057\074\076" <myfile.csv >outfile.csv
    $ cat outfile.csv
    ABC , 7747
    DEF , 7763
    NEW , 7779
    OLD, 7795
    $

  • Pecuilar problem in Sql*Loader

    Hi,
    I had a sql loader control file which was used to load tables into multiple tables.
    Actually the format of the is something like
    #10#......... <<header record>>
    #20#...... <<body record>>
    #20# <<body record>>
    #EOF# <<it marks end of file>>
    Control file is as follows
    LOAD DATA
    INFILE "C:\WINDOWS\system32\multi1.txt"
    APPEND
    INTO TABLE BROADCAST_HEADER
    WHEN (1:4)='#10#'
    (tag_number "broadcast_header.nextval",
    processing_flag constant 'N'
    ,A POSITION (5:24) Char
    ,B POSITION (26:35) Char
    ,C (37:46) Char
    ,D (48:62) INTEGER EXTERNAL
    ,E (64:78) Char
    INTO TABLE BROADCAST_BODY
    WHEN (1:4)='#20#'
    (P "broadcast_body.nextval",
    Q "broadcast_header.currval",
    R POSITION (5:19) Char
    ,S POSITION (21:45) Char
    ,T POSITION (47:71) Char "decode(:T,null,'NULL',:T)"
    ,U POSITION (73:78) Char
    ,V POSITION (80:85) Char
    INTO TABLE BROADCAST_DRIVER
    WHEN (1:5)='#EOF#'
    RECORD_NUMBER "broadcast_header.currval"
    So while loading the file format as mentioned above,all header and body records get inserted properly but its not loading data in broadcast_driver table giving following error.
    Record 21: Discarded - all columns null.
    Its giving error on line containing #EOF#.
    So please help me out.
    Regards,
    Sandeep Saxena

    My XML File:
    <dataNode>
    <ProductID>1</ProductID>
    <Type>Phone</Type>
    </dataNode>
    <dataNode>
    <ProductID>2</ProductID>
    <Type>Sim</Type>
    </dataNode>
    My Control File :
    load data
    infile 'D:data.xml' "str '</dataNode>'"
    replace
    into table MY_TABLE
    dummy filler terminated by "<dataNode>",
    ProductID enclosed by "<ProductID>" and "</ProductID>",
    Type enclosed by "<Type>" and "</Type>"
    )

  • Extract Data from XML and Load into table using SQL*Loader

    Hi All,
    We have a XML file (sample.xml) which contains credit card transaction information. We have a standard SQL*Loader control file which loads the data from a flat file and the control file code is written as position based method. Our requirement is to use this control file as per our requirement(i.e) load the data into the table from our XML file), But we need help in converting the XML to a flat file or Extract the data from the XML tags and pass the information to the control file and in turn it loads the table.
    Your suggestion is highly appreciated.
    Thanks in advance

    Hi,
    First of all go to PSA maintanance ( Where you will see PSA records ).
    Goto list---> Save-> File---> Spreadsheet (Choose Radio Button)
    > Give the proper file name where you want to download and then-----> Generate.
    You will get ur PSA data in Excel Format.
    Thanks
    Mayank

  • Sql * loader problem

    i have to export flat file into oracle 10g database table with same datatypes as created in MS Access but during load i am facing following errors i don't know why,how can i handle this situation where as i created flate file and control file in same drive but sql* loader cannot find it.
    control file
    load data
    infile 'F:\dumy.dat'
    BADFILE 'F:\dumy.BAD'
    DISCARDFILE 'F:\dumy.DSC'
    APPEND
    INTO TABLE dumy
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (id INTEGER EXTERNAL,init_date sysdate 'mm/dd/yyyy mi:ss:hh',final_date date,
    item varchar2(50))
    *flat file*
    1,12/22/2009 0:00:00,12/29/2009 0:00:00,"BRUSH"
    2,12/22/2009 0:00:00,12/27/2009 0:00:00,"COMB"
    all files are on f:\drive and i also copy control file in oracle home in BIN FOLDER
    following error occur
    SQL*Loader-500: Unable to open file (F:\DUM.CTL)
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: The system cannot find the file specified.

    Here is something working with Oracle XE on Windows. All files are in the same directory C:\TMP and all commands are also run from C:\TMP:
    c:\tmp>type dumy.sql
    set echo on
    select * from v$version;
    drop table dumy purge;
    create table dumy
    id number,
    init_date date,
    final_date date,
    item varchar2(50)
    exit
    c:\tmp>type dumy.ctl
    load data
    infile 'C:\tmp\dumy.dat'
    BADFILE 'C:\tmp\dumy.BAD'
    DISCARDFILE 'C:\tmp\dumy.DSC'
    APPEND
    INTO TABLE dumy
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    id integer external,
    init_date date "mm-dd-yyyy hh24:mi:ss",
    final_date date "mm-dd-yyyy hh24:mi:ss",
    item char
    c:\tmp>type dumy.dat
    1,12/22/2009 0:00:00,12/29/2009 0:00:00,"BRUSH"
    2,12/22/2009 0:00:00,12/27/2009 0:00:00,"COMB"
    c:\tmp>sqlplus hr/hr @dumy
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 13 10:40:54 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> drop table dumy purge;
    Table dropped.
    SQL>
    SQL> create table dumy
      2  (
      3  id number,
      4  init_date date,
      5  final_date date,
      6  item varchar2(50)
      7  );
    Table created.
    SQL>
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Prod
    ction
    c:\tmp>sqlldr hr/hr control=dumy.ctl
    SQL*Loader: Release 10.2.0.1.0 - Production on Sat Mar 13 10:41:00 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 1
    Commit point reached - logical record count 2
    c:\tmp>type dumy.log
    SQL*Loader: Release 10.2.0.1.0 - Production on Sat Mar 13 10:41:00 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Control File:   dumy.ctl
    Data File:      C:\tmp\dumy.dat
      Bad File:     C:\tmp\dumy.BAD
      Discard File: C:\tmp\dumy.DSC
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table DUMY, loaded from every logical record.
    Insert option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect
       Column Name                  Position   Len  Term Encl Datatype
    ID                                  FIRST     *   ,  O(") CHARACTER
    INIT_DATE                            NEXT     *   ,  O(") DATE mm-dd-yyyy hh24:
    i:ss
    FINAL_DATE                           NEXT     *   ,  O(") DATE mm-dd-yyyy hh24:
    i:ss
    ITEM                                 NEXT     *   ,  O(") CHARACTER
    Table DUMY:
      2 Rows successfully loaded.
      0 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                  66048 bytes(64 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             2
    Total logical records rejected:         0
    Total logical records discarded:        0
    Run began on Sat Mar 13 10:41:00 2010
    Run ended on Sat Mar 13 10:41:01 2010
    Elapsed time was:     00:00:00.89
    CPU time was:         00:00:00.06
    {code}
    Do not use VARCHAR SQL*Loader data type which is not a portable data type but use CHAR instead.
    Do not use SYSDATE if you want to load a date  from your .dat file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Sql loader fail to load

    Hi,
    i'm getting a very strange issue with sql loader. i want expert advice how to look into this matter and solve this problem. our application use sql loader to load text file into table. but sometime it reject the record and mark it bad. although those records are not actually bad. when i load them again it loaded without any error. . why sql loader reject them in first load and load successfully in next turn with same control file and data . anybody guide me how to investigate this issue. when sql loader rejects the row it through the error in log file
    Record 23894: Rejected - Error on table GN_FILE_DATA_TABLE.
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01861: literal does not match format string
    Table GN_FILE_DATA_TABLE:
      53009 Rows successfully loaded.
      41827 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Bind array size not used in direct path.
    Column array  rows :    5000
    Stream buffer bytes:  256000
    Read   buffer bytes: 1048576
    Total logical records skipped:          1
    Total logical records read:         94836
    Total logical records rejected:     41827
    Total logical records discarded:        0
    Total stream buffers loaded by SQL*Loader main thread:    41867
    Total stream buffers loaded by SQL*Loader load thread:      195
    Run began on Tue May 29 04:30:30 2012
    Run ended on Tue May 29 04:31:14 2012
    Elapsed time was:     00:00:44.34
    CPU time was:         00:00:07.27whereas same bad records file load without any error in next load.
    im using oracle version is 11g r2 and os is win 2008 server,loading data from remote server.
    any idea?

    It is very difficult to resolve a problem which can not be seen.it is true becoz i did not get any error
    To get 'expert advice' you would need to do what you could have done yourself:i have spend almost 5 five hour before putting question here
    compare and/or post the sql*loader control file (which we are not to see)i have mentioned in my post that i used same control file for both. bu jsut changing the name of input file in control file
    and to look up the error message onlinecould you plz let me know which error should i look for online?
    what i did before putting question here. i have merge the both bad and loaded file again and load it separately. both load remain successful.

  • Sql Loader Vs External table? Which one is preffered?

    Hello guru,
    We trying to load the data into about 160 tables. Here are the following things we are doing currently,
    1. We get the flat file in .txt format
    2. We are writing the control file for each flat file for thier respective tables
    3.And we are using sql loader command to load this data into the table.
    I was wondering if this process is cumbersome, and i m not sure if external table could be simple in loading the tables compared to what we are doing ?And i have not used external tables, so wanted to know which on eis better ? So any idea is greatly appriciated !
    FYI.. Version :- Oracle 11g
    Thank you so much!

    Thanks for you reply justin !
    I found the below example for loading the data into external table...
    CREATE OR REPLACE DIRECTORY dat_dir AS 'C:\Oradata\Data';
    CREATE OR REPLACE DIRECTORY log_dir AS 'C:\Oradata\Log';
    CREATE OR REPLACE DIRECTORY bad_dir AS 'C:\Oradata\Bad';
    GRANT READ ON DIRECTORY dat_dir TO scott;
    GRANT WRITE ON DIRECTORY log_dir TO scott;
    GRANT WRITE ON DIRECTORY bad_dir TO scott;
    CREATE TABLE revext (person      VARCHAR2(20),
                         rev_jan     NUMBER(4),
                         rev_feb     NUMBER(4),
                         rev_mar     NUMBER(4),
                         rev_apr     NUMBER(4),
                         rev_mai     NUMBER(4),
                         rev_jun     NUMBER(4),
                         rev_jul     NUMBER(4),
                         rev_aug     NUMBER(4),
                         rev_sep     NUMBER(4),
                         rev_oct     NUMBER(4),
                         rev_nov     NUMBER(4),
                         rev_dez     NUMBER(4))
    ORGANIZATION EXTERNAL
       TYPE ORACLE_LOADER
       DEFAULT DIRECTORY dat_dir
       ACCESS PARAMETERS
         records delimited by newline
         badfile bad_dir:'revext%a_%p.bad'
         logfile log_dir:'revext%a_%p.log'
         fields terminated by ','
         missing field values are null
         ( person,
           rev_jan,
           rev_feb,
           rev_mar,
           rev_apr,
           rev_mai,
           rev_jun,
           rev_jul,
           rev_aug,
           rev_sep,
           rev_oct,
           rev_nov,
           rev_dez
       LOCATION ('revext.dat')
    PARALLEL 4
    REJECT LIMIT UNLIMITED;
    CREATE TABLE revenue (
        person       VARCHAR2(20),
        month        VARCHAR2(3),
        revenue      NUMBER,
        CONSTRAINT revenue_pk PRIMARY KEY (person,month));
    INSERT INTO revenue (person,month,revenue)
       SELECT person,'Jan',rev_jan
       FROM revext--but currently we are using sql loader, our data looks like this
      1119Smith      01/01/1982AXYZ corporation  xyz corp
      1111collen      01/01/1990AABC corporation  abc corp
         and control file is like this
    INTO TABLE "XYZ_tbl"
       ID                     POSITION(01:05)        CHAR                  "DECODE(RTRIM(:ID), NULL, 'NA', :ID)"       ,
       Name                POSITION(06:15)        CHAR                  "DECODE(RTRIM(:NAME), NULL, 'NA', :Name)"   ,
       Act_dt              POSITION(16:25)        DATE                  "MM/DD/YYYY" NULLIF ACT_DT=BLANKS
    My question is, can i use the options like NULLIF/ DECODE or changing datatypes when loading or functions like REPLACE / TO_DATE in External tables ? Any idea? Any example code or SQL will great
    Thank you so much!

  • Sql * loader/Utl_file

    Hi all,
    As i know that both the UTL_FILE package and SQL* Loader are used to Load the flat file data into Apps Table.
    My question is
    1) Which one is the Best Method to use.
    2) Advantages and disadvantages by using UTL_FILE and SQL* LOADER ;
    Thanks In Advance
    Goutham Konduru

    Triple posting
    Diffrence b/w UTL_FILE package & SQL Loader
    UTL_FILE package and SQL* Loader

  • Which is better for performance Azure SQL Database or SQL Server in Azure VM?

    Hi,
    We are building an ASP.NET app that will be running on Microsoft Cloud which I think is the new name for Windows Azure. We're expecting this app to have many simultaneous users and want to make sure that we provide excellent performance to end users.
    Here are our main concerns/desires:
    Performance is paramount. Fast response times are very very important
    We want to have as little to do with platform maintenance as possible e.g. managing OS or SQL Server updates, etc.
    We are trying to use "out-of-the-box" standard features.
    With that said, which option would give us the best possible database performance: a SQL Server instance running in a VM on Azure or SQL Server Database as a fully managed service?
    Thanks, Sam

    hello,
    SQL Database using shared resources on the Microsft data centre. Microsoft balance the resource usage of SQL Database so that no one application continuously dominates any resource.You can try the 
    Premium Preview
    for Windows Azure SQL Database which offers better performance by guaranteeing a fixed amount of dedicated resources for a database.
    If you using SQL Server instance running in a VM, you control the operating system and database configuration. And the
    performance of the database depends on many factors such as the size of a virtual machine, and the configuration of the data disks.
    Reference:
    Choosing between SQL Server in Windows Azure VM & Windows Azure SQL Database
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • SQL*Loader options - which of the two is faster?

    Hi, I am loading data into a staging table, using sqlldr. There are no indexes, and the table can be truncated.
    the number of rows is known prior to the call, so i can set rows=...
    it is a fixed size CHAR/INTEGER record of around 100 bytes.
    Oracle is 10g.
    Now I am getting following sqlldr warning:
    SQL*Loader-281: Warning: ROWS parameter ignored in parallel mode.
    Cause: Specifying save points using the ROWS parameter is
    not supported for parallel loads.
    Action: Remove the ROWS parameter from the command-line
    arguments or specify a non-parallel direct load to have save
    points performed.
    Hence my question is, which of the two is faster?
    I could either:
    - trigger a direct load with TRUNCATE in the control file, and rows=&lt;total number of rows&gt;
    or
    - truncate table before loading, trigger a parallel load, APPEND, and give sqlldr potentially separate files in the correct parallellism that it can handle (so, e.g., 16 small files)
    thanks
    Arne

    Hi,
    1. Go to WAD.
    2. Open any web template ( Search for * analysis )
    3. Select one template .
    4. Save as ..new name
    5. In the data provider change the data provider name and change the report name.
    6. test it .
    5. If you want to chane the layout and all , go to DHTML code and change as per your requirement .
    6. You can directly publish it from Query also ..it is fast .This will directly attach to your portAL.
    Regards
    Nilesh

  • Using SQL Loader in more than one table

    Hi all,
    I have a new question for those who have used SQL Loader. I
    have never used it and I just know that I need a control file to
    tell SQL Loader what is my flat file layout and what table the
    information goes to. My problem is: my flat file has information
    that goes to two tables in my schema. Those files are very big
    (aprox 280Mb) and I would like to read them just once. Can I do
    this with SQL Loader?
    Other question, is that the fastest way to import data from
    flat files becouse I am using PERL and it takes aprox. 9 hours
    to import 10 of those files. I could use UTL_FILE to read it but
    I heard that SQL Loader was better.
    Thanks for your cooperation
    (Robocop)
    Marcelo Lopes
    Rio de Janeiro - Brazil

    SQL*Loader is the fastest way to load, particularly in direct parallel mode, and can certainly load to multiple tables.
    >
    My advice would be to have a look at the examples given in the Oracle Utilities guide, there is one for loading to multiple
    tables, which I have pasted below.
    >
    -- Loads EMP records from first 23 characters
    -- Creates and loads PROJ records for each PROJNO listed
    -- for each employee
    LOAD DATA
    INFILE &#8217;ulcase5.dat&#8217;
    BADFILE &#8217;ulcase5.bad&#8217;
    DISCARDFILE &#8217;ulcase5.dsc&#8217;
    REPLACE
    INTO TABLE emp
    (empno POSITION(1:4) INTEGER EXTERNAL,
    ename POSITION(6:15) CHAR,
    deptno POSITION(17:18) CHAR,
    mgr POSITION(20:23) INTEGER EXTERNAL)
    INTO TABLE proj
    -- PROJ has two columns, both not null: EMPNO and PROJNO
    WHEN projno != &#8217; &#8217;
    (empno POSITION(1:4) INTEGER EXTERNAL,
    projno POSITION(25:27) INTEGER EXTERNAL) -- 1st proj
    INTO TABLE proj
    WHEN projno != &#8217; &#8217;
    (empno POSITION(1:4) INTEGER EXTERNAL,
    projno POSITION(29:31 INTEGER EXTERNAL) -- 2nd proj
    INTO TABLE proj
    WHEN projno != &#8217; &#8217;
    (empno POSITION(1:4) INTEGER EXTERNAL,
    projno POSITION(33:35) INTEGER EXTERNAL) -- 3rd proj
    see the documentation for a complete explanation of the configuration.
    Thanks, I will read it.

  • Decode Not working in sql loader

    I had a requirement of loading flatfile into staging table using SQL Loader, One of the columns in the the Flat file is having values FALSE or TRUE and my requirement is that I load 0 for FALSE and 1 for TRUE which can be achieved by simple DECODE function...I did use decode and tried to load several times but did not work. What might be the problem
    LOAD DATA
    INFILE 'sql_4ODS.txt'
    BADFILE 'SQL_4ODS.badtxt'
    APPEND
    INTO TABLE members
    FIELDS TERMINATED BY "|"
    ( Person_ID,
    FNAME,
    LNAME,
    Contact,
    status "decode(:status, 'TRUE', '1','FALSE','0')"
    I did try putting a trim as well as SUBSTR but did not work....the cloumn just doent get any values in the output (just null or say free space)
    Any help would be great.....

    Hello user8937215.
    Please provide a create table statement and a sample of data file contents. I would expect DECODE or CASE to work based on the information provided.
    Cheers,
    Luke
    Please mark the answer as helpful or answered if it is so. If not, provide additional details.
    Always try to provide create table and insert table statements to help the forum members help you better.

Maybe you are looking for

  • Mail does not connect to IMAP or SMTP servers

    For a month or more Mail has been unable to connect to my Yahoo mail account and is now unable to connect to Google's email servers. I can connect to both these accounts on my iPhone and with other email clients like Outlook or Mailbox so I'm reasona

  • More Info for DOA GB installations

    I've been following some of the problems people have been having with GB. I suddenly was faced with a bizarre situation myself, one that left GB basically useless. I tried everything suggested in these threads - none of which was related to the issue

  • Not all songs sync from computer to itouch

    I recently upgrade my iTouch to the new iOS 5.0.1 software (not sure if that was relevant to tell), but I have noticed it will not sync all my songs from my computer to my iTouch, for example, on my computer it says one playlist has 55 songs, however

  • EText PERIODIC_SEQUENCE

    Hi One of my customer is using an eText template for NZ payments and he is getting below error when format payment program is run: java.lang.NumberFormatException: For input string: "null"      at java.lang.NumberFormatException.forInputString(Number

  • I would like to buy a sorfware to unlock everyiphone, where can i find it?

    how can i find a program to unlock everyiphone please?