Error executing procedure in package

If someone can help me, i'd greatly appreciate it!
I created a package (see code below) in the Portal Navigator and I'm getting the following error when i try to execute the procedure:
ORA-06550: line 2, column 16:
PLS-00201: identifier 'CURSOR' must be declared
ORA-06550: line 2, column 12:
PL/SQL: Item ignored
ORA-06550: line 4, column 46:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 4, column 1:
PL/SQL: Statement ignored
ORA-06550: line 6, column 20:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 6, column 1:
PL/SQL: Statement ignored (WWV-11230)
Failed to parse as PORTAL - declare
local_var1 REF CURSOR;
begin
"CONCORD"."TAB_LINKS"."GETLINKS" ( VLINKS => local_var1, V_tab=> 'Analytics');
htp.p(htf.br||'OUT parameter values:'||htf.br);
htp.p('VLINKS - '||local_var1||htf.br);
end; (WWV-08300)
Create or Replace Package TAB_LINKS
as
TYPE vrefcur IS REF CURSOR;
procedure getlinks(vlinks OUT tab_links.vrefcur,
          v_tab IN VARCHAR2 DEFAULT NULL);
END;
Create or Replace Package BODY TAB_LINKS
AS
procedure getlinks
(vlinks OUT tab_links.vrefcur,
v_tab IN VARCHAR2 DEFAULT NULL)
as
vsql varchar2(3000);
vuser varchar2(50) := orasso.wwctx_api.get_user();
vgroup number := orasso.wwsec_api.get_defaultgroup();
BEGIN
/* retrieves the links based on the title and group name */
vsql := 'select url,target,name
from table_links
where groupid= '''||vgroup||'''
and upper(cornertitle)
= '''||upper(v_cornertitle)||'''
and type = ''sidebar''
order by itemid';
--htp.p(vsql);
open vlinks for vsql;
END getlinks;
END;

I tried executing the code in orasso schema
got below error first
Error in creating PACKAGE BODY. (WWV-17098)
Line No. 15 : PLS-00201: identifier 'V_CORNERTITLE' must be declared (WWV-17050)
Line No. 11 : PL/SQL: Statement ignored (WWV-17050)
ORA-24344: success with compilation error (WWV-11230)
Failed to parse as PORTAL - create or replace package body ORASSO.TAB_LINKS as
procedure getlinks
(vlinks OUT tab_links.vrefcur,
v_tab IN VARCHAR2 DEFAULT NULL)
as
vsql varchar2(3000);
vuser varchar2(50) := orasso.wwctx_api.get_user();
vgroup number := orasso.wwsec_api.get_defaultgroup();
Declared 'v_cornertitle' ,the package got created.
Complied also, the status shows valid.

Similar Messages

  • Executing procedures in packages.

    <p>Hi </p><p>I am using CR XI developer edition.</p><p>I want to call stored procedures that currently resides in a package.  In database explorer it shows me:</p><p>"mypackage.testProcedure"  when I select it to execute, it gives me an error telling me <user>.testProcedure must be declared.  It drops the "mypackage" reference. Is there a value in <databaseStructure> I can set to make it recoginize and run my procedures in packages??</p><p>  <GenericJDBCDriver><br />  <Option>No</Option><br /> <strong> <DatabaseStructure>catalogs,schemas,tables</DatabaseStructure><br /></strong>  <StoredProcType>Oracle</StoredProcType><br />  <LogonStyle>Oracle</LogonStyle><br /> </GenericJDBCDriver></p><p>what values can <databaseStructure> have??</p><p> Shirley</p>

    PLEASE POST YOUR QUESTIONS TO THE DEV FORUMS.
    Requirements of Oracle Stored Procedures
    In order for Crystal Reports to report off Oracle stored procedures, all of the
    following requirements must exist.
    u2022 To use an ODBC connection to access an Oracle stored procedure, you
    must create a package that defines the REF CURSOR. This REF CURSOR
    must be strongly bound to a static pre-defined structure (see Strongly Bound
    REF CURSORs vs Weakly Bound REF CURSORs). This package must be
    created separately and before the creation of the stored procedure.
    u2022 A native connection to Oracle in Crystal Reports 9 and Crystal Reports 10
    can be used to access an Oracle stored procedure that was created within a
    package and also an Oracle stored procedure that references a weakly bound
    REF CURSOR
    u2022 The stored procedure must have a parameter that is a REF CURSOR type.
    Crystal Reports uses this parameter to access and define the result set that
    the stored procedure returns.
    u2022 The REF CURSOR parameter must be defined as IN OUT (read/write
    mode). After the stored procedure has opened and assigned a query to the
    REF CURSOR, Crystal Reports will perform a FETCH call for every row
    from the queryu2019s result. This is why the parameter must be defined as IN
    OUT.
    u2022 The parameters can only be defined as IN (input) parameters. Crystal
    Reports is not designed to work with OUT parameters.
    u2022 The REF CURSOR variable must be opened and assigned its query within
    the procedure.
    Crystal Reports Oracle Stored Procedures
    2/18/2004 2:55 PM Copyright © 2004 Business Objects. All rights reserved. Page 4
    cr_oracle_stored_procedures.pdf
    u2022 The stored procedure can only return one record set. The structure of this
    record set must not changed, based on parameters.
    u2022 The stored procedure cannot call another stored procedure.
    u2022 If using an ODBC driver, it must be the CR Oracle ODBC driver installed
    by Crystal Reports.
    u2022 If you are using the CR ODBC driver, verify that the option u2018Procedure
    Return Resultsu2019 is selected as u2018Onu2019 in the ODBC Driver Configuration setup
    under the u2018Advancedu2019 tab.
    u2022 If you are using the native Oracle driver and using hard-coded date selection
    within the stored procedure, the date selection must use either a string
    representation format of YYYY-DD-MM (where the date field = 2004-01-
    01) or the To_Date formula function with the same format specified (where
    date field = To_Date(2004-01-01u2019,u2019YYYY-MM-DDu2019).
    u2022 Most importantly, the stored procedure must be able to execute successfully
    in Oracleu2019s SQL *Plus utility.
    If all of these requirements have been met, verify that the database driver that
    you are using works with that version of Oracle.
    Strongly Bound REF CURSORs versus Weakly
    Bound REF CURSORs
    When declaring the REF CURSOR in an Oracle package, the REF CURSOR
    may be strongly bound or it may be weakly bound.
    A strongly bound REF CURSOR is bound with the same structure that is used
    by the outputted SELECT statement in the Oracle stored procedure.
    CREATE OR REPLACE PACKAGE Test_Package
    AS TYPE Test_Type IS REF CURSOR RETURN Test_Table%ROWTYPE;
    END Test_Package;
    The example code in green displays the REF CURSOR strongly bound. In this
    example, the REF CURSOR is bound with the row structure of the Test_Table
    table.
    A weakly bound REF CURSOR is not assigned a structure in the Oracle
    package.
    CREATE OR REPLACE PACKAGE Test_Package
    AS TYPE Test_Type IS REF CURSOR;
    END Test_Package;
    Although the REF CURSOR is not assigned a structure in the Oracle package,
    the Oracle stored procedure itself must return a record set with a structure that
    does not change based on parameters.
    Crystal Reports Oracle Stored Procedures
    2/18/2004 2:55 PM Copyright © 2004 Business Objects. All rights reserved. Page 5
    cr_oracle_stored_procedures.pdf
    Creating an Oracle Stored Procedure
    Samples of stored procedures and their steps on how to create them are
    provided. These are samples of Oracle stored procedures that will return a result
    set in Crystal Reports. If these samples were executed in the Oracle connection
    utility, SQL *Plus, they should run successfully.
    NOTE These sample stored procedures are provided as a tip. Refer to your Oracle
    documentation for more information on creating stored procedures.
    Sample A: Use with ODBC and native
    connections in Crystal Reports
    1. Create a table.
    CREATE TABLE Test_Table
    (ID number(5),
    Firstname varchar2(30),
    Lastname varchar2(30),
    Birthday date);
    2. Insert values into the table.
    INSERT INTO Test_Table VALUES
    (1, 'Christopher', 'Jones', '01-Nov-70');
    INSERT INTO Test_Table VALUES
    (2, 'Maria', 'Marshall', '02-Jan-77');
    INSERT INTO Test_Table VALUES
    (3, 'Jonathan', 'Campbell', '09-Aug-75');
    INSERT INTO Test_Table VALUES
    (4, 'Julie', 'Gagnon', '23-Dec-72');
    INSERT INTO Test_Table VALUES
    (5, 'Daemon', 'Thompson', '11-Feb-69');
    3. Create the Package.
    CREATE OR REPLACE PACKAGE Test_Package
    AS TYPE Test_Type IS REF CURSOR RETURN Test_Table%ROWTYPE;
    END Test_Package;
    4. Create the stored procedure.
    CREATE OR REPLACE PROCEDURE Test_Procedure (
    Test_Cursor IN OUT Test_Package.Test_Type,
    Test_Parameter IN Test_Table.ID%TYPE)
    AS
    BEGIN
    Crystal Reports Oracle Stored Procedures
    2/18/2004 2:55 PM Copyright © 2004 Business Objects. All rights reserved. Page 6
    cr_oracle_stored_procedures.pdf
    OPEN Test_Cursor FOR
    SELECT *
    FROM Test_Table
    WHERE Test_Table.ID = Test_Parameter;
    END Test_Procedure;
    5. Once the stored procedure is successfully created on your Oracle database,
    execute the stored procedure.
    Sample B: Weakly Bound REF CURSOR
    Only use this sample with a native connection to Crystal Reports 9 or later.
    1. Create a table.
    CREATE TABLE Test_Table
    (ID number(5),
    Firstname varchar2(30),
    Lastname varchar2(30),
    Birthday date);
    2. Insert values into the table.
    INSERT INTO Test_Table VALUES
    (1, 'Christopher', 'Jones', '01-Nov-70');
    INSERT INTO Test_Table VALUES
    (2, 'Maria', 'Marshall', '02-Jan-77');
    INSERT INTO Test_Table VALUES
    (3, 'Jonathan', 'Campbell', '09-Aug-75');
    INSERT INTO Test_Table VALUES
    (4, 'Julie', 'Gagnon', '23-Dec-72');
    INSERT INTO Test_Table VALUES
    (5, 'Daemon', 'Thompson', '11-Feb-69');
    3. Create the Package.
    CREATE OR REPLACE PACKAGE Test_Package
    AS TYPE Test_Type IS REF CURSOR;
    END Test_Package;
    4. Create the stored procedure.
    CREATE OR REPLACE PROCEDURE Test_Procedure (
    Test_Cursor IN OUT Test_Package.Test_Type,
    Test_Parameter IN Test_Table.ID%TYPE)
    AS
    BEGIN
    Crystal Reports Oracle Stored Procedures
    2/18/2004 2:55 PM Copyright © 2004 Business Objects. All rights reserved. Page 7
    cr_oracle_stored_procedures.pdf
    OPEN Test_Cursor FOR
    SELECT *
    FROM Test_Table
    WHERE Test_Table.ID = Test_Parameter;
    END Test_Procedure;
    5. Once the stored procedure is successfully created on your Oracle database,
    execute the stored procedure.
    Sample C: Stored procedure created within a
    package
    Only use this sample with a native connection to Crystal Reports 9 or later.
    1. Create a table.
    CREATE TABLE Test_Table
    (ID number(5),
    Firstname varchar2(30),
    Lastname varchar2(30),
    Birthday date);
    2. Insert values into the table.
    INSERT INTO Test_Table VALUES
    (1, 'Christopher', 'Jones', '01-Nov-70');
    INSERT INTO Test_Table VALUES
    (2, 'Maria', 'Marshall', '02-Jan-77');
    INSERT INTO Test_Table VALUES
    (3, 'Jonathan', 'Campbell', '09-Aug-75');
    INSERT INTO Test_Table VALUES
    (4, 'Julie', 'Gagnon', '23-Dec-72');
    INSERT INTO Test_Table VALUES
    (5, 'Daemon', 'Thompson', '11-Feb-69');
    3. Create the Package.
    CREATE OR REPLACE PACKAGE Test_Package
    AS TYPE Test_Type IS REF CURSOR RETURN Test_Table%ROWTYPE;
    PROCEDURE Test_Procedure (
    Test_Cursor IN OUT Test_Type,
    Test_Parameter IN Test_Table.ID%TYPE
    END Test_Package;
    Crystal Reports Oracle Stored Procedures
    2/18/2004 2:55 PM Copyright © 2004 Business Objects. All rights reserved. Page 8
    cr_oracle_stored_procedures.pdf
    4. Create the Package Body (With The Code For The Stored Procedure).
    CREATE OR REPLACE PACKAGE BODY Test_Package
    AS
    PROCEDURE Test_Procedure (
    Test_Cursor IN OUT Test_Type,
    Test_Parameter IN Test_Table.ID%TYPE
    ) IS
    BEGIN
    OPEN Test_Cursor FOR
    SELECT *
    FROM Test_Table
    WHERE Test_Table.ID = Test_Parameter;
    END Test_Procedure;
    END Test_Package;
    5. Once the stored procedure is successfully created on your Oracle database,
    execute the stored procedure.

  • What's wrong with executing procedure in package???

    I am new to SQL Developer. I had developed a PL/SQL package<br>
    (called COMMON_SQL) and compiled<br>
    in my database. I could see my package in USER_OBJECTS<br><p>
    COMMON_SQL          13966          PACKAGE     03-APR-07     03-APR-07     2007-04-03:22:46:27     VALID     N     N     N<br>
    COMMON_SQL          13967          PACKAGE BODY     03-APR-07     03-APR-07     2007-04-03:22:48:21     VALID     N     N     N<br><p>
    I did not find any compilation error on the package in USER_ERRORS,<br>
    i.e. the package was compiled and deployed successfully in my database.<br><p>
    But when ran the procedure CHECK_AND_DROP_OBJ in the package
    as follows:<br>
    declare flag integer := 1;<br>
    execute COMMON_SQL.CHECK_AND_DROP_OBJ('EXCEPTIONS','TABLE',flag);<br>
    /<br><p>
    It gave me the following error message:<br>
    Error report:<br>
    ORA-06550: line 2, column 65:<br>
    PLS-00103: Encountered the symbol "end-of-file" when <br>expecting one of the following:<br>
    begin function package pragma procedure subtype type use<br>
    <an identifier> <a double-quoted delimited-identifier> form<br>
    current cursor<br>
    06550. 00000 - "line %s, column %s:\n%s"<br>
    *Cause:    Usually a PL/SQL compilation error.<br>
    *Action:<br><p>
    where line 2, column 65 pointed to the last semicolon on the second line.<br><p>
    So why did it produce such an error?<br>
    Can anyone tell me what the problem was?<br>
    Do I need to configure or initialize SQL Developer?<br><p>
    Thanks for your help in advance,<br><p>
    AK<br><p>
    P.S. Here is the body of my package COMMON_SQL:<br>
    create or replace package body COMMON_SQL<br>
    as<br>
    <code> -- This procedure check for the existence of any database object by type.<br>
    -- It drops the object if it exists.<br>
    -- obj is the name of the dtabase object<br>
    -- type is the type of the object: table, index, sequence, synonym<br>
    -- flag has different types of values. <br>
    -- For in, flag = 1 for print debug message.<br>
    -- For out, flag = 0 for object not found.<br>
    -- flag = 1 for object found and dropped.<br>
    -- flag = -1 for error.<br>
    procedure CHECK_AND_DROP_OBJ (obj in varchar2, type in varchar2, flag in out integer)<br>
    is<br>
    obj_type USER_CATALOG.TABLE_TYPE%type;<br>
    str varchar2(100);<br>
    cursor obj_cur is<br>
    select TABLE_TYPE from USER_CATALOG where TABLE_NAME = obj;<br>
    begin<br>
    open obj_cur;<br>
    fetch obj_cur into obj_type;<br>
    if obj_cur%NOTFOUND<br>
    then<br>
    str := 'obj ' || obj || ' is not found';<br>
    if flag = 1<br>
    then<br>
    DBMS_OUTPUT.PUT_LINE(str);<br>
    end if;<br>
    flag := 0; -- return 0<br>
    elsif obj_type = type<br>
    then<br>
    str := 'drop ' || obj_type || ' ' || obj;<br>
    execute immediate(str);<br>
    if flag = 1<br>
    then<br>
    DBMS_OUTPUT.PUT_LINE(str);<br>
    end if;<br>
    flag := 1; -- return 1<br>
    else<br>
    str := 'obj ' || obj || ' has type mismatch';<br>
    if flag = 1<br>
    then<br>
    DBMS_OUTPUT.PUT_LINE(str);<br>
    end if;<br>
    flag := -1; -- return -1<br>
    end if;<br>
    close obj_cur;<br>
    --exception<br>
    null;  ??<br>
    END; --CHECK_AND_DROP_OBJ <br>
    END;<br>
    </code>
    Message was edited by:
    user567947
    Message was edited by:
    user567947
    Message was edited by:
    user567947
    Message was edited by:
    user567947
    Message was edited by:
    user567947

    smitjb,<br><p>
    I modified the package slightly and redeployed the package successfully.<br>
    Then I ran the stored procedure as you suggested:<br>
    declare debugf integer:=1;<br>
    rc integer:=0;<br>
    begin<br> SYSTEM.COMMON_SQL.CREATE_AND_DROP_OBJ('MPGCV_USER_SEQ','SEQUENCE',debugf,rc);<br>
    end;<br>
    /<br><p>
    But I still got, sort of, similar error:<br>
    Error starting at line 1 in command:<br>
    declare debugf integer:=1;<br>
    rc integer:=0;<br>
    begin<br>
    SYSTEM.COMMON_SQL.CREATE_AND_DROP_OBJ('MPGCV_USER_SEQ','SEQUENCE',debugf,rc);<br>
    end;<br>
    Error report:<br>
    ORA-06550: line 4, column 23:<br>
    PLS-00302: component 'CREATE_AND_DROP_OBJ' must be declared<br>
    ORA-06550: line 4, column 5:<br>
    PL/SQL: Statement ignored<br>
    06550. 00000 - "line %s, column %s:\n%s"<br>
    *Cause:    Usually a PL/SQL compilation error.<br>
    *Action:<br><p>
    I checked USER_ERRORS (found no error), and USER_OBJECTS and found both the package spec and body<br>
    So why did it not recognize the package and its stored procedure?<br>
    I was using SYSTEM account and should have the correct schema and privilege.<br>
    Any idea?<br><p>
    Thanks,<br><p>
    AK<br><p>
    P.S. Here is the body of my package:<br>
    <code>
    -- This package body contains all the functions/procedures<br>
    -- needed by any PL/SQL scripts<br>
    create or replace package body SYSTEM.COMMON_SQL<br>
    as<br>
    -- This procedure check for the existence of any database object by type.<br>
    -- It drops the object if it exists.<br>
    -- obj is the name of the dtabase object<br>
    -- otype is the type of the object: table, index, sequence, synonym<br>
    -- debugf indicates to print debugging message or not. <br>
    -- rc is the return code, <br>
    -- rc = 0 for object not found.<br>
    -- rc = 1 for object found and dropped.<br>
    -- rc = -1 for error.<br>
    procedure CHECK_AND_DROP_OBJ (obj in varchar2, otype in varchar2, debugf in integer, rc out integer)<br>
    is<br>
    obj_type USER_CATALOG.TABLE_TYPE%type;<br>
    str varchar2(100);<br>
    cursor obj_cur is<br>
    select TABLE_TYPE from USER_CATALOG where TABLE_NAME = obj;<br>
    begin<br>
    open obj_cur;<br>
    fetch obj_cur into obj_type;<br>
    if obj_type = otype<br>
    then<br>
    str := 'drop ' || obj_type || ' ' || obj;<br>
    execute immediate(str);<br>
    if debugf = 1<br>
    then<br>
    DBMS_OUTPUT.PUT_LINE(str);<br>
    end if;<br>
    rc := 1; -- return 1<br>
    else<br>
    str := 'obj ' || obj || ' has type mismatch';<br>
    if debugf = 1<br>
    then<br>
    DBMS_OUTPUT.PUT_LINE(str);<br>
    end if;<br>
    rc := -1; -- return -1<br>
    end if;<br>
    close obj_cur;<br>
    exception<br>
    when NO_DATA_FOUND<br>
    then<br>
    str := 'obj ' || obj || ' is not found';<br>
    if debugf = 1<br>
    then<br>
    DBMS_OUTPUT.PUT_LINE(str);<br>
    end if;<br>
    rc := 0; -- return 0<br>
    when OTHERS<br>
    then<br>
    str := 'error encountered SQLCODE:' || to_char(SQLCODE) || <br>
    ' SQLERRM:' || SQLERRM;<br>
    if debugf = 1<br>
    then<br>
    DBMS_OUTPUT.PUT_LINE(str);<br>
    end if;<br>
    rc := -1; -- return -1<br>
    END; --CHECK_AND_DROP_OBJ <br>
    END;<br>
    /<br>
    </code>

  • Please Help!!! error executing procedure and populating to gridview

    I have used a tool to convert my sql 2000 stored procedure to Oracle 10g PL/SQL, here is an example
    SQL 2000 Stored Procedure
    CREATE PROCEDURE [GetEmployees]
    AS
    Select * from EMPMST ORDER BY emp_name
    GO
    After Transformation i got 2 files, one was a procedure and other a package
    CREATE OR REPLACE PACKAGE GLOBALPKG
    AS
         TYPE RCT1 IS REF CURSOR;
         TRANCOUNT INTEGER := 0;
         IDENTITY INTEGER;
    END;
    CREATE OR REPLACE PROCEDURE GetEmployees
         RCT1 IN OUT      GLOBALPKG.RCT1
    AS
    BEGIN
         OPEN RCT1 FOR
         SELECT *
         FROM EMPMST
         ORDER BY emp_name;
    END;
    When i execute the procedure GetEmployees i got this error :
    SQL> execute GetEmployees;
    BEGIN GetEmployees; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'GETEMPLOYEES'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I am developing a webpage (asp.net using Visualstudio .net 2005 ) where i have a grid view in which i want to display all the output of the GetEmpoyee procedure but it is giving an error.
    Please Help me in debugging this error. Thanks in advance.

    Hi Pruthvi,
    It seems to me the convertion is correct. You need a REF CURSOR and by the Stored Procedure itself without using Package the REF CURSOR cannot specify as OUT output parameter.
    You can use SQL Developer to help you to make sure you put the Package in the right Database Schema.
    http://otn.oracle.com/sqldeveloper
    After you converted the Stored Procedure you need to modify your .NET code as well. The .NET code that calls your old MS SQL Stored Procedure will not work. To see how to involve the REF CURSOR in .NET you can check here:
    http://blogs.oracle.com/MingMan/stories/storyReader$9
    Good Luck
    Ming Man

  • Executing procedure in package problem

    Hi, i have a procedure called Newcar. i have now created a package and put the Newcar procedure inside the package body. but when i want to invoke it (to put data) by running execute packageTest.Newcar('Ferrari', 007) i get ORA-00900: invallid sql statement. what is wrong? the package spec and body gets created ok:
    CREATE OR REPLACE PACKAGE packageTest IS
    PROCEDURE Newcar(vname IN VARCHAR2, vreg IN NUMBER);
    END packageTest;
    CREATE OR REPLACE PACKAGE BODY packageTest IS
    PROCEDURE Newcar
    (vname IN VARCHAR2, vreg IN NUMBER)
    IS
    l_vreg NUMBER;
    BEGIN
    l_vreg := vreg;
    IF vreg > 999 THEN
    l_vreg := 999;
    END IF;
    INSERT INTO CARS (carname, carreg)
    VALUES
    (vname, l_vreg);
    END Newcar;
    END packageTest;
    /

    Worked for me. Are there other details that might be relevant? The table definition perhaps? Triggers? Can you post similar output from your SQL*Plus session?
    SQL> CREATE OR REPLACE PACKAGE packageTest IS
      2  PROCEDURE Newcar(vname IN VARCHAR2, vreg IN NUMBER);
      3  END packageTest;
      4  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY packageTest IS
      2  PROCEDURE Newcar
      3  (vname IN VARCHAR2, vreg IN NUMBER)
      4  IS
      5  l_vreg NUMBER;
      6  BEGIN
      7  l_vreg := vreg;
      8  IF vreg > 999 THEN
      9  l_vreg := 999;
    10  END IF;
    11
    12  INSERT INTO CARS (carname, carreg)
    13  VALUES
    14  (vname, l_vreg);
    15  END Newcar;
    16  END packageTest;
    17  /
    Package body created.
    SQL> execute packageTest.Newcar('Ferrari', 007)
    PL/SQL procedure successfully completed.
    SQL> select * from cars;
    CARNAME                                                CARREG
    Ferrari                                                     7
    SQL>

  • Error Executing procedure

    We are comparing 3 tables T1,T2,T3.
    T2 is in remote server1
    T1,T3 are in server 2
    All are bound to the procedure by Db links.
    The Procedure is getting created .
    Only while executing the procedure the error is displayed.
    In case of T1,T2,T3 being present in a single server the proc is executing correctly.
    ERROR at line 1:
    ORA-02049: timeout: distributed transaction waiting for lock
    ORA-06512: at "NAGSPUDEVADM.HUGOTON_WELL_JOBSSW1", line 79
    ORA-06512: at line 1
    The first few lines of the procedure are:
    CREATE PROCEDURE nagspudevadm.hugoton_Well_Jobssw1 AS
    cur_apinumber1 varchar(200);
    cur_wellname1 varchar(200);
    cur_apinumber2 varchar(200);
    cur_wellname2 varchar(200);
    cur_apinumber3 varchar(200);
    cur_wellname3 varchar(200);
    CURSOR cur_T1 IS
    SELECT API_NUMBER,
    WELL_NAME
    FROM nagspudevadm.Well_Header_Table;
    CURSOR cur_T2 IS
    SELECT API_NUM ,
    WELL_NAME
    FROM ec_hugoton.documentum_v@DATAOPPB;
    CURSOR cur_T3 IS
    SELECT API_NUMBER,
    WELL_NAME
    FROM nagspudevadm.hugoton_master_table;

    After running the query,am getting a set of process but am not able to determine which of the process belongs to my procedure. Does the sql_text contain any information regarding the name of the procedure.
    Am posting the results as such
    SPID SID SERIAL# LOGON_TIM SQL_TEXT PID
    PROCESS
    8468 147 60517 26-JUN-08 ADDR and c.hash_value=a.sql_hash_value and a.STATUS='ACTIVE' 30
    6456:12016
    8468 147 60517 26-JUN-08 rocess from v$session a,v$process b,v$sqltext c where a.PADDR=b. 30
    6456:12016
    8468 147 60517 26-JUN-08 Select b.spid,a.sid,a.serial#, a.Logon_time,c.sql_text,b.PID,a.P 30
    6456:12016
    SPID SID SERIAL# LOGON_TIM SQL_TEXT PID
    PROCESS
    10884 137 3 18-JUN-08 BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :2, :3); END; 36
    1234

  • Error while executing a procedure in Package

    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package "PLLODS.LK" has been invalidated
    ORA-04065: not executed, altered or dropped package "PLLODS.LK"
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 1Why did this error arise when I changed a package and recompiled?

    This errors occurs when a package was executed in session A, compiled in session B, and then executed again in session A. The package executed in session A is in Oracle buffer, but its definition was changed in session B (which session A is unaware of). Now session A uses the old definition of the package but Oracle checks what is in buffer to the new definition and finds a difference. Therefore, it generates an error:
    ORA-04068: existing state of packages has been discarded
    and other related errors.
    Just execute the procedure (in the package) again and you should not see the error again.
    Make sure the stae of the package is valid, that is, when it was recompiled, the package compiled successfully.
    Shakti
    http://www.impact-sol.com
    Developers of Guggi Oracle - Tool for Developers and DBAs

  • Error Executing Oracle Package/Procedure

    I'm having trouble executing a procedure in a package of mine. I have a package in one schema I'm trying to execute it with a different ID (i.e. User1 in trying to execute a procedure in User2's Schema). The permissions look fine (Execute has been granted), but when I try to exec the procedure using "Schema.Package.Procedure" format, I get a "component 'PackageName' must be declared" error. If I create a Public Synonym for my package and exec my Procedure, dropping the Schema Prefix ("Package.Procedure"), it executes fine. To make things even more interesting, I recreated the packages in a third Schema and executedfine with the Schema prefix ("Schema.Package.Procedure").
    The only difference (I see) between the two schemas is the use of an "underscore" in the name: (for example) Schema1 and Schema_Two. Put the package in Schema1 and it runs fine. Put it in Schema_Two and it errors when fully qualified with the Schema name.
    Does Oracle have a problem running packages when the Owner Schema has an underscore in the name? Or am I missing some other potential problem(s)?
    Thanks in advance...

    355099: I do have another copy of this procedure in another Schema. I'll try dropping that other version.
    Mark: We have a schema for our data/logic and an ID we created for the web (so we don't access our data using our Schema Owner ID). The web ID is granted Select authority to Tables and Execute authority to Packages. We use this technique in other applications and it works fine. Those permissions have been set here but we still have the issue. I'll keep digging around. I'm sure it's something minor we are overlooking.
    Thanks for you replies...

  • Error while executing the utl_mail package

    Hi All,
    I am executing the below package, to test whether the utl_mail package is working or not....basically I want to write a plsql program to send email to the specific users whenever there is ddl event on the database.
    SQL> exec sys.utl_mail.send (sender =>'[email protected]',recipients =>'[email protected]',subject => 'Oracle Database Server DOWN',message => 'May be DB Server Down for maintenance.||. but also contact to DBA for further details. .');
    BEGIN sys.utl_mail.send (sender =>'[email protected]',recipients =>'[email protected]',subject => 'Oracle Database Server DOWN',message => 'May be DB Server Down for maintenance.||. but also contact to DBA for further details. .'); END;
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 554 <[email protected]>: Relay access denied
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at "SYS.UTL_MAIL", line 414
    ORA-06512: at "SYS.UTL_MAIL", line 608
    ORA-06512: at line 1
    1. we are running the postfix on the database server.
    2. when i am sending the mail through the unix command "mail" it successfully sending the mail.
    3. I checked in most of the forums it says relay host settings needs to be changed...
    4. I am not sure what are the postfix configuration setting i have to set.
    Please help
    Ravi
    Edited by: user13369249 on Jul 9, 2010 1:22 PM
    Edited by: user13369249 on Jul 9, 2010 1:24 PM

    I assume you are using Oracle 11
    Step One Check for existing ACL
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> SELECT host, acl FROM dba_network_acls;
    Step Two Drop existing of it exists
    SQL>
    SQL> EXECUTE DBMS_NETWORK_ACL_ADMIN.drop_acl ( acl => 'test_acl_file.xml');
    PL/SQL procedure successfully completed.
    SQL> SELECT host, acl FROM dba_network_acls;
    no rows selected
    SQL>
    Note : If there are multiple ones, they seem to conflict with each other.
    Create an Access Control List (ACL)
    As SYS
    SQL> BEGIN
    2 DBMS_NETWORK_ACL_ADMIN.create_acl (
    3 acl => 'test_acl_file.xml',
    4 description => 'A test of the ACL functionality',
    5 principal => '<YOURUSER>',
    6 is_grant => TRUE,
    7 privilege => 'connect',
    8 start_date => SYSTIMESTAMP,
    9 end_date => NULL);
    10
    11 COMMIT;
    12 END;
    13 /
    PL/SQL procedure successfully completed.
    SQL> commit;
    Commit complete.
    SQL>
    SQL> BEGIN
    2 DBMS_NETWORK_ACL_ADMIN.assign_acl (
    3 acl => 'test_acl_file.xml',
    4 host => 'relay.?????',
    5 lower_port => 25,
    6 upper_port => null);
    7
    8 COMMIT;
    9 END;
    10 /
    PL/SQL procedure successfully completed.
    SQL> commit;
    Commit complete.
    SQL>
    Make sure you change to you relay and your user.
    Edited by: mseberg on Jul 9, 2010 2:32 PM

  • Error executing Stored Procedure that returns a recordset in Visual Basic 6

    Hello, i tried to use the example in the link posted as a response to my question in a previous thread, and in Visual Basic 6, when i execute the Stored procedure it gives me the following error:
    This is the package created as indicated in the example FAQ you posted.
    package types
    as
    type cursorType is ref cursor;
    end;
    This is the procedure created as indicated in the example FAQ you posted.
    PROCEDURE SP_TITUVALO(T_BR IN VARCHAR2,
    P_Cursor OUT TYPES.cursorType )
    AS
    BEGIN
    OPEN P_Cursor FOR
    SELECT * FROM TASAS WHERE BR=T_BR AND TASA > 0;
    END;
    This is the code used to execute the Stored Procedure in VB6:
    Dim objConn As New ADODB.Connection
    Dim connString
    Dim cmdStoredProc As New ADODB.Command
    Dim param1 As New ADODB.Parameter
    Dim RS As ADODB.Recordset
    Set param1 = cmdStoredProc.CreateParameter("T_BR", adVarChar, adParamInput, 255, "97")
    cmdStoredProc.Parameters.Append param1
    objConn.Open strconex
    Set cmdStoredProc.ActiveConnection = objConn
    cmdStoredProc.CommandText = "SP_TITUVALO"
    cmdStoredProc.CommandType = adCmdStoredProc
    Set RS = cmdStoredProc.Execute
    This is the error returned:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'SP_TITUVALO'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ****************************************************************

    Juan,
    Not sure about FAQ you are referring to, but it seems that you need to set PLSQLRSet property of ADODB.Command to TRUE. Because if you fail to do so - errors with refcursors are likely to happen.
    Consider:
    Set objConn = CreateObject("ADODB.Connection")
    objConn.ConnectionString = "Provider=OraOLEDB.Oracle;Persist Security Info=False;Data Source=test9ora;User ID=max;Password=blabla"
    objConn.Open
    'Dim cmdStoredProc
    Set cmdStoredProc = CreateObject("ADODB.Command")
    Dim param1
    Set param1 = cmdStoredProc.CreateParameter("T_BR", adVarChar, adParamInput, 255, "97")
    param1.Value = "X"
    cmdStoredProc.Parameters.Append param1
    'Dim RS
    Set cmdStoredProc.ActiveConnection = objConn
    'The following line was missed out
    cmdStoredProc.Properties("PLSQLRSet") = True
    cmdStoredProc.CommandText = "SP_TITUVALO"
    cmdStoredProc.CommandType = adCmdStoredProc
    Set RS = cmdStoredProc.ExecuteThis works fine, at least for me.
    Cheers.

  • Error in Executing Procedure through DBLink

    Hi,
    I am facing some problems in executing a procedure through DBLink.
    I have two schema A and B in two different database.
    In schema A I am having one procedure X in package Y and my requirement is that I want to execute this procedure in schema B. So in schema B i have created one DBLink ABC and trying to execute procedure X using this DB link.
    begin
    A.Y.X@ABC;
    end;
    But I am getting below error:
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'A.Y.X@ABC' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Any help would be greatly appreciated!
    Thanks In Advance..
    Regards,
    Sachin Bansal

    Hi,
    Yes, I am connecting to user A of DB1 and in this user I am having procedure X in Package Y. My DBLink in Schema B of DB2 is pointing to user A of DB1.
    I have created DBLINK using below script:
    create public database link abc
    connect to A
    identified by A
    using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXX)(PORT=1521)))(CONNECT_DATA=(service_name=XXX)))';
    Above DBLInk is working fine..I am able to access all the table of schema A in schema B using this DBLink. But when I trying to execute any procedre of schema A in schema B then i am getting error.
    Regards,
    Sachin

  • Apex 4 error ORA-04042 procedure, function, package body does not exist

    Hi all,
    I was instaling Oracle Application Expres 10g on Linux ubuntu and I was download and unzip apex 4
    on /usr/lib/oracle/xe/
    then connect as SYS as sysdba with pass and
    start
    @/usr/lib/oracle/xe/apex/apexins SYSAUX SYSAUX TEMP /i/
    installation starting
    ... after 5 minutes theres end of log file>
    I. O R A C L E S Y S I N S T A L L P R O C E S S
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/dev_grants.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/core_grants.sql"
    ...CONNECT as the Oracle user who will own the APEX engine
    Session altered.
    III. I N S T A L L A P E X P A C K A G E S P E C S
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_plsql_editor.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_model_api.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_util.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_plugin_f4000.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_image_generator.sql"
    Installing Team Development objects
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/team_tab.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team_api.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team_gen_api.sql"
    Installing Application Migration Workshop objects
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_create_ddl.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_create_ddl.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_exporter_ins.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/mig_views.sql"
    ...installing Application Migration Workshop package spec
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_acc_load.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_load_xml.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_olb_load_xml.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_update_apx_app.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_utilities.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frmmenu_load_xml.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_rpt_load_xml.sql"
    ...install Application Migration Workshop package body
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_acc_load.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_load_xml.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_olb_load_xml.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_update_apx_app.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frm_utilities.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_frmmenu_load_xml.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_mig_rpt_load_xml.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_item_comps.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_translation_utilities.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_lov.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_item.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_button.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_translation_utilities.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/seed.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/sync.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/layout.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_lov_used_on_pages.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_query_builder.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_sw_object_feed.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_load_data.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_load_excel_data.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_metadata.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copyu.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_tab_mgr.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/generate_ddl.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/table_drill.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_download.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_copy_page.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/generate_table_api.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_gen_hint.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_xliff.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_create_model_app.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_admin.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_help.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_data_quick_flow.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_theme_files.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_session_mon.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_sw_page_calls.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_wiz_confirm.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_page_map.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_drag_layout.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_dataload_xml.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_ui_default_update.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_mig_projects_update.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_install_wizard.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_dictionary.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_advisor.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_search.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_plugins.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_4000_ui.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_4050_ui.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_workspace_reports.sql"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_p4150.sql"
    timing for: Development Package Specs
    Elapsed: 00:00:00.02
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_plsql_editor.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_model_api.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_util.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_plugin_f4000.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_image_generator.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/layout.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_query_builder.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_sw_object_feed.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_load_data.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_load_excel_data.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copy_metadata.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/copyu.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_tab_mgr.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/generate_ddl.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/table_drill.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_download.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_copy_page.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/generate_table_api.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_gen_hint.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_translation_utilities.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_xliff.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_create_model_app.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_help.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_data_quick_flow.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_theme_files.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_session_mon.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_sw_page_calls.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_wiz_confirm.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_page_map.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_drag_layout.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_dataload_xml.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_ui_default_update.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/apex_mig_projects_update.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_install_wizard.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_dictionary.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_advisor.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_search.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_plugins.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_4000_ui.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_4050_ui.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_translation_utilities.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team_api.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_team_gen_api.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_workspace_reports.plb"
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_flow_f4000_p4150.plb"
    ...install demonstration Oracle APEX application package specs
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/collections_showcase.sql"
    ...install demonstration Oracle APEX application package bodies
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/collections_showcase.plb"
    ...install demonstration tables
    SP2-0310: unable to open file "/usr/lib/oracle/xe/apex/coreinscore/wwv_demo_tab.sql"
    timing for: Development Package Bodies
    Elapsed: 00:00:00.03
    grant execute on wwv_mig_acc_load to public
    ERROR at line 1:
    ORA-04042: procedure, function, package, or package body does not exist
    is there any solution?
    regards
    Gordan

    Install 4.0 pass ok!
    1. I was changing apexins.sql
    as PREFIX='@/usr/lib/oracle/xe/apex/'
    and add path to coreins.sql as @/usr/lib/oracle/xe/apex/coreins.sql
    2. create two folders coreinscore and coreinsbuild and copy all files from folder core and folder build
    3. copy and rename endins.sql as coreinsendins.sql
    after 10 min instalation pass ok!
    Gordan
    Edited by: useruseruser on Jun 29, 2010 2:12 PM

  • Execute procedure error (Native SQL)

    Hi experts,
    I create a procedure
      EXEC SQL.
        create or replace procedure update_zsmadiprinc
        is begin
                              ( p_codigo         in  number(5),
                                p_ano            in  varchar2(4),
                                p_doc_vlr_princ in  varchar2(10)
                                p_subrc       out number ) is begin
          update T_INTERF_RESSARC_FORNEC_R3
          set   ano_doc              = p_ano,
                NUM_DOC_VALOR_PRINC  = p_doc_vlr_princ,
          where cod_interf_ressarc_fornec_r3 = p_codigo;
          if sql%found then
            p_subrc := 0;
          else
            p_subrc := 4;
          end if;
        end;
      ENDEXEC.
    and execute it
      EXEC SQL.
        execute procedure update_zsmadiprinc
                         (in  :wa-cod_interf,
                          in  :wa-ano_doc,
                          in  :wa-num_doc_valor_princ,
                          out :vg_subrc)
      ENDEXEC.
    But when i execute the procedure, shows dump error:
    Database error text........: "ORA-06550: line 1, column 7:#PLS-00905: object
    UPDATE_ZSMADIPRINC is invalid#ORA-06550: line 1, column 7:#PL/SQL:   
    Statement ignored#"                                                        
    Triggering SQL statement...: "CLOSE "                                       
    Internal call code.........: "[DBDS/NEW DSQL]"                              
    Please check the entries in the system log (Transaction SM21).              
    I comment all source, and the error is the same.
    When i create the procedure, no erros are show.
    I changed the name of the procedure, the type of parameters, and now i comment all and the error always is the same!!!! Can you help me!!! I need to finish this urgently!
    Thanks in advance
    Message was edited by:
            RP

    It is not possible to create a procedure, then, i just execute sql direct.
    thanks

  • Execute procedure in a package using the caller privileges?

    Is it possible to execute a procedure within a package using the privileges of the caller rather than the privileges of the package owner? So if we have a procedure that does a select, one that does an insert, and another for update and a 4th for delete, then we just want to grant execute to user X on the select procedure in the package. This is a developer request. I think I just need to tell the requestor to copy or move the procedure out of the package and into it's own procedure so that it's safe to run by user X and not grant execute on the package since I don't believe it is possible to specify what procedures in a package are granted execute since that command is a blanket for the whole package right?
    Example - fails due to specifying the proc:
    grant execute on scmemaname.pkgname.procname to usr;
    There's no other command to do that is there?
    Thanks,
    Dave
    Edited by: Gib on Jan 19, 2010 8:42 AM

    AUTHID is at the package level ... not the individual function or procedure.
    Create a second package.

  • Error executing a package on Oracle 10G database

    Hi,
    I've a package on Oracle 10G database which accepts xml string as input,loads it into XMLDOM and does some processing.
    When I execute this package from .Net 2.0 client,I get the following error:
    **Error**
    err ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00216: invalid character 0 (0x0)
    Error at line 1
    **Error**
    But when I execute the same package from .Net client 2.0 on Oracle 9i database, it seems to work fine.The xml which I am sending is well-formed one.
    Where am i going wrong?
    Please help.
    Thanks in advance...!
    Regards,
    Amit

    Check the xml strings passed as input . One of the xmls may be malformed.

Maybe you are looking for