Problem: Not sufficient privileges execution of stored procedure in a package

I am using Visual Studio 2008 Team Suite, ODT with ODAC 111.07.20 and I am trying to run a procedure stored within a packet, it displays the following error message:

Oracle.DataAccess.Client.OracleException: ORA-01031: insufficient privileges
ORA-06512: at & quot; KIKO. PACK_SP & quot; line 205
ORA-06512: at line 1
at Oracle.DataAccess.Client.OracleException.HandleErrorHelper (Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx * pOpoSqlValCtx, ByVal src, String, Boolean Bcheck procedure)
at Oracle.DataAccess.Client.OracleException.HandleError (Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx * pOpoSqlValCtx, ByVal src, Boolean Bcheck)
at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery)
at SqlOracleWebService.OracleReplicationTool.GetData (String strNameServer, String strNameDatabase, String strNameTable, String strNameStoreProcedure, String strUserId, String strPassword, intSince, intUntil, Int32 intPort, string strID Int64 Int64) in C:\Documents and Settings\kiko\Desktop\kiko\SQL-ORACLE\SqlOracleWebService\SqlOracleWebService\Oracle\OracleReplicationTool.vb:line 1171
at SqlOracleWebService.OracleReplicationTool.SmallDataInit (String strNameServerSource, String strNameDatabaseSource, String strNameServerDestiny, String strNameDatabaseDestiny, String strNameTable, String strUserIdSource, String strPasswordSource, String strUserIdDestiny, String strPasswordDestiny, Int32 intPortSource, Int32 intPortDestiny) in C:\Documents and Settings\kiko\Desktop\kiko\SQL-ORACLE\SqlOracleWebService\SqlOracleWebService\Oracle\OracleReplicationTool.vb:line 614
at SqlOracleWebService.OracleReplicationTool.ReplicationDataInit (Boolean boolBothDirections, String strNameServerSource, String strNameDatabaseSource, String strNameServerDestiny, String strNameDatabaseDestiny, String strNameTable, String strUserIdSource, String strPasswordSource, String strUserIdDestiny, String strPasswordDestiny, Int32 intPortSource, Int32 intPortDestiny) in C:\Documents and Settings\kiko\Desktop\kiko\SQL-ORACLE\SqlOracleWebService\SqlOracleWebService\Oracle\OracleReplicationTool.vb:line 28
at SqlOracleWebService.Service1.Oracle_ReplicationDataInit (Boolean boolBothDirections, String strNameServerSource, String strNameDatabaseSource, String strNameServerDestiny, String strNameDatabaseDestiny, String strNameTable, String strUserIdSource, String strPasswordSource, String strUserIdDestiny, String strPasswordDestiny, Int32 intPortSource, Int32 intPortDestiny) in C:\Documents and Settings\kiko\Desktop\kiko\SQL-ORACLE\SqlOracleWebService\SqlOracleWebService\Service1.asmx.vb:line 20

I have change the execute privileges and granted to the user KIKO execute the PACK_SP package, but it does not work. Could you help me?

Thanks in advance.

Published by: user9112176 on February 8, 2010 10:27

This behavior is probably not related to the ODP and will happen when you run the same procedure as the same user of SQLPlus directly for example, so the PLSQL forum is probably a more appropriate place for assistance.

What is 'KIKO. PACK_SP', line 205? Roles are disabled inside stored procedures, so you must have the permissions that are granted directly.

It will be useful,
Greg

Tags: Database

Similar Questions

  • ODI the Package execution fails with ODI-1228 and ORA-20000 not sufficient privileges to analyze

    Hello

    I am trying to execute the package to ODI to have this error:

    Header 1

    ODI-1228: GATHER_SCHEMA_STATS-DW_STAGE (procedure) task fails when connecting ORACLE target ORACLE_SERVER.

    Caused by: java.sql.SQLException: ORA-20000: not sufficient privileges to analyze an object in the schema

    ORA-06512: at "SYS." DBMS_STATS", line 24867

    ORA-06512: at "SYS." DBMS_STATS", line 24945

    ORA-06512: at "SYS." DBMS_STATS", line of 24899

    ORA-06512: at line 2

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)

    at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:744)

    (1) DW_STAGE and DW_REPORT have "ANY ANALYSER" and "UNLIMITED TABLESPACE" privilege and roles "S/n", 'CONNECT' and 'RESOURCE '.

    (2) agents are all running

    (3) tested ORACLE_SERVER and he succeeded

    Need for emergency assistance.

    Thanks in advance-

    ADI

    OK, I solved it.

    As part of Oracle under Technologies--> Oracle in the Studio of the ODI, I gave in the uid and password for DW_STAGE and it fixed the problem!

    Thank you all for your help and suggestions!

    ADI-

  • How can I fix - Error1321: the installation program has not sufficient privileges to modify the file C:\Program Files (x86)\Adobe\Reader11.0\Readerwow_helper.exe.

    I am trying to download Adobe Reader free software and I get the message Error1321: the installation program has not sufficient privileges to modify the file C:\Program Files (x86)\Adobe\Reader11.0\Readerwow_helper.exe. I don't know how to solve this problem.

    Koncar, salvation


    Please try the steps mentioned below.

    (1) download the Adobe Reader.msi of ftp://ftp.adobe.com/pub/adobe/reader/win/11.x/11.0.00/en_US/

    (2) run the. MSI for player and when you get the error, click Retry and installation would be hollow.


    Thank you

    Vikrantt Singh

  • ODP 12 c version 3 with EF 6.1.1 I can't add Stored Procedure of a package to my model

    I use the ODP 12 c Release 3 (12.1.0.2.1), with Entity Framework 6.1.1 with the first database in MS Visual Studio 2013 update 4

    I have a MVC 5 (.Net Framework 4.5.2) project that connects to Oracle 11 G R2 Database server, an existing database (Tables, views and a pack of Stored procedures)

    I can add tables and use them successfully in my model
    I can add a simple stored procedure

    Here's the problem:
    I have my .edmx file right click and click on "update model from database...". «, on the 'Add' tab, I chose «Stored procedures and functions»
    I can see the list of procedures stored in the package (format packageName.usp) and check the box for the stored procedure of my package, then click 'Finish' to start the update process.

    No stored procedures have been added to my Model.Store


    The only possible exit I get the 'entity data model' is:
    Generated template file: Model1.edmx.
    Loading metadata from the database took 00:00:00.5803351.
    The model generation took 00:00:00.3761861.

    How to add a stored procedure from a package with the Entity Framework 6.1.1?

    I found the answer.

    When in the edmx model and you right click "Update Model database.

    Uncheck "Import selected stored procedures and functions in the entity model", select the package and update procedures. (It works)

    Then in "Model Explorer" under "Model. Store\ stored procedures/functions" you will see your procedures in the package (finally). Then their card in "Function Imports".

    I don't understand why unchecking import stored procedures works, but it does.

    I also found easier to simply call the procedure directly and not using Entity Framework, as all my procedures are: insertion, update and deletions and not all parameters mapped on the model for the view.

  • insufficient privileges when executing stored procedure

    Hello gurus,
    I'm new to plsql, working on a stored procedure.
    Basically, trying to create a temporary table by using the dynamic sql... Here is my code, the runtime, I'm encoutering error of insufficient privileges. not sure where I'm wrong. any help is appreciated, thanks

    -successfully - compiled code
    SQL > CREATE or REPLACE procedure stp_temp (i_table in varchar2)
    2 is
    3 table_creation_stmt varchar2 (4000): = ";
    4 start
    5
    6 table_creation_stmt: = 'CREATE of TABLE TEMPORARY GLOBAL' | i_table | ' AS select * from TABLE_STGG';
    7 dbms_output.put_line (' query is :'|| table_creation_stmt);
    8 execution immediate table_creation_stmt;
    9 end;
    10.

    Created procedure.

    SQL > exec stp_temp ('table123');
    Request: CREATE TEMPORARY TABLE global table123 AS select * from TABLE_STGG
    BEGIN stp_temp ('table123'); END;

    *
    ERROR on line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "E3US9T. STP_TEMP', line 8
    ORA-06512: at line 1


    -table gets created to copy/paste on top of the output (that is the query)

    SQL > CREATE GLOBAL TEMPORARY TABLE table123 AS select * from TABLE_STGG;

    Table created.

    Why the hell you create a TWG in a stored procedure?

    Create once and be done with it.

    To answer your question, your create table privilege granted to you via a role. Roles are not in pl/sql, you need the privilege granted to you directly.

  • Link to database not be created using a stored procedure

    Hello

    I am creating a link of database using a stored procedure.

    Here is the code for it

    CREATE OR REPLACE PROCEDURE create_db_link (ca_db_name IN VARCHAR2,

    ca_service_name IN VARCHAR2)

    AUTHID CURRENT_USER IS

    BEGIN

    EXECUTE IMMEDIATE ' create public database link test_db_link connect to ca_db_name identified by ca_db_name using "ca_service_name" ';

    END create_db_link;

    During execution of the code is created the db_link. But, when I ask all_db_links I get the following result.

    OWNER

    ------------------------------

    DB_LINK

    --------------------------------------------------------------------------------

    USERNAME

    ------------------------------

    HOST

    --------------------------------------------------------------------------------

    CREATED

    ---------

    PUBLIC

    TEST_DB_LINK. WORLD

    CA_DB_NAME

    ca_service_name

    20 Aug 13

    Could you please help me understand why it shows the parameter names in the name column of the USER and the HOST instead of the name of the database and the name of the service?

    This is to show exactly what you said to do.

    Did you expect that Oracle would read as if by magic through your string you passed to run immediately and magically know to replace all occurrences of the string that correspond to local (or even global) parameter/variable names with the values of these variables?  It does not work like that.  You could concatenate the values into the string.

    for example

    EXECUTE IMMEDIATE ' create public database link test_db_link connect to ' | ca_db_name |' identified by ' | ca_db_name: ' using the "' | ca_service_name | " ' ;

    But why are create you database links running?  Shouldn't this be part of the design of your application and the initial fact before the application runs?

  • execution of stored procedure in sql developer/sql more with a table setting?

    Hello

    I create a package with a procedure which has a cursor ref as output and a type as an input parameter.  Here is my definition of the package

    PACKAGE 
    -------
    CREATE OR REPLACE PACKAGE TEST
    As
      TYPE RefCursorType IS REF CURSOR;
      type intTableType is table of varchar2(50) index by binary_integer;
      
      PROCEDURE GETDATA (
              P_RECORDS OUT RefCursorType,           
               YEAR_LIST IN intTableType
      );  
    END;
    
    
    PACKAGE BODY
    -----------------------
    
    SET DEFINE OFF
    CREATE OR REPLACE PACKAGE BODY TEST
    AS 
    PROCEDURE GETDATA
    (
      P_RECORDS OUT RefCursorType,  
      YEAR_LIST IN intTableType  
    )
    AS 
    iYearList  IDTableType;
    BEGIN 
      --GET ARRAY COUNT
      IYEARLIST := IDTABLETYPE();
      IYEARLIST.EXTEND(YEAR_LIST.COUNT);
      
      --LOOP THROUGH LISTS AND POPULATE ARRAY
      FOR I IN YEAR_LIST.FIRST .. YEAR_LIST.LAST
      LOOP
      IYEARLIST(I) := IDTYPE(TO_CHAR(YEAR_LIST(I)));
      END LOOP;
      
       OPEN P_RECORDS FOR 
       SELECT CITHTML AS FORMATTED
        FROM dbTest.FORMATTED_HTML
      WHERE YEAR IN (SELECT * FROM TABLE(IYEARLIST))
      ;
      END GETDATA ;
    END TEST ;
    /
    
    

    I want to perform this procedure from the sql or sql developer more to see if it works properly.   The year field dbTest.FORMATTED_HTML is defined as varchar2 (20 bytes).  He has many years as well as text.

    I've used this in the past with simple stored procedures, but not those with a table setting

    var r refcursor;

    exec GETOLDDATA(:r,40);

    print r;

    How can I modify this to allow him to run my stored procedure?

    Thank you

    Just declare SQL, not type of PL/SQL:

    CREATE OR REPLACE

    TYPE Str50TblType

    AS THE TABLE OF THE VARCHAR2 (50)

    /

    CREATE OR REPLACE

    THE TEST PACKAGE

    IS

    GETDATA PROCEDURE)

    P_RECORDS ON SYS_REFCURSOR,

    YEAR_LIST IN Str50TblType

    );

    END;

    /

    CREATE OR REPLACE

    TEST OF PACKAGE BODY

    IS

    GETDATA PROCEDURE)

    P_RECORDS ON SYS_REFCURSOR,

    YEAR_LIST IN Str50TblType

    )

    IS

    BEGIN

    OPEN P_RECORDS

    FOR

    SELECT CITHTML AS FORMATTED

    OF dbTest.FORMATTED_HTML

    WHERE YEAR IN)

    SELECT *.

    TABLE (YEAR_LIST)

    );

    GETDATA END;

    END TEST;

    /

    SY.

  • Select problem with a statement in the stored procedure oracle

    Hi guys,.

    I am new to oracle. I have a simple sql stored procedure that needs to be converted to oracle. The procedure is,

    CREATE PROCEDURE my_procedure
    Char (4) @my_var = null
    AS

    Select * from my_table where my_variable = @my_var

    I converted this SP as oracle and the convert SP is,

    create or replace
    My_procedure PROCEDURE
    (
    v_my_var in CHAR DEFAULT NULL
    )
    AS

    BEGIN

    SELECT * FROM my_table WHERE my_variable = v_my_var;

    END;

    But the SP above returns an error (Error (13.3): PLS-00428: an INTO clause in the following SELECT statement) when compiling.

    So I used the slider to get the results and send back them. Updated the SP is,

    create or replace
    My_procedure PROCEDURE
    (
    v_my_var in CHAR NULL by DEFAULT,
    cv_1 ON SYS_REFCURSOR
    )
    AS

    BEGIN

    OPEN cv_1 to SELECT * FROM my_table WHERE my_variable = v_my_var;

    END;

    Now, the SP is compiled successfully and return the result set correctly. My doubt is,
    What is the right way to solve the problem that I mentioned above? Is there another way to get the select query result without using a cursor?

    Please advice. Thank you for your help in advance.

    RAM

    Depends on where you are calling from SP.
    I assume you are using a windows client, as you referred to SQL Server.
    The .NET Oracle provider, allowing return of pl/sql types and as you return only all columns in a single line, you could change your procedure to something like this:

    create or replace procedure my_procedure(v_my_var in  char default null
                                            ,cv_1     OUT my_Table%rowtype) as
    
      rt my_table%rowtype;
    begin
    
      SELECT *
      into   rt
      FROM my_table
      WHERE my_var = v_my_var;
    
      cv_1 := rt;
    
    END my_Procedure;
    /
    
  • Execution of a stored procedure in a Package in an Oracle schema?

    I found solutions to guidance how to run stored procedures to an Oracle DB, for example http://blogs.oracle.com/adf/entry/call_db_stored_procedure_using.

    However, I have a database where procedures are in the packages and I want to know if there a way, that they can be run using enterprise Java Bean.


    See you soon.

    Published by: 893478 on October 27, 2011 05:46

    Calling stored procedures has nothing to do with the Enterprise Javabeans directly. What you want to do, is to use JDBC to create a callable statement and follow these steps:

         Connection conn = ...; // fetch from a datasource for example
         CallableStatement ps = conn.prepareCall("call PACKAGENAME.PROCEDURENAME(?,?,?)");
    
          ps.setString(1, "InputParam1");
          ps.setString(2, "InputParam2");
          ps.registerOutParameter(3, java.sql.Types.VARCHAR);
    
          ps.execute();
          String res = ps.getString(3);
    

    This example accepts two input parameters and an output parameter. Adapt to your own needs. And don't forget to add exceptions and a finally clause in which you close the statement and connection.

  • Problem to INSERT INTO using the stored procedure in 10g

    I use a 10g R2 database.

    I created two tables as follows:
    SQL > create table t1 (c1 varchar2 (1), number (1) c2, c3 number (1);)
    SQL > create table t2 (deptid varchar2 (4), empid varchar (4), varchar2 (1) c1, c2 number (1) c3 number (1);)

    insert into t1 values ('A', 3, 5);
    insert into t1 values ('B', 5, 5);
    insert into t1 values ('C', 5, 5);

    I want to create a stored procedure to insert data into table t1 t2 and certain parameters of the procedure.
    Is this possible?
    As an example:
    SQL > execute test (1,2)

    This procedure will be insert these two parameters in table t2 AND select rows in table t1 and insert into table t2 at the same time.
    How can I write the procedure?
    Tip:
    SQL > create or replace procedure
    (v_deptid, v_empid number)
    is
    BEGIN
    Insert into t2 (deptid, empid, c1, c2, c3)
    ... Select c1, c2, c3 from t1;
    end;

    My question is: How can I insert the v_deptid and v_empid parameters at the same time?

    Try

    SQL > create or replace procedure
    (v_deptid, v_empid number)
    is
    BEGIN
    Insert into t2 (deptid, empid, c1, c2, c3)
    Select v_deptid, v_empid, c1, c2, c3 to t1;
    end;

  • Execution of a procedure in a package

    Hello

    How to run a procedure in a package? Here is the package

    CREATE OR REPLACE PACKAGE BODY POPULATE_GLTD_TABLES
    IS
    -LOCAL VARIABLES
    VARCHAR2 (10) val1;
    -Create work items:
    v_job1_str VARCHAR2 (4000);
    v_job1 XXMCK. XXMCK_JOB_OT;

    PROCEDURE populate_gltd_tabs1
    IS
    BEGIN
    dbms_output.put_line ('Get_status = > v_job1: ');
    val1: = F_CHECK_GLTD_RECORD_EXISTS ('MCK_GLTD_1');
    IF Val1! s ="THEN
    --
    -Understand the value of details message - TRUE if yes and FALSE if no
    --
    xxmck.mck_write_log_msg.set_msg_tail (true);
    --
    xxmck.mck_write_log_msg.purge('GLTD-TASK1');
    --
    -together framework will define the source so that inserts data into the table of output cont
    --
    xxmck.mck_write_log_msg.set_Context(v_parent_program,v_prog_desc,'GLTD-TASK1');
    --
    xxmck.mck_write_log_msg.log (v_parent_program, "enter in LOAD_GLTD_TABLES.populate_gltd_tabs1', 'prg', 'GLTD-TASK1', 1");
    --
    xxmck.mck_write_log_msg.log_tail (v_parent_program, "enter in LOAD_GLTD_TABLES.populate_gltd_tabs1', 'prg', 'GLTD-TASK1'");
    --

    v_job1_str: = ' XXCOGNOS. LOAD_GLTD_TABLES.populate_gltd_tabs1;';

    v_job1: = NEW XXMCK. XXMCK_JOB_OT ('GLTD-TASK1', v_job1_str, ' test of substantive work: LOAD_GLTD_TABLES.populate_gltd_tabs1 ', INTERVAL ' 60' SECOND ');
    v_job1. PRINT(); -Display of the basic information about the work
    v_job1. SUBMIT(); -Propose in the background
    v_job1. WAIT();
    v_job1. PRINT();
    v_job1.get_Status (v_code, v_message);
    dbms_output.put_line ('Get_status = > v_job1: ' | v_code |) ':' || v_message);

    -SELECT DECODE (cont_exit, 'cont', 'cont', 'err', 'err', 'cont') IN v_result of MCK_LOG_CONT_EXIT_CHK WHERE source = 'GLTD-TASK1;

    -IF v_result = "err" THEN
    -raise_application_error ("-20000, ' program Aborted");
    -END IF;
    END IF;
    EXCEPTION
    WHEN OTHER THEN NULL;
    END populate_gltd_tabs1;

    PROCEDURE mainproc
    IS
    BEGIN
    populate_gltd_tabs1; -CALL to FILL in mck_gltd_1 TABLE
    --
    -Mailing
    --
    xxmck.mck_write_log_msg.send_mail (p_source_prg = > v_parent_program)
    , p_source = > 'GLTD-TASK1.
    , p_msg_type = > 'prg '.
    , p_from = > '[email protected] '.
    , p_to = > '[email protected] '.
    , p_server = > 'mailhub.mckinsey.com '.
    );
    EXCEPTION
    WHEN OTHER THEN NULL;
    END mainproc;

    END POPULATE_GLTD_TABLES;
    /





    And here's my anonymous block to run above package

    BEGIN
    POPULATE_MCK_GLTDFILE.mainproc;
    EXCEPTION - begin exception handler
    WHEN OTHER THEN NULL;
    END;


    I am trying to run above the code into a toad. But I get the error message like: identifier 'POPULATE_MCK_GLTDFILE.mainproc' must be declared.
    There is no parameter to pass.
    The package is compiled successfully.
    I think this must be the easiest question anyone I can ask, but I can't understand the solution.

    Help, please
    Aditya

    Try this (you are using the wromg package name)

    BEGIN
    POPULATE_GLTD_TABLES.mainproc;
    EXCEPTION
    WHEN OTHER THEN NULL;
    END;

    Published by: Saran on January 13, 2012 01:38

    Published by: Saran on January 13, 2012 01:38

    Published by: Saran on January 13, 2012 01:40

  • Error, while the creation and execution of stored procedure

    Hello

    I'm creating a procedure stored and discovered during the compilation and execution of procedure.

    CREATE OR REPLACE PROCEDURE procTEST
    AS
    BEGIN
    WITH
    AS Report1
    (
    SELECT * FROM Employee
    )

    SELECT * FROM REPORT1

    END;
    /

    ERROR when compiling

    -------------------------------

    PROCTEST update procedure

    Errors: Newspaper the compiler check

    ERROR when executing

    ---------------------------------

    PROCTEST update procedure

    Errors: Newspaper the compiler check
    Error from line: 15 command.
    EXEC procTEST
    Error report-
    ORA-06550: line 1, column 7:
    PLS-00905: object SYSTEM. PROCTEST is not valid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    06550 00000 - "line %s, column % s:\n%s".
    * Cause: Usually a PL/SQL compilation error.
    * Action:

    Hello

    user13360241 wrote:

    I want to insert values into the table tmpemployees.

    Insert into tmpemployees

    Select * from Report1

    CREATE OR REPLACE PROCEDURE procTEST
    AS
    BEGIN
    WITH
    AS Report1
    (
    SELECT * FROM Employee
    )

    Insert into tmpemployees

    SELECT * FROM REPORT1

    END;
    /

    I see.  Then, there is no need to use the PL/SQL.  All you need is:

    INSERT INTO tempemployees

    SELECT *.

    OF REPORT1.

    (assuming that the columns match Report1 tempemployees... It is best to explicitly list the individual columns, like this:

    INSERT INTO tempemployees (employyee_id, first_name,...)

    SELECT (col_1, col_2,...)

    OF REPORT1.

    )

    If you need to use the PL/SQL for a reason, you could use the exact same INSERT statement in PL/SQL:

    CREATE OR REPLACE PROCEDURE proctest

    AS

    BEGIN

    INSERT INTO tempemployees (employyee_id, first_name,...)

    SELECT (col_1, col_2,...)

    OF REPORT1.

    END proctest;

    /

    DISPLAY ERRORS

  • Nexus / Android, Geolocation, "Application does not sufficient privileges of geolocation."

    This isn't my post SO, but it's a good description of the problem: cordova - Phonegap geolocation does not work on Android (Nexus device) - stack overflow

    I created an app that works well in iOS, Windows and usually in Android. It requires geolocation for most of its features to be effective. It works most of the time, but not with a few Android case. I'm trying to determine if it is a Phonegap, Phonegap Build something or what.

    iOS app - work

    iOS Safari - works

    iOS Chrome - work

    Windows App - work

    Windows IE - work

    Android Chrome - work

    Nexus 5 + 6 - fails

    The app says "The Application has insufficient geolocation privileges." but I've tried everything I can think of. I got this here before:

    < gap: plugin name = "org.apache.cordova.geolocation" / > "


    And it failed, so I tried to delete it... that also failed.

    I have it here, too, just in case:

    < gap: config-file overwrite = "true" parent = platform "/ manifest" = "android" >

    < android:name="android.permission.ACCESS_COARSE_LOCATION"/ uses-permission >

    < android:name="android.permission.ACCESS_FINE_LOCATION"/ uses-permission >

    < android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/ uses-permission >

    < / gap: config-file >

    I am trying to build with cli - 6.3.0. What can I do to get the job of geolocation?

    Topic 1: No; This applies to the two building locally and when using BMPS. Your syntax, including the geolocation plugin is out of date, and uses the default Build PhoneGap obsolete plugin repository. These plugins are old and are certainly not getting updated. Switch to the new plugin tag and the new plugin ID, and you'll go much further:

    More info: Plugins | PhoneGap Docs

  • grant user privileges for the execution of a procedure in a package

    Hi all

    My need is to grant privileges to User1 to run only a single procedure proc1 in package1.
    It is possible at all?
    Do I need to grant more privileges if procedure1 calls procedure2?

    Hello

    Marco wrote:
    OK, so I can create procedureN off package1 claiming enforcement procedureN package1.proc1 and grant privileges to User1.

    Is this possible without rights for package1.proc1?

    Yes, it is possible. If user_x has EXECUTE privileges on procedureN procedureN has DEFINE AUTHID (which is the default), then user_x doesn't have privileges on the packaging or the tables used in procedureN.

  • Could not import the Pentecost Entity Framework stored procedures

    Hi, I have a problem with Entity Framework 5 and stored procedures. I can add stored procedures to mi with "Update Wizard" solution, but them does not show in the Model Explorer and I can't use my code. I have ODAC 12 c Release 2 installed in my pc.

    There is a bug in the database Oracle 12 c that occurs only with a snap-in database. It is fixed in the next group of patches from database. (bug #17448545)

    There are three workarounds in the meantime:

    (1) to re-create the database without the shared option (no plug-in database)

    (2) install your schema in the database of the container instead of a snap-in database. You will need a user name as C ##HR to do. It is not advisable on a production database.

    Add 3) the section of manually in in the edmx file. Note that this is deleted when you "Generate database from model" or "Update model from database".

    for example:

    ...

    ParameterTypeSemantics = "AllowImplicitConversion" scheme = "SCOTT" >

Maybe you are looking for

  • Having trouble getting Boolean button While loop is not updated

    Hello world I'm trying to understand how continuous image capture works. So, I tried to implement a simple while loop with a button "continuous Capture". It seems that when the "Continuous Capture" button becomes false, the while loop could not updat

  • my email is spam and I can't stop and I run all the scans and nothing found

    my computer sends Email without my knowledge and it's MPI, I runn all my scans including essentionals and security tool removal microsoft maleware, but everyting says my computer is clean, what can I do and where do I go?

  • using IMac and HP printer printer error code

    I have an IMac OSX Version 10.6.6 connected wireless through Airport Extreme for a HP Photosmart Premium Fax C309a Series. I am trying to print and get an 'Ink system failure' error code of "Oxc19a0025" on the small screen of the HP printer. The inst

  • BlackBerry Z10 passwords password Keeper app restore

    Hello I use a version of the OS BB Z10 10.2.1.3062 I did a fulle backup my phone earlier in the year (July) A couple of weeks my phone has started to give me problems and I had to reboot. I decided not to do a full restore. I tried to restore my pass

  • Can't change phone IP auto macro smartport vlan native on SG200

    We have a few SG200 switches and I try to configure the macros Automatic smartport for the IP phone and IP Phone + Office. Every time I have change the macro and change the VLAN native to what I want (the VLAN voice is OK but not the vlan native, I w