If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > DBMS_DDL Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-06-03, 00:50
bhargavi ganesh bhargavi ganesh is offline
Registered User
 
Join Date: Nov 2003
Posts: 1
Question DBMS_DDL Error

when the package dbms_ddl is used, I get an error message as given below .

Pl SQL Code :

begin
dbms_ddl.analyze_object('table','scott','emp','com pute');
end;


error message :

ERROR at line 1
ORA-20000: Unable to analyze table "scott"."emp", insufficient privileges or does not exist
ORA-06512: at "SYS.DBMS_DDL",line 192
ORA-06512: at line 2

----------------------------------

I have checked and the table does exist under the same schema(viz. SCOTT). So I think it is a privilege problem. What may be the privileges( other than the owner privilege) that may be required for the succesful execution of this PL/SQL code???

TIA for assistance
Reply With Quote
  #2 (permalink)  
Old 11-06-03, 05:45
cvandemaele cvandemaele is offline
Registered User
 
Join Date: Oct 2003
Location: Switzerland
Posts: 140
Does your user has the right to execute package dbms_dll ?
Reply With Quote
  #3 (permalink)  
Old 11-21-03, 03:34
satish_ct satish_ct is offline
Registered User
 
Join Date: Nov 2003
Location: Bangalore, INDIA
Posts: 333
Thumbs up

HI,

The table name and schema name have to be in the correct case for the package to work.

dbms_ddl.analyze_object('TABLE','SCOTT','EMP','COM PUTE');

Parameter descriptions for the ANALYZE_OBJECT procedure specifies the SCHEMA and object NAME are both case sensitive.
__________________
SATHISH .
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On