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

Similar Messages

  • How to run procedure from SQL Commands

    I have tried several ways, for example:
    EXECUTE POPULATE_HIERARCHY(121121);
    but I get the error: ORA-00900: invalid SQL statement.

    BEGIN
      POPULATE_HIERARCHY(121121);
    END;

  • How run Procedure in SQL Developer?

    I need run procedure in SQL Developer with parameter : 2009
    create or replace PROCEDURE "update_table" (ff_year in varchar2) AS
    CURSOR c_update IS
    select DISTINCT P.mafew name, u.frew nameone, t.greddf, .........
    I click green button RUN and have new window Run PL/SQL. Where in this script I need to print 2009?
    DECLARE
    FF_YEAR VARCHAR2(200);
    BEGIN
    FF_YEAR := NULL;
    update_table(
    FF_YEAR => FF_YEAR
    END;

    Hi,
    user10886774 wrote:
    Thanks all!
    I can run the procedure like 1 or 2 example? Is it right?
    1 like Run Script
    EXEC "UPDATE_TABLE" ('2009');
    2 click RUN on UPDATE_TABLE procedure
    DECLARE
    FF_YEAR VARCHAR2(200);
    BEGIN
    FF_YEAR := '2009';
    UPDATE_TABLE(
    FF_YEAR => FF_YEAR
    END;
    What is the name of the procedure?
    Is it update_tabe (all small letters)? If so, you must reference it as "update_table" (all small letters, inside double-quotes).
    Is it UPDATE_TABLE (all capital letters)? If so, you have the choice of referencing it as "UPDATE_TABLE" (all capital letters, inside double-quotes) or as update_table, or Update_Table, or UPDATE_TABLE, or uPdAtE_taBle, or ... (any kind of letters, without quotes).
    How about commit after?How about it?
    What is the question?
    If you want to commit, say COMMIT or click on the COMMIT icon.

  • 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 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 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

  • Run procedure from SQL Workshop Command window?

    hi, this one is simple.
    how to run a created procedure from APEX SQL Workshop SQL Command window?
    simon

    Simon,
    begin [proc_name]; end;
    -Carsten

  • How to run procedure(with paramater other than errbuff and retcode) through

    Hi everybody,
    This is Ram. I'm comfortable while running a procedure through concurrent program. but getting error when trying to run a procedure with parameter. Plz let me know the process (if possible example) of running a pl/sql procedure(with parameter) through concurrent programs..
    Regards,
    Ram.

    Hi
    It's difficult to know exactly what to modify to have no errors as those are not specified. However, the rule of thumb is for a procedure to be used as a concurrent program:
    procedure conc_prog(
    errbuf out varchar2
    , retcode out varchar2
    , param1 in varchar2 -- all additional parameters must by of IN type
    , paramn in varhcar2 ) ;
    On the concurrent program definition form, add the parameters from the third one, errbuf and retcode don't neet to be defined. Be careful on datatypes as date an numbers may have format mask problems when passed to your procedure and more possibility for this to happen is more than one language is installed. A safe way to pass those values would be to define parameters as varhchar2 and in your code, define a variable of the right type to use and assign the received value with the format mask defined for the value set associated to the parameter.

  • How to run procedure in forms

    hi to all
    How to run the database procedure in Forms while the program Unit in forms is also having the same name of the database procedure.

    Please address this question to the Portal Applications Forum at http://forums.oracle.com/forums/forum.jsp?forum=7

  • How to copy procedure to sql plus window.

    I am trying to copy my procedure from note pad to sql plus window and some of the texts are being cut off. How can I copy the entire procedure to sql plus window.
    thanks

    Thank you guys this is what is happning.
    1  CREATE OR REPLACE PROCEDURE  ITEMCUSTOMPAGING(
    2        p_desc in itemlist.idescr%type,
    3        p_letting in bidlet.datelet%type,
    4        p_letting1 in bidlet.datelet%type,  
    5       p_sort in  NUMBER ,
    6       p_order in VARCHAR ,
    7        i_results    out sys_refcursor
    8     )
    9     AS
    10     BEGIN
    11        OPEN  i_results  FOR
    12         SELECT g.csecnum , e.iplineno , substr(e.eiitem ,1,4)||'.'||substr(e.eiitem ,5,9) ItemNum,
    13         INITCAP(i.idescr ||'  '|| e.isupdes)  Descrip,INITCAP(i.idescrl ||'  '|| e.isupdes)  Descrip
    14         DECODE (TRIM (p.prroute), NULL, 'N/A',p.prroute) Route,b.datelet  ,trim(to_char(b.datelet ,'
    15        FROM itemlist i, estitem e, estcatg g, propproj x, proposal p, bidlet b, letprop l
    16        WHERE    p.contid = x.contid AND x.pcn = g.pcn AND e.pcn = g.pcn AND e.cn = g.cn AND i.item =
    17        AND i.ispecyr = p.cspecyr AND e.iplineno <> ' ' AND e.eiitem <> '2550601/01000'
    18        AND e.eiitem <> '2565601/00031' AND e.eiitem <> '2565601/00032' AND e.eiitem <> '2565601/0003
    19        AND e.eiitem <> '2402601/01000'
    20        AND (i.idescr  like  TRIM(UPPER(p_desc))||'%'  or  i.idescrl  like  TRIM( UPPER(p_desc))||'%'
    21        AND b.datelet  between  p_letting  and p_letting1
    22        AND p.contid = l.lcontid
    23        AND l.letting = b.letting
    24        AND SUBSTR (l.lcontid, 4, 4) <= '5'
    25        GROUP BY g.csecnum,i.idescr,b.datelet,i.iunits,p.clocat1,p.clocat2,p.contid,p.cdescr, p.cproj
    26        ORDER BY p_sort   p_order;
    27* End;
    QL> /
    arning: Procedure created with compilation errors.
    QL> SHOW ERR
    rrors for PROCEDURE ITEMCUSTOMPAGING:
    INE/COL ERROR
    2/8     PL/SQL: SQL Statement ignored
    6/25    PL/SQL: ORA-00933: SQL command not properly ended
    QL>

  • 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 execute procedure in SQL Worksheet ?

    Hi, anybody know, how I can execute procedure here?
    I try EXEC sec_roles, EXEC security_admin.sec_roles, EXECUTE - there is a SQL statement error. When I use CALL - there is no such procedure (I have execute previleges).
    Although in SQLPlus EXEC works, but there are problems with standard SQL commands (all of them returns "2" no matter what content is).
    Any ideas?
    Regards
    Krzysztof

    exec procedure(parameters) is a sql plus (and a few others) shortcut for
    BEGIN
       procedure(parameters);
    END;So try that then pressing/clicking whatever it is in sql worksheet that makes a statement run.
    Note that if your procedure has parameters defined as OUT or IN OUT, you will need to supply a variable to accept the returned value(s).
    John

  • How to run procedure/job only on third business day of the month

    Hello All,
    how can i run the procedure/job only third business day of the month? I am using month table in my procedure and it gets updated only once in month and procedure doesn't need to run everyday.

    >
    how can i run the procedure/job only third business day of the month? I am using month table in my procedure and it gets updated only once in month and procedure doesn't need to run everyday.
    >
    For such a sparse schedule the easiest way is to DBMS_SCHEDULER and set the 'repeat_interval' using the BYDATE parameter.
    See Table 14-7 in chapter 114 DBMS_SCHEDULER of the PL/SQL Packages and Types doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_sched.htm#BABEJGCH
    >
    Table 114-7 Values for repeat_interval
    BYDATE
    This specifies a list of dates, where each date is of the form [YYYY]MMDD. A list of consecutive dates can be generated by using the SPAN modifier, and a date can be adjusted with the OFFSET modifier. An example of a simple BYDATE clause is the following:
    BYDATE=0115,0315,0615,0915,1215,20060115
    The following SPAN example is equivalent to BYDATE=0110,0111,0112,0113,0114, which is a span of 5 days starting at 1/10:
    BYDATE=0110+SPAN:5D
    The plus sign in front of the SPAN keyword indicates a span starting at the supplied date. The minus sign indicates a span ending at the supplied date, and the "^" sign indicates a span of n days or weeks centered around the supplied date. If n is an even number, it is adjusted up to the next odd number.
    Offsets adjust the supplied date by adding or subtracting n days or weeks. BYDATE=0205-OFFSET:2W is
    >
    The chapter has examples.

  • How to run procedure in package?

    Hi,
    I'd like to know how I can run the following procedure successfully. here is the package and the procedure.
    Code:
    create or replace PACKAGE TEST_PK AS
    /* TODO enter package declarations (types, exceptions, methods etc) here */
    type project_type is record(c1 test.visits%TYPE);
    type project_type1 is ref cursor return project_type;
    procedure myproc_sp(result1 in out project_type1);
    END TEST_PK;
    The body is bellow:
    create or replace PACKAGE BODY TEST_PK AS
    procedure myproc_sp(result1 in out project_type1) AS
    BEGIN
    /* TODO implementation required */
    open result1 for
    select test.visits from TEST;
    END;
    END;
    On SQL-PLUS I try to do the following:
    variable c1 refcursor
    execute TEST.MYPROC_SP(:c1)
    And as soon as I type that I get the following error message:
    Error Msg
    BEGIN proc_name(:);
    ERROR at line 1:
    ORA-06550: LINE 1, COLUMN 7:
    PLS-00201: identifier 'proc_name' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statment ignored
    Can someone tell me what is wrong with this process and how to fix it?
    Thanks for your help.
    Gene

    By using PL/SQL.
    DECLARE
    TYPE return_cur IS REF CURSOR RETURN temp_jl%ROWTYPE;
    p_retcur return_cur;
    rec temp_jl%ROWTYPE;
    BEGIN
    for c_rec in (SELECT * FROM temp_jl)
    LOOP
    rec := c_rec;
    dbms_output.put_line('Out put is : '||rec.name || ' - ' || rec.name2);
    end loop;
    END;

Maybe you are looking for

  • My macbook is no longer allowing me access to some of my bookmarked websites including Apple

    I had to remove a trojan from my Macbook and downloaded Sophos antivirus for Macs.  The removal was successful and everything worked okay until I shut down and restarted.  I am now unable to access a number of my bookmarked pages (including the apple

  • AD Integration with UCM 11g - Selecting users from multiple OU

    Hi All, I have integrated AD with UCM 11g and able to login with AD username/password to UCM application. The one problem I face, the users of this application are scattered in different OUs in AD. Like OUs are created for different locations and use

  • Darren's Weekly Nugget 06/22/2009

    Today's nugget deals with gracefully closing a LabVIEW built EXE window.  Most everybody knows the trick of using the Quit LabVIEW function at the end of a built EXE to close its window.  In fact, you may have even included some extra logic, like wit

  • [SOLVED] Error with Nvidia Drivers (following the Beginner's Guide)

    I followed the beginner's installation guide and everything worked fine all the way up untill updating the kernel module dependencies using the "depmod -a" command.. First I created the "xorg.conf" file with the "nvidia-xconfig" command and it said:

  • Installing New Camera

    I just bought a Creative CardCam Value from a friend who got it at a flea market. Unfortunately, it didn't come with any software. My computer wouldn't recognize it since it had no drivers, so i couldn't view the pictures. At school (on OSX) i found