SQL Loader with the line terminator

Dear friends,

I use Oracle 10 g R2.

Need to load some records to a text file to Oracle.

It's my control file:
LOAD DATA 
INFILE 'D:\load\dat\FinNote.dat' 
BADFILE 'D:\load\bad\FinNote.bad' 
DISCARDFILE 'D:\load\dat\discard\FinNote.dsc' 
INSERT INTO TABLE FinNote FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' TRAILING 
NULLCOLS
( IDNo, RegDate date 'YYYY-MM-DD HH24:MI:SS', Col1, Remark, UserID, Status)
{code}

My text file has semicolon as a row delimiter and | as column delimiter. Now, how can I add the semicolon as row delimiter. Please guide me.

I followed the method given in this site: 
http://www.exforsys.com/tutorials/oracle-10g/oracle-10g-sql-loader-input-data-and-datafiles.html


*INFILE datafile_name ["str terminator_string"]*

{code}
LOAD DATA 
INFILE 'D:\load\dat\CRS_FinNote.dat' ";"
BADFILE 'D:\load\bad\CRS_FinNote.bad' 
DISCARDFILE 'D:\load\dat\discard\CRS_FinNote.dsc' 
INSERT INTO TABLE CRS_FinNote FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' TRAILING 

NULLCOLS
( StudentNo, IDate date 'YYYY-MM-DD HH24:MI:SS', Topic, Remark, UserID, Status)
and received the error:

SQL * Loader-500: could not open the file (D:\load\dat\CRS_FinNote.dat)
SQL * Loader-555: unrecognized property treatment option
SQL * Loader-509: System error: the operation completed successfully.
SQL * Loader-2026: the charge was dropped because SQL Loader cannot continue.
SQL * Loader-513: cannot close the file (D:\load\dat\CRS_FinNote.dat)
SQL * Loader-559: Error closing file
SQL * Loader-509: System error: the storage control block address is invalid.

Thanks in advance.
Nith

Published by: user645399 on June 16, 2010 10:35

And, if your CRS_FinNote.dat look like below (line/record delimited; then)

1245|2000-05-16|Oracle|The Best|AAA|Online;
294|2000-04-03|Dotnet|Best|BBB|Pending;
300|2010-03-28|C++|The Best|CCC|Offline;

Scott@ORCL > select utl_raw.cast_to_raw (';') under "hexadecimal;" double;

in hexadecimal
--------------------------------------------------------------------------------
3B

Then I change user645399.ctl with below:

LOAD DATA
INFILE 'd:\csv\CRS_FinNote.dat' "str X'3B'"
BADFILE 'd:\csv\FinNote.bad'
DISCARDFILE 'd:\csv\FinNote.dsc'
INSERT INTO TABLE FinNote FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' TRAILING
NULLCOLS
( IDNo, RegDate date 'YYYY-MM-DD HH24:MI:SS', Col1, Remark, UserID, Status)

The idea received a link from http://www.orafaq.com/forum/t/140062/0/.

C:\Documents and Settings\Girish Sharma>sqlldr scott/tiger@orcl control=d:\csv\user645399.ctl log=user645399.log

Enter user-name: scott/tiger

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SCOTT@orcl> select * from finnote;

      IDNO REGDATE              COL1       REMARK     USERID     STATUS
---------- -------------------- ---------- ---------- ---------- ----------
      1245 16-may-2000 00:00:00 Oracle     The Best   AAA        Online
       294 03-apr-2000 00:00:00 Dotnet     Best       BBB        Pending
       300 28-mar-2010 00:00:00 C++        The Best   CCC        Offline

SCOTT@orcl>

HTH
Girish Sharma

Tags: Database

Similar Questions

  • SQL Loader - ignore the lines with "rejected - all null columns."

    Hello

    Please see the attached log file. Also joined the table creation script, data file and the bad and throw the files after execution.

    Sqlldr customer in the version of Windows-

    SQL * Loader: release 11.2.0.1.0 - Production

    The CTL file has two clauses INTO TABLE due to the nature of the data. The data presented are a subset of data in the real world file. We are only interested in the lines with the word "Index" in the first column.

    The problem we need to do face is, according to paragraph INTO TABLE appears first in the corresponding CTL lines file to the WHEN CLAUSE it would insert and the rest get discarded.

    1. statement of Create table : create table dummy_load (varchar2 (30) name, number, date of effdate);

    2. data file to simulate this issue contains the lines below 10. Save this as name.dat. The intention is to load all of the rows in a CTL file. The actual file would have additional lines before and after these lines that can be discarded.

    H15T1Y Index | 2. 19/01/2016 |

    H15T2Y Index | 2. 19/01/2016 |

    H15T3Y Index | 2. 19/01/2016 |

    H15T5Y Index | 2. 19/01/2016 |

    H15T7Y Index | 2. 19/01/2016 |

    H15T10Y Index | 2. 19/01/2016 |

    CPDR9AAC Index | 2. 15/01/2016 |

    MOODCAVG Index | 2. 15/01/2016 |

    H15TXXX Index | 2. 15/01/2016 |

    H15TXXX Index | 2. 15/01/2016 |

    3. the CTL file - name.ctl

    DOWNLOAD THE DATA

    ADD

    IN THE TABLE dummy_load

    WHEN (09:13) = "Index".

    TRAILING NULLCOLS

    (

    COMPLETED name BY ' | ',.

    rate TERMINATED BY ' | '.

    COMPLETED effdate BY ' | '. ' TO_DATE (: effdate, "MM/DD/YYYY").

    )

    IN THE TABLE dummy_load

    WHEN (08:12) = "Index".

    TRAILING NULLCOLS

    (

    COMPLETED name BY ' | ',.

    rate TERMINATED BY ' | '.

    COMPLETED effdate BY ' | '. ' TO_DATE (: effdate, "MM/DD/YYYY").

    )

    invoke SQL loader in a file-> beats

    C:\Oracle\product\11.2.0\client\bin\sqlldr USERID = myid/[email protected] CONTROL=C:\temp\t\name.ctl BAD=C:\temp\t\name_bad.dat LOG=C:\temp\t\name_log.dat DISCARD=C:\temp\t\name_disc.dat DATA=C:\temp\t\name.dat

    Once this is run, the following text appears in the log file (excerpt):

    Table DUMMY_LOAD, charged when 09:13 = 0X496e646578 ('Index' character)

    Insert the option in effect for this table: APPEND

    TRAILING NULLCOLS option in effect

    Column Position Len term Encl. Datatype name

    ------------------------------ ---------- ----- ---- ---- ---------------------

    NAME                                FIRST     *   |       CHARACTER

    RATE                                 NEXT     *   |       CHARACTER

    EFFDATE NEXT * |       CHARACTER

    SQL string for the column: ' TO_DATE (: effdate, "MM/DD/YYYY").

    Table DUMMY_LOAD, charged when 08:12 = 0X496e646578 ('Index' character)

    Insert the option in effect for this table: APPEND

    TRAILING NULLCOLS option in effect

    Column Position Len term Encl. Datatype name

    ------------------------------ ---------- ----- ---- ---- ---------------------

    NAME                                 NEXT     *   |       CHARACTER

    RATE                                 NEXT     *   |       CHARACTER

    EFFDATE NEXT * |       CHARACTER

    SQL string for the column: ' TO_DATE (: effdate, "MM/DD/YYYY").

    Record 1: Ignored - all null columns.

    Sheet 2: Cast - all null columns.

    Record 3: Ignored - all null columns.

    Record 4: Ignored - all null columns.

    Sheet 5: Cast - all null columns.

    Sheet 7: Discarded - failed all WHEN clauses.

    Sheet 8: Discarded - failed all WHEN clauses.

    File 9: Discarded - failed all WHEN clauses.

    Case 10: Discarded - failed all WHEN clauses.

    Table DUMMY_LOAD:

    1 row loaded successfully.

    0 rows not loaded due to data errors.

    9 lines not loading because all WHEN clauses were failed.

    0 rows not populated because all fields are null.

    Table DUMMY_LOAD:

    0 rows successfully loaded.

    0 rows not loaded due to data errors.

    5 rows not loading because all WHEN clauses were failed.

    5 rows not populated because all fields are null.


    The bad file is empty. The discard file has the following

    H15T1Y Index | 2. 19/01/2016 |

    H15T2Y Index | 2. 19/01/2016 |

    H15T3Y Index | 2. 19/01/2016 |

    H15T5Y Index | 2. 19/01/2016 |

    H15T7Y Index | 2. 19/01/2016 |

    CPDR9AAC Index | 2. 15/01/2016 |

    MOODCAVG Index | 2. 15/01/2016 |

    H15TXXX Index | 2. 15/01/2016 |

    H15TXXX Index | 2. 15/01/2016 |


    Based on the understanding of the instructions in the CTL file, ideally the first 6 rows will have been inserted into the table. Instead the table comes from the line 6' th.

    NAMERATEEFFDATE
    H15T10Y Index2January 19, 2016



    If the INTO TABLE clauses were put in the CTL file, then the first 5 rows are inserted and the rest are in the discard file. The line 6' th would have a ""rejected - all columns null. "in the log file. "


    Could someone please take a look and advise? My apologies that the files cannot be attached.

    Unless you tell it otherwise, SQL * Loader assumes that each later in the table and what clause after the first back in the position where the previous left off.  If you want to start at the beginning of the line every time, then you need to reset the position using position (1) with the first column, as shown below.  Position on the first using is optional.

    DOWNLOAD THE DATA

    ADD

    IN THE TABLE dummy_load

    WHEN (09:13) = "Index".

    TRAILING NULLCOLS

    (

    name POSITION (1) TERMINATED BY ' | '.

    rate TERMINATED BY ' | '.

    COMPLETED effdate BY ' | '. ' TO_DATE (: effdate, "MM/DD/YYYY").

    )

    IN THE TABLE dummy_load

    WHEN (08:12) = "Index".

    TRAILING NULLCOLS

    (

    name POSITION (1) TERMINATED BY ' | '.

    rate TERMINATED BY ' | '.

    COMPLETED effdate BY ' | '. ' TO_DATE (: effdate, "MM/DD/YYYY").

    )

  • I opened my photos of my SDCard with File Explorer, select them all, then I select move to fill after that I saw the bar of loading with the green line. After that all my photos from my computer disappered and were removed from my SD card. Please, he

    I opened my photos of my SDCard with File Explorer, select them all, then I select move to fill after that I saw the bar of loading with the green line. After that all my photos from my computer disappered and were removed from my SD card. Help, please

    I looked everywere in my computer, but they are not found

    I bet that you have selected the folder Adobe Bridge CC or CS6, and it would be in there under Program Files/Adobe/or Program Files (x 86) / Adobe /.

    Move to... in the file Explorer apply only to records not the bridge program.

    You open Bridge and Photo Downloader allows you to move pictures from your SD card in the deck (also called import)

    Gene

  • iPhone 5s stuck on the loading with the apple logo bar

    my iphone 5 s is currently blocked on the loading with the apple logo bar, my home button does not work (I normally use assisstive-touch), ive tried connecting my phone to a laptop and then connect to itunes, but when I connect to itunes it say «to allow access, answer on your iphone» I don't know what to do and need my phone. Help, please.

    You must get the repaired Home button in order to connect to iTunes to sync or restore data.

    Help here > repair - official Apple iPhone Support

  • I need to print from firefox icon as I used, because some pages that I need to print do not load with the menu.

    Since a recent automatic update, I was not able to print by clicking on the firefox tab icon. I have pages that I need to print, that do not load with the toolbar complete with the key of menu etc. I could always print by clicking on the icon, but no more. Help please.

    you could try pressing and use 'ctrl' then 'P' on your keyboard
    We also write 'ctrl + P', it's the printing system wide combination of shortcut keys.

    Alternatively, you can try, right-click in the title bar (where your loading tabs) and selecting 'Menu Bar', which will show the menu bar (with file, editing, display, etc.) on the tabs allowing you to print from the submenu file

    hope that helps!

    See you soon

  • I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help?

    I can't create a shortcut to the site on my desktop, when I click on the url bar I can drag on the browser to open a new, but as I drag him on my desktop I get the circle with the line through it, one that looks like a no entry sign. Help

    Try to drag the image to id web site (favicon) on the left side of the address bar, instead of the URL.

  • How to concatenate strings with the lines of a text file

    Hello
    I tried concatenate strings with the lines of a text file, but something is wrong with my code and I belive is the agruments I use in the cycle for. If anyone can help me I will appreciate it very much.
    My code is:
    [code]@echo off
    the value "input=C:\Users\123\Desktop\List.txt".
    for /f "usebackq tokens = *" % in (' input % ') do)
    the value 'str1 = C:\some directory\ ".
    the value ' str2 = %% ~ F '.
    the value "str3 = .pdf".
    the value "str4 = str1% str2% str3%.
    echo.%STR4%
    ) [/ code]
    and the text file is something like:
    121122 [code]
    122233
    123344
    124455 [/ code]
    But I get only one wrong answer and I have to run it like 3 times to get a real result and it is a mistake, the first two are empty spaces and gives the third one as the last line of the text file but repeated n times, where n is the number of lines in the text file.
    Result:
    [code] C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\Users\123\Desktop>[/code]
    So if anyone has an idea about what is wrong please let me know.
    Concerning
    -Victor-

    Hi Victor,

    This forum is dedicated to the support of the Office of consumer Windows (fonts, colors, personal settings).  Since your question is about programming and usually outside the context of most of the customers, I suggest you post your question in the forums as http://msdn.microsoft.com - the Microsoft network to users will be more adapted to help you in your quest.
  • How to draw a line (with the line segment tool) then draw another line, from those previous anchor point. When I try immediately draw another line on the other anchor lines it try to turn instead.

    I'm following a course of basic fundamental illustrator on Lynda. The video of "draw straight lines" is troubling me. They draw a line with the line segment and then draw another line coming out the anchor point at an angle.

    Here's where it is troubling me - when I try to drag a line to the anchor point trying to transform the first line, I drew. (the line cursor turns into a selection tool) I can't draw another line connecting the first.

    Advice would be great because it's driving crazy me.

    See you soon,.
    Kyle

    Yes, it is irritating. You must clear the previous line first. If you want to make sure that both ends are perfectly aligned, start by turning on the guides. If you want two lines to be part of the same way, you should use the tool pen instead.

  • In Adobe Flash CS6, I have a blue box appearing around lines drawn with the line tool (and other tools like the brush etc.). I can't understand how to disable.

    In Adobe Flash CS6, I have a blue box appearing around lines drawn with the line tool (and other tools like the brush etc.). Whenever I try to use a tool, a blue box appears around the line and I have to double click on it to handle, which opens just this line in a screen finery semi where all other objects are semi-gris in the background. I can handle this line in this screen, but nothing else at this point I could do 5 minutes ago. For example, I can no longer reach the 2 lines drawn by the tool online together. For some reason, it started randomly (probably due to an accidental combination) and I just can't put it to what it was. I inserted a video showing if all goes well I mean. Any help would be appreciated.

    Object drawing mode. Simply disable it in the tools Panel, or by using the default keyboard shortcut, which is J.

  • What is the cause of the error SQL * Loader-925: the ulprep error: extraction?

    Hello

    I use SQL Loader to load a file into a partitioned table. However, the performance charger throws the following error message:

    SQL * Loader-925: the ulprep error: extraction
    ORA-01031: insufficient privileges

    Please can someone explain what the possible cause of this error?

    Thanks in advance
    Annie

    try to view the logfile too. the log file can be useful.

    ORA-01031: insufficient privileges-> indicates the user account does not have access to the table.

  • "Shenanigans" with the car dock - sometimes is not load, sometimes the line audio stops...

    So - I bought the AT & T w/o the 12VDC power supply kit.

    I have three of them already, so I thought no big deal, but here is the result:

    -A supply of 500mA. No charge and the phone continues to flow.

    -A single port of 1000mA supply - I get the (fresh) lightning for an hour, then stops and begins to bleed

    -A double-USB 1000mA supply - I get the Flash most of the time, but phone seems to "slow charge" only

    I decided to buy something different. The iPad has a much higher load must be (10 watts) so I thought that the Atrix might need something similar because of the screen, BT, GPS and radio satellite continuously at the same time.

    I bought a Belkin USB power designed to support the iPad, so there a power of 2100mA @ 5VDC thinking she would probably charge the Atrix - and he did it, worked like a champ, except when it is plugged in, the audio power stops via the audio jack of 3.5 mm on the dock cable car. As soon as I unplug the power supply, audio comes immediately.

    I'm trying to find the specs on the Motorola offers that Docks with the OEM racing car but there is no information on the sales of motorcycle brand site. Anyone know?

    Does anyone else have these strange questions?


  • SQL Loader with BCP datetime format

    Hi, Im having trouble loading of data from sybase to oracle may. I already .dat for my lens. However, its datetime column has changed its formula and it is not accepted to oracle.

    Please see below.

    Source table

    PUP_DATE

    ------------------

    2014-10-01 10:34:07.613

    PUP_DATE = datetime (sybase - source table)

    target table for pup_date data type is TIMESTAMP

    When my sybase database are imported via bcp on looked this way date format .dat file

    .dat file

    ....

    < EOFD > 1000017962 < EOFD > Oct1 2014 AM < EOFD > 10:34:07.613

    ...

    bcp sql developer-generated command line

    BCP dbname.dbo.table_name /directory/test.dat - c t '< EOFD >' - r '< EORD >' - Usa - Ppassword - Sservername

    What can I do to keep its format which is accepted at oracle?

    I tried to change the date and time stamp of mask in sqldeveloper migration options. also the mapping of datatime timestamp data type.

    Thank you!

    The following shows how to use TO_TIMESTAMP in your SQL * control file loader to load your test.dat file data in a column of timestamp into a target of Oracle table.

    Scott@orcl12c > test.dat TYPE of HOST

    1000017962Oct1 2014 10:34:07.613 AM

    Scott@orcl12c > test.ctl TYPE of HOST

    DOWNLOAD THE DATA

    Test.dat INFILE

    IN the purpose of the TABLE

    FIELDS TERMINATED BY ''.

    TRAILING NULLCOLS

    (fill1 FILLER

    fill2 FILLER

    ', pup_date ' TO_TIMESTAMP (: pup_date, ' MonDD YYYY hh.) (FF3AM') ')

    Scott@orcl12c > CREATE TABLE target

    2 (pup_date TIMESTAMP)

    3.

    Table created.

    Scott@orcl12c > HOST SQLLDR scott/tiger CONTROL = test.ctl LOG = test.log

    SQL * Loader: release 12.1.0.1.0 - Production on Wed Jan 7 12:05:18 2015

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Path used: classics

    Commit the point reached - the number of logical records 1

    TARGET table:

    1 row loaded successfully.

    Check the log file:

    test.log

    For more information on the charge.

    Scott@orcl12c > SELECT * TARGET

    2.

    PUP_DATE

    ---------------------------------------------------------------------------

    1ST OCTOBER 14 10.34.07.613000 AM

    1 selected line.

  • Load with the incremental update of the IKM Oracle

    Hi Experts,

    According to my understanding, incremental load is that the new data (with insert append or load incremental (update/insert or merged with or without behavior SCD)).

    While peek into the code of the IKM KM here it is my understanding:

    Incremental update: given the PK defined in the target data store, that KM will check line by line and put insert/update (change data capture).

    Append: Blindly block for the table insertion target and any changed data will be captured. It will not truncate and insert so that to avoid duplicates in the data, have a PK defined in the target table, so whenever the duplicate data comes it can be prevented or go for CKMs.


    Now my doubt is,


    When you use the incremental km update: the scenario is I have an incremental load today, inserted for example 200000 files today and tomorrow other 200000 records added (may include updates of certain lines in the previous loaded 2,00,000 documents. Now it will scan 4,00,000 (yesterday + today) and seek changes, I mean to update or insert

    Because according to my understanding will treat this KM row by row all records (my understanding is correct?). If it reads each record and are looking for a change or not change it seems to me that his time and performance issues?  CDC is right approach in this scenario or the implementation of SDC on all columns in the table?


    Regarding the large number of records coming daily, updated incremental if IKM checking all records for update or insert or no change, in my opinion, this isn't a performance wise and time to compare source and target value. This KM eliminate comparing itself the Chronogram of the source to target those who does not charge any change in any of the previous column value?



    Sorry if this is a silly question. Just trying to figure which can be better charge strategy, especially when I have millions of records entering source daily.


    SSX I remember ealier JeromeFr our expert member in the community, said Partioned Exchange to treat only to process the given month data when you manage tables partitioned at the database level.


    Best regards

    ASP.








    Hi ASP_007,

    Charge, as opposed to full reload, does indeed only new (and possibly changed) data. There are 3 main ways to do this:

    • Set up a filter in your mapping interface/load only the data including the upper date to a variable (which holds the last loading date).
    • Use the framework of the CDC in ODI. There are several JKMs. The solution optimal is probably the Golden Gate, one, but you must purchase this additional license. mRainey wrote about this several times: http://www.rittmanmead.com/2014/05/goldengate-odi-perfect-match-12c-1/
    • Retrieve all the data in the source and allow an incremental update of the IKM define what already exists.

    Of course, the first two still will take a little more time to develop, but it will be much faster in terms of performance because you treat data less.

    It is for the part "Extract", get data from the source.

    Now, you must know how to "integrate" into your target. There are different strategies as insert Append, incremental update, Type 2 SCD...

    • Indeed insert Append won't update. It will only insert lines. It is a good approach for a full charge, or for an additional charge when you want to insert data. There is an option in most of the IKMs Append (control) to truncate the table before inserting (or delete all the lines if you do not have the privileges to truncate).
    • Incremental update: there are different IKMs for this and some may have better performance than others depending on your environment. I recommend you to try a few and see which is more fast for you. For example ' IKM Oracle incremental update (MERGE) "could be faster than 'IKM Oracle incremental update. I personally often use a slightly modified version of ' IKM Oracle incremental update (MERGE) for Exadata ' to avoid using a work table (I$ _) and perform the merge directly into the target table. The last approach works well with the CDC when you know that all data are new or changed and needs to be treated.
    • SCD2: To maintain your dimensions needing SCD2 behavior.

    So in answer to your questions:

    Because according to my understanding will treat this KM row by row all records (my understanding is correct?). If it reads each record and are looking for a change or not change it seems to me that his time and performance issues?

    Some of the IKMs will do it line by line, others will do it based on a game. This is why it is important to check what he does and he spots.

    CDC is right approach in this scenario or the implementation of SDC on all columns in the table?

    Yes certainly, you will have less data to be processed.

    Regarding the large number of records coming daily, updated incremental if IKM checking all records for update or insert or no change, in my opinion, this isn't a performance wise and time to compare source and target value. This KM eliminate comparing itself the Chronogram of the source to target those who does not charge any change in any of the previous column value?

    Yes, by using ' IKM Oracle incremental update (MERGE) for Exadata ' with the strategy of 'NONE '. This means that he will not try to see the rows from the source is already in the target.

    PS; I am remember ealier JeromeFr our expert member in the community, said Partioned Exchange to treat only to process the given month data when you manage tables partitioned at the database level.

    It is a good approach when you want to reload an entire partition (if you have a monthly charge in a monthly partition or a daily load in a daily score for example). It is easier to set up to load the new lines only. But if you need to update things in the source, you can use incremental update strategy on an intermediate table that contains the same data that your partition and then create the swap partition in a further step.

    Thanks for the mention.

    Be sure to close your other discussions.

    It will be useful.

    Kind regards

    JeromeFr

  • Performance issues and options to reduce the loading with the Oracle text implementation

    Hi Experts,

    My database on Oracle 11.2.0.2 on Linux. We have Oracle implemented for the fuzzy search. Our oracle text indexes are defined as sync on commit that we cannot afford to have stale data.  Now our application done literally thousands of inserts/modifications/deletions of these columns where we have these Oracle text index defined. Thus, we see a significant impact on performance because the oracle text synchronization routines is called on each commit. We do nightly index optimization (optimization full every night at 3:00).  The text index oracle internal operations are appearing at the top of the sql page in our AWR report and fears it causes a lot of load on the DB.  Since we do optimization of the complete index once during the night, I think I should change that, and if I do, he's going to help us?

    For example, here are some data of AWR report my one day:

    Time elapsed (s) Executions Time by Exec (s) % Total % CPU %IO SQL ID SQL module SQL text
    27,386.25305 4410.0916.5015.829.98ddr8uck5s5kp3Start ctxsys.drvdml.com_sync_i...
    14,618.81213 9800.078.818.3927.7902yb6k216ntqfbegin ctxsys.syncrn (: idxownid,...)


    More top sql full text:

    ddr8uck5s5kp3begin ctxsys.drvdml.com_sync_index (: idxname,: idxmem,: partname);
    end
    02yb6k216ntqf

    begin ctxsys.syncrn (: idxownid,: idxoname,: idxid,: ixpid,: rtabnm,: flg); end;

    Now if I do optimization of the complete index that more often, and not only once night 15:00 will be this average, the load on DB sync on commit will decrease? If Yes, how many times should I optimized and the optimization itself does not lead to a load? Can anyone suggest?

    Thank you

    OrauserN

    It's to you which values you want to experiment.  Since 1 G, which is the same as 1024M is the maximum I could try that assigning to an index and see what effect it has.  You can use the same AWR report that you used previously and compare performance.  To determine when paging depends on your operating system and what tools you have.  Another option might be to use TRANSACTIONAL, that allows searching for unsynchronized lines and allow you to synchronize every five minutes, like Herald suggested, without any latency problem.  You can read about it here (scroll down to transaction):

    http://docs.Oracle.com/CD/E11882_01/text.112/e24436/csql.htm#CCREF23731

  • How to load the PDF (HTML Loader) with the reference of the file (dialog box) [AIR]?

    Hello.  I try to get my AIR application to load a PDF document from the dialog box using the file reference class.

    With the code that I have if I use an ordinary charger so I can get a PNG image to be loaded into a container and display on the screen.  But PDF requires HTML Loader that seems not to accept event.target.data because he expects a string.

    This is the error I got

    TypeError: Error #1034: Type coercion failed: cannot convert ["'FileReference object] in flash.net.URLRequest.

    at test_pdf_load_from_dialogfla_fla::MainTimeline/loadFile() [test_pdf_load_from_dialogfla_fl a.MainTimeline::frame1:61]

    Test_pdf_load_from_dialogfla.swf [UnloadSWF]

    Here is my code:

    import flash.net.URLRequest;

    import flash.display.MovieClip;

    import flash.html.HTMLLoader;

    import flash.net.FileReference;

    import flash.net.FileFilter;

    var file:FileReference=new FileReference();

    var container: MovieClip = new MovieClip();

    addChild (container);

    var i: Number = 1;

    the button is an object on the stage, will not be called via actionscript

    button.addEventListener (MouseEvent.CLICK, showDialog);

    var myFile:FileReference;

    var myFileLoader:HTMLLoader;

    function showDialog(e:MouseEvent):void {}

    myFile = new FileReference();

    var PDFFileType:FileFilter = new FileFilter ("PDF Documents (*.pdf) ',"*.pdf"");

    myFile.browse ([PDFFileType]);

    myFile.addEventListener (Event.SELECT, selectFile);

    }

    function selectFile(e:Event):void {}

    myFile.addEventListener (Event.COMPLETE, loadFile);

    myFile.load ();

    }

    myFileLoader = new HTMLLoader();

    function loadFile(e:Event):void {}

    myFileLoader.load ((e.target) m:System.NET.SocketAddress.ToString ());

    }

    (with the new selection of forum I also can't seem to put this topic in the location of the ActionScript of Flash Pro forum.)

    Success!

    I was thinking about this subject for several hours, when I thought that "maybe the statement in the function loadFile e.target may contain the"name"property.

    When I used a trace statement to test this, my thoughts have revealed that, to be precise.  The appeal of e.target.name fills indeed console output with the correct file name.

    To be sure that I did the following:

    myFileLoader.load (new URLRequest (String (e.target.name)));

    myFileLoader.width width = [[set to something other that the default value of 0 to show the PDF of the HTMLLoader content]]

    myFileLoader.height = [[ditto of the previous line, the default value is 0, which would make the invisible PDF content]].

    I'm so happy to have had this inspiration and also to the fact that the ActionScript documentation I found has good examples to follow.

Maybe you are looking for