dbTalk Databases Forums  

obtaining the PL/SQL code of packages ??

comp.databases.oracle comp.databases.oracle


Discuss obtaining the PL/SQL code of packages ?? in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
george lewycky
 
Posts: n/a

Default obtaining the PL/SQL code of packages ?? - 07-02-2004 , 11:49 AM






Hello,

I'm trying to find out HOW or WHERE to retrieve the actual PL/SQL code
of the PACKAGE BODY.

Currently the only means I know of is TOAD's SCHEMA BROWSER.

Any ideas or suggestions would be really appreciated

Thanks

George Lewycky
http://georgenet.net/oracle

Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: obtaining the PL/SQL code of packages ?? - 07-02-2004 , 06:38 PM






gelewyc (AT) nyct (DOT) com (george lewycky) wrote in message news:<68aecc05.0407020849.2448342d (AT) posting (DOT) google.com>...
Quote:
Hello,

I'm trying to find out HOW or WHERE to retrieve the actual PL/SQL code
of the PACKAGE BODY.

Currently the only means I know of is TOAD's SCHEMA BROWSER.

Any ideas or suggestions would be really appreciated

Thanks

George Lewycky
http://georgenet.net/oracle
Just about everything related to objects created in Oracle is
available via the dictionary: all_, dba_, and user_source. Only the
owner or a DBA can see the source for a package body but if you have
execute privilege on the package you can see the specification source
via these views as long as the source was not wrapped. If the source
is wrapped you are pretty much out of luck if you do not have the
source stored away somewhere.

HTH -- Mark D Powell --


Reply With Quote
  #3  
Old   
Alex Filonov
 
Posts: n/a

Default Re: obtaining the PL/SQL code of packages ?? - 07-06-2004 , 11:32 AM



gelewyc (AT) nyct (DOT) com (george lewycky) wrote in message news:<68aecc05.0407020849.2448342d (AT) posting (DOT) google.com>...
Quote:
Hello,

I'm trying to find out HOW or WHERE to retrieve the actual PL/SQL code
of the PACKAGE BODY.

Currently the only means I know of is TOAD's SCHEMA BROWSER.

Any ideas or suggestions would be really appreciated

Thanks

George Lewycky
http://georgenet.net/oracle
Select text
from all_source
where owner = '<Package owner>'
and type = 'PACKAGE BODY'
and name = '<Package name>'


Reply With Quote
  #4  
Old   
Chris
 
Posts: n/a

Default Re: obtaining the PL/SQL code of packages ?? - 07-07-2004 , 04:30 PM



afilonov (AT) yahoo (DOT) com (Alex Filonov) wrote in message news:<336da121.0407060832.6aeead69 (AT) posting (DOT) google.com>...
Quote:
gelewyc (AT) nyct (DOT) com (george lewycky) wrote in message news:<68aecc05.0407020849.2448342d (AT) posting (DOT) google.com>...
Hello,

I'm trying to find out HOW or WHERE to retrieve the actual PL/SQL code
of the PACKAGE BODY.

Currently the only means I know of is TOAD's SCHEMA BROWSER.

Any ideas or suggestions would be really appreciated

Thanks

George Lewycky
http://georgenet.net/oracle

Select text
from all_source
where owner = '<Package owner>'
and type = 'PACKAGE BODY'
and name = '<Package name>'

If you are using Oracle9i, there's also the get_ddl option:

set pagesize 0
set long 90000
SELECT DBMS_METADATA.GET_DDL('PACKAGE_BODY','PK_SOMENAME' ) FROM dual;


set pagesize 0
set long 90000
SELECT DBMS_METADATA.GET_DDL('PACKAGE','PK_SOMENAME') FROM dual;


you can generate pretty much anything using this.

chris


Reply With Quote
  #5  
Old   
Chris
 
Posts: n/a

Default Re: obtaining the PL/SQL code of packages ?? - 07-07-2004 , 04:30 PM



afilonov (AT) yahoo (DOT) com (Alex Filonov) wrote in message news:<336da121.0407060832.6aeead69 (AT) posting (DOT) google.com>...
Quote:
gelewyc (AT) nyct (DOT) com (george lewycky) wrote in message news:<68aecc05.0407020849.2448342d (AT) posting (DOT) google.com>...
Hello,

I'm trying to find out HOW or WHERE to retrieve the actual PL/SQL code
of the PACKAGE BODY.

Currently the only means I know of is TOAD's SCHEMA BROWSER.

Any ideas or suggestions would be really appreciated

Thanks

George Lewycky
http://georgenet.net/oracle

Select text
from all_source
where owner = '<Package owner>'
and type = 'PACKAGE BODY'
and name = '<Package name>'

If you are using Oracle9i, there's also the get_ddl option:

set pagesize 0
set long 90000
SELECT DBMS_METADATA.GET_DDL('PACKAGE_BODY','PK_SOMENAME' ) FROM dual;


set pagesize 0
set long 90000
SELECT DBMS_METADATA.GET_DDL('PACKAGE','PK_SOMENAME') FROM dual;


you can generate pretty much anything using this.

chris


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.