Re: screwed non-us7ascii characters while selecting from a database link



codadilupo wrote:
Hello, I have the following situation:

db1: Oracle 9.0.1.3 with charset WE8ISO8859P1
db2: Oracle 10.2.0.3 with charset AL32UTF8

The two databases are on two different servers, db1 on SUSE SLES8 and
db2 on SUSE SLES9.

Inside db2, I created a simple database link to db1:

CREATE DATABASE LINK db1_link CONNECT TO user IDENTIFIED BY password
USING 'db1';

My problem is that if, in db1, I "insert into table select * from
table@db1_link" the non-us7ascii characters are screwed, if I exp tables
from db1 and imp them into db2 the characters are converted correcly.

I'm checking the results both from Linux shell and mod_plsql webapp, so
it's not a client issue.

Any suggestion? Am I missing something?

Thank you. Kind regards, Cristian



alter session set nls_lamg=AMERICAN_AMERICA.WE8ISO8859P1;
select from table_a@db1_link;

By default, your db2 session expects AL32UTF8, not a single byte
characterset. Are you sure you use a terminal, capable of
displaying UTF8?

What messages regarding character translations do you get from the
import/export sessions? None? (That would explain)
--
Regards,

Frank van Bortel

Top-posting is one way to shut me up...
.



Relevant Pages

  • SQL DB to MySQL
    ... We have SQL Server 2000 databases residing on one server, ... DB1 contains the main data, ... DB2 contains data about the most recent changes to DB1, The key, table ID, ... Our plan is to schedule a DTS package to update the MySQL database. ...
    (microsoft.public.sqlserver.dts)
  • Query Analyzer Default Database
    ... You have to set 'DB2' as ... all the ODBC connections ... Database To" option in the ODBC settings, to DB1. ...
    (microsoft.public.sqlserver.server)
  • Comparing tables form 2 different database
    ... I have 2 database call db1.mdb and db2.mdb. ... db2 is the latest database format where there is no data and only I have it. ... Currently we have many different db1 with different version and my company ... What i did send a update together with db2 to the users to update the system. ...
    (microsoft.public.access.modulesdaovba)
  • Re: screwed non-us7ascii characters while selecting from a database link
    ... db1: ... db2 on SUSE SLES9. ... CREATE DATABASE LINK db1_link CONNECT TO user IDENTIFIED BY password ... The problem is probably that db2, when acting as client to of, has ...
    (comp.databases.oracle.server)
  • [Full-disclosure] Details for BID 18428
    ... DB2 Universal Database is a popular database software package ... DB2 UDB server. ... handshake process with the server, causing the server process to crash. ... The first message used by a client when establishing a connection to the ...
    (Full-Disclosure)