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

Similar Messages

  • 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

  • How to Compile the PL/SQL Package/ Procedure using shell script

    Hi,
    I tried to Compiled the shell script but I am facing some error.
    Can any one help me how to compile the PL/SQL shell script without error. Awaiting for your valuable reply.
    Thanks,
    Arun Prakash

    user8726849 wrote:
    PL/SQL shell script without errorWhat's a PL/SQL shell script?
    Can you please post exactly what you are trying to do (As in the actual code that you are executing and its output)? Also please post it in \ tags (See FAQ).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to write a PL/SQL stored procedure in Oracle to call Webservice

    Can any one pelase send me a code on how to write a PL/SQL stored procedure in Oracle database to call the Webservice ?
    Thanks,
    Rajesh

    Were you able to solve this problem

  • How to call at PL/SQL package?

    Hi,
    How to call a PL/SQL package from withing a VORowImpl?
    Also what packages need to be imported for this?
    Thanks,
    AD

    Hi,
    Thanks for the replies friends.
    I understand this is not a good practice to call a pl/sql package. I tried as per the OAF standards.
    My requirement is to display the GL String in a region of type table. This is in iExpense and the region is (ReviewBusinessCCardTblRN.xml) i.e. the Review page in the Expense report creation steps.
    The data in this region is not coming directly from one VO. There are two VOs involved in it.
    1> BusinessCCardLinesForReviewVO
    2> ReceiptBasedLinesVO (This is the actual source of data and it contains a SQL statement)
    The "BusinessCCardLinesForReviewVORowImpl" calls methods in "ReceiptBasedLinesVORowImpl" to get all the data.
    So, my approach was to
    1> Extend "ReceiptBasedLinesVO" and add an attribute for the GL String in the SQL statement.
    2> Write a method in the "ReceiptBasedLinesVOExRowImpl" to fetch the GL String.
    3> Extend BusinessCCardLinesForReviewVO and add an attribute for the GL String.
    4> In the extended VO's (BusinessCCardLinesForReviewVOExRowImpl) row impl, call "ReceiptBasedLinesVOExRowImpl" GL String method.
    5> Then use "BusinessCCardLinesForReviewVO" GL string attribute to display in the region.
    Is there anything wrong with this approach?
    But, this does not seem to be working.
    Steps 3, 4, 5 are working as I tested with hard coded values in "BusinessCCardLinesForReviewVOExRowImpl".
    But when I call method in "ReceiptBasedLinesVOExRowImpl" to get the GL String, it does not working. No error returned. The page displays all the values as it was displaying in the standard functionality.
    As this is an urgent requirement, I thought of writting a PL/SQL function which would take CCID from "BusinessCCardLinesForReviewVO" and return the GL String.
    And call this PL/SQL funtion in "BusinessCCardLinesForReviewVOExRowImpl".
    Please help me on this.
    Srini: Could you please give the exact syntax for calling the PL/SQL stored function in VORowImpl.
    Thanks,
    AD

  • 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

  • Encryption of pl/sql package/procedures/function code

    Is it possible to make the code inside a package/procedure/function un readable to other users.
    As is some of the api package body code in portal ?
    thanks in anticipation.
    SD,

    PL/SQL Wrap Utilityhttp://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/c_wrap.htm#LNPLS016
    Note, however that you cannot revert back to original un-wrapped code from a code that has been wrapped. You would need access to the original source files to get the original source code.

  • How to run Adobe AIR installer package created in windows into Linux

    Hi,
    we have created an Adobe AIR Installer package in Windows XP, Can any one help me how to run the Installer package in Linux that is created in Windows.
    Please, any help is Appreciable.

    Please any help for the above query is appreciable.

  • How to give grant permission on packaged procedure

    Hi ,
    This is Ramesh  what is my requirement is i want give permission packaged procedure that means i given permission  only procedure not entire package it is possible or  not? if yes then why
    given example

    Hi,
    You  can't  give grant to package.function or procedure.
    You  can do that following way.
    SQL> create or replace package p is function f return number; end p;
      2  /
    Package created.
    SQL> create or replace function f return number is begin return p.f; end;
      2  /
    Function created.
    SQL> grant execute on f to scott;
    Grant succeeded.
    Regards
    Mahir M. Quluzade

  • 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 @d:\emp.sql  from Oracle Procedure

    Dear All experts
    Help me in executing a sql file containing simple insert statements. This file is being run on SQL prompt
    by the flowing command.
    @d:\emp.sql;
    But i want run it through procedure.
    @d:\emp.sql
    Thanks.

    A stored procedure does not normally invoke external SQL scripts. Stored procedures run on the database server and should only be calling objects created in the database. So I would strongly suspect that you need to rethink your architecture.
    If you are determined, however, you could potentailly
    - Put the .SQL file on the database server
    - Create a Java stored procedure that calls out to the operating system
    - Have that Java stored procedure invoke SQL*Plus and pass SQL*Plus the name of your .SQL file
    - Call that Java stored procedure from your stored procedure
    This would, of course, be a highly convoluted architecture, which is why the right answer is probably to rethink things.
    Justin

  • How to run a mapping from plsql procedure in some common group?

    Hi,
    I have a Workflow process, when I running him from OWB I saw in OWB Browser first the name of this process and under this process mappings that in this process.
    In one mapping I have some pre-mapping procedure that doing something and prepare some parameters for other mapping and run it (steps for running a mapping I take from sqlplus_exec_template.sql script) and I can't put this mapping into Workflow process for some reasons.
    But in OWB browser this mapping doesn't belong to my Workflow process, they located on the one level.
    How to modify steps for running mapping so that my mapping is located under this Workflow process in OWB Browser?

    Hi,
    It sounds like what you are trying to do, is run one mapping in a pre-mapping process of another mapping. You use a wrapper that implements sqlplus_exec_template.sql in PL/SQL. Is that correct?
    I don't think that by the way you execute this mapping, it ends up in the context of the process flow. The reason is because according to Warehouse Builder the mapping is being invoked standalone (through the wrapper that implements the template). As a result, the context in which Warehouse Builder would log the messages is lost.
    What I suggest you do (assuming I understand the problem correctly), is run the mapping as a separate mapping in the process flow. Because in the current release we do not support passing output parameters in the process flow, you will have to (temporarily) store the results of the first mapping in a table and pick it up from there in the other mapping. In the next major release (autumn 2004) we will support passing parameters between activities.
    Thanks,
    Mark.

  • How can i import java.sql package for midlet development

    I am trying to write a midlet app using Wireless Toolkit 2.5.2. I would like to connect my application to JavaDB in embedded mode. But when I write "import java.sql.*;", I get an error "package java.sql does not exist
    ". I would like to know how can i include this package. please help.

    FBL wrote:
    Sorry to jump in, but isn't there limited jdbc using unconventional methods?
    [http://developers.sun.com/mobility/configurations/articles/cdc/jdbc/|http://developers.sun.com/mobility/configurations/articles/cdc/jdbc/]
    If so, I feel this may better answer the OPs question.
    -TresAbove article refers to CDC - it is useless in CLDC midlets

  • How Do I Call PL/SQL Stored Procedure That Returns String Array??

    I Have Problem Calling An Oracle(8i) Stored Procedure That Returns Array Type (Multi Rows)
    (As Good As String Array Type..)
    In This Fourm, I Can't Find Out Example Source.
    (Question is Exist.. But No Answer..)
    I Want An Example,, Because I'm A Beginner...
    (I Wonder...)
    If It Is Impossible, Please Told Me.. "Impossible"
    Then, I'll Give Up to Resolve This Way.....
    Please Help Me !!!
    Thanks in advance,

    // Try the following, I appologize that I have not compiled and run this ... but it is headed in the right direction
    import java.sql.*;
    class RunStoredProc
    public static void main(String args[])
    throws SQLException
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch(Exception ex)
    ex.printStackTrace();
    java.util.Properties props = new java.util.Properties();
    props.put("user", "********"); // you need to replace stars with db userid
    props.put("password", "********"); // you need to replace stars with userid db password
              // below replace machine.domain.com and DBNAME, and port address if different than 1521
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@machine.domain.com:1521:DBNAME", props);
    // replace "Your Stored Procedure" with your stored procedure
    CallableStatement stmt = conn.prepareCall("Your Stored Procedure");
    ResultSet rset = stmt.execute();
    while(rset.next())
    System.out.println(rset.getString(1));

  • How to call (in PL/SQL) a Procedure with a VARRAY OUT parameter

    Please help, I always get this error:
    PLS-00306: wrong number or types of arguments in call to 'GET_ITEM'
    It's a simple procedure, what is wrong?
    create or replace
    package XXVDF_XPOS_NEW_SALE_TEST as
         type serial_nos               is varray(200)     of     varchar2(20);
    procedure get_item
    (P_SERIALS           IN serial_nos);
    end XXVDF_XPOS_NEW_SALE_TEST;
    create or replace
    package body XXVDF_XPOS_NEW_SALE_TEST as
    procedure get_item
         (P_SERIALS          IN serial_nos)
    is
    begin
         p_serials(1) := 'sdw';
    end get_item;
    end XXVDF_XPOS_NEW_SALE_TEST;
    declare
         type serial_nos               is varray(200) of     varchar2(20);
         P_SERIALS          serial_nos := serial_nos();
    begin
    null;
         XXVDF_XPOS_NEW_SALE_TEST.get_item(P_SERIALS);
         dbms_output.put_line('P_SERIAL_NUMBERS ' ||P_SERIALS(1));
    end;
    thanks, Steve White

    Correction those INs should say OUT:
    create or replace
    package XXVDF_XPOS_NEW_SALE_TEST as
         type serial_nos               is varray(200)     of     varchar2(20);
    procedure get_item
    (P_SERIALS           OUT serial_nos);
    end XXVDF_XPOS_NEW_SALE_TEST;
    create or replace
    package body XXVDF_XPOS_NEW_SALE_TEST as
    procedure get_item
         (P_SERIALS          OUT serial_nos)
    is
    begin
         p_serials(1) := 'sdw';
    end get_item;
    end XXVDF_XPOS_NEW_SALE_TEST;
    declare
         type serial_nos               is varray(200) of     varchar2(20);
         P_SERIALS          serial_nos := serial_nos();
    begin
    null;
         XXVDF_XPOS_NEW_SALE_TEST.get_item(P_SERIALS);
         dbms_output.put_line('P_SERIAL_NUMBERS ' ||P_SERIALS(1));
    end;
    ========
    XXVDF_XPOS_NEW_SALE_TEST.get_item(P_SERIALS);
    ERROR at line 7:
    ORA-06550: line 7, column 2:
    PLS-00306: wrong number or types of arguments in call to 'GET_ITEM'
    ORA-06550: line 7, column 2:
    PL/SQL: Statement ignored

Maybe you are looking for

  • Text Caption will not pop up and go away.  It is there the whole slide

    I have a Text Caption box that I am wanting to pop up and give a Hint on how to answer a question slide and then go away after a few seconds. I have this in the Options tab for it: Display for: specific time: 2.2 seconds Appear after: .3 seconds Effe

  • Final Cut Studio 2 and Sony HDR-HC5

    Hello, my name is Marc Bostian. I'm a new Final Cut user, have shot some video on my HD Video on my Sony HDR-HC5. I have hooked it up with a FireWire 800 cable. to my Dual 2.3 G5 tower. I am able to control the camera in the Capture windows, but I'am

  • Start of UME Service Failed". Technical details: 'password' missing

    Hi, I am facing a problem with UME Configuration of a Double Stack ABAP+Java Netweaver 7.01 System. The Java Engine won't come up. Though I have unlocked J2EE_ADMIN, J2EE_GUEST and SAPJSF in the ABAP User Management, after Restart of J2EE-Cluster the

  • What is a best way to write SQL ?

    Sample Case drop table t; drop table b; create table t ( a varchar2(4), b number, c varchar2(1)); insert into t values ('A00', 10, 'R'); insert into t values ('A01', 11, 'R'); insert into t values ('A02', 12, 'R'); insert into t values ('A03', 13, 'R

  • What hide command will do

    what hide command will do