473,473 Members | 1,768 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

db2look privileges?

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 userid was specified, db2look tries to use Environment variable
USER
-- USER is: SAPSAS
-- Creating DDL for table(s)
-- Output is sent to file: sql.txt
--An error has occured during Binding

Error Message =
SQL0551N "SAPSAS" does not have the privilege to perform operation
"EXECUTE" on object "NULLID.DB2LOOK ". SQLSTATE=42501
SQLCA
Size = 136
SQLCODE = -551
Tokens = SAPSAS EXECUTE NULLID.DB2LOOK
RDS fn = SQLRAEAC
RC = 0x8012006D = -2146303891
Reason = 0x0000 = 0
Reason2 = 0x0000 = 0
Warning flags =

Cheers,
San.

May 22 '06 #1
2 12375
San,

Try to rebind the db2look utility as dba. When binding you can control
access to such utilities; you can grant 'execute' to user, group or
public.

cd ~/sqllib/bnd
db2 connect to yourdb user db2admin
db2 bind db2look.bnd blocking all grant public
db2 bind db2lkfun.bnd blocking all grant public

PS. If you receive such errors you can search for related 'bnd' files
in the ../bnd directory and bind them with desired grants.
-- Artur Wronski

May 22 '06 #2
hi,

Think you have to specify user name and password to get the DDl

db2look -d databasename -e -z schemaname -i username -w password
-m -o db2look.sql

raInDeeR

May 22 '06 #3

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...
8
by: db2sysc | last post by:
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...
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.