How to run scripts of sql

Hi
how run sql scripts for example see below,
For Release 12+, i2471362.sql is delivered with the release with version 120.0
The module can be found in $INV_TOP/patch/115/sql
Run i2471362.sql periodically to clean-up orphaned rows in the MTL_DEMAND and MTL_RESERVATIONS tables.
any idea
thanks

Hi,
As applmgr/oracle user, login to SQL*Plus (as APPS user) and run the script.
$ sqlplus apps/<apps password>
SQL> @i2471362.sqlStandard Cleanup Scripts for INVDVDSD - SUPPLY/DEMAND in 11.5.10.2, 12.0 and 12.1 [ID 372170.1]
11i/R12: Clean Up Scripts - Inventory Reservations Not Relieved for Closed Sales Orders [ID 199887.1]
MRPRPROP - Reorder Point Report Shows Incorrect Data In Open Demand Qty [ID 300260.1]
Thanks,
Hussein

Similar Messages

  • How to run script .sql

    Hi
    eBS
    DB: 11.1.7
    APS: R12.1.2
    Does anyone who can guide me how to run script for .sql
    I need command on how to execute this |
    Run the script poxrespo.sql in the PO_TOP/sql directory
    Thanks

    Does anyone who can guide me how to run script for .sql
    I need command on how to execute this |
    Run the script poxrespo.sql in the PO_TOP/sql directoryConnect as apps user to SQL*Plus as run the script.
    Make sure COMMIT is issued -- Release Notifications Error - ORA-20002 2018 Unable To Generate The Notification Content [ID 342734.1
    Thanks,
    Hussein                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to run script file ( unix script file like ksh or sh file) using Java

    How to run script file ( unix script file like ksh or sh file) using Java Program?.
    I am using the following code snippet to run the simple commands like top or ls ,etc....
    Runtime runtime = Runtime.getRuntime();
    Process proc = runtime.exec("top");
    Thanks In Adavance
    -Siva

    String [] { "ksh" , "-c" , "script", "arg 1", "arg 2", "arg 3"}

  • How to run scripts ?

    I would like to know how to run scripts with xgrid.
    From the Xgrid Admin manual, page 37, I created a file and added
    !#/bin/sh
    /bin/echo "Hello, World!"
    saved the file, and gave chmod 755 hello.sh
    When I run at the command line, "Hello, World" is displayed. But as Apple mentioned in the same page of the manual, I did this at the command line
    xgrid -h localhost -p mypassword job submit hello.sh
    Job id is displayed. Say it is 67.
    I could see in the Admin interface that job is sumbitted and running. After finishing, at the command line I did a
    xgrid -h localhost -p mypassword job results -id 67
    Nothing is displayed. Am I doing right or missing something ?
    Appreciate any help.

    A little comment: add to your bashrc file (in /etc/)
    export XGRIDCONTROLLERHOSTNAME=yourcontroller
    export XGRIDCONTROLLERPASSWORD=yourpass
    so that you don't need to use -h and -p options all the time.
    Am I wrong or shouldn't your commands be -job (notice the dash before job)?
    I suppose because otherwise you would get a help page. Also, I suppose your beggining of file is #! instead of the inverse...
    Did you try using run instead of submit? You should see the output right away.
    What is the status of the job in Xgrid Admin? What happens if you use -so to direct the output to some file?

  • How to run script file Oracle XE?

    Hi there,
    I'm new here. I've just started on a tutorial (i.e. ADF) and it requires me to run a script, i.e.
    SQLPLUS>Start <tutorial_install>\scripts\build.sql
    How do I run this in Oracle XE?
    The content of the build.sql is included below.
    The build.sql also calls other sql scripts in the same directory.
    I can't seem to get this to run in the SQL command prompt in Oracle XE. Can you please help?
    Thanks,
    Will
    build.sql contains the following...
    REM Main build Script for the SRDemo schema, objects and demo data
    REM To be run from SQL*Plus conected as a DBA
    REM Note you can also run this SQL install from ANT
    REM Schema Owner SRDEMO is parameterized to allow for simpler workshop /
    REM classroom setup where only one shared server is available
    REM $Id: build.sql,v 1.5 2005/12/22 22:46:41 duncan Exp $
    SET FEEDBACK 1
    SET NUMWIDTH 10
    SET LINESIZE 132
    SET TRIMSPOOL ON
    SET TAB OFF
    SET PAGESIZE 999
    SET ECHO OFF
    SPOOL SRDemo_Install.log
    REM Define the changable data
    DEFINE DEMO_SCHEMA = SRDEMO
    DEFINE DEMO_SCHEMA_PASSWORD = ORACLE
    REM Create the schema owner - this can fail if the
    REM Script has alreadt been run, but that's OK as the first
    REM Step of the createSchemaObjects is to drop the existing objects just in case
    @@createSchema &&DEMO_SCHEMA &&DEMO_SCHEMA_PASSWORD
    REM connect to user account and invoke the scripts that create schema objects.
    CONNECT &&DEMO_SCHEMA/&&DEMO_SCHEMA_PASSWORD
    @@createSchemaObjects
    REM Add the triggers needed for the ADF BC version of the Demo
    @@createSequenceTriggers
    REM Add the sample data to the tables
    @@populateSchemaTables
    REM And Commit all that
    commit;
    REM Report Back
    Prompt What OBJECTS were created?
    column object_name format a30
    column object_type format a30
    select object_type,
    object_name
    from user_objects
    group by object_type, object_name
    order by object_type desc, object_name
    Prompt ------------------------------------------------------
    Prompt
    Prompt Are there any INVALID OBJECTS?
    select      object_type,
    object_name
    from user_objects
    where status='INVALID'
    group by object_type, object_name
    order by object_type desc, object_name
    Prompt Disconnecting....
    disconnect
    spool off

    I've just started on a tutorial (i.e.
    ADF) and it requires me to run a script, i.e.
    SQLPLUS>Start <tutorial_install>\scripts\build.sql
    How do I run this in Oracle XE?You must start SQL*Plus (SQL Command Line) and there execute the script.
    For more info about using SQL*Plus take a look here:
    http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25108/xedev_sqlplus.htm#CJABIFFE
    HTH

  • How to run script in HP -UNIX

    Hi all,
    I am facing problem in running oracle scripts in HP-Unix..
    In nohup option i can`t able to use @ symbol...
    can anyone suggest me how to run ???its urgent
    In solaris i usually run like below
    nohup sqlplus -s data/data @script.sql &
    but i cant do the same in HP-Unix please some one tell me how to run??

    Hello Kirupa,
    this is from the HPUX FAQ, maybe it helps:
    Subject: 8.14 Why can't I type an '@' character?
    If you do a 'stty -a' and you will see that your 'kill' character is
    set to '@'. You need to set your 'kill' character to be something
    other than the '@' character by doing something like 'stty kill '^U''.
    You should add this to your .profile or .cshrc file.
    Kind regards

  • How to run a pl/sql stored procedure as a concurrent program

    Hi All,
    I created a package PURGE_DEAL_REQUESTS. It contains a procedure QPR_DELETE_CANCELLED_REQUESTS. I want to run this stored procedure as concurrent program in ebs suite....
    Can anyone tell me how to run this procedure as a concurrent program(in ebs suite).....?
    Thanks
    Swathi.

    You need to add the concurrent program to the group of the responsibility that will run the report. For more details, please refer to:
    Note: 73492.1 - Creating a PL/SQL Concurrent Program in Oracle Applications
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=73492.1
    Note: 133991.1 - How to Register a Custom Report
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=133991.1

  • OSD: How to run script(it's In package) without download

    I has a hta script need to run before "Partition Disk", but this script is in a package, if I want to run it, it need to download to harddisk. so it will fail, because no partition.
    So how to run directly this script in network, without download to C drive.
    PS: I think I can put this script into boot image, but it is not easy to maintain. So I want to run directly in network
    06/30:
    Thank you for everyone support!
    My Hta will warn users that the following operations will format data.So "Create a temporary partition on the disk"--It is not for my requirement.
    As Narcoticoo mentioned, I want to use "Package Share Settings" to share folder, so how to map this folder with automatically recognize
    DP?
    just like \\%DP%\hta

    Thank you for everyone support!
    As Narcoticoo mentioned, I want to use "Package Share Settings" to share folder, so how to map
    this folder with automatically recognize DP?
    just like \\%DP%\hta
    Is there this variable?

  • Cron job : how to run scripts as cron job

    Hi friend,
    Sorry one very small question ..
    Can someone tell me how can i run scripts as cron job .. on HP UX.
    thanks
    ashish

    Hi Ashish,
    open one telnet session.
    crontab -e
    then give the periodicity day and time
    like below
    05 00 * * 1-6  /usr/local/bin/database_backup.sh
    and now create the script file with the command or script to execute.
    Regards
    Ashok Dalai

  • How to run a PL/SQL package procedure

    I can run a procedure in Jdeveloper 9.0.3, but How can run a procedure of a package not using SQL*PLUS

    You can run a procedure or function in a package the same way you run a top level procedure or package. Select the package containing the procedure in the navigator and select 'Run' from the context menu. In the Run PL/SQL dialog, select the procedure/function you wish to run from the list in the top left-hand side.
    - John McGinnis
    Oracle JDeveloper Team

  • How to run a single sql statement

    I want to run a simple sql statement to get some data in my Controller or AM.
    Is there some way, other than creating a VO with the SQL statement, to get some data from the database. My sql query will always return a single row.

    Hi,
    here you have an example I use to call a function in a package (note how you can pass parameters and read results):
    Connection conn = this.getOADBTransaction().getJdbcConnection();
    OracleCallableStatement ocs = null;
    String param = null;
    try {
            String stmt = "BEGIN :1 := <PkgName>.<FunctionName>(:2); end;";
            ocs = (OracleCallableStatement)conn.prepareCall(stmt);
            ocs.registerOutParameter(1, OracleTypes.CHAR);
            ocs.setString(2, <param>);
            ocs.execute();
            param = ocs.getString(1);
         } catch(SQLException se) {
             throw OAException.wrapperException(se);
         finally {
             try {
                    ocs.close();
                    return(param);
             } catch(Exception e) {
                    throw OAException.wrapperException(e);
         }Hope this helps you
    Bye
    Raffy

  • How to run an arbtrary sql in a DB or ST transacation

    I know in some DB or ST transaction, one can run an arbitray sql. Can someone provide the transaction and detail on how to do it. Thanks a lot.,

    Hi Fidel,
    mainly that's true - but it works for some tables against the ABAP data dictionary
    (i.e. you have to check some values from SAPR3 tables against data dictionary views:
    Here I use RSTODS ( a BW table stroing ODS table information)  as an input source for my IN clause on a DBA table in RSORADVJ to know the exact partition counts on every ODS table.
    Ex.:
    select table_name,
                replace(To_char((sum(blocks) * 8192) / 1024/1024,'99999.99' ),'.',',') Mbyte,
                sum(num_rows) numrows, sum(blocks) blocks ,
                count(*) num_part
    from dba_tab_partitions  " <--------------------------- Oracle dict table
    where table_owner ='SAPR3' and
              TABLE_NAME in
                             ( select odsname_tech from rstsods)  " <----------------- BW table
    group by table_name having ((sum(blocks) * 8192) / 1024/1024) >= 1
    order by blocks desc
    ok - it's somewhat limited what you can do (and it may a feature or a security bug )
    but it works for me
    bye yk

  • How to run script on Adobe Acrobat 9 Pro

    HI all i'm new to Adobe Acrobat 9 Pro Scripting, and I'm hoping someone can help me how i can run any javascript on Adobe Acrobat 9 Pro.  I have no idea which place (location) take script then run.
    Like Adobe InDesign CS4 script location=>
    Application>Adobe InDesign CS4>Scripts>Scripts Panel>JavaScript
    Run Path =>
    Window>Automation>Script then run
    Any insight is appreciated!
    Thank you so much adv.
    [email address removed by host]

    “All scripts are executed in response to a particular event. There are several types of events.” (Adobe, 2006, p. 40). You may want to execute your script as a console event. In this case, use the JavaScript Debugger console (Adobe, 2006, p. 21). For more information, read the manual Acrobat has provided online: Developing Acrobat Applications (Adobe, 2006).
    John
    Works Cited
    Adobe Systems Incorporated. (2006). Adobe® Acrobat® SDK 8.0 Developing Acrobat Applications Using JavaScript for Microsoft® Windows® and Mac OS®. Edition 1.0, November 2006. Retrieved on Jan. 5, 2012 at http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_devel oper_guide.pdf.

  • How to run script on selected files in Bridge

    I have a script that takes an open Photoshop document and saves it to four different resolutions in different folders. I'd like to be able to select files in Bridge and run the script on the selected files instead of having to do it each image individually in PS. Anyone know how to do this? Thanks!
    Eric

    MarkWalsh wrote:
    A fairly easy way, you can add your script to the 'Scripts' menu, then create an action that calls this script (use 'Insert Menu Item' to add to your action) and call this action through a batch in Bridge. One issue with this, though, is that it does require creating an action to specifically call the script, I don't know if you can call the script directly from Bridge.
    I haven't scripted Bridge at all myself, but I believe you should also be able to rewrite your script to get the selection in Bridge, and process those files in Photoshop.
    If your script is set up to process one file at a time, the Bridge/Batch technique is the simplest way to do it.
    If your script needs to know what all of the files are before it can begin processing, you have to add a Menu element in Bridge and have it call your action/script in Photoshop. A bit more complicated, but there are a lot of examples of this at ps-scripts.com.
    -X

  • How to run procedure in sql navigator?

    Hi,
    Can anyone tell me how can i run stored procedures in a package from SQL NAVIGATOR?
    Thank you

    If there are no OUT-Parameters just
    exec <package_name>.<procedure_name>
    as it´s done in SQL*Plus.
    Regards,
    Gerd

Maybe you are looking for

  • Multiple World clock issues

    I travel from the U.S. to Tokyo and other Asian cities on a regular basis. Thus, have set a number major cities clocks. Problem is, They were entered in a random fashion as I visted each location. I would like to arrange them in a time zone sequence(

  • Billing  in CRM.

    Hi, Iam facing problem related to billing. I created service order released it. It created billing due list. But it is giving error when creating billing document. It is due to tax calculations. errors are: IPC error --0TTE is missing in   even i use

  • Need Help Adding Text To A Template

    I am using this template: http://www.templatemonster.com/flash-templates/21091.html I would like to add text as it opens, going across the flag, something like this.... Sam Young. Not Uncle Sam, but here to serve you! Now, obviously, that's not what

  • Accessing session variables

    Hi , I have session variable defined using portals (forms or plsql portlets). Can i access these variables using jsp portlets ?? This is an urgent requirement .. Regards, Vijaya

  • Best workaround for using Gmail to filter POP spam?

    I have 3 POP email addresses and get hundreds of spam mails per day. Can't handle having to delete them manually on the iPhone. I tried setting my Gmail account to check my POP emails and setting up my iPhone with only my Gmail account. Now I get all