Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Finding out all procedures , functions in a tree like structure in sequence

ora_1978Sep 6 2012 — edited Sep 6 2012
Example:

Say i have packages

pack1 - Master package
pack1proc1 - calls pack2proc1
pack1proc2 - calls pack3proc1

pack2
pack2proc1 - calls pack4proc1
pack2proc2 - calls pack4proc2
pack2proc3


pack3
pack3proc1

packn
.
.
.
.
-----

The above is just an example. My requirement when i pass master package (pack1) as input , i should get all chain of procedures in the dictionary upto any level. I know we have database dictionary user_dependencies, deptree, ideptree. But not sure of how to use that. Please give a query to get the chain of procedures.

Table is not needed. Only procedures and functions.

thanks,
Vinodh

Comments

SureshDooly-Oracle

$oerr ora 12154
ORA-12154: TNS:could not resolve the connect identifier specified

Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured.
For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.

Please cross-check the below:

Action: The following actions may be appropriate:
If you are using local naming (tnsnames.ora file):
Make sure that TNSNAMES is listed as one of the values of the names.directory_path parameter in the sqlnet.ora Oracle Net profile.
Verify that a tnsnames.ora file exists and is in the proper directory and is accessible.
Check that the net service name used as the connect identifier exists in the tnsnames.ora file.
Make sure there are no syntax errors anywhere in the tnsnames.ora file. Look for unmatched parentheses or stray characters. Errors in a tnsnames.ora file may make it unusable.

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 4 2012
Added on Sep 6 2012
11 comments
4,684 views