Topic: SQL*Plus and PL/SQL >> About PLSQL
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| bhmadhukar |
Posted: Feb 07, 2008 07:55:12 AM |
Total Post: 14
Joined: Jan, 2008
|
I wrote few *.sql (ie., plsql's) under user schema (m). I want to see what are plsql's for that schema or user (ie., *.sql) from the view (table's object). Is there any view? plz tell me?
In adv. thanx. |
|
|
Murtuja |
| Posted: Feb 07, 2008 08:44:49 AM | |
|
Total Post: 825
Joined: Jan, 2006
|
SELECT *
FROM user_objects
WHERE object_type IN ('PROCEDURE', 'PACKAGE', 'PACKAGE BODY', 'TRIGGER')
|
|
|
|
|
Murtuja |
| Posted: Feb 07, 2008 11:13:19 PM | |
|
Total Post: 825
Joined: Jan, 2006
|
Hi,
You can view source code of objects by these way.
1)
select * from dba_source
where name='PROCEDURE_NAME'
and owner='USER_NAME'
2)
set long 20000
SELECT dbms_metadata.get_ddl('PACKAGE', 'AEMDB')
FROM dual;
|
|
|
|
|
bhmadhukar |
| Posted: Feb 07, 2008 11:17:42 PM | |
|
Total Post: 14
Joined: Jan, 2008
|
Thanks my dear friends....
|
|
|
|
|
Garlapati |
| Posted: Feb 08, 2008 12:09:57 AM | |
|
Total Post: 30
Joined: Apr, 2007
|
Hi,
If u want see the objects with in schema
then use this qeury(may be u have procedure,function,packagebody)
1)
SELECT *
FROM user_objects
WHERE object_type IN ('PROCEDURE', 'PACKAGE', 'PACKAGE BODY', 'TRIGGER')
else
if u want to see the source code of that perticular procedure(if u know the name of procedure then use this query.
1) select text from user_source where name=<procedure name> and type = 'procedure'
this is used to see the source code of u r objects(procedure,packagebody,function,triggers)
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 825 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 250 |
| Ramesh Jois | 245 |
| neeraj sharma | 245 |
| Bishal Khetan | 207 |
|
|