Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pl/Sql Built-in packages 1

Status
Not open for further replies.

daph

Programmer
Jun 9, 2000
65
0
0
CA
Hi!

Here's my little problem,

I was trying to use the sleep(); procedure that is built in a package called DBMS_LOCK. I tried calling it by typing DBMS_LOCK.sleep(20); but I got this error message:

PLS-00201: identifier 'SYS.DBMS_LOCK' must be declared
PL/SQL: Statement ignored

Am I missing something here? I thought packages could be used anywhere in a procedure. Do I need to declare something before using it?

Thanks! :)

daph
 
You have no execution privilege on SYS.DBMS_LOCK package.

Connect to database as user SYS

Then
[tt]
GRANT EXECUTE ON dbms_lock TO my_user;
[/tt]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top