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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user_procedures does not exist 2

Status
Not open for further replies.

greenpee

Programmer
Aug 3, 2004
39
US
Hi,

when I desc user_procedures, it gives me object doesn't exist. But when I check "user_objects" I can see my stored procedured. Did I do something wrong?
also
Is there a way I can check all the sys tables I have in my database?
 
Greenpee,

"USER_PROCEDURES" exists only in Oracle 9i and above. Even then I'll bet it does not provide the information you want. If you want to see the source code of your user-defined procedures and functions, you want to query "USER_SOURCE".

Then to your question, "Is there a way I can check all the sys tables I have in my database?" I'm not positive what you are wanting to see. When you say "my database", do you mean your Oracle user/schema, or do you mean you own an entire Oracle database which includes multiple Oracle users/schemas?

Each Oracle database has a set of "data dictionary views" that are functionally/logically equivalent to the "sys" tables in other non-Oracle database engines. In Oracle, there are three major groups of data dictionary views:

1) USER_* views: these views show objects that your login owns specifically and individually.

2) ALL_* views: views that show objects to which you have access, whether you own them or someone else owns them

3) DBA_* and V%* views: views that show objects for the entire database. Usually only DBAs have access to these views. Regular users can have access to these views, as well, if a DBA grants them "select_catalog_role".

Let us know if this information resolves your need.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)

Do you use Oracle and live or work in Utah, USA?
Then click here to join Utah Oracle Users Group on Tek-Tips.
 
If you are not in the schema that created the user_procedure then you need to prefix it with the user.
Ex. desc user_who_created_it.user_procedures
or, you spelled it wrong.

Assuming you have dba authority:
select * from dba_tables where owner='SYS';
 
Thanks Mufasa. These are so helpful. I can see my procs now.

When I am in schema, how can I see user_* views list? If I could see it, I might be able to figure out user_source was available and was the one I wanted.
 
Here is a script you can use, Greenpee:
Code:
select object_name from all_objects
where object_name like 'USER%'
  and object_type in ('TABLE','VIEW')
  and owner = 'SYS';

Let us know how this works for you.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)

Do you use Oracle and live or work in Utah, USA?
Then click here to join Utah Oracle Users Group on Tek-Tips.
 
Thanks Mufasa. This code works perfectly. You solve my problem!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top