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

Similar Messages

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

  • 3rd node is taking 15% of CPU without any load and connection on the server

    Hi,
    I am struggling to resolve the 3rd node is taking 15% of CPU without any load and connection on the server. but not find clues for this. Please give me some inputs.
    The issue is:
    We have 8 databases on our 3node RAC (11.2.0.1). One of the performance team guy reported that 3rd node is taking 15%cpu utilization when there is no load and connection to the database and at that time the other 2 node are taking only 1%cpu. even i have checked it by using top command and it is almost given same results.
    To come out of this issue, i have two solution in my mind, but i am not sure whether this approach is good or bad. the plans are
    (1). shutdown the databases and check the cpu usage. --to findout is there any thing wrong with Kernel parameters or at system level.
    (2). Shutdown the databases and CRS on the 3rd node and reboot the server.
    If above process is correct then i need to take permission from my manager.
    I am total stuck, what i need to do. Is there any other approach to resolve this issue. Please help me, this is very critical issue for me.
    Also i have checked from GV$SESSION for the active session, but i didn't find any connection apart from oracle processes.
    Thanks in advance.

    Thank you Guzma for your suggestion,
    When i checked the gv$session for the active sessions from only 2databases, Do i need to check in all the databases and make sure there are no active session and try for the 1st solution.
    -more over i have observed that one of the oracle process is taking 99% of the 15%cpu when i checked from top command. i have tried to find out the what the session is from below, but it given no results from the 2of the DB's.
    top - 13:43:27 up 28 days, 2:44, 1 user, load average: 8.62, 7.90, 6.46
    Tasks: 1275 total, 11 running, 1264 sleeping, 0 stopped, 0 zombie
    Cpu(s): 37.3%us, 6.9%sy, 0.0%ni, 44.3%id, 3.9%wa, 0.2%hi, 7.4%si, 0.0%st
    Mem: 32830792k total, 32440660k used, 390132k free, 2888k buffers
    Swap: 32764556k total, 9553692k used, 23210864k free, 20920068k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    17870 oracle 25 0 4254m 111m 102m R 94.6 0.3 35345:34 oracle
    8332 oracle 15 0 9151m 676m 639m R 27.9 2.1 2:03.00 oracle
    18062 oracle -2 0 9151m 4.5g 4.5g S 13.5 14.5 3049:49 oracle
    18058 oracle -2 0 9151m 4.5g 4.5g S 12.8 14.5 2948:39 oracle
    SQL>select p.spid,s.sid,s.serial#,s.username,s.status,s.last_call_et,p.program,p.terminal,logon_time,module,s.osuser
    from gV$process p,gV$session s where s.paddr = p.addr and p.spid=17870 ; 2
    no rows selected.
    in database level, will some of the session or processes hangups fro some reason?
    thanks,
    Hari

  • If i buy a phone that is unlocked for any carrier and connect it, will it still be unlocked for other carrier?

    If i buy a phone that is unlocked for any carrier and connect it, will it still be unlocked for other carrier? 

    If you buy it directly from apple as unlocked yes.  I know some places sell "unlocked" phones that lock to the first network you connect them to.  Your best bet is to buy directly from apple.

  • How to grant update privilege on custom procedures created in apps schema?

    Hi
    We have R12.0.6 instance running in our organization. Our programmers keep requesting the 'write (update)' access on some custom procedures that are originally created in apps schema. I created one read-only like database user and granted 'execute/debug' privilges on those custom procedures, but still using this user procedures cannot be updated (in sufficient privileges).
    Once they modify procedure, forwarding me the code. Using apps user profile, i can recreate procedures using create or replace command. This way it is working fine. Our concern is how they (programmers) themselves using database read-only user does this job? What privileges needs to be granted?
    Please guide me?
    Regards
    Ariz

    Arizuddin wrote:
    Hi
    We have R12.0.6 instance running in our organization. Our programmers keep requesting the 'write (update)' access on some custom procedures that are originally created in apps schema. I created one read-only like database user and granted 'execute/debug' privilges on those custom procedures, but still using this user procedures cannot be updated (in sufficient privileges).
    Once they modify procedure, forwarding me the code. Using apps user profile, i can recreate procedures using create or replace command. This way it is working fine. Our concern is how they (programmers) themselves using database read-only user does this job? What privileges needs to be granted?
    Also provide "alter procedure" privilege to that user.
    Regards
    Rajesh

  • HT201205 How can I connect to a bluetooth devise and use the head phones at the same time? I have a new  ipod Touch  (32GB)'and want to play through a stereo system using the headphone jack and connect to a blue tooth speaker in another room

    How can I

    Not possible, there is a physical switch inside the headphone port, when the headphone jack is plugged in the switch is open and disables the iPod speaker and Bluetooth networks. Cheers.

  • Problem dequeueing even with sys privilege - DEQUEUE ANY

    On one database instance we are seeing this; Connected user has DEQUEUE ANY sys privileges;
    However, a dequeue fails saying insufficient privileges; This works on other database instances?
    Any ideas? This is with database - (10.2.0.3.0 - 64bit Production)
    Thanks
    Vijay
    SQL> select * from USER_SYS_PRIVS;
    USERNAME PRIVILEGE ADM
    PUBLIC DEQUEUE ANY QUEUE NO
    PUBLIC ENQUEUE ANY QUEUE NO
    PUBLIC DEBUG CONNECT SESSION NO
    PUBLIC DEBUG ANY PROCEDURE NO
    PUBLIC SELECT ANY DICTIONARY NO
    6 rows selected.
    SQL> DECLARE
    2 dOpt dbms_aq.DEQUEUE_OPTIONS_T;
    3 mprop dbms_aq.message_properties_t;
    4 deq_msgid RAW(16);
    5 payLoadData MyPayload;
    6 BEGIN
    7
    8 dOpt.wait := 1;
    9
    10
    11 dbms_aq.dequeue(
    12 queue_name => 'MyQueue',
    13 dequeue_options => dOpt,
    14 message_properties => mprop,
    15 payload => payLoadData,
    16 msgid => deq_msgid);
    17
    18 END;
    19 /
    DECLARE
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_AQ", line 335
    ORA-06512: at line 11
    SQL>

    Thanks for the comment;
    I don't think this is a design flaw; Design is such that queues are owned by a separate
    schema user; Our install/upgrade architecture requires that the DDL be executed by
    a separate user. This prevents me from granting object level privileges on the queues
    because they have to be granted as the owner of the queue; I get around that by
    granting "DEQUEUE ANY QUEUE" sys privilege which can be granted by a non
    queue object owner (by SYS or DBA).
    See this related topic.
    Granting queue privileges as a DBA user to queues not owned by DBA
    Also, if this was a design flaw, then why would it work on other database instances?
    The fact that I am granting "DEQUEUE ANY QUEUE" to PUBLIC should be sufficient for
    any database user to dequeue the message.

  • DEBUG CONNECT SESSION

    Hi Team,
    Will doing Debug mode in SQE Developer i am getting the below error message
    Connecting to the database 1SQE_AII_R17.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '122.32.222.101234', '121' )
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 1
    This session requires DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE user privileges.
    Process exited.
    Please help me on this.

    This session requires DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE user privileges.Does this not explain it all?

  • Roles/System privileges/Object privileges

    Oracle 10g. we created a role and assigned this role to the user. We also assigned some system privileges and Object privileges directly to the same user. Now the company's new policy is that the user's permissions have to be assigned only via role. system privileges and Object privileges cannot be assigned directly to the user. So I have to alter the role. The steps are:
    1. grant system privileges and Object privileges to role. (this will be executed as a script)
    These privileges were directly assigned to the user.
    2. revoke all privileges which were directly assigned to the user.
    Do I miss anything?
    Please advise.
    Thanks
    S.

    Object privileges cannot be assigned directly to the user.Privileges acquired via ROLE do not apply within PL/SQL procedures.
    You may face some coding challenges in the future due to this policy.

  • Granting select privileges

    I want to grant select privileges on all tables and views belonging to database xyz to the user abc.
    What's the best way to do that?
    Message was edited by: Diarmuid - 11/07/07
    user580522

    I beg to differ. Of course OP can try to 'GRANT SELECT ANY TABLE'. It's just a matter of his own privileges if he succeeds or not.
    To OP: Reading about GRANT might help:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9013.htm#i2077938
    Note this part from the docs:
    To grant a system privilege, you must either have been granted the system privilege with the ADMIN OPTION or have been granted the GRANT ANY PRIVILEGE system privilege.

  • Missing SYSDBA & SYSOPER System Privileges in EM checkbox lists

    I created a brand new user called USER1.
    When edit the USER1 using Eneterprise Manager, System Privileges, both the SYSDBA and SYSOPER are missing from the system privileges check box listing.
    Why it is like that?
    I am using Oracle 10g R2 and HPUX.
    Thank you,
    Smith

    It seems that the user you have used to login to EM doesn't have permissions to grant sysdba, sysoper privileges, please connect to em AS sysdba
    Oded
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • Execute any procedure for developers

    Hello,
    our developers want the privilege "execute any procedure" because the self-programmed application needs execute on unknown procedures. (Oracle 10.2) It's the application-administrator-user on which the development has full access.
    On AskTom I read, that "execute any procedure" is extremely powerful an should not be granted to normal users.
    I would like to know, if this is only not recommended for O7_DICTIONARY_ACCESSIBILITY=true or under any circumstances.
    Any ideas how we can find out, which procedures are used by this user? Or on the other hand, which are the risky elements from "execute any procedure"?
    Any arguments against giving this privilege are welcome, I have to give a statement on this.
    Thanks,
    M.Hannibal

    Ok. I just browsed through Asktom for this issue and it is true that there are NO risks highlighted over there after granting "EXECUTE ANY PROCEDURE" to a user.
    Though, I would like to put forth following points.
    1. Some of procedures/functions in SYS as not supposed to be used by the normal database users (results can be unpredictable)
    2. Upon grant of this privilege, the user can execute procedure of any schema in the database. This can be problematic if an user of PAYROLL schema starts executing procedures of FINANCE schema and change all accounts (kind of) related information.
    In your situation, you can handle this by creating a DDL trigger in the schema where the procedure will be created. Via trigger, grant execute on this procedure to the user under which the application is going to run.
    Thus you will have control over the procedure execution and you can easily track down the problem if somehting goes wrong (as will then you know who all can execute a particular procedure).

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

  • Find users with grant all privileges

    Hello,
    I am trying to figure out how to query for all users who might have grant all privileges.
    Any ideas or scripts?
    thanks

    Hi,
    Please check this out,
    http://www.petefinnigan.com/tools.htm
    There are a lot of good scripts, maybe one of them can show what you are looking for.
    Cheers,
    Marcello M.

  • DEBUG CONNECT SESSION system privilege

    Hi everyone. It's my first post to this forum so I'd like to say hello :)
    I'm completely new to PL/SQL language. I'm using PL/SQL Developer and I want to make a simple testscript but when I launch it communicate appears
    Debugging requires the DEBUG CONNECT SESSION system privilege
    could You tell me how to set that? Greetings. P.

    in the xp:
    start>run>cmd
    in the cmd console:
    1. set oracle_sid=<bobens_83-here_goes_your_db-name>
    2. sqlplus /nolog
    3. conn sys as sysdba
    4. sqlplus may asks for password - if it does, bobens_83, supply the password that was chossen during the install process.
    5. grant DEBUG CONNECT SESSION to =<bobens_83-here_goes_your_db-username>
    6. exit sqlplus
    7. exit cmd
    in the xp:
    try to debug using PL/SQL Developer.
    Have fun,
    Amiel Davis

Maybe you are looking for

  • ONLY screen blending mode doesn't work...?

    I have Windows 8, and Photoshop CS6. All of my blending modes work, except for Screen. I don't know why it doesn't, but I do use it somewhat frequently, and it's really holding me back at this point. Is this related to all the other problems people h

  • Payment Manager performance is too bad . Anyone please suggest for improvement

    Hi All, Our payment manager performance is too bad. Its taking 3 minutes to open payment manager screen  and sometimes its not opening . Please help me to resolve the issue

  • PO upload header text

    Hi, is there any way to upload massively header texts in POs ? Regards

  • SSRS Drillthrough Reports functionality not working in exported Excel format

    Hi All, Recently I have made a drillthrough report in SSRS 2008R2,Its working fine only in MSBI run mode and preview mode of report designer.Going from main report to sub report and any other report through drillthrough report its work fine. When I e

  • General programing

    I have downloaded the netbeans 4.0 and I have some problems because it doesn't let me write to variables. Ex: int abc = TextIO.getInt();And it gives errors on the TextIO program. What do I do ?