Host Programs

Hi,
My client moves Oracle APPS from UNIX to NT.
There was some host programs (shell scripts) that is registered as concurrent programs and called by submitting a request through SRS.
Now how to go about the same program in NT?
Should I have to re-write them as a .bat file? and register them with APPS
Or is there any workaround?
Thanks in advance
Regards
Murugavel

You can make use tools which will help you run unix shell scripts under WindowsNT. This can avoid re-writing.
Couple of tools available are MKS Tool Kit and Cygwin.
-Jey

Similar Messages

  • Concurrent HOST program calling a proc to log using fnd_file.put_line

    Hello all,
    I have a concurrent HOST program that does 3 main things
    1. Calls a sqlplus program to do some initializing. This program is a proc in a package.
    2. Runs sqlldr to load data to custom tables.
    3. Calls a sqlplus program to do manipulate the data. This program is a proc in a package.
    In step 3 of above, the package procedue does a "submit_request" to call the "Supplier Open Interface Import". This
    request actually fires. However my problem is the subsequent call to fnd_file.put_line(fnd_file.log, 'Test message'), does not get logged
    to the log file of the HOST program, nor to the log file of the "Supplier Open Interfface Import" log file. A check
    of $APPLPTMP (or /usr/tmp) shows that a file of say " l0023761.tmp" contains my 'Test message' text.
    I believe the problem is that the put_line() call has no association with the HOST or the "Supplier Open Interface Import. How
    do I associate the logging to either program? Is it even possible? I want the logging, so as to see the progress
    of the HOST program.
    The sniippet of proc code is:
    PROCEDURE abc() IS
    BEGIN
    request_id:= FND_REQUEST.SUBMIT_REQUEST
    (Application => 'SQLAP'
    ,Program => 'APXSUIMP'
    ,Description => NULL
    ,Start_time => SYSDATE
    ,Sub_Request => FALSE
    ,Argument1 => 'ALL'
    ,Argument2 => 1000
    ,Argument3 => 'N'
    ,Argument4 => 'N'
    ,Argument5 => 'N'
    fnd_file.put_line (fnd_file.log,'Test message');
    COMMIT;
    END abc;
    Alex.

    Shell scripts are very hard to develop and maintain. Many things that developers previously had to do in shell scripts, developers can now do in PL/SQL. Hence, I recommend that you avoid shell scripts as much as possible.
    As well, SQL*Loader is an old, inflexible tool. Instead, define your OS file as an external table, and then extract from the external table using a normal select statement. http://www.orafaq.com/node/848 I recommend that you avoid SQL*Loader and use external tables instead.
    Using PL/SQL and external tables - and avoiding the shell script and SQL*Loader - a much better way to accomplish the same thing all inside one packaged procedure that is registered as a concurrent program:
    - initialize
    - select from the external table
    - manipulate the data

  • Need help writing host program using LabView.

    Need help writing host program using LabView.
    Hello,
    I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
    I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
    eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
    My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
    I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
    Any help would be appreciated.
    Regards, George
    George Dorian
    Sutter Instruments
    51 Digital DR.
    Novato, CA 94949
    USA
    [email protected]
    m
    (415) 883-0128
    FAX (415) 883-0572

    George may not answer you.  He hasn't been online here for almost eight years.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Hp pevilion :catylist host program is not working

    hi i am using a hp peavilion 15 e015tx with windows 8
    recently the radeon host program has stopped working....
    i have tried re installing the driver using hp recovory manager but it is of no use ...please help me

    Hello susaanth,
    Welcome to the HP Forums.
    I see that recently the radeon host program has stopped working correctly on your Notebook for the graphics. I will try to help you with this.
    As trying to recover the drivers with the recovery manager seems to have fail (if you could provide details on this it may help), also I would like you to try updating the drivers. Here is a link to the update: AMD High-Definition (HD) Graphics Driver.
    Please let me know if this was able to help you. Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Host Program to Compile DB Objects

    I'm trying to create a host program that will be able to compile a function/package/view or any type of database object through a host file.
    I have a table that stores the command based on the object type and it looks like this:
    sqlplus APPSPWD @FILE_NAME
    I relplace the FILE_NAME based on a profile and some other code using PL/SQL.
    This is fine and I then pass the following as an example to the program:
    sqlplus APPSPWD @/tmp/test.vw
    Because this is a host program i then substitute the APPSPWD and try to run the command.
    The problem is that the files so not have exit commands and the program ends in an infinite loop
    This is what my host program looks like and would love any feedback on how I could get this working.
    export APPSPWD=$1
    export APPS_USERID=$2
    export APPS_USERNAME=$3
    export APPS_CONCID=$4
    export COMPILE_COMMAND=$5
    echo "Compile Command:"$COMPILE_COMMAND
    COMPILE_COMMAND=`echo $COMPILE_COMMAND | sed 's!APPSPWD!'"$APPSPWD"'!' `
    echo "Compile Command:"$COMPILE_COMMAND
    echo "Compile"
    #echo `$COMPILE_COMMAND`
    `sh -c "$COMPILE_COMMAND" >> /tmp/$APPS_CONCID.tmp`

    Managed to fix this myself:
    >
    export APPSPWD=$1
    export APPS_USERID=$2
    export APPS_USERNAME=$3
    export APPS_CONCID=$4
    export OBJ_TYPE=$5
    export COMPILE_COMMAND=$6
    echo "Compile Type:"$OBJ_TYPE
    echo "Compile Command:"$COMPILE_COMMAND
    if [ "$OBJ_TYPE" = "DB" ]; then
    echo "Database Object being compiled with SQL*Plus"
    sqlplus $APPSPWD << EOF > $XDS_TOP/tmp/compile$APPS_CONCID.sh
    @$COMPILE_COMMAND;
    EOF
    cat $XDS_TOP/tmp/compile$APPS_CONCID.sh
    fi
    if [ "$OBJ_TYPE" = "APPL" ]; then
    echo "Application Object being compiled"
    echo "Compile Command:"$COMPILE_COMMAND
    fi

  • Report calling by host program

    Hi Friends,
    I have an issue with a report.
    I have a host file (.prog) which is registered as an executable and method as host.
    It calls the rdf file and change the output format into pdf (the original output is text in the Concurrent program registration) and mail the pdf as an attachment to the given mail id in the parameter.
    Now the requirement is that I have to create a BIP report using rtf template.
    I tried to extract XML from the report by changing the concurrent program output as XML but the report is executed as normal and mailed as an attachment.
    Help me guys
    In the shell script file the email is being sent using sendmail
    there are some changes in the rdf file.
    shall I need to create new prog file?
    or any changes to be made?
    Warm Regards.

    While you run any request in EBS, generally the out file is generated as $APPLCSF/$APPLOUT/o{REQUEST_ID}.out. But while you are searching for a BI Publisher report file, you need look for the following file:
    $APPLCSF/$APPLOUT/{REPORTNAME}_{REQUEST_ID}_{COUNT}.PDF|RTF|EXCEL|HTML
    - REPORTNAME is the concurrent program short name,
    - REQUEST_ID is the concurrent request ID
    - COUNT is a counter based on the number of times a request has been re-published.
    - One of PDF, RTF, EXCEL, HTML is the file extension/type dependent on the output formats chosen.
    Please refer Gareth's post for details
    [url http://garethroberts.blogspot.co.uk/2008/07/where-do-i-get-xml-file-or-request.html]Gareth Blog
    HTH
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

  • Simple client host program

    I have 3 classes:
    - A server
    - A client
    - A program which start a new server and a new client in seperate threads.
    I'm wondering why the client doesn't receive messages like "message", "hello", "knock knock".
    I'm also wondering whether the threads correctly terminate and whether my code is safe.
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.util.Scanner;
    public class Server {
         public Server() throws IOException {
              ServerSocket server = new ServerSocket(4321);
              System.out.println("Server created");
              Socket client = server.accept();
              System.out.println("Server: connected to " + client);
              Scanner in =  new Scanner(client.getInputStream());
              PrintWriter out = new PrintWriter(client.getOutputStream());
              while(true) {
                   System.out.println("sending messages");
                   out.println("message");
                   out.println("hello");
                   out.println("knock knock");
                   out.println("I love you");
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.net.Socket;
    import java.util.Scanner;
    public class TestClient {
         public TestClient() throws IOException {
              Scanner stdIn = new Scanner(System.in);
              Socket socket = new Socket("127.0.0.1", 4321); //
              System.out.println("Client created");
              Scanner in = new Scanner(socket.getInputStream());
              PrintWriter out = new PrintWriter(socket.getOutputStream());
              System.out.println("ready for input:");
              while (true) {
                   System.out.println("Enter exit to exit");
                   String message = stdIn.next();
                   if (message.equals("exit"))
                        break;
                   System.out.println("Client receives: " + in.nextLine());
              out.close();
              in.close();
              socket.close();
              System.out.println("Client: is closed");
    mport java.io.IOException;
    public class Runner {
         public static void main(String[] args) throws IOException{
              (new Thread() {
                   @Override
                   public void run() {
                        try {
                             new Server();
                        } catch (IOException e) {
                             System.err.println(e);
              }).start();
              (new Thread() {
                   @Override
                   public void run() {
                        try {
                             new TestClient();;
                        } catch (IOException e) {
                             System.err.println(e);
              }).start();
              System.out.println("Runner is done.");
    }It's current output says:
    Runner is done.
    Client created
    java.net.SocketException: Unrecognized Windows Sockets error: 2: JVM_Bind
    ready for input:
    Exception in thread "Thread-1" java.util.NoSuchElementException
         at java.util.Scanner.throwFor(Unknown Source)
         at java.util.Scanner.next(Unknown Source)
         at TestClient.<init>(TestClient.java:21)
         at Runner$2.run(Runner.java:21)

    Somelauw wrote:
    tschodt wrote:
    Somelauw wrote:
    If you want to use a PrintWriter, at least check for errors.I would rather get an exception raised giving me some information then a boolean telling me that there is something wrong.So don't use a PrintWriter.What should I use instead? I do want high-level stuff like println.You could use
    BufferedWriter
    [write(String)|http://java.sun.com/javase/6/docs/api/java/io/Writer.html#write%28java.lang.String%29]
    [newLine()|http://java.sun.com/javase/6/docs/api/java/io/BufferedWriter.html#newLine%28%29]
    >>
    I guess you think my client needs to rest for 99 milliseconds every cycle.I put that in after testing your code and noticing that the client telling me
    "Enter exit to exit"
    was scrolling up out of view by the server telling me
    "sending messages".If I comment out that line my code works.When using the code I suggested in [reply #1|http://forums.sun.com/thread.jspa?messageID=10891212#10891212] it becomes evident that the server goes though umpteen iterations of sending messages to the client.
    >>
    With that delay the last text on the screen is the client prompt.
    Should my server rest too?What do you think?I don't see a problem, but your question suggests I shouldn't.Was that an answer? If so, can you clarify
    as it is not clear what you think.

  • Help and Guidance required with host side programming

    Hi all,
    We have to connect the Java Card reader(+ Java Card!!) to an ARM powered embedded system running Debian Linux.
    Now basically we have to program the host program that will send APDUs to the card and receive responses from the card.
    This program has to be in C.
    I have been coding the Java Card bit on my Windows laptop and have been installing it using GPshell.
    I have the following card reader and card:
    a) SCR 3310 from SCM Microsystems - Smart Card reader
    b) Cyberflex Access 64 k v2c from Gemalto (formerly Axalto) - Java Card (Supports JC 2.1.1 and Global Platform 2.0.1)
    My question is as follows:
    At the moment to test my applet, I use the GPshell commands. Does GPshell work with Linux (powered by an ARM processor)
    I understand that Global Platform is a library and can be used to program the host side to communicate with the Smart card. Can this be compiled for Linux? I have no idea how I would do it for an ARM based system.
    I am very shaky about the host side part of things. Please shed as much light on this bit as possible - It will save me from a lot of heartburn later, trust me!
    Before I started working with JC, I was under the impression that once the connection with the card is setup, one just needs to send the APDU's (a la the JCWDE emulator) to communicate with the card. I had no clue that we use GPshell for that. So, basically if there is any other way that supports APDUs to and from the card that works for linux(I believe that PC/SC supports APDU's) that would do the trick and I guess what I do from GPshell on Windows, Id be able to do with that other way on Linux.
    Please Help.
    Much appreciated.
    Thanks a lot in advance.
    Cheers

    Hi,
    Firstly, does your host application need to be able to load and install applets or do you just need to communicate with a card that has your applet preloaded? The answer to this will help determine what you need on your Linux host.
    If you do not need to load applets, you can use pcsc-lite (this is the PC/SC port for Linux/Unix http://www.linuxnet.com/middle.html). This may already be included in your distribution or you can easily compile it from source. GPShell uses the GlobalPlatrform library that uses PC/SC to communicate with your card. If you aren't loading applets then you can skip the wrappers and use PC/SC directly.
    You were correct in your original assumption. When you have a connection to the card you just send APDU's. There are a number of ways to do this but they all eventually go through PC/SC. Most are just a wrapper that makes things more convenient (smartcardio) while others are just a language binding or wrapper (jpcsc). You do not need to use GPShell once you have an applet on your card. This is mostly used for creating scripts to load and sometimes personalise a card. I would not use this for any more than that. Since it sounds like an embedded Linux platform you should keep your host as light weight as possible and go directly with PC/SC.
    You could start working on your host application using PC/SC and could compile it for both windows and linux. You can look at the GlobalPlatform source to see how they did it (it is compilable for both and I have also compiled it for OS X). The only real problem from memory is the include path for pcsc headers.
    Cheers,
    Shane

  • How to call a host command/program within a PL/SQL Procedure OR Block

    Hello ,
    I want to call a host program (in my case it is unix shell program) from within a PL/SQL
    Procedure..Please let me know if you have a clue...Thanks a bunch...Ajeet

    Alternatively you could create a PL/SQL procedure that wraps a Java Runtime object.
    You can find an example of this in the Ask Tom column of Oracle Magazine. You can get there from OTN home page. Type "Java Runtime" into the Search Archive engine.
    HTH, APC

  • Call a host script from concurrent program without exposing APPS password?

    My understanding is as of now I need to link $FND_TOP/bin/fndcpesr in order to launch a unix script as concurrent program. This implies that there will be 4 standard input parameters when a certain unix script is called including oracle schema and password. As I see it now APPS password is provided to such scripts.
    Is there a way to execute a unix script from under 11i without exposing APPS password?

    Many thanks.
    Protecting Your Oracle User Password
    In some cases, there are security concerns with passing your Oracle username and
    password directly to your HOST program. If you do not want the concurrent manager
    to pass your username/password to your program, you can have the manager pass it as
    an environment variable instead. Or you can pass an Oracle Applications
    username/password for a user with the System Administrator responsibility.
    Alternatively, you can not pass it at all.
    First, define your concurrent program executable as a HOST program in the Concurrent
    Program Executable form.
    To have the username/password passed as an environment variable, enter the term
    'ENCRYPT' in the Execution Options field of the Concurrent Programs window when
    defining a concurrent program using this executable. 'ENCRYPT' signals the concurrent
    manager to pass the username/password in the environment variable fcp_login. The
    argument $1 is left blank.
    If you do not want the username/password passed to the program at all, enter
    +'SECURE' in the Execution Options field. The concurrent manager will not pass the+
    username/password to the program.

  • Shell program and XML Publisher E-Text Template

    Hi All,
    We have a customer submitting an rdf report through Shell script using the command line submission ar60run. This is being done in 11i.
    This rdf handles the File transmission with certain codes for the third party(same as E-Text templates in R12).
    Now, With BI Publisher can I use the Standalone CP of E-Text templates instead of Shell host program to submit the request.
    or Should I initiate the BI Publisher E-Text concurrent program through Shell Host Language.
    The Host program does not deal with any OS specific code.(Attached the Host program code for ref..,)
    Will there be any problem if I do not use the Host program to submit the BI Publisher E-Text Program.
    Code
    #!/usr/bin/ksh
    # $Header: ILSHINTF_HOST.prog 16/10/05 $
    # Last Update: 09/11/05 by Vadim Pasmanik
    # +=======================================================================+
    # Copyright (c) 2001 Oracle
    # All rights reserved.
    # +=======================================================================+
    #set -x
    OS_USER=$1
    AP_USER_ID=$2
    AP_USER=$3
    REQ_ID=$4
    P_LEVEL=$5
    P_SUPPLIER_TYPE=$6
    P_INACTIVE=$7
    P_SITE_USER_PAY=$8
    export NLS_LANG=American_America.IW8MSWIN1255
    unset XENVIRONMENT
    unset REPORTS60_PRINTER_CODE_BEFORE
    unset REPORTS60_PRINTER_CODE_AFTER
    #export TK_PRINTER=loc_printer
    #export REPORTS60_NO_DUMMY_PRINTER=false
    #TK_PRINT_STATUS="echo %n is valid"
    #export TK_PRINT_STATUS
    #env
    ar60run USERID=$OS_USER \
    P_CONC_REQUEST_ID=$REQ_ID \
    BATCH=YES \
    REPORT=$IL_LOC_TOP/reports/US/ILSHINTF \
    DESTYPE=FILE \
    MODE=CHARACTER \
    DESNAME=$APPLCSF/$APPLOUT/o$REQ_ID.out \
    DESFORMAT=$FND_TOP/reports/IL_DTSF \
    P_LEVEL="$P_LEVEL" \
    P_SUPPLIER_TYPE="$P_SUPPLIER_TYPE" \
    P_INACTIVE="$P_INACTIVE" \
    P_PAY_SITE="$P_SITE_USER_PAY"
    Thanks,
    Kiran.

    Hello Gurus,
    Just posting again... haven't received any reply...
    Request you to help me out.
    Thanks!

  • Using FPGA program to collect data for long time without 'gap'

    Our data collection system has a NI-PCIe 7852R card. We want to collect data at up to 10 KHz for up to 10 to 30 minutes. The data amount is too large so we have to separated them into multiple Array and save in multiple files. We do not want to loose data during the saving time. Anyone has idea on how to do it? We would appreciate your help.
    My current method:
    1 using FIFO memory, in FPGA program loop , write data from AIs to FIFO memory, after certain amount of data is written, say 2000 of it, asks a IRQ.
    2. In Host program loop, wait for IRQ, once the IRQ comes, read in FIFO data, do some processing, put the data into prelocated array, once the prelocated array is full, save it to the disk.
    So far the method is not working.
    1st, there seems never a IRQ, the wait for IRQ (invoke method) never took any time.
    2nd, the FIFO reading in the host program loop seems takes no less time than the FPGA program write same amount of data into FIFO...
    SO I have extra questions:
    1. Does the 7852R cards and its new FPGA still support IRQ?
    2. What is the reading speed of FIFO read in Host program? I thought it should be much faster than the FPGA program writing it....
    Any help will be propitiated.
    Thanks a lot

    Here is the FPGA program block
    Part of Host program block inside the loop
    Part of Running results.
       1. Some data is missing in every FIFO reading in Host program
       2. The FIFO reading in Host program takes more time than the AIs=> FIFO in the FIFO program
       3. Of cause each host loop takes more time than it takes FPGA program to get same amount of data...
    Attachments:
    FPGA_AI_block.png ‏48 KB
    HOST_AI_inloop_block.png ‏31 KB
    Running result.png ‏124 KB

  • I need a more efficient method of transferin​g data from RT in a FP2010 to the host.

    I am currently using LV6.1.
    My host program is currently using Datasocket to read and write data to and from a Field Point 2010 system. My controls and indicators are defined as datasockets. In FP I have an RT loop talking to a communication loop using RT-FIFO's. The communication loop is using Publish to send and receive via the Datasocket indicators and controls in the host program. I am running out of bandwidth in getting data to and from the host and there is not very much data. The RT program includes 2 PID's and 2 filters. There are 10 floats going to the Host and 10 floats coming back from the Host. The desired Time Critical Loop time is 20ms. The actual loop time is about 14ms. Data is moving back and forth between Host and FP several times a second without regularity(not a problem). If I add a couple more floats each direction, the communications goes to once every several seconds(too slow).
    Is there a more efficient method of transfering data back and forth between the Host and the FP system?
    Will LV8 provide faster communications between the host and the FP system? I may have the option of moving up.
    Thanks,
    Chris

    Chris, 
    Sounds like you might be maxing out the CPU on the Fieldpoint.
    Datasocket is considered a pretty slow method of moving data between hosts and targets as it has quite a bit of overhead assosciated with it.  There are several things you could do. One, instead of using a datasocket for each float you want to transfer (which I assume you are doing), try using an array of floats and use just one datasocket transfer for the whole array.  This is often quite a bit faster than calling a publish VI for many different variables.
    Also, as Xu mentioned, using a raw TCP connection would be the fastest way to move data.  I would recommend taking a look at the TCP examples that ship with LabVIEW to see how to effectively use these. 
    LabVIEW 8 introduced the shared variable, which when network enabled, makes data transfer very simple and is quite a bit faster than a comparable datasocket transfer.  While faster than datasocket, they are still slower than just flat out using a raw TCP connection, but they are much more flexible.  Also, the shared variables can fucntion in the RT fifo capacity and clean up your diagram quite a bit (while maintaining the RT fifo functionality).
    Hope this helps.
    --Paul Mandeltort
    Automotive and Industrial Communications Product Marketing

  • SQL*Loader-128:  Error in Concurrent program of type SQL* Loader

    Hi,
    Am facing below error with CP of SQL*Loader execution format. Both Control and data files are placed under bin directory under CUSTOM TOP.
    CP doesnt have any parameter. I believe we dont need to pass login details to a CP. So how can we default the DB Login to SQL Loader in CP?
    Appreciate your quick help.
    SQL*Loader-128: unable to begin a session
    ORA-01017: invalid username/password; logon denied
    SQL*Loader: Release 10.1.0.5.0 - Production on Wed Dec 14 02:03:59 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL*Loader-128: unable to begin a session
    ORA-01017: invalid username/password; logon denied
    Program exited with status 1
    Concurrent Manager encountered an error while running SQL*Loader for your concurrent request 1040692.
    Review your concurrent request log file for more detailed information.
    Here the Control and Data file for the same.
    Control file:
    LOAD DATA
    INFILE 'XXX_Customer_Master.dat'
    BADFILE 'Customer_bad.bad'
    DISCARDFILE 'Customer_discard.bsc'
    APPEND
    INTO TABLE XXX_AR_CUSTOMERS_INT FIELDS TERMINATED BY "|" OPTIONALLY ENCLOSED BY '"'
    ORIG_SYSTEM_PARENT_REF ,
    ORIG_SYSTEM_CUSTOMER_REF,
    CUSTOMER_NAME,
    CUSTOMER_NAME_PHONETIC,
    COUNTRY,
    STATE,
    CITY,
    ADDRESS1,
    POSTAL_CODE,
    RECORD_NUMBER          SEQUENCE(MAX, 1),          
    CREATED_BY                CONSTANT -1,
    CREATION_DATE           CONSTANT SYSDATE,
    CUSTOMER_TYPE          CONSTANT 'R',
    INSERT_UPDATE_FLAG           CONSTANT 'I',
    LAST_UPDATE_DATE           CONSTANT SYSDATE,
    LAST_UPDATE_LOGIN          CONSTANT -1,
    LAST_UPDATED_BY          CONSTANT -1,
    ORG_ID               CONSTANT 102,
    PRIMARY_SITE_USE_FLAG     CONSTANT 'Y',
    SITE_USE_CODE          CONSTANT 'BILL_TO'
    *Data file:*
    'XXX_Customer_Master.dat'
    50|792086|Test Customer |Test Customer |759843055|Australia|VIC|MELBOURNE|"Level 4 457 St Kilda Road"|3004
    59|792232|Test Customer |Test Customer |751756404|Australia|ACT|Tuggeranong|PO Box 1035|2901

    Do we have to create soft link like we create for host program directory ?How to Register a Host Concurrent Program in Applications [ID 156636.1]
    How To Create A Custom Concurrent Program With Host Method and Pass Parameters To The Shell Script [ID 266268.1]
    How To Setup A Custom Concurrent Host Program [ID 147455.1]
    Also, please see (How to Use 9i or 10g Features in SQL*Loader for Apps? [ID 423035.1]).
    Thanks,
    Hussein

  • Executing Stored procedure from host file

    Hi all,
    I am trying to execute a procedure from a host file.I don't know where I am doing wrong but the procedure is not executing.
    #!/bin/bash
    echo "*********************** Initializing Global Variables ***********************"
    export CONNECT_STRING=$1
    export START_TIME=`date +%m/%d/%Y:%H%M`
    #export DATE_FROM=`date +%m/%d/%Y:%H%M`
    #export DATE_TO=`date +%m/%d/%Y:%H%M`
    DATE_FROM=$5
    DATE_TO=$6
    sqlplus -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S -S ${CONNECT_STRING} <<EOF
        WHENEVER SQLERROR EXIT FAILURE
        set echo off
        execute xxjy_extract_ar_transactions.main_preinterface('$DATE_FROM','$DATE_TO');
    EOF
    echo "From Date is $DATE_FROM"
    echo "To Date is $DATE_TO" In my log i can see the From Date is 1-Jan-2013 and To date is 28-Feb-2013 which are my input parameters to concurrent program.But I don't understand why my procedure is not getting called.
    Please advice.
    Thanks,
    Sandeep

    Please post the details of the application release, database version and OS.
    Is the issue with this specific host concurrent program?
    Did you follow the steps in these docs?
    How to Register a Host Concurrent Program in Applications [ID 156636.1]
    How To Create A Custom Concurrent Program With Host Method and Pass Parameters To The Shell Script [ID 266268.1]
    How Do You Run A Unix Host Script From Concurrent Managers On MS Windows Platform? [ID 412392.1]
    How To Setup A Custom Concurrent Host Program [ID 147455.1]What is the reason of using more than one "-S" in the sqlplus command?
    Please enable trace and generate the TKPROF file to find out what is happening when you kick off this concurrent program?
    FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
    How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]
    Thanks,
    Hussein

Maybe you are looking for