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 command error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-31-11, 13:08
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
db2look command error

Hi,

We have a server with 64-BIT 8.1 FP 18 DB2 UDB on Linux ( CentOS) and I'm having a problem with the db2look command --. when I give it to see the definition of a table I get this error --

db2look -d dbname -t site -e -x -o site.ddl
-- No userid was specified, db2look tries to use Environment variable USER
-- USER is: DB2INST1
-- The db2look utility will consider only the specified tables
-- Creating DDL for table(s)
-- Output is sent to file: site.ddl
SQL0007N The character "\" following "HIJKLMNOPQRSTUVWXYZ[" is not valid.
SQLSTATE=42601


Any idea how I can fix this? Thanks!!
Edit/Delete Message

Last edited by db2user24; 06-01-11 at 10:46.
Reply With Quote
  #2 (permalink)  
Old 06-01-11, 07:13
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
You need to specify -z schema name in your db2look command.
Reply With Quote
  #3 (permalink)  
Old 06-01-11, 10:46
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
thanks, i tried it with -z and still get the same error, any other ideas?
Reply With Quote
  #4 (permalink)  
Old 06-01-11, 11:04
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
db2look -d dbname -z schemaname -t tablename -l -e -a -x -o o/pfilename

Please do check the DB2 Manuals for the command.( for options)
Reply With Quote
  #5 (permalink)  
Old 06-01-11, 16:33
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
thx, i tried that and it still fails.. I don't think there is anything wrong with the command itself.. but maybe I'm missing some packages..has anyone else seen this before?
Reply With Quote
  #6 (permalink)  
Old 06-01-11, 17:49
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
What's the output from:

env | grep LANG
db2 get db cfg for <db name> | grep code
Reply With Quote
  #7 (permalink)  
Old 06-02-11, 00:32
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
Quote:
Originally Posted by BELLO4KA View Post
What's the output from:

env | grep LANG
db2 get db cfg for <db name> | grep code

Hi, this is what I get --



env | grep LANG
LANG=en_US.UTF-8


db2 get db cfg for dbname | grep code
Database code page = 819
Database code set = ISO8859-1
Database country/region code = 1
Reply With Quote
  #8 (permalink)  
Old 06-02-11, 12:20
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
Also, thought I would add that I tried it without the -t option and it worked just fine --

this works : db2look -d dbname -e -x -o site.ddl
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