If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2look no procedure statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-16-04, 12:54
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
db2look no procedure statement

The database is ver8 .

export USER=<instance_owner>

I am using db2look -d < database_name> -e

It extracted functions from one schema , but no procedures
from other schema.

I also used db2look -d -z <schema_name> -e

The only thing missing are procedures

Is there anything needs to be changed

regards

Mujeeb
Reply With Quote
  #2 (permalink)  
Old 11-16-04, 15:04
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You cannot get Stored Procedure using db2look. I guess it is because SPs can be written in other languages beside SQL.

Andy
Reply With Quote
  #3 (permalink)  
Old 11-16-04, 17:46
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
db2look in ver8.2 have shown the create procedure command.
I will check with other db2 version.
It only shows the registered procedure command and it should be like
that one.

But it is showing the create function, function also calls the other external
language program.

regards

Mujeeb
Reply With Quote
  #4 (permalink)  
Old 11-17-04, 09:06
rubystep rubystep is offline
Registered User
 
Join Date: Sep 2003
Posts: 85
Mujeeb,
I beg to differ re. db2look outputting the CREATE PROCEDURE statements in UDB v8.2 .
I do see the GRANT EXECUTE ON PROCEDURE ... statements but not the CREATE PROCEDURE statements.
Ruby
Reply With Quote
  #5 (permalink)  
Old 11-17-04, 10:43
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
I just did db2look -d sample -e -o <output_file>

The file has the create procedure statement, the registered part,
my procedure are calling external library.

regards

Mujeeb
Reply With Quote
  #6 (permalink)  
Old 11-17-04, 10:58
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
I don't know its an odd behaviour or some changes in ver8.2.

I created an SQL stored procedure.
When I used db2look to extract information, it shows the registered part,
then add clause of external name, language remains the same SQL.
No procedure body part.
I know that with ver 8.2 , we don't need any C compiler.
I am trying to find, where is the external library, nothing under the function/..... subdirectory structure.

regards

Mujeeb
Reply With Quote
  #7 (permalink)  
Old 01-10-06, 09:57
holmskov holmskov is offline
Registered User
 
Join Date: May 2003
Posts: 4
Try

I just had a similar problem...
Ran a
db2look -d <database> -e -o <outputfile> -p
(enough to duplicate the database)...
In there you will have the full body (SQL).

Best regards -Ole
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On