Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

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.



  


 Title: About PLSQL
 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

  




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 Khokhar825
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi250
  Ramesh Jois245
  neeraj sharma245
  Bishal Khetan207






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software