Language Problem while exporting and importing data [message #133792] |
Mon, 22 August 2005 04:46 |
|
saadatahmad
Messages: 452 Registered: March 2005 Location: Germany/Paderborn
|
Senior Member |
|
|
hi,
I have Oracle version 8.1.7.0.0 installed on one server and 9.2.0.1.0 installed on new server.
I'm copying and pasting my version info from SQL*Plus:
SQL*Plus: Release 8.1.7.0.0 - Production on Mon Aug 22 10:46:31 2005
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
SQL>
----------------------------------------------------------------------------------------
SQL*Plus: Release 9.2.0.1.0 - Production on Mon Aug 22 12:30:06 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL>
I created new user on my new server from enterprise manager.
Exported user from the old server and imported in the new server.
i.e: from Oracle8i Enterprise Edition Release 8.1.7.0.0, I did
c:\>exp system/manager file=abc.dmp owner=abc
Then on the new server Release 9.2.0.1.0, I did
c:\>imp system/manager file=abc.dmp fromuser=abc touser=abc
I'm using Arabic Language on my both servers. NLS_LANG parameter on both the servers is AMERICAN_AMERICA.WE8MSWIN1252.
On both the servers I'm able to insert and select data in arabic.
However, after I export the data from old server to the new server, the arabic data comes in question marks.
If I create new table and insert arabic data on new server's user abc it is displaying well. Only the data which I exported and imported is not showing arabic.
On both old and new servers operating system is Windows XP.
I'm stuck with this problem. Anybody having any idea about how to solve this problem please help.
Thank you all in advance.
Regards
[Updated on: Mon, 22 August 2005 04:48] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Language Problem while exporting and importing data [message #134000 is a reply to message #133889] |
Tue, 23 August 2005 03:37 |
|
saadatahmad
Messages: 452 Registered: March 2005 Location: Germany/Paderborn
|
Senior Member |
|
|
hi,
Thanks again for taking so much interest to solve thiis issue.
I'm sorry I didn't reply you soon. It's because I was checking different things to fix this issue but still no success.
Let me review again the things for your consideration.
I mistakenly wrote before that the servers are using Windows Xp.
This is the configuration:
Source Server: Microsoft Windows2000 Advanced Server (Service Pack4)
Target Server: Microfost Windows Server 2003 (Service Pack 1)
Source Database: Release 8.1.7.0.0
Target Database: Release 9.2.0.1.0
Let me SELECT the characterset from both the databases for your consideration.
SQL> SELECT * FROM v$nls_parameters (from Release 8.1.7.0.0)
2 WHERE parameter LIKE '%CHARACTERSET%';
PARAMETER VALUE
---------------------------------------------------------------- ------------------------
NLS_CHARACTERSET AR8ISO8859P6
NLS_NCHAR_CHARACTERSET AR8ISO8859P6
SQL> conn system/manager@anba.world (from Release 9.2.0.1.0)
Connected.
SQL> SELECT * FROM v$nls_parameters
2 WHERE parameter LIKE '%CHARACTERSET%';
PARAMETER VALUE
---------------------------------------------------------------- ------------------------
NLS_CHARACTERSET WE8MSWIN1252
NLS_NCHAR_CHARACTERSET AL16UTF16
1- You can see that the characterset is same in source database and for this set I have NLS_LANG entry in the registry of the old server as AMERICAN_AMERICA.AR8MSAWIN
Note: Arabic is working fine on old server for this characterset.
2- NLS_PARAMETERS are different on the new server but Arabic language is working fine with these parameters.
There is one more thing to mention.
On my old server, I have only one user named merlin75.
On my new server, I have 2 users plus I'm adding this user merlin75, which mean I'll use 3 users on my new server.
If I change the NLS_LANG on my new server from AMERICAN_AMERICA.WE8MSWIN1252 to AMERICAN_AMERICA.AR8MSAWIN, arabic language dosn't work for all the 3 users on new server.
(Please keep in mind that the 2 users on the new server were created and the programs are developed on the new database.)
Can you tell me onething, how can I ALTER the session for NLS_PARAMETERS. I tried this :
SQL> SELECT * FROM v$nls_parameters
2 WHERE parameter LIKE '%CHARACTERSET%'
3 /
PARAMETER VALUE
---------------------------------------------------------------- -----------------------------------
NLS_CHARACTERSET WE8MSWIN1252
NLS_NCHAR_CHARACTERSET AL16UTF16
SQL> ALTER SESSION
2 SET NLS_CHARACTERSET = AR8ISO8859P6;
ALTER SESSION
*
ERROR at line 1:
ORA-00922: missing or invalid option
I'm attaching one file. This snapshot is from the old server. You can check what I did. If you need some more information please tell me.
After exporting and importing the user on new server from the old server, I went to new server, exported the user and reimported the it again but still no success.
Thank you again for your cooperation.
Regards.
-
Attachment: one.JPG
(Size: 264.21KB, Downloaded 1487 times)
|
|
|
|
|
|
|
|
|
|