On the use of SQL * loader program pl/sql command

Is it possible to develop a PL/SQL program that calls SQL * Loader (sqlldr userid =...) command?

We want to package a process that loads data from a text file into a table, and we research it is possible to use SQL * Loader to the data loading process.

You can launch sqlldr like all other orders of operation. There are several methods of cooking OS command, as

1. external procedure PL/SQL: CHMOD FROM A PLSQL?

Johan's blog: how to call PL/SQL kernel32.dll.

2 Java Stored Procedure: Blog of Johan: using JAVA in PL/SQL - PART - I list files with timestamp , Blog of Johan: using JAVA in PL/SQL - PART - II operating system information obtaining

3. external PREPROCESSOR Table function: no response on java not call windows in oracle command

Johan's blog: list uses of disk operating system with external feature of the Oracle PREPROCESSOR Table

Johan's blog: operating system from the list of files with external feature of the Oracle PREPROCESSOR Table

4. using DBMS_SCHEDULER,job_type => 'executable' and job_action  => '/bin/sh' (may be)

Tags: Database

Similar Questions

  • Limitations on the use of SQL/PLSQL functions in reports 6i / 10g

    Hi gurus...

    We have a limitation on the use of TRIM, Regular Expressions, CASE operator subquery in cursor in reports 6i/10 g...
    Could you please let us know all these limitations for reports 6i / 10g. Any reference document will be much more useful...

    Any help will be greatly appreciated...
    Thank you in advance...

    gt1982

    There is no documentation. For example, documentation reports 6i can't say you cannot use regular expressions, simply because it is right, it did not exist at the time.
    The pl/sql in the forms and reports engine is always behind, on the database. You should put as much code as possible in the procedures of database and the views if you want to use again (pl /) sql features.

  • UCCX 8.5.1 SU4 NFR kit allow the use of SQL database

    I'm running UCCX 8.5.1 SU4 thanks to the NFR UC 8 kit for my laboratory training and cannot create a DSN to a MSSQL Server. When I go to

    Subsystem | Database | DataSource

    and then click Add, the driver dialog box is grayed out and will not be open to select a jdbc driver. When I go to UCCX Serviciability, Control Center Network Services, and then expand engine UCCX then manager subsystem, the subsystem of the database is status "not configured" and did not start.

    I thought that the kit NFR providing the premium license would allow database capacity, which escapes me?

    Thanks, Jeff

    DB subsystem requires premium.  And I think that the NFR kit is premium.  Double you can check your license under system > AppAdmin license?

    Also, you acually don't have download a JDBC for UCCX driver?  If you do not, then it is probably your problem.  UCCX comes with zero drivers installed, and you will need to search the Internet for one.  Most people end up using it for MS SQL:

    http://sourceforge.NET/projects/jTDS/files/jTDS/1.3.1/

    Anthony Holloway

    Please use the meaning of the notes to help the great content in car to the top of searches.

  • additional licenses set forth for the use of Sql Tuning Advisor in SQL Developer 4.0.3

    Hello

    We have the Oracle 11 g Enterprise Edition Release 11.2.0.3.0 database. Do we need to acquire an oracle license extra for using SQL Tuning Advisor Option in SQL Developer 4.0.3

    No, they are installed by default.

    They must be licensed.

    Consult your contract or talk to your account manager Oracle for clarification.

  • What are the requirements for the use of Sql Developer with MS SQL Server via the JDBC MS driver?

    I tried to add

    sqljdbc_4.0\enu\sqljdbc4.jar

    or

    sqljdbc_4.0\enu\sqljdbc.jar

    or both

    in part 3d driver JDBC list in properties, but there is no tab in the connection dialog box create.

    Just for a test, I added IBM's JTOpen driver and a new tab of the DB2 appeared immediately.

    What should I do to be able to create connections to MS SQL?

    Use the correct driver, jTDS 1.3

    http://www.Oracle.com/technetwork/database/migration/JDBC-migration-1923524.html

  • limitation in the use of sql * more like a database for applications

    Dear expert;

    I would like to know everything, what are some of the main limitations using sql * more as your database in the application in addition to designing the user interface is pretty nice... and google does not produce answers to my questions also unfortunately

    user13328581 wrote:
    I don't know about the drivers, I just need an IDE that is very similar to the PL/SQL Developer who will give me the opportunity to create the tables and their relationships and other tasks DDL that is why, at the beginning I was just wondering if it is OK to use sql * more for everything that...

    Yes, sqlplus allows you to do what you want

  • LOV query fails, but works in SQL commands

    I am trying to create a type with semi-automatic item text field, but the query I fill in the definition of LOV returns an error:

    Impossible to analyze the query SQL LOV!

    ORA-00942: table or view does not exist

    Although when I try the same query in the form of SQL commands, it works without any problem. No idea what I am doing wrong?

    The query is as follows, where v_prt_gem_t is a view and prt_gem is a table.

    SELECT
          PG.POST_CODE||' '||PT.NAAM
    FROM
          V_PRT_GEM_T PT
          INNER JOIN
          PRT_GEM PG
          ON
          PT.NR = PG.NR
    WHERE
          LAN_NR = 4
    
    

    Julijan wrote:

    I am trying to create a type with semi-automatic item text field, but the query I fill in the definition of LOV returns an error:

    Impossible to analyze the query SQL LOV!

    ORA-00942: table or view does not exist

    Although when I try the same query in the form of SQL commands, it works without any problem. No idea what I am doing wrong?

    The query is as follows, where v_prt_gem_t is a view and prt_gem is a table.

    1. SELECT
    2. PG. POST_CODE | » '|| PT. NAAM
    3. Of
    4. PT V_PRT_GEM_T
    5. JOIN IN-HOUSE
    6. PG PRT_GEM
    7. WE
    8. PT. NR = PG. NR
    9. WHERE
    10. LAN_NR = 4

    It is likely that CERTAIN privileges on one or two tables/views used are granted for the scheme of the analysis of the application through a role, not directly to the schema. Role-based privileges will be observed in the workshop of SQL in the latest versions of database, but not for running applications. See (YABAOAE) yet another Blog about Oracle Application Express: Application Express and SQL Analysis for detailed information.

    That's why you always have to give the full APEX and the database version numbers when you ask a question: implementations and features change over time. If we know exactly which versions are used so we can determine what behavior is expected, and what bugs exist or have been corrected...

  • Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    If a shortcut is used while Firefox is already open the error will not occur.

    For me, the problem was the FoxClock extension. Once I disabled it, the problem was gone.

    Hope this helps.

    Olivier

  • VISTA HOME PREMIUM 32 BIT PROBLEM - UNABLE TO LOAD PROGRAMS OR BROWSE THE NET__ (USING WINDOWS 6.0 AND I.E.8 - SKILL LEVEL, BEGINNER)

    My computer has suddenly decided to stop loading programs.  As it happened, my mouse in the right hand by clicking the ability disappeared.  The toolbar at the top of the screen works differently and will not help load, the dropdown under FILE no longer exists, the drop-down list under TOOLS decreased by only 2 items, (POP UP BLOCKER AND SMART SCREEN FILTER) and INTERNET OPTIONS no longer appears.  The internet is a mess, especially with whatever it is when dealing with photos.  I used to be able to click on many photos and expand in doing so.  No longer.  I used to be able to right click on a photo that has produced a menu drop down includes SAVE AS but no more.  If I can get a web page to the top at all, it cannot be browsed.  Although the web page shows "life" nothing cannot be engaged on the screen by clicking on its characteristics.  Earlier this week, I could load games like SOLITAIRE, but even the game features were incomplete.  That game normally has some features TIP link in the upper left of the page of the game but who went and now it will not load even upward.  One of the last messages that I had was the one who said, "AN ERROR IS PREVENTING the STARTING PHOTO GALLERY VIEWER WINOWS."  A message that I had before I told him, ' COULD NOT CREATE THE SCHEDULED TASK for THE FOLLOWING REASON: THE REQUEST IS NOT supported 0 X 80070032.»  I recently tried to load OPEN OFFICE.ORG and it could not load the displayed computer ERROR 1935.  He also says, "HRESULT 0 X 80070091".  I don't think that I will be able to access the Microsoft Forum for any answers that might come my way so I would be VERY VERY happy if someone could answer my e-mail address that, for now, still works: * e-mail address is removed from the privacy *.  Thank you for taking the time.  Best regards, CharlieChanFan

    Hi CharlieChanFan,
     
    1. from when are you facing this problem?
    2. any recent change in software/hardware on your computer?
    3. What is the full error message about solitaire game?
     
    Scenario 1: Operating system won't load does not have the following features.
     
    a. toolbar running differently (do not load file menu, the Help window, tools)
    b. games such as Solitaire features do not appear
     
    To resolve this issue I suggest you to follow these methods provided below.
     
    Method 1:
     
    Try the SFC scan on the computer.
     
    Reference:
     
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833
     
    See also:
     
    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log

    http://support.Microsoft.com/kb/928228
     
    Method 2: Try to solve this problem with boot.
     
    See the following Microsoft KB article:
     
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135 
     
    Note: after a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.
     
    Scenario 2: Troubleshooting problem of Internet explorer.
     
    Step 1: I suggest to perform an optimization of Internet Explorer on your computer and find the number.
     
    How to optimize Internet Explorer
    http://support.Microsoft.com/default.aspx/KB/936213
     

    Warning: him reset Internet Explorer settings feature might reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings
     
    Step 2: Visit it below mentioned link and follow the instructions to solve the problem of Internet Explorer:
     
     
    Scenario 3: To solve the problem of the Windows Photo Gallery, I suggest you follow the steps in
    Scenario 1.
     
    Scenario 4: Error code 80070091 means "the directory is not empty.
     
    I suggest to run the application as administrator and check for the issue.
     
    a. right-click right the program and select Properties
    b. on the Compatibility tab, select run this program as an administrator
    c. click on apply and OK
     
    Note: If none of these methods provided and steps resolve the issue, then I suggest to create a new user account, try to fix the damaged user account and control the issuance.
     
    For this you need to follow the link below.
     
    Create a user account
     
    Follow the link provided below to fix the damaged user profile.
     
                  
    If the problem persists then I recommend you to run online Virus Scan to remove any infections, as appropriate.
         
    Follow the link below to start the free online scan:
    http://OneCare.live.com/site/en-us/default.htm
        
     

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Can I use function defined by the user in the control file Sql Loader?

    Hi Master,

    Can I use fuction user-defined in the sql loader control file? Please advise... !!

    If you can provide an example... It's very kind of you.

    Concerning

    AR

    Here are a few examples that should give you clues: Sql loader

    I seriously wonder if why you use the century previous SQL * Loader instead of a external table:

    ORACLE-BASE - external Tables: querying data from flat files in Oracle


  • OutOfMemoryError: Limit superior GC exceeded when loading directly the source using IKM sql for sql. Growing ODI_MAX_HEAP do not solve the problem.

    OutOfMemoryError: GC overhead limit at execution a loading interface directly sql for sql with no work table.

    I get the error message: error: exception OutOfMemoryError: higher GC limit exceeded when executing an interface making a direct using IKM SQL for SQL command load Append, source a 150millions lines table.

    I have increased the ODI_MAX_HEAP and the interface run longer and failed. I'm already at: ODI_MAX_HEAP = 12560 m I tested with ODI_MAX_HEAP = 52560 m and still error.

    I am following up to the memory of the server and I still have available memory...

    Apart from the problem of memory I know that this type of load should be possible because the step of data load on LKM SQL to Oracle is able to load the work table $ CAN. Ideally, I want to emulate this behavior by using SQL for SQL IKM.

    1 - What is the right path to follow here? (change the parameters of memory or modify the IKM?)


    2 - ideas on how to solve the OutOfMemoryError: GC overhead limit exceeded error? (GC means Garbage Collector)

    Execution of the IKM interface in the Simulator generates this code:

    Load (Source) command:

    Select

    source - tbl.col1 COL1,

    source - tbl.col2 COL2,

    source-tbl. "' COL3 ' COL3

    of public.source - tbl AS source-tbl

    where

    (1 = 1)

    Default command (Destination):

    insert into the source-tbl

    (

    col1,

    col2,

    COL3

    )

    values

    (

    : COL1,.

    : COL2.

    : COL3

    )

    My experience is very limited with ODI so I don't know about changing the code to the KMs

    Thanks in advance.

    Find a work around the error of generals limit exceeded GC:

    -in my case I was running without the IDE so that changes made to the odiparams.sh were not useful.

    -This means that I need to change the JVM settings to:

    $ODI_HOME/oracledi/client/odi/bin/odi.conf

    AddVMOption - XX: MaxPermSize = NNNNM

    $$ODI_HOME/oracledi/client/ide/bin/ide.conf

    AddVMOption - XmxNNNNM

    AddVMOption - XmsNNNNM

    Where NNNN is a higher value.

  • Load the data from a text file into a table using pl/sql

    Hi Experts,

    I want to load the data from a text file (sample1.txt) to a table using pl/sql

    I used the pl/sql code below

    ***********************************
    declare
    f utl_file.file_type;
    s varchar2 (200);
    c number: = 0;
    Start
    f: = utl_file.fopen('TRY','sample1.txt','R');
    loop
    UTL_FILE.get_line (f, s);
    insert into sampletable (a, b, c) values (s, s, s);
    c: = c + 1;
    end loop;
    exception
    When NO_DATA_FOUND then
    UTL_FILE.fclose (f);
    dbms_output.put_line('No. deles de lignes insérées: ' || c);
    end;

    ***************************************

    and my sample1.txt file looks like

    ***************************************
    1
    2
    3
    ***************************************

    Gets the data inserted, with way below

    Select * from sampletable;

    A, B AND C

    1-1-1
    2-2-2
    3 3 3

    I want that data to get inserted as

    A, B AND C

    1 2 3

    The text file I have is to have three lines, and the first value of each line should go to each column

    Help, please...

    Thank you
    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;
    

    SY.

  • How to access the BPM 11 g load useful or process varibles in the workflow of ADF

    I'm trying to view/edit the data in a user interface that is linked to a database by using a foreign key, requestId. The foreign key comes from a BPM process where it is spent in the workflow, a human task. The foreign key comes process variables or values of payload. I know that I can simply load the payload in BPM with the data in the tables, but I'm looking for a better solution use the ADF business components to view and edit data directly in the user interface.

    The BPM process uses a web service to start the process. Web services takes a primary key as a parameter to reference a column in the database table. The data is pre-filled with content and a primary key reference. The first activity is an activity of the user. I want the workflow behind the user activity to accept this primary key and use to locate the line in the database, so related views of the database delimited ADF business components can work to present the data in the user interface.

    I tried two approaches to the problem. The first uses the setCurrentRowWithKeyValue operation. The other changes the SQL where clause, used by the ADFbc iterator only returns one row for the given requestId. Both of these approaches fail to work because I don't know how to access the load BPM or variable data entering the workflow. Here is the piece of code that I used to try to define the row using the value of setCurrentRowWithKey:

    public String setRequestId() {}

    FacesContext context = FacesContext.getCurrentInstance ();
    Object requestObj = context.getApplication () .evaluateExpressionGet)
    context, "#{bindings."(, Number.class) RequestId.inputValue "};
    If (requestObj is nothing)
    Returns a null value.
    RequestId number;
    requestId = (number) requestObj;

    ITR DCIteratorBinding = (DCIteratorBinding)

    getBindings () .get ("PatfRequestHdrView1");

    itr.setCurrentRowWithKeyValue (requestId.toString ());

    Returns a null value.

    I didn't get very far with the second approach, change SQL where clause, because I do not know Groovy. I think I need something like:

    adf.object.viewObj.RequestId. but it is not a viewObject associated with BPM data, so I don't know that this particular expression will not work.

    Any help you can give me is greatly appreciated.

    Kind regards
    Mark

    Try this code in your method:

    FacesContext context = FacesContext.getCurrentInstance ();
    String ctx = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistContext}", String.class);
    String tskId = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);
    IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient ();
    ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService ();
    IWorkflowContext wfContext = wfQueryService.getWorkflowContext (ctx);
    Task myTask = wfQueryService.getTaskDetailsById (wfContext, tskId);
    XMLElement xmlPayload = (XMLElement) myTask.getPayloadAsElement ();
    get the payload as a string simple, useful for debugging
    java.io.StringWriter writer = new java.io.StringWriter ();
    xmlPayload.print (writer);
    String payloadAsString = writer.toString ();
    extract payload values: use methods in Oracle XDK

    See also this post:

    The task of reading by program details

  • Windows 7 64-bit slow start of blue circle hangs on the network icon in the notification area. Some programs don't load until the problem resolves. stuck at the screen of welcome for 5-10 minutes sometimes.

    Hello world.

    It will be long and windy.

    I have a problem with my ASUS G50VT - X 5.

    im going to write down the details of my question, short first. so if you want you can read my short story on my laptop and I.

    • Slow start.
    • Network at startup initialization problem.
    • Blue circle weighs on my network icon in the taskbar notification for 10 minutes or more. then she disappears with the problem that everything starts to operate correctly.
    • some startup programs do not start until the issue is resolved. (blue circle disappears) i.e. adjustment of splendid colors, services, programs of control really like network connections and things like that but some i can still run.
    • programs that have to do with the network or the internet such as IE or center network to hang until the issue is resolved.
    • Some programs won't load if started up that the problem is solved. for example, microsoft outlook and other things.

    Another thing, I noticed. If I have automatic network connection configuration and the network is in range when I launch firefox I can actually serf the web regardless of the question.

    I'm not the only one having this problem, but solutions that work for some do not work for me. some of the things I've tried to understand.

    • has run msconfig to see if it is one of the start up programs or services is causing the problem. found nothing.
    • run the cmd command, I think that the chkdsk. It digitizes and restores the registers according to me. did not help
    • Used norton. then corrected all the errors found and the questions. did not help.
    • Ran startup recovery tool to fix problems at the beginning. did not help.
    • Booted up my laptop in SafeMode with network. Works very well

    Also, the problem started not with win 7 install I had it on my laptop well before the problem.

    im running Windows 7 Professional 64-bit. as if lately, about a week ago my laptop started to start, slow down and be laggy when the system boots. I have no much attention at first. Since the question does not disappear on its own, I noticed that my network in the notification bar icon has a blue circle probably because its network initialization or loading something that is bound to it something as is. After about 10 minutes the issue resolves itself and everything works fine until I have reboot or restart. also sometimes on occasion I will be stuck to the homescreen for 7-10 minutes.  also if I put my laptop to sleep when I start it it works fine. I think that the time to resolve that issue got longer it is about 10 min now but it used a lot less. at least that's what I recall. In addition, I noticed a few more things. If I left click on the network icon does nothing when normally it will display network connections. If I right click on it displays troubleshooting and Open Network and Sharing Center. Troubleshooting doesn't help and returns nothing. Network and sharing Center is suspended until the problem resolves. in fact, some programs won't load until it the problem goes away as internet explore, network and sharing virtually Center almost everything what has to do with the network and also other programs that require a bit more resources. What else... the kicker is that while the issue is to present the networks I connect to automatically are in fact very well and I have internet, even though the network is still initializing. what I mean is that if I start my portable firefox and launch (cannot use IE because he hangs up) I can go online and the serf of the web.

    Well, I am at a loss and don't know what to do next, except to format and clean install. However, people who did it until the problem was which leads me to believe that this is one of the windows updates may be.

    If someone knows how to fix this problem or can give a kind of constructive contribution, I'm all ears.

    Thanks in advance.

    I also looked in the event viewer and noticed these problems...
    The winlogon notification subscriber took 916 second (s) to handle the notification event (Logon).
    -
    -
    6006
    0
    3
    0
    0
    0 x 80000000000000
    56201
    Application
    Collin-PC

    -
    TermSrv
    916
    Opening of session
    02000000

    and it was lower than...
    Bucket of error, type 0
    Name of the event: ServiceHang
    Answer: No available
    Cabin ID: 0
    Signature of the problem:
    P1: LanmanServer
    P2: srvsvc.dll
    P3: 6.1.7601.17514
    P4: 20
    P5: 2
    P6:
    P7:
    P8:
    P9:
    P10:
    Attached files:
    C:\Windows\Temp\WERBC1D.tmp.WERInternalMetadata.XML
    C:\Windows\Temp\WERBC1E.tmp.HDMP
    C:\Windows\Temp\WERCBA9.tmp.mdmp
    These files are available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppHang_LanmanServer_958bb07ee47f1d58779ce0fb489791f2b7187bdb_cab_0de8cef2
    Symbol of the analysis:
    Recheck for solution: 0
    Report ID: 0de8cd67-d5a8-11e0-a8a7-9ab1f0009500
    Display state: 6
    and below that,.,.
    The winlogon notification subscriber takes a long time to handle the notification event (Logon).

    Hello

    1. Since when are you facing this problem?

    2 have you made changes on the computer before this problem?

    3. do you get any error code or error message while starting?

    I would suggest trying the following methods and check if it helps.

    Method 1:

    If you have not tried the steps in the following Microsoft article, then try to clean boot and check if it helps.

    How to solve the problem by running the clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: Once you have completed troubleshooting, perform the steps in the step 7: to reset the computer as usual.

    Method 2:

    Step 1:

    If the problem persists, you can create a new user account and check what is happening. To create a new user account

    http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account

    Step 2:

    If the new user account works fine then the old account has been corrupted, you can follow the link given below to fix the corrupted user profile.

    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    Hope the information is useful.

  • block the fnd_request.submit_request return 0 Using pl/sql in the trigger

    Hi all

    I put a trigger on table AFTER the UPDATE ON WSH_DELIVERY_DETAILS in which I fire one program simultaneously but custom fnd_request.submit_request 0 block pl/sql Using back of front end, while it is excellent work of backend. Please help me solve the problem.

    Thank you and best regards,

    Haresh

    Haresh,

    I'm glad to hear that it worked.

    Please close the thread by checking the useful and correct answer.

    See you soon

    AJ

Maybe you are looking for