473,326 Members | 2,182 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

db2look in V8.2

All:

I tried to run db2look on V8.2 DB for getting ALL the DLLS for the
database.

When I look into the output file, the SQL procedures code is not
present. Instead I see an external entry associated with db2pvm. I
understand that db2pvm is being introduced for instead of C compiler.

My question is how do I get the DDLs for the SQL Stored Procedures in
db2look command?? or is there any other way?

Nov 12 '05 #1
8 3546
db*****@yahoo.com wrote:
All:

I tried to run db2look on V8.2 DB for getting ALL the DLLS for the
database.

When I look into the output file, the SQL procedures code is not
present. Instead I see an external entry associated with db2pvm. I
understand that db2pvm is being introduced for instead of C compiler.

My question is how do I get the DDLs for the SQL Stored Procedures in
db2look command?? or is there any other way?

check out the syscat.routines view it has a TEXT or BODY column that
holds teh definition for all SQL Routines.
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
Does this mean DB2LOOK cannot print out the SQL BODY of SQL
Procedures.??

Nov 12 '05 #3
db*****@yahoo.com wrote:
Does this mean DB2LOOK cannot print out the SQL BODY of SQL
Procedures.??

If it cannot do that I would consider that a bug.
Have never tried it myself.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #4
another shameless plug for AQT (no, i have no financial interest). it
does this for
LUW for sure. expect it will do so for Z/os. it is a separate window,
derived from
a separate tree for stored procedures. don't know whether it's part of
the Extended
Edition, since that's what i have and the functions aren't marked.

btdb

Nov 12 '05 #5
We used db2look -d <dbname> -i <username> -w<password> -a -o output.sql
-e -x -l

and ALL the objects DDLS were printed except for stored procedures. We
could ONLY see the below and not the SQL body

CREATE PROCEDURE "EDW_EVENT"."EDW_CREATE_REUSE_ID"
(
IN I_CUSIP VARCHAR(4000),
IN I_ALTDATE TIMESTAMP,
IN I_ALTRATE DOUBLE,
IN I_MAJORTYPE DOUBLE,
IN I_PRIMARYSECID VARCHAR(4000),
IN I_OPCODE DOUBLE,
IN I_ENTITY DOUBLE,
IN I_TANUM DOUBLE,
IN I_LEDGERDATE TIMESTAMP
)
DYNAMIC RESULT SETS 0
SPECIFIC SQL050218164630240
EXTERNAL NAME 'db2pvm!pvm_entry'
LANGUAGE SQL
PARAMETER STYLE GNRLNULL
NOT DETERMINISTIC
NOT FENCED NOT THREADSAFE
MODIFIES SQL DATA
NO DBINFO;

Nov 12 '05 #6

db*****@yahoo.com wrote:
We used db2look -d <dbname> -i <username> -w<password> -a -o output.sql -e -x -l

and ALL the objects DDLS were printed except for stored procedures. We could ONLY see the below and not the SQL body

CREATE PROCEDURE "EDW_EVENT"."EDW_CREATE_REUSE_ID"
(
IN I_CUSIP VARCHAR(4000),
IN I_ALTDATE TIMESTAMP,
IN I_ALTRATE DOUBLE,
IN I_MAJORTYPE DOUBLE,
IN I_PRIMARYSECID VARCHAR(4000),
IN I_OPCODE DOUBLE,
IN I_ENTITY DOUBLE,
IN I_TANUM DOUBLE,
IN I_LEDGERDATE TIMESTAMP
)
DYNAMIC RESULT SETS 0
SPECIFIC SQL050218164630240
EXTERNAL NAME 'db2pvm!pvm_entry'
LANGUAGE SQL
PARAMETER STYLE GNRLNULL
NOT DETERMINISTIC
NOT FENCED NOT THREADSAFE
MODIFIES SQL DATA
NO DBINFO;

.... and that corresponds to what was in the db2look docs i printed
out. SPs aren't listed as output from db2look.

btdb

Nov 12 '05 #7
db*****@yahoo.com wrote:
We used db2look -d <dbname> -i <username> -w<password> -a -o output.sql
-e -x -l

and ALL the objects DDLS were printed except for stored procedures. We
could ONLY see the below and not the SQL body

CREATE PROCEDURE "EDW_EVENT"."EDW_CREATE_REUSE_ID"
(
IN I_CUSIP VARCHAR(4000),
IN I_ALTDATE TIMESTAMP,
IN I_ALTRATE DOUBLE,
IN I_MAJORTYPE DOUBLE,
IN I_PRIMARYSECID VARCHAR(4000),
IN I_OPCODE DOUBLE,
IN I_ENTITY DOUBLE,
IN I_TANUM DOUBLE,
IN I_LEDGERDATE TIMESTAMP
)
DYNAMIC RESULT SETS 0
SPECIFIC SQL050218164630240
EXTERNAL NAME 'db2pvm!pvm_entry'
LANGUAGE SQL
PARAMETER STYLE GNRLNULL
NOT DETERMINISTIC
NOT FENCED NOT THREADSAFE
MODIFIES SQL DATA
NO DBINFO;


I do get the same results on V8.1 + FP7. As Serge said, this looks like a
defect/bug, and you might want to contact IBM support.

p.s: You will get the exact SQL statement that was used to create the
procedure from SYSCAT.ROUTINES.TEXT.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #8
In article <11**********************@f14g2000cwb.googlegroups .com>,
<db*****@yahoo.com> wrote:
All:

I tried to run db2look on V8.2 DB for getting ALL the DLLS for the
database.

When I look into the output file, the SQL procedures code is not
present. Instead I see an external entry associated with db2pvm. I
understand that db2pvm is being introduced for instead of C compiler.

My question is how do I get the DDLs for the SQL Stored Procedures in
db2look command?? or is there any other way?


This is a bug in 8.2 GA and fixed in FP8.
Nov 12 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dbtoo_dbtoo | last post by:
One of the databases has 50 views and when I do a db2look I only get schema for 40 of them. If I select from the sysviews, I can see all 50 (the text column contains schema for all 10 (missing)...
6
by: Lennart Jonsson | last post by:
Hi, I'm using db2 udb linux v7.2 fixpak 9 and came across a problem. I didnt find it in any apar nor mentioned in this newsgroup, so I'm curios if anyone else experienced it, and how they solved...
1
by: Lyn Duong | last post by:
Hi When I want to get the ddl for a table, i use db2look -d dbname -e -t tabname. Why does this produce all ddl for functions, federated objects and all other unwanted stuff. Is there a way...
1
by: db2group88 | last post by:
about db2look, if i want to extract the ddl from one schema then reproduce the database objects on different server with different schema, is it a way to do it? e.g. we provide the same ddl...
6
by: sriram | last post by:
Hi, I have been seing a weird problem with db2look tool in db2 8.2 on Windows 2000 platform. When i spool the DDL using db2look, it spools the DDL in the ascending order of database objects...
2
by: shsandeep | last post by:
Hi, I executed the following db2look statement but got an 'Execute' privilege error. What privileges do I need to execute the 'db2look' utility? /home# db2look -d dbname -e -o sql.txt -- No...
1
by: Gregor Kovač | last post by:
Hi! On one machine I have DB2 8.2.4 and on one I have DB2 9.1. If I run db2look from the DB2 9.1 machine against a database that is on the DB2 8.2.4 I get: SQL5060N The configuration parameter...
2
by: Justin | last post by:
Is there a way to get the ddl for a subset of tables? In this case, get all the tables beginning with emp from the sample db? Example db2look -e -tw emp* -d sample
1
by: blaisestephen | last post by:
I have a dilema where I want to run DB2LOOK to keep copies of our table DDL's and procedures for our schema. the problem is that we do not even have select privilege for the SYSCAT schema, which...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.