Symlink for Shell Script in concurrent programs

Hi all

Suppose we have a simultaneous program to host type. Now, we need to make changes in the Shell Script for the new requirement.

Kindly asking you to confirm if we need to create the symbolic link .prog new file or existing link will work perfectly.

Kind regards

Amit

Hi Amit,

You do not have to re - create the soft link will work perfectly. I've tested and works.

Kind regards

Neeraj.

Tags: Oracle Applications

Similar Questions

  • import program does not process customized when you use the shell script

    Hello

    I have the pkg in that

    PROC1 without leaving param in this procedure, I call you created proc2 import and program

    Now, I call this proc1 in the shell script, here my flat program to import does not work

    Why? and I try to use CONSCUB on proc1 using 2 output param which is errbuf, retcode in the newspaper, I'm "wrong number of arguments"

    Please help me?

    Thank you

    Renon,

    Proc1 is your first program at the same time, right?

    How many parameters is defined for that?

    You can paste a screenshot of the window parameter?

    If there is no parameter, just use this:

    $FND_TOP/bin/CONCSUB $LOGIN SQLAP 'Accounts payable Manager' WAIT ' rajesh' = N SIMULTANEOUS SQLAP PROC1

    Assuming that "Renon" is a username of fnd and the program is set in the Application of accounts payable.

    See you soon

    AJ

  • Calling shell script program SQL and passing parameters

    Hi guys,.
    Greetings from Toronto. Is it possible to move one or more strings as parameters to a sql from shell script program?

    Shell script
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
     
    sqlplus.exe -s $p_user_id @$RD_PATH/rd_test.sql $p_user_id $p_job_id
    SQL program (rd_test.sql)
    -- Accept system input parameters
    define p_user_id = &1
    define p_job_id = &2
    
    -- Wondering if its possible to pass these 3 parameters from a shell script program.
    -- (1) rd_test-$p_job_id-3-1.lis
    -- (2) RD_PRINTER(rd_test,3)
    -- (3) t_data
    
    select
    t_data=''rd_test-'||'''$p_job_id'''||'-1-1.txt''
    t_data_dir=''.''
    ksh $RD_PATH/another_shell_prog.sh $p_user_id $p_job_id '||a.rd_value||' '
    ||b.rd_value||' rd_test-$p_job_id-3-1.lis $RD_PRINTER(rd_test,3) '||
    '$t_data $t_data_dir'||'
    exit_status=$?
    check_command'
    from rd_job_parameter b, rd_job_parameter a
    where a.job_id = &2
    and a.jp_module_id = 'RDTEST'
    and b.job_id = a.job_id
    and b.module_id = a.module_id
    /
    As always, this is not something I have to solve that minute. Any help would be appreciated
    and I will think of the problem.

    Thank you
    REDA

    Published by: Raj404261 on June 25, 2009 11:40

    Published by: Raj404261 on June 25, 2009 17:29

    OK, just a few pointers possible if you need to go the way of shell script.

    I suggest that you have a separate SQL script for each of your options, which retains the fairly well-defined lines and keeps the maintenance as simple as possible. Therefore, in your shell script, you can have something like:

    #!/bin/ksh
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
    
    # Deduce which script you'll call here
    # using if statements, or even a case:
    
    if [[ p_job_id -eq 1 ]]
    then
      SQL_SCRIPT=sql_script1.sql
    else
      SQL_SCRIPT=sql_script2.sql
    fi
    
    # Or using case
    
    case $2
      in
        1)     SQL_SCRIPT=sql_script1.sql;
    
        2)     SQL_SCRIPT=sql_script2.sql;
    
        3)     SQL_SCRIPT=sql_script3.sql;
    
        *)     SQL_SCRIPT=sql_script4.sql;
    esac
    
    export ${SQL_SCRIPT}
    
    #If you need to query the database at all to deduce which script to cal
    #Then something like this:
    
    SCRIPT_VAR=`sqlplus -s username/password << EOF
    set heading off
    set feedback off
    set verify off
    SELECT * FROM DUAL;
    EOF`
    
    export {SCRIPT_VAR}
    
    SQL_SCRIPT=sql_script${SCRIPT_VAR}.sql
    
    # Then just call your script:
    sqlplus. -s $p_user_id/password @${SQL_SCRIPT}
    
  • Help needed in shell for running scripts

    Hi all

    I am trying to create a shell script for my odi interfaces this and Control M is used to plan my work... Please let me know if you write correctly

    ===============================================

    #! / u/wlss/user_projects/Domain/basedomains/bin - this line is not correct? I'm trying to define the path to the domain/bin where it can be found startscen

    "' startscen.sh '-INSTANCE = OracleDIAgent1 '. 001 GLOBAL '-SESSION_NAME = RUN1" "-AGENT_URL = . http://localhost:20910 / oraclediagent "

    ===============================================

    Please notify

    Concerning

    ASP.

    Or the other of these approaches should work but 2, make sure that the path is /u/wlss/user_projects/domain/basedomains/bin/startscen.sh

  • using DBFS file system for request shell scripts

    Guy
    We use DBFS application shell scripts using Korn shell scripts. The default shell for use is/bin/ksh

    Exadata = X 2-2
    version = 11.2.2.2.1 BP4
    Version Oracle = 11.2.0.2

    WARNING: incorrect syntax, perhaps a fake '-'? See /usr/share/doc/procps-3.2.7/FAQ
    -ksh: xxx.ksh: xxx.ksh: cannot run [bad address]

    When you run as

    ksh xxx.ksh it works fine

    Thank you

    MOS 1054431.1 also discusses this:

    "DBFS filesystems can always hold files of shell script or binary file, but if it is mounted with the direct_io option, files on DBFS is not executable. In this case, a second file DBFS system may be used because it can be mounted without the option direct_io to support executable files or scripts. »

  • Can we not run 2 programs of sqlplus in shell script?

    Hello

    I have 2 coil programs that must be called from a shell script.

    When I try to do, only the first reel program works but not the other. Is their any reason?

    #! / usr/bin/bash
    ORACLE_HOME=/Oracle10g/product/10.2.0/Client_1
    Export ORACLE_HOME

    sqlplus-s abcdata/daddy@DevOra < lit_fac.sh > output.log 2 > & 1
    sqlplus-s abcdata/daddy@DevOra < lit_fac_cat.sh. output_cat.log 2 > & 1

    output

    How to run 2 scripts containing select questions each of sqlplus in another shell script?

    Thanks in advance...

    Without trying the script, the second line

    sqlplus -s abcdata/daddy@DevOra < lit_fac_cat.sh . output_cat.log 2>&1 
    

    seems to have a typo and should probably be:

    sqlplus -s abcdata/daddy@DevOra < lit_fac_cat.sh > output_cat.log 2>&1 
    

    -Andy

  • Waiting for a concurrent program

    We need to make a report of Bi Publisher in the accounts receivable module.
    But this report of BI Publisher should wait for the concurrent program answered at the end.

    How should I wait for the concurrent program finish in BI publisher?

    From your standard program is intended first of all it would be picked up by CP before your program customized.
    Incompatible Definig is more than enough to make sure that your report is going to get fired after standard report.

    Prasanna-

  • shell script for oracle alert.log file

    Hi gurus,

    I want to write the shell script to know the last timing 10 stop of the database of the alerts log file. I'm working on oracle 9i.

    Could someone please advice on that.

    Thanks in advance

    Kind regards
    Shaan

    Published by: Shaan_dmp on January 5, 2009 13:27

    Published by: Shaan_dmp on January 5, 2009 13:28

    Use awk. I have not at hand a 9i but here is a very simple version for 10g XE

    My awk file (line numbers for the notes below - don't include them):

    01:BEGIN { prevline = "";} 02:03:/Completed: alter database close/ {print prevline,FS,$0;}04:05:{prevline = $0;}
    

    The command line and the results (from my alert log 300 k)

    $ awk -f alert.awk.txt alert_xe.logFri Apr 11 18:08:40 2008   Completed: alter database close normalFri May 16 18:53:21 2008   Completed: alter database close normalTue May 20 17:28:23 2008   Completed: alter database close normalThu Jul 17 19:08:52 2008   Completed: alter database close normalFri Aug 15 15:12:48 2008   Completed: alter database close normalWed Nov 05 08:52:59 2008   Completed: alter database close normalFri Nov 14 16:36:03 2008   Completed: alter database close normalTue Dec 09 10:46:23 2008   Completed: alter database close normalMon Jan 05 11:12:22 2009   Completed: alter database close normal
    

    What it means:

    (1) section START line 01 defines the variable to contain the previous line
    (2) the /search chain / line 03 search marker in the file for a stop, and then performs the requested action (print the time that was in the previous line and then this line; use FS (the field to the awk - space normally separator) as a separator
    (3) on line 05 is a statement that we do on each line - is remembered in case it is the timestamp for the closure.

    Now, you can include several cases corner for closures by adding several models of research etc. For more information, google for examples of awk.

    AWK is really good at this sort of thing!

    HTH

    Nigel cordially

  • Generate output XML for a PL/SQL stored procedure concurrent program (EBS).

    Hello

    I trying to generate XML output for a simultaneous PL/SQL program and then use it as a model for BEEP.
    Program PL/SQL for a report consist of sliders/queries and other calculations of output data.
    Program (report) made up of topics, couple of col. values of one or more tables DB and rest of the columns are values read from DB colonel and calculated. The length of the neck extends up to 280 characters.

    All out - put is shown using fnd_file.put_line (fnd_file.ouput,...);
    before first fnd_file statement, included the following stmt.
    fnd_file.put_line (fnd_file.output,' <? xml version = "1.0" encoding = "UTF - 8"? > ');

    Using demand conc., notice ouptut poster error...
    The XML page cannot be displayed
    Invalid at the top level of the document. Error during processing of the resources ' http://ohcol0ws023.amp-ohio.org:8004/OA_CGI/FNDWRR.exe...
    <? XML version = "1.0" encoding = "UTF-8"? >

    I tried to add tags in the rest of the fnd_file.put_line stmts. as
    fnd_file.put_line (fnd_file.output, '< Heading1 >' |) 'Report name ' | (/ head2 > '); etc.

    View output shows the same error message.

    PL. advise how go further or tell me the link, if it's already been answered earlier.

    Thank you
    Prak

    Copy the file from $APPLCSF / $APPLOUT to your customer and try to open it. Find out what's wrong with the code XML, for example, you may need to top level element:

    Write to me if you can't get by - see my profile.

    Kind regards
    Gareth

  • extra in the generated text file spaces of concurrent program

    Hello
    We are production textfile of concurrent program with the sql method * more and that the complaint is,.

    set pagesize 0

    prompt ACCOUNT_ID CUSTNAME INVOICE_ID CONTRACT_ID INVOICESTARTDT ITEMTOTALSERVICES
    Select invoicetracking.account_id. Chr (9) |
    invoicetracking.custName | Chr (9) |
    invoicetracking.invoice_id | Chr (9) |
    invoicetracking.order_id | Chr (9) |
    TO_CHAR (invoicetracking.invoicestartdt, "mm/dd/yyyy '"). Chr (9) |
    Sum (invoiceitems.itemtotal) itemtotalservices
    OF INVOICETRACKING, INVOICECUSTDATA, INVOICEITEMS
    where INVOICETRACKING. INVOICE_ID = INVOICECUSTDATA. INVOICE_ID
    and INVOICETRACKING. INVOICE_ID = INVOICEITEMS. INVOICE_ID
    and INVOICETRACKING. INVOICE_ID as to_char (to_date ('& 1', 'MON-DD-YYYY'), "YYMM"). '%'
    - and INVOICETRACKING. INVOICE_ID as 0309 ' %'
    AND (INVOICEITEMS. STATUS <>0 or status is null)
    AND INVOICETRACKING. DOINVOICE = 1
    AND INVOICEITEMS. ITEMTOTAL <>0
    and (INVOICETRACKING. DELIVERY <>"company 15' or INVOICETRACKING. The DELIVERY is zero)
    AND (INVOICETRACKING. CREDIT_FLG <>1 or INVOICETRACKING. CREDIT_FLG is Null)
    Invoicetracking.custname group,
    invoicetracking.account_ID,
    invoicetracking.invoice_id,
    invoicetracking.order_id,
    TO_CHAR (invoicetracking.invoicestartdt, "mm/dd/yyyy")
    order of upper (invoicetracking.custname)
    ;

    We recorded conc program like sql * more and generate the text and sending file to the remote directory using shell script.
    previously, we used to run this query in Toad and save as TAB delimited text and send to remote directory manually.
    recently, we have this automated using shell script.


    The problem is when the user checks it says the new files is different from old file generated manually.
    It opened in Notepad the file generated text recently and that generated manually into another notebook and uses the format-> wordrap

    If he uses wordrap in the new file after that some gap of a single line of lines is coming so he says that some additional special characters are at - it something like that.
    without option of wordrap the two are identical.

    Can someone tell me is this query generates the output with spaces at the end of the line.

    Add a

    Set trimspool on

    to account for that

  • Need an example of loop with sql statement in shell script values

    Hello

    I have to present a simultaneous program to each line of the table through script shell (only).

    The table has all the parameters required to pass to the concurrent program.

    I have trouble in a loop with the lines of sql statement results.

    Could someone give me an example of a shell script with a loop with the sql statement values.

    appreciate your time and your help.

    Thank you

    Ganesh

    Hello

    Here is a guide using 3 parameters:

    {

    sqlplus-s $OA_USR / $OA_PWD<>

    SET THE OFF POSITION;

    SET FEEDBACK OFF;

    SET LINESIZE 300;

    SELECT param1, param2, param3

    Of your_param_table;

    ENDOFSQL

    } | while reading line

    do

    If ['$line'] # line non-NULL

    then

    set $line

    param1 = "$1."

    param2 = "$2."

    param3 = "$3."

    # Pass parameters to a script, sql more

    sqlplus-s $apps_usr / $apps_pwd @SUBMIT_CONC_PROG.sql $param1 $param2 $param3

    FI

    fact

    }

    In your SQL * more script you run 3 parameters into variables:

    declare

    VARCHAR2 (10) param1: = ' & &1';

    VARCHAR2 (10) param2: = ' & &2';

    param3 varchar2 (10): = ' & &3';

    .....

  • OEDQ 9.0.8 - external task - execution of Shell Script

    Hello Disqualification Experts.

    I am looking for your expert advise on this... With the help of the external task I am able to call the .bat (batchfiles) but I'm not able to run .ksh (UNIX shell script file), attached is the example script I am trying to run via the external task.

    File name: testfile.ksh

    #! / usr/bin/ksh

    Set - x

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqd < < EOF

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_OWN', 'ABC_TABLE');

    COMMIT;

    quit smoking;

    EXPRESSIONS OF FOLKLORE

    output

    Disqualification-> Manager-> External tasks-> Creates a new task called TestTask who has the below...

    Command: testfile.ksh

    Working directory: \opt\local\software\edq\config\commandarea

    Get this error Message:

    The external task (Execute testfile.ksh) failed because of the following exception: cannot run program "/ opt/local/software/edq/config/commandarea/testfile.ksh": error = 2. No such file or directory

    Thanks in advance!

    BG

    Dear Richard, thank you for your prompt response.

    # / bin/bash helped and I also have to export the ORACLE_HOME in the script, somehow the $ORACLE_HOME is not recognized by the external task.

    Example of Script working:

    #! / bin/bash

    export ORACLE_HOME=/ora02/oracle/product/11.2.0.4/client

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqdev<>

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_SCHEMA', 'ABC_TABLE');

    COMMIT;

    QUIT SMOKING;

    EXPRESSIONS OF FOLKLORE

    output

    Thanks for your help!

    BG

  • Get PLSQL stored procedure in unix shell script

    Hi Experts,

    I have a PLsql procedure with the specification below-

    PROCEDURE SEND_INV_VIA_EMAIL (p_pdf_file_name IN VARCHAR2, p_submitted_frm IN VARCHAR2);

    I can pass two parameters of SHELL script and it works fine-

    # By calling the PLSQL procedure

    sqlplus-s $APPS_USER < < EOSQL

    SET SERVEROUTPUT SIZE 1000000

    whenever sqlerror exit 1;

    run MOB_XMLPUB_ARCHIVE_ARINV_PCK.send_inv_via_email ("basename $DATA_FILE", "ARCHIVE");

    "exit";

    EOSQL

    But now I want to have an output in the plsql procedure parameter-

    PROCEDURE SEND_INV_VIA_EMAIL (p_pdf_file_name IN VARCHAR2, p_submitted_frm IN VARCHAR2, p_return_status IN OUT VARCHAR2);

    based on this I want to determine the concurrent request completion status since the shell script is called via the simultaneous program.

    How will pass parameter out of the shell and how do I use this parameter in the SHELL script to determine completion status?

    Thank you very much.

    Vikrant

    Something like this:

    # By calling the PLSQL procedure
    sqlplus-s $APPS_USER<>
    SET SERVEROUTPUT SIZE 1000000
    whenever sqlerror exit 1;
    declare
    rstatus varchar2 (100) - or however long, it must be
    Start
    MOB_XMLPUB_ARCHIVE_ARINV_PCK.send_inv_via_email ("basename $DATA_FILE", 'ARCHIVE', rstatus);
    dbms_output.put_line (' status = ' | rstatus);
    end;
    /
    "exit";
    EOSQL
    grep 'Return status =' somefile

  • Call the PL/SQL shell script

    Hi all

    I've seen several links and options for calling a PL/SQL shell script. I was wondering if there is something like DBMS_SCHEDULER. CREATE_PROGRAM-> executable that calls an external program in 11 GR 2.

    Here's what I have to. I have 11 GR 2 database with Dataguard. I have START triggering who begins a DBMS_SERVICE when the role becomes PRIMARY. In the same instance, I would stop the VIP on the former primary database and start the VIP on the new primary database.

    Thanks for the advice and assistance.

    Jan S.

    The URL below links to ask Tom. Inside, he talks about creating a Java procedure in your database that allows you to execute commands from the host OS (PL/SQL calls the proc of Java that runs the host command). There are several ways to run the OS commands, but this one is very flexible. I needed to use it for a task that I have who didn't fit one of the other methods very well.

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:no:P11_QUESTION_ID:3069633370832

  • Location of concurrent programs seeded scenarios

    Hello

    It is a general question.

    I want to know the location of the scripts for concurrent programs seeded as active users, stats diagram collect concurrent programs...

    Thanks in advance.

    It is a general question.

    I want to know the location of the scripts for concurrent programs seeded as active users, stats diagram collect concurrent programs...

    It depends on the type of report - Oracle does not provide the source code for all concurrent programs.

    For example, the executable 'Active users' method is "Oracle Reports" and you can find it under $FND_TOP/reports / Directory - place you (responsibility of the system administrator > simultaneous > program > define, then ask the simultaneous program name to get the name of the executable file (FNDSCURS) and you can find the report FNDSCARU.rdf in $FND_TOP/reports / Directory.)

    For having engineered concurrent programs, please visit https://forums.oracle.com/forums/search.jspa?threadID=&q=Spawned+AND+Source&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001

    For the other types (such as Java), you can search the forum just the way that I did for concurrent programs laid.

    Thank you
    Hussein

Maybe you are looking for

  • In FF Extensions's why uninstall shaded for Realplayer and Skype

    When I try to uninstall the Plugin Realplayer browser Record and the Skype Extension for FF, the uninstall is greyed out - can I disable only.Why is this? I would rather uninstall them completely.

  • Integration of UCCX EXCEL/CSV

    Hello My client asked to integrate the UCCX with MS-Excel or CSV. They ask that if some clients call him CAD must be completed with the customer's name and other information in excel. Can anyone advise if this is possible.

  • reset the BIOS on HP g62, when I put in three wrong password I just with code 89283831

    Can someone help me? I am trying to reset the bios on a G62 password when I put in three wrong password I just with code 89283831

  • USB Microphone setting

    Suppose I have a USB microphone, with technical specifications, 16-bit, 48 kHz. Now, when I change the setting in the Audio hardware preferences, selecting anything other than 48K of the questions? Futher when you save an audio file, can I save it to

  • Creating a single multi-page PDF file turns out to be... hard...

    Hello world!  We are a small company and we try to do our monthly billing.  We have four distinct (empty) State Agency bills that we contract, and we got them all filled out and ready to save as PDF.We want to create a single PDF file that includes a