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

Similar Messages

  • Grant debug connect session to user

    I understand that if DBA hasn't granted following option to "user" following way:
    grant debug connect session to user;, then "user" wil lget following error when she tries to debug:
    ORA-0131:Insufficient Priviledges
    Debugging requires Debug connect session system priviledgesIs there any explanation why DBA decides to not grant such privilege? Maybe such privilege slows down something? Maybe it can create security "hole"? Maybe there is another good explanation?
    The "user" in this example was Schema/Account ment for Development personell who developes functionality, but it doesn't matter i think what kind the "user" is.
    so why you think i don't have such privilege, what bad could such privilege when granted give?

    Its just that You have not been Granted that Privilege. Mostly in what ever shop i have worked Such grants are given on request Base.
    Debugging is a Developers Right and no one can denie it.
    But i never use any debugging tool. I only relay on my Instrumented Code.

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

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

  • ALLOW A USER TO KILL A SESSION WITHOUT ALTER SYSTEM PRIVILEGE.

    Hi
    I need a user to have permission to kill a session without having the ALTER SYSTEM privilege. I created a procedure on sys schema and granted the EXECUTE privilege to the user but it doesn't work, how can I do, help please.
    CREATE OR REPLACE PROCEDURE SYS.PRC_SESSION_KILLER (P_SID IN NUMBER, P_SERIAL IN NUMBER)
    AS
    BEGIN
         EXECUTE IMMEDIATE 'GRANT ALTER SYSTEM TO SYSADMIN';
         EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION ''' || P_SID || ',' || P_SERIAL || ''' IMMEDIATE';
         EXECUTE IMMEDIATE 'REVOKE ALTER SYSTEM FROM SYSADMIN';
    END;
    Thank you very much.

    Hi,
    I second everything John said.
    Are you sure the arguments are correct?
    Below is the procedure I use. You may want to run it, just to see what the error is.
    PROCEDURE     kill_internal
         s_id          IN     NUMBER,
         serial_num     IN     NUMBER,
         stat_out     OUT     VARCHAR2
    IS
         alter_handle     INTEGER;
         ex_val          INTEGER;     -- Returned by dbms_sql.execute
    BEGIN
         alter_handle := dbms_sql.open_cursor;
         dbms_sql.parse
              alter_handle,
              'ALTER SYSTEM     KILL SESSION '''     ||
                   TO_CHAR (s_id, '999990')     ||
                   ', '                    ||
                   TO_CHAR (serial_num, '999990')     ||
              dbms_sql.native
         ex_val := dbms_sql.execute (alter_handle);
         dbms_sql.close_cursor (alter_handle);
         stat_out := 'Success: '                    ||
                   TO_CHAR (s_id, '999990')     ||
                   ', '                    ||
                   TO_CHAR (serial_num, '999990');
    EXCEPTION
         WHEN OTHERS
         THEN
              stat_out := 'Failure:'          ||
                   SQLERRM;
    --          dbms_output.put_line (stat_out);
              dbms_sql.close_cursor (alter_handle);
    END     kill_internal
    ;

  • How to check whether system privilege are granted

    How to check whether system privileges like 'create session' and other ones are granted for user.
    Is there any sys table where this information is available?
    Regards - Neuron

    Keep in mind select * from dba_sys_privs where grantee = 'some-user' will give you a list of privileges granted to some-user directly. To get complete list of system privs granted to a user both directly an via roles use:
    ACCEPT USER PROMPT 'Please enter user name: '
    COLUMN PATH FORMAT A90
    SET LINESIZE 132
    SELECT  PATH,
            PRIVILEGE
      FROM  DBA_SYS_PRIVS,
              SELECT  'DIRECT GRANT' PATH,
                      '&USER' GRANTED_ROLE
                FROM  DUAL
             UNION ALL
              SELECT  LTRIM(SYS_CONNECT_BY_PATH(GRANTED_ROLE,'->'),'->') PATH,
                      GRANTED_ROLE
                FROM  DBA_ROLE_PRIVS
                START WITH GRANTEE = UPPER('&USER')
                CONNECT BY PRIOR GRANTED_ROLE = GRANTEE
      WHERE GRANTEE = GRANTED_ROLE
    /Now on top of privileges granted to a user, user also has privileges granted to PUBLIC. To get privileges user receives via PUBLIC run the above script specifying PUBLIC at the prompt.
    SY.

  • Who may grant a system privilege?

    I am asking this as the Oracle doc explains:
    Only users who have been granted a specific system privilege with the ADMIN OPTION or users with the system privileges GRANT ANY PRIVILEGE or GRANT ANY OBJECT PRIVILEGE can grant or revoke system privileges to other users.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c24privs.htm#791
    Im not clear on this: why does GRANT ANY OBJECT PRIVILEGE give you the ability to grant SYSTEM privs??
    Thanks,
    DA

    This conflicts with the admin guide (http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96521/privs.htm#15326) which says: "To grant a system privilege, you must have been granted the system privilege with the ADMIN OPTION or have been granted the GRANT ANY PRIVILEGE system privilege."
    It works as said in the admin guide.
    SQL> create user test identified by test;
    User created.
    SQL> grant grant any object privilege to test;
    Grant succeeded.
    SQL> grant create session to test;
    Grant succeeded.
    SQL> conn test
    Enter password:
    Connected.
    SQL> grant create any synonym to test2;
    grant create any synonym to test2
    ERROR at line 1:
    ORA-01031: insufficient privileges
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> grant grant any privilege to test;
    Grant succeeded.
    SQL> conn test
    Enter password:
    Connected.
    SQL> grant create any synonym to test2;
    Grant succeeded.
    Message was edited by:
    Yas

  • Dúvida -  NF-e: Maintain Connected Authority Systems - layout 3.10

    Boa noite!
    Estou realizando o customize da SPRO, porém notei que só posso inserir a seguinte entrada para um mesmo CNPJ:
    Ou seja, quando tento colocar os demais estados o erro de chave duplicada é retornado devido aos campos logical system e Company's Own CNPJ. Dessa maneira, quando executo o novo programa de status de serviço (/XNFE/NFE_CHECK_SRV_STATUS) relalizando o debug noto que existe uma verificação durante a execução da função (/XNFE/SRVSTA_READ_CUST) na qual, por mais que eu tenha cadastro todos os cUF na spro que ficam registrados na tabela (/xnfe/tcuf) o status de serviço acaba sendo executado apenas para o que existe na tabela (/xnfe/govpar) alimentada pela configuração da NF-e: Maintain Connected Authority Systems da imagem que enviei posteriormente. Sendo assim só é executado o status de serviço para SP e não para todas as cUF que estão na atividade NF-e: Define Service Status Request for Authority (SEFAZ). Abaixo segue trecho do código que verifiquei que realiza esse controle no debug:
    SELECT * FROM /xnfe/govpar INTO TABLE lt_govpar
                                  WHERE doctype = iv_doctype.
    *--- 2. Version determination
      IF lt_govpar IS NOT INITIAL.
        SELECT * FROM /xnfe/xmlversdet INTO TABLE lt_xmlversdet
                           FOR ALL ENTRIES IN lt_govpar
                                 WHERE doctype  = iv_doctype
                                   AND logsys   = lt_govpar-logsys
                                   AND ( cnpj     = lt_govpar-cnpj
                                    OR   cnpj     = ' ' )
                                   AND messtype = iv_messtype.
    *--- 3. Service status check parameter
        SELECT * FROM /xnfe/tcuf INTO TABLE lt_tcuf.
        LOOP AT lt_govpar ASSIGNING <ls_govpar>.
    *--- Get corresponding entry from version determination
          READ TABLE lt_xmlversdet WITH KEY doctype = <ls_govpar>-doctype
                                            logsys  = <ls_govpar>-logsys
                                            cnpj    = <ls_govpar>-cnpj
                                  ASSIGNING <ls_xmlversdet>.
          IF sy-subrc <> 0.
    *--- If nothing is found try with blank CNPJ
            READ TABLE lt_xmlversdet WITH KEY doctype = <ls_govpar>-doctype
                                              logsys  = <ls_govpar>-logsys
                                              cnpj    = ' '
                                    ASSIGNING <ls_xmlversdet>.
          ENDIF.
          IF sy-subrc IS INITIAL.
    *--- Get corresponding entry for service status check parameter
            READ TABLE lt_tcuf WITH KEY doctype = <ls_govpar>-doctype
                                        cuf     = <ls_govpar>-cuf
                                      ASSIGNING <ls_tcuf>.
            IF sy-subrc IS INITIAL.
              ls_stacheck-cuf       = <ls_govpar>-cuf.
              ls_stacheck-tpamb     = <ls_govpar>-tpamb.
              ls_stacheck-xmlvers   = <ls_xmlversdet>-xmlvers.
              ls_stacheck-sscperiod = <ls_tcuf>-sscperiod.
              ls_stacheck-tzone     = <ls_tcuf>-tzone.
              ls_stacheck-respcont  = <ls_tcuf>-respcont.
              ls_stacheck-checkcont = <ls_tcuf>-checkcont.
              APPEND ls_stacheck TO et_stacheck.
            ENDIF.
          ENDIF.
          CLEAR: ls_stacheck.
        ENDLOOP.
      ENDIF.
    Sendo assim, como faço para que na atividade NF-e: Maintain Connected Authority Systems eu possa inserir todos os cUF com para os quais executarei o status de serviço e posteriormente enviarei notas?
    Obrigado.,

    Bom dia Luís,
    Exatamente! De fato o que ocorreu foi uma confusão, pois na versão anterior era possível enviar o status de serviço mesmo se você não possuísse uma filial para o estado em questão. Quando fui fazer a migração do cliente todos os estados estavam configurados para emitir status de serviço, porém não há necessidade de enviar o status de serviço para um estado visto que você não possui uma filial para emissão de Nota no mesmo.
    Abs.,

  • Create a new user for oracle 10G ASM instance with sysdba system privilege

    Hi,
    In our Golden Gate Project, we require the SYS user credential to connect to the Oracle 10g  ASM instance to read the database transaction logs.But our client is not providing the SYS user credential to  connnect to ASM instance.
    I'm getting the error message "ORA-01109:  database not open",When I tried to create a new user using the  below the steps in oracle 10g ASM instance
    1. Login using "sqlplus / as sysdba"
    2. Create user <username> identified by <password>;
    But in oracle 11g ASM instance, I'm able to create new  user  by connecting the ASM instance with SYSASM role without issues.
    Is there is any workaround to create a new user with sysdba system privilege in oracle 10g ASM instance?.
    Thanks in advance .

    Hi,
    Recreate the password file for the ASM instance as follows:
    Unix:
    orapwd file=<ORACLE_HOME>/dbs/PWD<SID> password=<sys_password>
    Windows:
    orapwd file=<ORACLE_HOME>/database/PWD<SID>.ora password=<sys_password>
    Now sys password is reset, we are ready to use sys for ASM management. I decided to create another user ASMDBA as I tried above.
    SQL> create user ASMDBA identified by test01;
    User created.
    SQL> grant SYSASM, SYSOPER to ASMDBA;
    Grant succeeded.
    SQL> select * from v$pwfile_users;
    USERNAME SYSDBA SYSOPE SYSASM
    SYS TRUE TRUE TRUE
    ASMDBA FALSE TRUE TRUE
    Please see this link : http://orachat.com/how-to-change-asm-sys-password-creating-sysasm-user-11g/
    Thank you

  • System.privilege.admin problem

    Good afternoon. Please excuse if this has already been asked and answered, but after searching for a few days I still haven't found a fix for this:
    After I had to wipe the hard drive on my G5 (don't ask), I reinstalled the OS from the DVD and then used the setup assistant to migrate all my files from my (mirrored) MacBook Pro. Now the application that runs my wireless broadband modem starts up, recognizes the modem, which is getting reception and shows up on Sprint's network (their tech support confirms), but *asks for my admin password, noting that it's necessary for "system.privilege.admin"* I give the (confirmed) password. At that point I get the spinning beach ball for a few seconds, then nothing at all happens. It doesn't freeze, mind you. It just goes back to idle. The same modem works fine with the same software on my laptop.
    *How do I fix my "system.privilege.admin"?*
    I had to reauthorize my Adobe Creative Suite, too, incidentally, but that took immediately.
    Here's what I've already tried:
    --Repair permissions
    --Un- and reinstall the software
    --delete plists associated with Sprint's SmartView software
    --create a new user account with admin privileges (beyond my main account that has admin privileges, too, of course)
    --confirmed firewall settings as "allow all incoming connections"
    None of these had any effect on the problem.
    Thank you for your time. I hope you can help.

    Ah! Very interesting! I hadn't thought to circumvent the provided application entirely. -- Well, look at that! That did the trick! Thank you, Sig.
    Here is the configuration for future reference:
    Configuration: Default
    Telephone Number: #777
    Account name: (field left blank)
    Password: (field left blank)
    Advanced > Modem Tab:
    Vendor: Other
    Model: EVDO Support
    Enable error correction and compression in modem (checked)
    Dial Mode: Ignore dial tone when dialing
    Dialing: Tone
    Sound: Off
    The rest of the settings I left alone.
    I'm still curious how to address the system.privilege.admin issue, but my actual problem is solved. Thank you for your help! I appreciate it.

  • VLD-2771 System privileges may not allow extraction from source ....??

    When I try to deploy the mappings in OWB Deployment Manager, I got a Warning "VLD-2771 System privileges may not allow extraction from source ORDER_ITEMS". WHY? ^^""
    ========================================
    I define a Runtime Repository Connections "ORACLE_HW_RUNTIME"
    Host Name: localhost
    Port Number: 1521
    Service Name: GBGLM
    Connect As User: owb904rr
    Runtime Repository Owner: owb904rr
    and the "ORACLE_HW_RUNTIME" is in "ORACLE_WAREHOUSE" module, the "ORACLE_WAREHOUSE" use the link "OE" and the owner is "OWBUSER"
    p.s. the table "ORDER_ITEMS" is in "OE" schema. I had grant DBA to "owb904rr" and "OWBUSER".
    then use "ORACLE_HW_RUNTIME" to deploy the Mappings "WH_ORDERS_MAP". What I need to do for deploy?
    ^_^||

    Anyone with similar experience using SQL Server as the source?
    First I get: VLD-2771: System privileges may not allow extraction from source Product.
    Then if i ignore the warning and deploy, i get
    ORA-06550: line 15, column 18:
    PL/SQL: ORA-00942: table or view does not exist
    I have a public database link to the sql server database.
    When I create the mapping, I am able to see the tables and create the map. So why this problem when deploying. Which user is to be granted access to the source tables. I belive we cannot grant access to remote database tables using a database link. So what is the work around?
    Any help is highly appreciated.
    Please email me at [email protected]

  • Integrate or connect SAP system to non-SAP system

    Hi All,
    We need to connect SAP system or integrate inspHire rental software to SAP. Do you know the process or initial summary on how to integrate this one?
    As of now, the only way that we know to integrate SAP to non-SAP for posting is thru LSMW and batch input.
    your suggestions will be greatly appreciated.

    Hi,
    LSMW is just tools for integration and you can use BDC Call Transaction, BDC session or BAPI, or Function to update something ins SAP.
    1/Easier is if your non-SAP system is able to create file and ftp to SAP folder.
    2/You will have background job running program that will every 5minutes or hour or daily(it is up to you how fast dat has to be bring to SAP) check if file was create in SAP folder.
    3/Program will move file to folder in process
    4/Program will process file, usinf function, or call transaction to update SAP on the base of file
    5/Program will move file to process folder
    If you need more info give me detail about what you would like to update in SAP and I could send you code.
    Bye Jan

  • *Listing admin_option for System Privilege *

    Hi All,
    I have a use case where in i have to list the admin_option for all the system privileges.
    Apart from two privileges listed below i could find this info from dba_sys_priv and dba_wm_sys_priv views.
    SYSDBA
    SYSOPER
    We can find these privileges information from v$pwfile view which do not give any information abt admin_option.
    Is there any way we can find out this inforamtion?
    I executed following steps :
    =================================
    SQL> conn user2/password
    Connected.
    SQL>select user from dual;
    USER
    USER2
    SQL> conn user2/password as sysdba
    Connected.
    SQL> select user from dual;
    USER
    SYS
    SQL> conn user2/password
    Connected.
    SQL> grant sysdba to user1;
    grant sysdba to user1
    ERROR at line 1:
    ORA-01031: insufficient privileges
    SQL> conn user2/password as sysdba
    Connected.
    SQL> run
    1* grant sysdba to user1
    Grant succeeded.
    ======================================
    Here when 'user2' is connecting as sysdba, its becoming 'sys' and its 'sys' who is granting sysdba privilege to 'user1'.
    So from this, can we say that its always 'sys' who can grant the sysdba privilege and admin_option for sys is always 'YES' where as for other users its always 'NO'
    Is this same for 'sysoper' privilege, because initially, its only 'sys' who has both the privileges assigned?
    If above is not true, is there any way to find this information?
    I am in URGENT need of this information. Could anybody please help me on this?

    Just a correction...
    From Oracle management Console, we can not change the admin_option assigned by default.
    Even if we try to change, the following sql gets executed
    REVOKE SYSDBA FROM USER2
    GRANT SYSDBA TO USER2
    So its ultimately With admin option always :)
    That has solved my problem
    Thanks all for your help..
    --Mrunal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Command line call of sqlplus with system-privileges

    Hello,
    I have the following problem: I like to run a sqlplus-command on sun-solaris with a 8.1.7 database which needs system-privileges. It works with every other user. When I use system I'll get an ORA-01017 (Invalid username/password).
    When I start this from DOS-Client it works, but I must run it from sun-solaris.
    Has anyone an idea?
    Thanks!!!
    Andreas Orth

    how are you connecting to the sun box from dos
    like this?
    connect system/manager@remote_db
    are you sure you have connected to the correct database?
    try select name from v$database after you have connected.
    do you have more than one instance on the sun box? have you st SID and HOME
    correctly to point you to the correct instance? If you can connect with another user
    from the sun box again verify that you are connected to the correct instance
    with select name from v$database
    steve

  • DBA role and system privileges

    I created a new user (PIPPO) with the default dba role in my db.
    I know that the dba_role has the SELECT ANY TABLE and INSERT ANY TABLE system privileges.
    I expeperienced that if I select a table of another schema on a simple sqlplus session everything is OK, but if I select the same table on the same manner in a PL/SQL procedure or in the creation of a wiew, both owned by PIPPO, the error message is that the table not exists...
    So I have to grant SELECT and INSERT on the tables I want to my user PIPPO.
    Does anyone tell me if this is normal or strange?
    Thanks

    This is normal. To access other schema's table you need to have direct grant not through roles. DBA is a role.

Maybe you are looking for

  • Report for Customer Condition Records

    Hello ABAPers, I want to write ABAP report to list out Material,Customer,Tax type and Tax amount. The data is available in tables A005 and KONP and the joining condition would be A005-KNUMH and KONP-KNUMH. But since A005 s a Pooled table am not able

  • Anyconnect XML Profile Certificate Matching - Multiple Certs different Issuer

    Hi Guys I am trying to setup an xml profile for cisco anyconnect that will look at multiple certificates that could be issued from 2 different CA's..... Currently having trouble setting this up and it does not look like it is possible.. Is there a wa

  • Why does Number's include the date and cell title when creating a formula!!

    When typing in a formula, if the 1st column has a date in it then, regardless of where on that row I begin the formula, the date and title of the column appears in the equation rather than the cell designations. What I get is this: ='# Shares Bought'

  • Material & Service PR through PM Order

    Dear All PM Experts, Can i create material & service purchase requistion through pm order.If yes what will be the account assignment category for the same. Also can you give me some overview on account assignment category from PM perspective. Thanks

  • No power button/sou​nd

    I have a dv6149us where the power button does not work, now does the light on the button com on.  There is also no sound on this system.   I am able to start the system with the quick launch buttons, and suggestions?