By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,850 Members | 1,771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,850 IT Pros & Developers. It's quick & easy.

strange problem

P: n/a
I just did some replication operations between remote DB on linux and
local DB on windows yesterday
It gave me such errors when I perform db connection via command line
windows (local DB on windows)
error is given as follow:

*****************************************
Db2 connect to SAMPLE
SQL0332N There is no available conversion for the source code page
"1252" to
the target code page "1386". Reason Code "1". SQLSTATE=57017

SQL0332N There is no available conversion for the source code page
"1252" to the target code page "1386". Reason Code "1".
**************************************

However local sample DB can still be connected and accessed via control
center
The problem is I can only connect and access local DB sample through
Control center.

Anybody knows this kind of problems

thanks

Nov 12 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Try log off and log on again.

Zhang

Nov 12 '05 #2

P: n/a
How to "Try log off and log on again. " on windows platform?

Many thanks

Nov 12 '05 #3

P: n/a
Thames wrote:

How to "Try log off and log on again. " on windows platform?

Many thanks


reinstall windows?
Nov 12 '05 #4

P: n/a
should I reboo windows?

Nov 12 '05 #5

P: n/a
anybody help me?
I have restarted OS both linux and windows
Both DB servers works using db2cc (GUI adminstration)
However I can not make database connection using command prompt under
windows
However I can perform db connection under linux

thanks

Nov 12 '05 #6

P: n/a
"Thames" <zh*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
anybody help me?
I have restarted OS both linux and windows
Both DB servers works using db2cc (GUI adminstration)
However I can not make database connection using command prompt under
windows
However I can perform db connection under linux

thanks

You need to use the DB2 Command Window, which should be an option in your
Windows Start==>Programs ==>IBM DB2 menu.

Same for Linux, but if you don't have DB2 Icons, then you will need to
invoke the DB2 profile in your .profile script or .bachrc script (if using
bash shell).

Here is an example of the lines added to the instance owner .bashrc file by
DB2, and is needed by any user who needs to use the DB2 command line. The
..bashrc file is located on the home directory of the user. It is a hidden
file that you will see with "ls -all".

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# The following three lines have been added by UDB DB2.
if [ -f /db2/db2inst1/sqllib/db2profile ]; then
. /db2/db2inst1/sqllib/db2profile
fi
Nov 12 '05 #7

P: n/a
Thames wrote:
anybody help me?
I have restarted OS both linux and windows
Both DB servers works using db2cc (GUI adminstration)
However I can not make database connection using command prompt under
windows
However I can perform db connection under linux

thanks

can you cross connect with clp? Thus connecting from linux to windows
and visa versa?
Nov 12 '05 #8

P: n/a
"Jurgen Haan" <ju****@fake.dom> wrote in message
news:43***********************@news.xs4all.nl...
can you cross connect with clp? Thus connecting from linux to windows and
visa versa?


Yes. You have to catalog the remote nodes/databases first.
Nov 12 '05 #9

P: n/a
Sorry I did not post my question clearly?
here is the problem:

Both DB ESE V8.2 are set up on linux and windows platform respectively
All DB servers are connected and work properly
I can do remote access (from linux )to DB2 on windows and vice versa
There is no problem with configuration assistant setting
Only problem is I can not connect to sample locally in windows command
prompt environment , but I can still access sample from control center.
everyobject on sample Db can be accessed in control center environment.
Also there is no problem to do remote access (linux shell)to sample DB
(windows)

So what is the problem?

Many thanks

Nov 12 '05 #10

P: n/a
Thames wrote:
Sorry I did not post my question clearly?
here is the problem:

Both DB ESE V8.2 are set up on linux and windows platform respectively
All DB servers are connected and work properly
I can do remote access (from linux )to DB2 on windows and vice versa
There is no problem with configuration assistant setting
Only problem is I can not connect to sample locally in windows command
prompt environment , but I can still access sample from control center.
everyobject on sample Db can be accessed in control center environment.
Also there is no problem to do remote access (linux shell)to sample DB
(windows)

So what is the problem?

Many thanks


Is this windows DB2 install, one over a previous installed version?
I'm not sure about this, but does windows CLP use a DB2INSTANCE var like
linux does?

-R-
Nov 12 '05 #11

P: n/a
In article <11**********************@g44g2000cwa.googlegroups .com>,
Thames (zh*****@gmail.com) says...
SQL0332N There is no available conversion for the source code page
"1252" to
the target code page "1386". Reason Code "1". SQLSTATE=57017


Maybe it helps when you change the DB2CODEPAGE variable to 1252:
db2set DB2CODEPAGE=1252

To be sure it is activated close the command window and open a new
one.

Nov 12 '05 #12

P: n/a
Yes it does. The env. var. is set to DB2 by default instance.
It is a system, not a user, env. var.
On can override with:
set db2instance= MYSTUFF
Regards, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Jurgen Haan" <ju****@fake.dom> a écrit dans le message de news:
43***********************@news.xs4all.nl...
Thames wrote:
Sorry I did not post my question clearly?
here is the problem:

Both DB ESE V8.2 are set up on linux and windows platform respectively
All DB servers are connected and work properly
I can do remote access (from linux )to DB2 on windows and vice versa
There is no problem with configuration assistant setting
Only problem is I can not connect to sample locally in windows command
prompt environment , but I can still access sample from control center.
everyobject on sample Db can be accessed in control center environment.
Also there is no problem to do remote access (linux shell)to sample DB
(windows)

So what is the problem?

Many thanks


Is this windows DB2 install, one over a previous installed version?
I'm not sure about this, but does windows CLP use a DB2INSTANCE var like
linux does?

-R-


Nov 12 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.