RE: Why dbms_lock.sleep is not working for non-sys users?

  • From: "Baumgartel, Paul" <paul.baumgartel@xxxxxxxxxxxxxxxxx>
  • To: Richard.Goulet@xxxxxxxxxxx, Roger.Xu@xxxxxxxx, oracle-l@xxxxxxxxxxxxx
  • Date: Thu, 12 Mar 2009 16:40:08 -0400

Or maybe don't grant to public, but just those users who need it.
 

Paul Baumgartel 
CREDIT SUISSE 
Information Technology 
Prime Services Databases Americas 
One Madison Avenue 
New York, NY 10010 
USA 
Phone 212.538.1143 
paul.baumgartel@xxxxxxxxxxxxxxxxx 
www.credit-suisse.com 

 

________________________________

From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Goulet, Richard
Sent: Thursday, March 12, 2009 4:36 PM
To: Roger.Xu@xxxxxxxx; oracle-l@xxxxxxxxxxxxx
Subject: RE: Why dbms_lock.sleep is not working for non-sys users?


Connect to database as sys
grant execute on dbms_lock to public
 
The standard install scripts don't do the grant.
 

Dick Goulet 

 

________________________________

From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Xu, Roger
Sent: Thursday, March 12, 2009 4:27 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: Why dbms_lock.sleep is not working for non-sys users?



SQL> exec dbms_lock.sleep(10);

 

PL/SQL procedure successfully completed.

 

SQL> show user

USER is "SYS"

SQL> connect tsuser

Enter password:

Connected.

SQL> exec dbms_lock.sleep(10);

BEGIN dbms_lock.sleep(10); END;

 

      *

ERROR at line 1:

ORA-06550: line 1, column 7:

PLS-00201: identifier 'DBMS_LOCK' must be declared

ORA-06550: line 1, column 7:

PL/SQL: Statement ignored

 

 

SQL>

 

Thanks

 

Click here <http://www.drpeppersnapplegroup.com/about/corporate>  to
learn more about Dr Pepper Snapple Group's commitment to corporate
social responsibility.

Please be conscious of the environment and print this email only if
absolutely necessary. 

This e-mail (including any attachments) is confidential and may contain
privileged information of Dr Pepper Snapple Group, Inc. and/or its
subsidiaries ("Dr Pepper Snapple Group"). If you are not the intended
recipient or receive it in error, you may not use, distribute, disclose
or copy any of the information contained within it and it may be
unlawful to do so. If you are not the intended recipient, please notify
us immediately by returning this e-mail to us at mailerror@xxxxxxxx
<mailto:mailerror@xxxxxxxx>  and destroy all copies. Any views expressed
by individuals within this e-mail do not necessarily reflect the views
of Dr Pepper Snapple Group. This e-mail does not constitute a binding
offer, acceptance, amendment, waiver or other agreement, unless the
intent that an e-mail will constitute such is clearly stated in the body
of the email. Recipients are advised to subject this e-mail and
attachments to their own virus checking, in keeping with good computing
practice. Please note that e-mail received by Dr Pepper Snapple Group
may be monitored in accordance with applicable law.


==============================================================================
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================

Other related posts: