DEBUG ANY PROCEDURE

Oracle 9.2.0.6, soon to be 11.1.0.7...
Please double-check my understanding of the documentation.
We have at least one developer who likes to use the PL/SQL Debugger functionality, which requires DEBUG ANY PROCEDURE (http://docs.oracle.com/cd/B10501_01/appdev.920/a96590/adg10pck.htm#37819).
Our system DBAs are wisely hesitant in granting an "ANY" privilege. My understanding is that even though this privilege has "ANY" in the name, it is not highly privileged like ALTER ANY TABLE, EXECUTE ANY PROCEDURE, etc.
Should I (or the system DBAs) have any reservation with this privilege in development and test environments?
The SQL reference notes that it is equivalent to granting DEBUG on every applicable object. (http://docs.oracle.com/cd/B10501_01/server.920/a96540/statements_912a.htm#2075179).
If I read this right, and if a DBA will not grant DEBUG ANY PROCEDURE, I should be able to grant DEBUG on each PL/SQL object to the developer to get the same result?
Thanks

in my opinion the Debug is quite safe privilege. It will not alter the procedure.
however still I chose not to grant it in Prod environment since it may cause locking issue (library cache pin).

Similar Messages

  • Granting system privileges DEBUG ANY PROCEDURE and CONNECT SESSION in 10gXE

    I am using Oracle DB 10g Express Edition and trying out SQL Developer. Whenever I want to debug a procedure I got the error:
    This session requires DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE user privileges.
    But I don't see these privileges to grant in the XE GUI for users.
    Does anybody know if this is supported in XE.
    Thanks.

    Hi
    Use SQL*Plus (or the apex interface), logon as dba and type this sql statements:
    grant DEBUG CONNECT SESSION to <username>;
    grant CONNECT SESSION to <username>;

  • What is basic difference between alter any & bebug any procedure sys privs?

    Hi
    I would like to know what is the basic difference between alter any & debug any procedure sys privs? Under which circustances, these will be granted?
    Regards
    Ariz

    ALTER ANY is the privilege to recompile. The DEBUG privilege displays information on all SQL statements executed by the application generated by debug mode.
    I have never found any value in creating a procedure in debug mode though I have found a lot of procs compiled in debug mode that needed to be recompiled.

  • Debugging stored procedure in SQL Server 2012

    Hi,
    Please I need your help.
    I used to debug stored procedures in SQL server 2008, 2008 R2. I'm debugging the stored procedure using SQL Server management studio. I just create a break point then I click on the debug button
    and start debugging without any problems.
    I'm talking about my local machine which I have administrator privileges on the machine. My account in the administrators group and I'm assigned in the sysadmin role in SQL server but I couldn't
    debug the stored procedure. When I create a break point and try to debug the stored procedure I'm getting a popup screen saying "To continue debugging, the firewall needs to be configured. Configuring the firewall requires privileges."
    I tried to figure out the issue but unfortunately until now I'm not able to resolve it.
    Thanks. 

    The problem resolved with help of Microsoft support but it was really strange situation.
    First, the following is my environment.
    OS is Windows 8 Pro
    SQL Server 2012
    I did try everything firewall, Anti-Virus and other thing as well. I usually type (local) on the server name TextBox. I did close my Anti-Virus program, turn off windows firewall and run SQL server as administrator but I’m still
    unable to debug.
    I just do one thing and one thing only, changed the (local) on the server name TextBox to the actual server name and everything work fine. I did try that with everything close/open my Anti-Virus program, turn
    off/one windows firewall and still work fine, and I was able to debug any T-SQL in SQL server 2012 but run it as administrator.
    Anyway, I’m happy to back on the road again.
    Thank you every single one of you who try his best to help.
    Cheers.

  • How to debug Stored Procedures on Runtime?

    Is there any way or any tool available using which I could debug stored procedures on runtime ? Please also pass the links if you know any.

    Check out the PL/SQL Developer tool:
    http://www.allroundautomations.nl/plsqldev.html
    You can download a fully functional version for a 30 day trial. Much less expensive than TOAD, and better yet, it actually works (the TOAD PL/SQL debugger in version 8 is so buggy as to render it useless)

  • How to debugging a procedure

    Hi,
    I have some 1000 lines of code in a procedure
    now i want to debug this procedure to find out where the error getting
    could any one help me how to debug the huge lines of procedure

    Hi,
    I usually opt for PL/SQL developer tool for debugging millions of line of code. Try to grant the privilege to user 'debug connect session'.
    Try to execute the procedure in step by step execution. Pass the run time variable input value to procedure and go on with debug procedure then you can watch how code is carrying out the changes.
    HTH
    - Pavan Kumar N

  • Debugging Stored Procedures

    Hi friends,
                  I am using [SBO_SP_PostTransactionNotice] for update. is there any possibility to debug this procedure?. If it is possible pls guide me.
    Regards,
    Silambu

    Hi,
               But Update also happening.
    thanks,
    silambu

  • Why doesn't the "grant execute any procedure" work?

    Hi to all.
    I want to grant the execute privilege for all SYS schema functions/procedures. To achieve it I do the following:
    SQL> connect sys/*****@orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as SYS
    SQL> create user test identified by test;
    User created
    SQL> grant create session to test;
    Grant succeeded
    SQL> grant execute any procedure to test;
    Grant succeeded
    According to the [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9013.htm] the "grant execute any procedure" - grants Execute procedures or functions, either standalone or packaged.
    So, the steps seem to be right. Then, I try to connect to the test user and execute any procedure from the SYS schema, for example, dbms_lock.sleep:
    SQL> connect test/test@dizzy/orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as test
    SQL> begin
    2 sys.dbms_lock.sleep(1);
    3 end;
    4 /
    begin
    sys.dbms_lock.sleep(1);
    end;
    ORA-06550: line 3, column 1:
    PLS-00201: identifier 'SYS.DBMS_LOCK' must be declared
    ORA-06550: line 3, column 1:
    PL/SQL: Statement ignored
    So, the execution fails due to insufficient rights. However, the direct grant on the sys.dbms_lock works!
    SQL> connect sys/*****@dizzy/orcl as sysdba
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as SYS
    SQL> grant execute on dbms_lock; to test;
    grant execute on dbms_lock; to test
    ORA-00911: invalid character
    SQL> grant execute on dbms_lock to test;
    Grant succeeded
    SQL> connect test/test@dizzy/orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as test
    SQL> begin
    2 sys.dbms_lock.sleep(1);
    3 end;
    4 /
    PL/SQL procedure successfully completed
    So, to be sure that the grant on any procedure from the definite scheme is given, should I avoid giving the execute any procedure grant?
    P.S. Is there any special tag for code?
    Thanks in advance.

    Sybrand, thank you for the reply.
    You are right. I tried to connect by another user NOT SYS and created the function:
    SQL> create user testic identified by i;
    User created
    SQL> grant create session, execute any procedure to testic;
    Grant succeeded
    SQL> create or replace function get1 return number is
      2  begin
      3  return 1;
      4  end;
      5  /
    Function created
    SQL> connect testic/i@orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as testic
    SQL> select get1 from dual;
    select get1 from dual
    ORA-00904: "GET1": invalid identifier
    SQL> select kaisa_rgali.get1 from dual;
          GET1
             1Thank you for the tag. This's exactly what I asked about.
    Finally, I tried t open the hyperlink http://download.oracle.com/docgs/cd/B10501_01/server.920/a96521/privs.htm but it failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Is there any procedure to get the memory warning levels using objective C

    I want know the different levels of memory warnings programmatically using objective C.Is there any procedure to get that.

    AmirTs wrote:
    my device connects to my server and need to authenticate with a unique number
    and i need access to the number to add it in the server.

  • My iphone 5 display has broken and i want to know there is any procedure to replace iphone ,it is out of warrenty

    display has broken and i have to replace my iphone 5 , there is any procedure to do this if yes then please help

    One option is to have it repaired: https://www.apple.com/support/iphone/repair/screen-damage/
    Not sure what you mean by "procedure to replace." How you would buy a new one depends on where you are located, whether you are under contract with a carrier for the old phone, etc. If you mean a procedure to move your data to a new phone, the following may help: Transfer content from an iPhone, iPad, or iPod touch to a new device - Apple Support

  • How can we debug a procedure?

    we need to debug a procedure but we lost the way after oracle moved the procedure builder to enterprise manager. we can execute it via em but we need a tool for writing,debugging and executing new ones.

    An SQLPlus window and either dbms_output or an anonymous log writing procedure is all you need to develop and debug home grown code.
    Most routines can be written as anonymous pl/sql code and tested then collected together into stored procedures or packages.
    You do not need a GUI tool, but if you must use one there is a product called PL/SQL Developer that some of our developers use. The developers seem to like it a lot.
    HTH -- Mark D Powell --

  • Can i create any procedure or function inside a oracle reserve package?

    Hi!
    Can i create any procedure or function inside a oracle reserve package. Suppose, I want to create a function called x in the dbms_output package. Can i do that? Or can i extend the features of this package and create/derived a function from it like we extend any class in JAVA. I'm not sure - whether this is at all possible. I'll be waiting for your reply.
    Thanks in advance.
    Satyaki De.

    No, but you can write a wrapper package and use that instead of using the Built-In package directly. So, instead of calling DBMS_OUTPUT, you call your own Package.
    Steven Feuerstein wrote a wrapper for DBMS_OUTPUT, called P:
    Re: DBMS_OUTPUT.PUT_LINE

  • SQL Developer 2.1 EA2 does not show any procedures

    With this version, the Navigation Tree does not show any procedures.

    The query issued internally is:
    SELECT OBJECT_NAME, OBJECT_ID,
                DECODE(STATUS, 'INVALID', 'TRUE', 'FALSE') INVALID,
                'TRUE' runnable,
                PLSQL_DEBUG
    FROM SYS.DBA_OBJECTS o, dba_plsql_object_settings s
    WHERE o.OWNER = :SCHEMA
    AND s.OWNER = :SCHEMA
    AND s.name = o.OBJECT_NAME
    AND s.TYPE = :TYPE
    AND OBJECT_TYPE = :TYPE
    AND   SUBOBJECT_NAME IS NULL
    AND   OBJECT_ID NOT IN ( SELECT PURGE_OBJECT FROM RECYCLEBIN )Issue that in a worksheet to see what is failing...
    K.

  • How to debug a procedure in SQL Developer

    i am a plsql writer .... i use SQL Developer to connect to oracle on windows platform ... iam using oracle
    version 10g some time i need to debug a procedure or i want to run a procedure in debug mode
    please tell me how to do this SQL Developer

    There's great help inside sqldev, just follow the Help Contents - Concepts and usage - Running and debugging...
    Have fun,
    K.

  • Does GRANT CREATE ANY PROCEDURE auto grants EXECUTE on created obj to user?

    I have a User ABC which has GRANT CREATE ANY PROCEDURE on schema XYZ. Now, I create a new Function in schema XYZ using my ID ABC named "func123". My question is, would my User ID ABC being creator of func123 be able to EXECUTE it by default ???
    Note: ID ABC has not been explicitly given GRANT EXECUTE on this func123 function, neither it has GRANT EXECUTE ANY PROCEDURE on schema XYZ.
    Thanks in advance.

    There is no such thing as 'create any procedure on schema xyz'. When an user has create any procedure, he can create a procedure in any schema, including SYS.
    You have an unprotected and unsecured database by granting this powerful privilege to multiple users.
    Also when you create a procedure in a different schema, that schema becomes the owner, not the user creating it.
    Kindly brush up your basics and (re)read documentation.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Free Goods Delivery Control

    I set up the master data to "E" , and for every 5pcs , they get 1 pc free (exculsive) When I created Sales Order and Delivery of 10pcs, i get 2pcs additional item free. In the delivery, if i change the delivery quantity to 9pcs, the free goods is sti

  • How to change properties of UI element in SRM webdynpro

    I am having handfull of experience in ABAP WEBDYNPRO. Now i got an apportunity work in Webdynpro in SRM. As all we know changing the property of UI element in SRM is not that easy like we do like Webdynpro in ABAP. So i request anyone please provide

  • Starting an j2se 1.3 application over https with JWS 1.2

    Hi, How can you start an application which needs j2se 1.3* over https? I know, distributing signed Software over https isn't very useful, but it's the only way we can distribute it. I assume that JWS validates codebase and j2se version by it self so

  • Transaction variant for f-58

    hi all, i need to know how to create screen variant & transaction variant for transaction code : F-58 ? When i try to create screen variant for F-58 I get an error: "screen variants are only possible for dialogue transactions". Thanks & regards. Mess

  • TimeStampDiff Function

    Hi Guys, I have an function that says calculate the difference in Months between the opportunity expected close date and Today's date Timestampdiff(SQL_TSI_MONTH,Current_Date,"Close Date".Date) Today is the 8th December. My report shows: Close Date:.