Calling sqlldr using host in a form using 10gAS

Hello.
I am trying to run sqlldr from a form using the host procedure.
The problem is that the sqlldr never runs...
If I try to run the command manually everything works ok.
Code from the form:
V_NAME := 'FACTURACAO.CMD';
V_HANDLE_C := UTL_FILE.FOPEN ( V_PATH, V_NAME, 'w' );
UTL_FILE.PUT_LINE ( V_HANDLE_C, 'SET PATH=%PATH%;c:\oracle\ora817\bin' );
UTL_FILE.PUT_LINE ( V_HANDLE_C, 'SET ORACLE_HOME=d:\oracle\ora817 ' );
UTL_FILE.PUT_LINE ( V_HANDLE_C,
'sqlldr userid=user/pwd@database control='
|| V_PATH
|| '\FACTURACAO.CTL log='
|| V_CAMINHO
|| '\LOG\log_'
|| V_FICH
|| '.LOG ' );
UTL_FILE.FCLOSE ( V_HANDLE_C );
/* Launch SQLLoader to import the file */
HOST ( V_PATH || '\FACTURACAO.CMD ');
The batch file appears to be correct and if we try to run it in the command prompt everything is executed correctly.

I have tried it.
It appears that sqlldr is called but nothing happens.
It works if I try to execute "cmd /c file.bat" from the command prompt.

Similar Messages

  • Calling report with parameter screen from form using frmrwinteg

    Hi,
         I am calling a report with a parameter screen from a form and am using the frmrwinteg bean. This works fine on our test application server but, when moved onto our production application server, the database logon screen is presented after pressing the submit button on the parameter screen. The cause of the problem seems to be the html generated to simulate the parameter screen. The html on the test application server contains a BASE tag in the HEAD section with an href starting "http:/servername.companyname.com". However, the same tag in the html generated on the production application server is missing the ".companyname.com", causing the cookie produced by the frmrwinteg bean to not be found. Does anyone know how the BASE href tag is generated and what I need to change to get the correct BASE href value? I am using Forms/Reports 10g R2 and Application Server 10.1.2.
    Cheers.....

    Appendix "A" of this document describes how cookie_domain works:
    http://otn.oracle.com/products/forms/pdf/10g/frmwebshowdoc_rep.pdf

  • Calling Serail/Lot block of Transactions form using zoom functionality

    Hello Everyone,
    I would like to call Serial/Lot Control block of Material Transactions form in Accounts Payables using zoom fucntionality. However the find screen of material transactions is displayed and not the serial/LOT block. Can any one help me in resolving the issue so that when zoom is clicked, it directly navigates to Serial/LOT block.
    Thank You,
    Srinivas

    Hi Srinivas;
    Please check:
    Sample CUSTOM Library Code To Customize Applications [ID 744065.1]
    Zoom Functionality Does Not Work In Lease Centre Form [ID 358917.1]
    ORDER MANAGEMENT SUITE - USAGE OF CUSTOM LIBRARY CUSTOM.pll [ID 438922.1]
    Oracle IPM Web Integration Troubleshooting Guide [ID 445663.1]
    Please also check this search, i belive you can find many helpul steps in this search
    http://www.google.com.tr/search?hl=tr&source=hp&q=custom+pll%2Bzoom+functionality&meta=&aq=f&oq=
    Hope it helps
    Regard
    Helios

  • RE:Using host built-in to use forms to open a report in MS-Excel

    Hello all!
    i'm using Developer/2000 and trying to run a report in MS-Excel instead of run_product eg.
    host('C:\Program Files\Microsoft Office\OFFICE11\excel.exe');
    This open excel but without the any records. What else do i need to add plz.
    Thnx in advance.

    so i tried this
    host('C:\Program Files\Microsoft Office\OFFICE11\excel.exe c:\vashrs\scr\fmb\mainpy.rep');
    and indeed the excel spreadsheet opened but not formatted like a normal excel file ie. not elligible. I got stuff like
    !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþ\á(h
    How can i make the report open like an excel file.
    Thnx so much in advance.

  • Host a custom form on E-Business Suite Forms Servlet

    Hi.
    Is it possible to host my own form using the Forms engine integrated with E-Business Suite?. is this a good idea? or do i have to setup another forms servlet?
    I'm trying it with one form with a menu. I just Copied the mmx files and fmx files where all the fmx files of EBS suite reside. or do i need to recompile it inside linux forms compiler (adadmin) using .pll plx, fmb files?
    I manually type the url "domainname.com:8000/dev60cgi/f60cgi?formname.mmx?user=username?password=password"
    where user, password = database user (not apps user)
    when i did this, it still launched the applet but still goes to the main form of EBS? and the custom form doesn't get called..
    regards,
    anton

    I think you can do it.
    Should look in appsweb.cfg configuration file. usaually in $COMMON_TOP/html/bin
    ; 1) Runform Arguments
    ; The module argument defines the first form to be started.
    ; It is composed from parameters %prodTop%/forms/%lang%/%formName%
    ; The default looks like $APPL_TOP/fnd/<version>/forms/US/FNDSCSGN
    ; Following parameters and prodTop are used for composing module.
    ; Note: Personal Home Page modifies the lang setting automatically.
    formName=FNDSCSGN
    lang=US
    Forms servlet is just a mechanism to start the f60webmx processes on the application server (which also has the Forms listener servlet). So you will not need a seperate servlet in your case.
    HTH
    Bansi

  • Host command in forms 10g

    hi all
    i am using host command in forms 10g. but it is not executing .
    is there any distinct syntax or pre-requirement for executing this command
    kindly help
    thanks

    i am using the following code create a text file in root directory.
    the textfile should contain the list of folders,files present in the root directory.
    XCMD:=NULL;
    XCMD:='CD\' ;
         CLIENT_HOST('CMD /C' || XCMD);
    XCMD:='dir >C:foldnm.txt' ;
         CLIENT_HOST('CMD /C '|| XCMD);
    but the file is creating in the specific users directory. ie.
    \ documents and settings\username\desktop
    kindly help

  • Calling SQL Loader from Forms 4.5 using HOST command in Win2000

    One of my forms calls SQL Loader 7.3 using HOST command to load a csv file onto the database(Oracle 7.3) under Windows 2000 platform.
    Only after sql loader finishes its operation the control should come to my form i.e. synchronous execution.
    As of now its running asynchronously.
    Is there any way to make it synchronous. If Not any other work arounds?
    Environment Details
    Forms [32 Bit] Version 4.5.10.6.0 (Production)
    Windows 2000 Operating System
    Oracle7 Release 7.3.2.3.2

    Forms6i running on W2000, Rdbms 8.1.7
    in Forms I added a button TEST,
    Trigger when-button-pressed : host('test.bat') ;
    in directory .......\frm I added file test.bat :
    REM ===============
    cd /d C:\........\ldr
    pause
    sqlldr parfile=test.par
    pause
    type test.log
    pause
    exit
    REM ================
    now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
    Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
    Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command.

  • Calling SQL Loader using HOST command from Developer Forms 4.5

    I want to execute a set of code from D2K Forms 4.5 which has interfface with Client - OS ( In my case Windows NT/XP). I want to execute SQL Loader from Forms using Host Command and then after completion of that process, I want to do next transcations ( depending upond success of HOST/SQL Loader).
    How to achive this?
    I tried writing code like this ...
    l_vc_command := 'sqlldr73'
                        ||' USERID='||l_vc_username||'/'||l_vc_password||'@'||l_vc_connect_string
                        ||' CONTROL='||l_vc_filepath||'Upload.ctl'
                        ||' DATA='||LTRIM(RTRIM(l_vc_fileloc))
                        ||' LOG='||l_vc_filepath|| l_vc_log_file || '_' || l_dt_sysdate_str ||'.log'                    
                        ||' BAD='||l_vc_filepath|| l_vc_bad_file || '_' || l_dt_sysdate_str ||'.bad'
                        ||' DISCARD='||l_vc_filepath|| l_vc_discard_file || '_' || l_dt_sysdate_str ||'.dsc';
    HOST(l_vc_command,NO_PROMPT);
    After this command i want to do some other code execution. so even if it fails or success, next code is executed. How to control this?
    Please help..
    Regards,
    Milind

    Forms6i running on W2000, Rdbms 8.1.7
    in Forms I added a button TEST,
    Trigger when-button-pressed : host('test.bat') ;
    in directory .......\frm I added file test.bat :
    REM ===============
    cd /d C:\........\ldr
    pause
    sqlldr parfile=test.par
    pause
    type test.log
    pause
    exit
    REM ================
    now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
    Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
    Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command.

  • How to use HOST call DOS continuous running problem but NOT hold Forms scre

    In my Forms, I have a Button a start a MP3 recorder program to record voice, I use HOST command to init the program successfully. However, since the MP3 recorder program in continuous running, the HOST command hold my Forms screen until the MP3 program stop.
    I have try to use Open_form to open another form to start this MP3 program. It still hold the whole Forms system.
    Is there any solution to start a continuous running DOS program but NOT hold the Forms screen?
    Thank You !

    You didn't provide your host-command, so i simply guess its something like
    HOST('"c:\Program Files\mp3.exe" someoptions');instead of calling the program directly, you could use a commadn batch along with the start-command, for this should launch the program asynchronously:
    HOST('cmd /c start "c:\Program Files\mp3.exe" someoptions');hope this helps.

  • Calling SQL Loader through Forms using webutils

    hi all,
    Can anyone tell me how can i call a sqlldr through forms 9i using webutils?Let me know if anyone have a sample script.
    Thanks
    Best Regards,
    Abrar
    [email protected]

    If your middle tier and database server are both unix boxes you could use host(rsh...)
    Are you suggesting webutil because your data to be loaded is on the PC ? If so you probably want to move it then load it as two seperate operations.
    If there isn't too much data you also have the option of using text_io to load it into a forms database block, which has the advantage that the user can see what is happening, and validation rules could be added if required.

  • Calling VB Executable using HOST to Slow....

    Hello Friends,
    I have one form containg one program unit, Program unit has one cursor,which contains Employee Id and Email Id, Based on Employee ID Report is generated in HTML Format.Next I am Calling VB Executable using HOST which Sends generated report through mail based on EmailId. I am passing Report File and EmailId using Command line arguments.
    But,It takes too much time to return back to Form from VB application ? It quickly exits VB applications but then it takes too much time to return back to Oracle Forms ?
    What can be the reason ?
    Adi

    There is a JNI forum, you may have better luck there.

  • When use host command to call discoverer

    hi all
    i am using the host command in forms 6i to call open
    the discoverer by command line . its fine and works well
    but the discoverer locks the screen and i cant work with both of them so i have to close the discoverer and i cant leave it open .
    can solve this problem ?

    Use API d2kwutil
    PROCEDURE proc_call_disc IS
    declare
    nm_command varchar2(10000);
    nm_user varchar2(20);
    pw_user varchar2(20);
    cn_user varchar2(20);
    BEGIN
    nm_user := get_application_property( username );
    pw_user := get_application_property( password );
    cn_user := get_application_property( connect_string );
    nm_command := 'dis4usr /connect ' || nm_user || '/' || pw_user || '@' || cn_user||' /opendb "owner.'||v_nome_bis||'" /sheet '||v_sheet||' '||string_parametros;
    win_api_shell.winexec(nm_command, WIN_API.SW_SHOWMAXIMIZED, false);
    END;

  • Calling VB Executable using HOST too Slow....

    Hello Friends,
    I have one form containg one program unit, Program unit has one cursor,which contains Employee Id and Email Id, Based on Employee ID Report is generated in HTML Format.Next I am Calling VB Executable using HOST which Sends generated report through mail based on EmailId. I am passing Report File and EmailId using Command line arguments.
    But,It takes too much time to return back to Form from VB application ? It quickly exits VB applications but then it takes too much time to return back to Oracle Forms ?
    What can be the reason ?
    Adi

    exactly, I think we were too impatient.
    It seemed working well after deleting half of snapshots, but just next day it occurred again.
    of course the system is maintaining snapshots just half of the original, but it became slow because unknown reason.
    we've tested something like following because we doubt that zpool was related to the too low performance.
    case 1 : 1 zpool, 1*500MB mkfile, 50*100MB mkfile at any time
    case 2 : 20 zpool, 1*500MB mkfile to ONE zpool, 2~3*100MB mkfile PER zpool at any time
    case 3 : 1 zpool, just 1*500MB mkfile
    in case 1 and 2, 'at any time' means that 100MB mkfile processes were maintained to restart when finished again and again.
    we estimated the time to write 500MB for each case.
    case 1 result : about 6 minutes
    case 2 result : about 16 minutes
    case 3 result : about 4 seconds
    in the case 1, the test was harder than our real-world situation, but it took only 6 minutes.
    our system log told us that writing about 1GB took more than 50 minutes!!!
    do anyone know why the tests above result like this?
    and our zfs performance is still problem.
    please reply anything about our situation.
    we'll of course test the ARC size. thank about this.
    thank you.

  • FRM-41213 When calling report from a form using RUN_REPORT_OBJECT

    Hi,
    I get an error frm-41214:unable to connect to the report server when i am trying to call a report from a form using RUN_REPORT_OBJECT.
    My code is as follows:
    I have created a simple report using employee table such tht when i give the department number as parameter it should get the corresponding details along with that i also have highlited the system parameters:
    DESFORMAT
    DESNAME
    DESTYPE
    also other user parameters as
    p_action
    p_servername
    p_user_connect
    and in the before parameter form trigger the following code:
    function BeforePForm return boolean is
    vc_parameter_form VARCHAR2(4000);
    vc_hidden_runtime_values VARCHAR2(1000);
    vc_report_name VARCHAR2(100);
    begin
    IF (:P_ACTION = '_action_') THEN
         vc_hidden_runtime_values := '_hidden_';
    ELSE
         srw.get_report_name(vc_report_name);
              vc_hidden_runtime_values:='report='||vc_report_name||'&destype='||:destype||'&desformat='
    ||:desformat||'&userid='||:p_user_connect||'&server='||:p_servername;
    END IF;
    vc_parameter_form:='<html><body bgcolor="#ffffff"><form method=post action="'
    ||:P_ACTION||'">'||'<input name="hidden_run_parameters" type=hidden value="'
    ||vc_hidden_runtime_values||'">'||'<center><p><table border=0 cellspacing=0 cellpadding=0><tr><td>'
    ||'<input type=submit></td><td width=15><td><input type=reset></td>'||'</tr></table><p><hr><p>';
                        srw.set_before_form_html(srw.text_escape,vc_parameter_form);
    return (TRUE);
    end;
    After this i created a form with department table as my datablock:
    I created a report object in the form with name REPORT6.
    -Created a procedure in the form with the following code
    PROCEDURE RUN_REPORT_OBJECT_PROC(report_id REPORT_OBJECT,reportserver VARCHAR2,runformat VARCHAR2) IS
    report_message VARCHAR2(100);
    rep_status VARCHAR2(100);
    vc_user_name VARCHAR2(100);
    vc_user_password VARCHAR2(100);
    vc_user_connect VARCHAR2(100);
    vc_connect VARCHAR2(300);
    BEGIN
    vc_user_name:=get_application_property(username);
    vc_user_password:=get_application_property(password);
    vc_user_connect:=get_application_property(connect_string);
    vc_connect:=vc_user_name||'/'||vc_user_password||'@'||vc_user_connect;
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,runformat);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,reportserver);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'p_deptno='
    ||:Dept.Deptno
    ||' paramform=yes P_USER_CONNECT='
    ||vc_connect||' P_SERVERNAME='||reportserver
    ||' P_ACTION=http://iitv-1:8888/reports/rwservlet?');
    report_message:=run_report_object(report_id);
    rep_status := report_object_status(report_message);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    rep_status := report_object_status(report_message);
    END LOOP /* Wait for Report to be finished */;
    IF rep_status='FINISHED' then
    web.show_document('http://iitv-1:8888/reports/rwservlet/getjobid'||
    substr(report_message,instr(report_message,'_',-1)+1)||'?server'
    ||reportserver,'_blank');
    ELSE
    message (rep_status||' Report output aborted');
    END IF;
    END;
    I created a press button and in the when_button_pressed trigger i added the following code:
    declare
         repid REPORT_OBJECT;
         repserver VARCHAR2(100);
         runformat VARCHAR2(10);
    BEGIN
         repid := find_report_object('REPORT6');
         repserver := 'rep_iitv-1';
         runformat := 'HTML';
         run_report_object_proc(repid,repserver,runformat);
         END;
    Then tried to run the form but i got this error frm-41213 unable to connect to the report server.
    Any one please help me.

    Run_report_object can't work with forms9i
    Regards
    Vikas Singhal

  • Use Host command in Oracle forms 6i

    hi
    all
    i use Oracle forms 6i i run in a web and in that i have connect one server so,
    i have to use Host Command and i have to fire this command
    host (' net use \\windchillsvr\e\jyotionline /user:dwg_users dwg_users');
    But it's Not Connect
    My Forms in run in Web
    so help

    JavaBean does d othe job for you but it requires signing process; I used it when I was working on forms6i for our project.
    I could use another approach that is the file type command executable which it stays in client's PC to do it and it does not requires signing at all since I am now working on the Java EE project for downloading and launching the third party tool in client's PC.
    I plan to write a article for forms use, which could do all the heavy WebUtil can do, but not need to go thru the signing process.

Maybe you are looking for

  • How to create a button in pdf to jump to a specific location and highlight it....?

    I have a problem in making a pdf-file interactive which I suspect will have to be solved by Javascript, but I don't know the exact solution. What I want to do is to be able to create a button on a page. Clicking this button will cause the pdf reader

  • Add money in cost center?

    Dear SAPIENTS, How can i ad money to any cost center? Please provide info in detail. Regards, Kaushal Rai

  • Opening a PDF file problems.

    I have Version 9 installed on my laptop and sometimes when I open a PDF file I get a message saying file is damaged and cannot be opened do I close it and try again and it will open. It does not matter if it isn a old file or a brand new one. Can any

  • Sql*net patch version 2.3.2.1.12 down load

    While I am migrating 7.3 database to 8i, system is asking for install sql net patch version 2.3.2.1.12. How can I get this patch. Is it possible to download. Thanks/Rgds Biju

  • Compile Errors when Generating Conditional Tag Help File

    Ok, here is a recap of everything I have done. I started over from scratch. Unzipped the Help File into C:\Users\edwinwood\Documents\My RoboHelp Projects\Adobe RoboHelp 9 folder. Went to the properties SSOL Help Development folder and unchecked read