473,320 Members | 2,024 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,320 software developers and data experts.

strange problem

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
12 1660
Try log off and log on again.

Zhang

Nov 12 '05 #2
How to "Try log off and log on again. " on windows platform?

Many thanks

Nov 12 '05 #3
Thames wrote:

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

Many thanks


reinstall windows?
Nov 12 '05 #4
should I reboo windows?

Nov 12 '05 #5
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
"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
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
"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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rob Ristroph | last post by:
Hi, It's pretty unhelpful to post "I have a huge piece of code that crashes in strange places, what's the problem?" but that's basically my problem and I really am at my wit's end. The piece...
2
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
2
by: TB | last post by:
I am seeing a very strange problem as follows... I have a loop where a fair amount of processing is going on and near the top of the loop I access a class that has only static helper functions...
1
by: Sam Kong | last post by:
Hello! Recently I had a strange problem with Visual C# 2005 beta 1. When I ran(F5 key) a program, <#if DEBUG> statement was not working. It ran as RELEASE mode. So I had to manually define...
8
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and...
11
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
12
by: StephQ | last post by:
I have a class Bounds with two constructors: class Bounds { private: list<SegmentupperLinearSpline; // Upper bound. list<SegmentlowerLinearSpline; // Lower bound. ....
8
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
5
by: ioni | last post by:
Good day, fellows! I have a strange problem – at my site there is a flash strip, that loads data dynamically. It works fine (grabs data from the remote server and presents it), however in IE7...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.