debugging on the procedure to grant

I've been looking for a way to allow a user to view the package body in another scheme that was not SELECT ANY DICTIONARY for awhile now and I happened to find it by chance today. I looked more into this private, but it doesn't seem to be more explanation on WHAT debug allows actually.

Apart from allowing another user to see a package or procedure body, anyone sees any problems with granting of DEBUG on a procedure/package?

Thanks in advance!

Jeremy

PRIVILEGES OF OBJECT TYPE

The following object type privileges allow operations on a database object type.

DEBUG

Access, via a debugger variables public and non public, methods and types defined on the object type.

Place a breakpoint or stop at a line boundary or statement in the body of the type.

Is your database & you can use (ab), it doesn't matter what way you consider appropriate

Tags: Database

Similar Questions

  • create a new form on the procedure

    What I'm missing here...

    I am trying to create a form on a procedure (new page). I've done this before and never encountered this problem. I'm under Apex version 3.0.1.00.08 on Oracle 9.2

    The database schema and workspace are the same name "EDGE". The stored procedure is the "EDGE" scheme The stored procedure has Execute privilege granted to public and also a public synonym.

    I walk through the steps in the wizard to create a new page Apex:
    -Create the Page
    -Form
    -Shape relative to a procedure
    -Procedure owner: EDGE
    -Identify the process belonged to EDGE where you want to create your form.
    -The 'Stored procedure name' dropdown does not include the stored procedure, that I'm trying to select.

    I tried to update the list, clear the cache, search for the procedure, checked grants and roles on the procedure, but nothing moves. I don't see the stored procedure using the wizard of the Apex and the drop-down list to choose the procedure.

    Any advice would be greatly appreciated.

    Thank you, Todd

    Todd:

    The procedure has all the settings? If this isn't the case, you can not build an APEX form based on this procedure.

    CITY

  • By clicking on the icon of debugging for a procedure or function survey error ORA-00904

    Hi all

    By clicking on the icon of debugging for a procedure or function throws the error ORA-00904.

    Developer SQL 4.1.0.19.07

    Java 1.8.0_40

    OS: Linux Mint 17.1

    Developer SQL 4.1.0.18.37 on the same machine works very well.

    Clues?

    Thank you!

    degger error.png

    It is indeed regressed as RDBMS to 10g have object_id all_procedures notice. Buggy.

  • Create the privilege granted procedure, but cannot create the procedure

    I have a user that I have given the following privileges:
    CREATE THE SESION
    SELECT ANY TABLE
    CREATE A PROCEDURE
    CREATE PROCEDURE
    RUN THE PROGRAM
    RUN THE PROCEDURE

    But when I try to create a procedure with this user I get, error proveleges not enough. What I am doing wrong?

    What's wrong? You open the doors of barn proverbial ito security. This isn't how security should be made - allowing a schema create any code of procedure anywhere in the database. Or select data from any table.

    How do you think that Sony's PS network has been hacked and millions of stolen credit card data users?

    By this precarious type of stuff-security approach to security.

    A schema has the minimum privileges in order to achieve its goals and its requirements. Nothing more.

    For example

    // standard logical database schema, 10Gb space allocation
    create user HRDB
      identified by 
      default tablespace USERS
      quota 10G on USERS;
    
    // configure the basic security layer for the schema
    grant
      create session, --// allow client-server connections to schema
      create table, create trigger, --// allow to create standard db objects
      create sequence, create view, --// allow access to defining extended objects
      create procedure --// allow creating stored proc code
    to HRDB;
    

    In addition, you can decide on assign a profile of resources and specific roles and so on. In some cases, you can also leave the schema create types, synonyms and private database links, views materialized, etc.

    Don't grant access. No access to the SYS code and objects. By default. Everything else is a security exception requiring a valid justification.

  • How to see the variable data in time debugging the procedure in Toad oracle 9.1

    Hi all

    I'm not able to see the data variable at the procedure of debugging in Toad oracle 9.1.
    Any help would be appreciated.



    Kind regards
    Prakash P

    Published by: prakash on May 30, 2011 01:37

    Published by: prakash on May 30, 2011 01:37

    Published by: prakash on May 30, 2011 01:37

    You might be aware toad is not a product of Oracle, so you need this post on the forums of quest, http://www.questsoftware.com

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • Reg:-grant to the procedure.

    Hi friends,
    I want to give Executre grant to the other diagram how to give...
    Example:-Package stored in Schema1

    But I want to run this package through schema to.

    Pls help.

    Kind regards
    Aude
    grant execute on PROCEDURE to SCHEMA;
    

    Make sure you have either a synonym for the procedure or it is referenced using the procedures scheme
    for example, MySchema.myprocedure

  • ORA-06508, procedure cannot call the procedure of package

    I have a large stored procedure that calls a package (procedure) that manages a number of procedures to determine whether the process can continue or not.  (It checks authorization of the student to enroll in a class).  We have a web process calling the stored procedure, and that works fine.  What does not work, is a call to the package.  Oracle returned ORA-06508: PL? SQL: could not find program unit called.

    I have included instructions for debugging, so I know that it is the specific call to a procedure in the package fails with ORA-06508.  Thinking it's perhaps something in the package, I inserted a debug statement as the first line in the procedure called in the package.    (Debugging instructions call a procedure inserts of rows in a table of debugging with independent validation).

    When I log in the user account with sqlplus and run a test, everything works fine.  But when the web process is running under the same user, the process fails to call the procedure of package and fails with ORA-06508.

    It seems as if the web process runs with the rights of the appellant, or a role is not granted.

    Can someone help me understand what the problem is?

    offered hv, I appreciate your comments.

    We solved the problem: remove the package that couldn't be cited, then re-create.   That's all!

    Apparently, something in the database was tangled upward.   The server recently had problems with disk space, then it might have been related to that.  But we'll never know for sure.

    The stored procedure and packaging (procedures) which he called were owned by the same schema, and there is no mechanism that I can find to prevent one of the other appellant.  But that was the case - Oracle threw the ORA-06508 exception when the stored procedure called the package procedure.

    I replaced the stored procedure and package several times fine-tuning debugging code, but this has not fixed the problem.

    Finally let it drop and then re-create the package, it's which solved the problem.

    Regarding requests to view the code, there is no way that I could reproduce the problem, since the error that occurred was against the permissions and rules which packages run and the procedures of the Oracle.  Thanks for all the tips and suggestions.

  • The procedure entry point PowerEnumerate be found in the POWPROF.dll dynamic link library.

    When I develop a way of debugging the program. The procedure entry point PowerEnumerate be found in the POWPROF.dll dynamic link library.

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:

    http://social.technet.Microsoft.com/forums/en/category/windowsxpitpro

  • insufficient privileges when you create sequence using the procedure

    CREATE OR REPLACE PROCEDURE schema1.proc1 AS
    BEGIN
    EXECUTE IMMEDIATE 'DROP SEQUENCE schema1.add_ins_seq';
    EXECUTE IMMEDIATE 'CREATE SEQUENCE schema1.add_ins_seq MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 1000 NOORDER  NOCYCLE';
    END;
    

    This procedure is created to schema1 by schema1.

    Schema1 boasts a CREATE SEQUENCE privilege.

    When I run this procedure through SQL Developer after the Cup to schema1, the error is thrown in insufficient privilege to CREATE SEQUENCE, however, DROP SEQUENCE is executed. I can create the sequence without the procedure call.

    If I add AUTHID CURRENT_USER so I don't get the error of insufficient privileges.

    Why it gives this error when the owner and the applicant of the procedure is schema1?

    Hello

    1st thing to know: when a procedure is defined (and updated), any privileges granted through ROLE is not taken into account. This is because these privileges can be active or not at the level of the session (as happens if for example a user has active 'role A' in session 1 but not in session 2 and if this role has been used to define a procedure?) The proecedure must at the same time be VALID in session 1 and INVALID session 2? Is not possible.

    Thus, for instance in a situation of 'standard': user SYSTEM has 'DBA Rôle', so you can for example make a sqlplus session "SELECT * v $ instance;", but you would write a procedure owned by system making instance_name SELECT INTO l_variable OF v$ instance;  "then"surprise": the procedure cannot be compiled because of the ORA-904 Table or view does not exist..." To be able to create the procedure, a DSS system needs to be done.

    2nd thing for your special case, a little more complex: default for a procedure is 'AUTHID DEFINE', but once more: it means "privileges of the author creating the procedure", so without taking into account the acquired privileges through roles... Your user name is 'sequence create' through a role, it cannot use the privilege within the procedure.  But... but when you define the procedure with AUTHID CURRENT_USER, privileges are evaluated at run time, and thanks to the active ROLE in the session by calling the procedure, at this time, the user can create the sequence.  If try again you but with 'The VALUE NONE ROLE' in the session before the call, you will again have the question.

    Conclusion: If you need to do the action, you must grant the user the necessary privilege directly.

    Best regards

    Bruno Vroman.

  • Problem with the procedure. Help, please

    Schema: HR

    Here is the procedure I created, when I compile the procedure it works very well and without errors or warnings are displayed. However, when I run, I get "01031. 00000 - "insufficient privileges" "error. "I tried 'GRANT ALL HR', 'ANY GRANT to HR'.," to HR WITH ADMIN OPTION GRANT ' nothing works. Not sure is code that has questions or privileges.

    create or replace procedure new_create_PROC IS
    BEGIN
    EXECUTE IMMEDIATE 'CREATE TABLE NEW_CREATE1(EMP_ID NUMBER,EMP_NAME VARCHAR2(20))';
    END;
    /
    
    
    EXECUTE new_create_PROC;
    
    TE new_create_PROC;
    /
    

    Help, please.

    You are connected to the DB under what user? You must grant this user the CREATE TABLE privilege.

  • Debugging of the dialogues - how?

    I have a fairly complicated dialogue and use the procedure step by step to check the variables etc.

    As soon as I press a button in the dialog the corresponding code in the callback routine is executed - no chance for the operation step by step:

    • Set a breakpoint at the beginning of the callback routine
    • Have a breakpoint near the end of the dialogue-setup code
    • Tiptoe away (F11) until the dialog is presented
    • Click on the button
    • I wait now the execution stops at the brakpoint within the callback routine, but this is not done.
    • I know, I'm in this routine, as an alert is performed if it is present.
    • But once the alert theres no chance to use step by step (F11).

    Is this as expected?

    To illustrate: it's the dialogue

    insert-calc-marker.png

    and this is the callback for the button routine == > (next)

    I put a breakpoint at line 2 which is not used at all.

    win.p0.g3.btnNext.onClick = function () {
          goCurrentMarker= GetMarker (oDoc, sMarkerName, "next", goCurrentMarker) ; 
          win.p0.sMarkerContent.text ="";
          gsMarkerText = goCurrentMarker.MarkerText;
          win.p0.sMarkerContent.textselection = gsMarkerText;
        }
    

    Yes, I have test routines (e.g. GetMarker) ins text scripts separated (see my other post of today ' today), but dialogue is different environment and therefore must be tested again (as I learned).

    Do you have ideas about how debug dialogues whithout placing many statements to alert/console?

    Klaus stew

    All knowing the .bp $ (true); statement that I knew not ESTK does not control...

    win.p0.g3.btnNext.onClick = function () {
          $.bp (true);
          goCurrentMarker= GetMarker (oDoc, sMarkerName, "next", goCurrentMarker) ;
          win.p0.sMarkerContent.text ="";
          gsMarkerText = goCurrentMarker.MarkerText;
          win.p0.sMarkerContent.textselection = gsMarkerText;
    }
    

    I thought that the script is executed in the environment of ESTK (even with #target framemaker) during debugging.

    But that's not true.

    • So after inserting the .bp $ (true); Statement
    • must save the script,
    • Run it (F5)
    • The dialog box appears and I click on the button
    • By ESTK the line containing the breakpoint is set
    • And I can't be more

    I have no awareness of the Guide of the JavaScript tools (which in my humble opinion should be titles ExtendScript...) but experiences. The ralationship between the target engine (framemaker) and ESTK is still a mystery to me. The text engine 'target' does not appear in the JS Tools Guide! It is called JavaScript engine.

    Maybe my method of thinking is not up-to-date more...

  • The procedure helps

    Hello

    Can someone help me with the procedure below. It seems to me, but I'm unable to turn it and get the error.

    "Error (8.36): PLS-00103: encountered the symbol"UNDER"when expecting one of the following conditions: (- + case null new mod continue County avg current prior min max sql stddev sum variance execute forall time timestamp interval date fusion pipe)"

    CREATE OR REPLACE PROCEDURE ddl_create_proc(p_table IN varchar2)
    AS
    i_stmt varchar2(200);
    BEGIN
    dbms_output.put_line('starting....');
    i_stmt := 'create table'||p_table||as 'select * from emp';
    execute immediate i_stmt;
    dbms_output.put_line('procedure Ended');
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('EXCEPTION '||SQLERRM||'MESSAGE'||SQLCODE);
    END;
    /
    
    

    Thanks in advance!

    Hello

    user782973 wrote:

    Hello

    Can someone help me with the procedure below. It seems to me, but I'm unable to turn it and get the error.

    "Error (8.36): PLS-00103: encountered the symbol"UNDER"when expecting one of the following conditions: (- + case mod new null continue County avg current min max sql prior stddev sum variance execute forall time timestamp interval date fusionpipe" ").

    1. CREATE OR REPLACE PROCEDURE ddl_create_proc (p_table IN varchar2)
    2. AS
    3. i_stmt varchar2 (200);
    4. BEGIN
    5. dbms_output.put_line ('starting...');
    6. i_stmt: = 'create table ' | p_table | as ' select * from emp';
    7. immediately run i_stmt;
    8. dbms_output.put_line ("'procedure completed");
    9. EXCEPTION
    10. WHILE OTHERS THEN
    11. dbms_output.put_line ('EXCEPTION' |) SQLERRM | ' MESSAGE' | SQLCODE);
    12. END;
    13. /

    Thanks in advance!

    In addition to what others have said, whenever you do the dynamic SQL code, display the value chain before you run it, like this:

    CREATE OR REPLACE PROCEDURE ddl_create_proc (p_table IN varchar2)

    AS

    i_stmt varchar2 (200);

    BEGIN

    dbms_output.put_line ('go... ») ;

    i_stmt: = 'create table ' | p_table | ' in select * from emp';

    dbms_output.put_line (i_stmt |) '= i_stmt in ddl_create_proc");  -For debugging

    immediately run i_stmt;

    dbms_output.put_line ('procedure completed");

    END ddl_create_proc;

    /

    After the test is finished, you can comment out the line marked "for debugging.

    You need an EXCEPTION section.  If there is an error, the error message will be displayed by default; you don't need to explicitly show.

    What is the big picture here?  What is this procedure intended to do?  There may already be a procedure provided by Oracle that the fact, perhaps in dbms_metadata:

    DBMS_METADATA

  • Vs role directly privilege on the creation of the procedure

    I gave an our develpers create them all procedure/run procedures privleges and also granted him a role that has choose, update privileges, but always as insufficient privileges error when attempting to create a procedure.

    On the other hand, when I grant the same privilege directly to the user, it is able to create the procedure without error.

    What I'm doing wrong - I'd like only to all privilege granted through roles.

    Your input please.

    acquired through ROLE privileges do NOT apply within the named PL/SQL procedures

  • UTL_MAIL does not work in the procedure.

    Hello guys, I have given privilege to run on my user and executed UTL_MAIL package the following

    exec utl_mail.send (sender = > ' < user_id1 > @ < domain_name > .com ', recipients = > ' < user_id2 > @ < domain_name > .com ', subject = > 'Test eMail', message = > 'blah');

    the utl_mail perform very well.

    But now I want to put the utl_mail package in a procedure.

    CREATE OR REPLACE PROCEDURE test_email AS

    BEGIN

    UTL_MAIL. SEND (sender = > ' < user_id1 > @ < domain_name > .com ',)

    recipients = > ' < user_id2 > @ < domain_name > .com '.

    subject = > 'Test eMail ',.

    message = > "blah");

    END;

    now, when I run the procedure "run the test_email", I get the following error.

    BEGIN user_id1.test_email; END;

    Error on line 1

    ORA-24247: network access denied by access control list (ACL)

    ORA-06512: at "SYS." UTL_MAIL", line 654

    ORA-06512: at "SYS." UTL_MAIL", line 671

    ORA-06512: at "USER_ID1. TEST_EMAIL', line 3

    ORA-06512: at line 1

    Script done on line 10.

    can someone help me on this point, which is UTL_MAIL to work when running individually and does NOT when it is used in a procedure, where mistaken?

    Thank you

    The procedure has worked.  to get the UTL_MAIL work with in a process, outside the grant execute on UTL_MAIL to the user, that user is referred to an ACL as follows. previously, I thought a creation of ACL is sufficient to generate emails for all users.

    BEGIN
    DBMS_NETWORK_ACL_ADMIN. (ADD_PRIVILEGE)
    ACL-online "."
    main-online "."
    IS_GRANT => TRUE,
    privilege of-online 'connect');
    END;
    /

  • Dynamic insertion within the procedure error


    Hi all

    I use under oracle database on HP - UX.

    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE Production 10.2.0.5.0
    AMT for HP - UX: 10.2.0.5.0 - Production Version
    NLSRTL Version 10.2.0.5.0 - Production

    I'm not able to run the procedure below and it returns the error. The insert in the procedure returns error. If I execute manually only the insert statement, it works well.
    Can someone help me with this issue?

    Procedure
    ===========
    create or replace procedure test_proc
    as
    v_sql varchar2 (2000);
    Start
    v_sql: =' insert into TABLE1 (select owner, object_type, object_name, "S", "Y" of dba_objects@LINK1 )
    where owner = "ABC" and object_type = "TABLE" less
    Select the owner, object_type, object_name, "S", "Y" from dba_objects where owner = "ABC" and object_type = "TABLE") ';

    immediately run v_sql;
    commit;
    end;
    /

    exec test_proc;

    Error:
    ===========

    ERROR on line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "SYSTEM. TEST_PROC", line 8
    ORA-06512: at line 1

    user running this procedure doesn't have permission to read data from DBA_OBJECTS. Grant select permission on that to the user running this procedure and it should work.

    Onkar

Maybe you are looking for