niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle
Import character set issue:
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
Francesco M.
*nix forums beginner


Joined: 01 Apr 2005
Posts: 36

PostPosted: Tue Feb 08, 2005 7:01 am    Post subject: Re: Import character set issue: Reply with quote

Sybrand Bakker wrote:
Quote:
On 7 Feb 2005 06:22:16 -0800, fmarchioni@libero.it (Francesco M.)
wrote:

Should I set NLS_LANG with a code that identifies US7ASCII ??
where am I wrong ?

The syntax for NLS_LANG=<Territory>_<Country>.<charset
so
American_America.US7ASCII

not US7ASCII alone.


--
Sybrand Bakker, Senior Oracle DBA

ok thanks for your kind reply. Now imp doesn't complain
anymore about NLS_LANG settings.
Regards
Francesco
Back to top
Rauf Sarwar
*nix forums Guru


Joined: 03 May 2005
Posts: 353

PostPosted: Mon Feb 07, 2005 2:43 pm    Post subject: Re: Import character set issue: Reply with quote

Sybrand Bakker wrote:
Quote:
On 7 Feb 2005 06:22:16 -0800, fmarchioni@libero.it (Francesco M.)
wrote:

Should I set NLS_LANG with a code that identifies US7ASCII ??
where am I wrong ?

The syntax for NLS_LANG=<Territory>_<Country>.<charset
so
American_America.US7ASCII

not US7ASCII alone.

To add to above,
If your client NLS_LANG is already set to same as your target database
then you don't need to change the NLS_LANG. You are OK as long as your
client NLS_LANG is either same as your export file OR same as your
target database.

Regards
/Rauf
Back to top
Sybrand Bakker
*nix forums Guru


Joined: 03 Apr 2005
Posts: 1766

PostPosted: Mon Feb 07, 2005 2:15 pm    Post subject: Re: Import character set issue: Reply with quote

On 7 Feb 2005 06:22:16 -0800, fmarchioni@libero.it (Francesco M.)
wrote:

Quote:
Should I set NLS_LANG with a code that identifies US7ASCII ??
where am I wrong ?

The syntax for NLS_LANG=<Territory>_<Country>.<charset>
so
American_America.US7ASCII

not US7ASCII alone.


--
Sybrand Bakker, Senior Oracle DBA
Back to top
Francesco M.
*nix forums beginner


Joined: 01 Apr 2005
Posts: 36

PostPosted: Mon Feb 07, 2005 1:22 pm    Post subject: Re: Import character set issue: Reply with quote

"Rauf Sarwar" <rs_arwar@hotmail.com> wrote in message news:<1107521752.633206.58330@o13g2000cwo.googlegroups.com>...
Quote:
Francesco M. wrote:
Hi all,
I have exported on table from one DB to another. I have this issue:

import done in US7ASCII character set and AL16UTF16 NCHAR character
set
import server uses WE8ISO8859P1 character set (possible charset
conversion)
export server uses US7ASCII NCHAR character set (possible ncharset
conversion)

I have found an interesting article which explains how to indentify a
character set:
http://www.dbaoncall.net/references/ht_identify_charset.html

but I haven't found which are the right steps to avoid this issues.
Should I change NLS_LANG before import, should I let Oracle do the
conversion...or what else ?
Thanks a lot
Francesco

Try to minimize the number of characterset conversions done during
exp/imp. To do that, set your client NLS_LANG to exactly the same as
the source database characterset, this would gaurantee no conversions
during export. Then keep the same NLS_LANG setting while importing
which means there will be only one conversion done during the entire
process.

Remember, exp and imp are client tools thus they will use the
characterset from NLS_LANG environment variable and NOT the database
characterset. If either is different, conversion will take place.

Regards
/Rauf

Hi, thank you very much for your answers. Actually this is what I did:
At first I identified that the export was done with US7ASCII

0000000 0300 0145 5850 4f52 543a 5630 392e 3032 <---- US7ASCII
0000020 2e30 300a 4453 5953 5445 4d0a 5255 5345
0000040 5253 0a31 3032 340a 300a 3332 0a30 0a00
0000060 0100 1f07 d000 0100 0000 0000 0000 0000
0000100 0a00 2020 2020 2020 2020 2020 2020 2020
0000120 2020 2020 2020 2020 2020 2020 2020 2020

So before using imp:
$ export NLS_LANG=US7ASCII

Unfortunately when I launch the imp utility I get this error:

IMP-00058: ORACLE error 12705 encountered
ORA-12705: invalid or unknown NLS parameter value specified

Should I set NLS_LANG with a code that identifies US7ASCII ??
where am I wrong ?
Thanks again
Francesco
Back to top
Joel Garry
*nix forums Guru


Joined: 24 Mar 2005
Posts: 1044

PostPosted: Fri Feb 04, 2005 11:41 pm    Post subject: Re: Import character set issue: Reply with quote

Just one thing to add to Rauf's reply: Do you have any non-ASCII
characters (umlats or such) in your ASCII db? If not, nothing to worry
about. If so, a _lot_ to worry about, I would recommend you unload and
load rather than have imp be overly friendly to your data.

I did have a scare one time where some vendor had used character
variables to store their own version of a sequence. Going from 7bit to
8bit changed all the sequence numbers.

jg
--
@home.com is bogus.
http://story.news.yahoo.com/news?tmpl=story&cid=528&e=1&u=/ap/20050204/ap_on_hi_te/aol_spamming
Back to top
Rauf Sarwar
*nix forums Guru


Joined: 03 May 2005
Posts: 353

PostPosted: Fri Feb 04, 2005 11:55 am    Post subject: Re: Import character set issue: Reply with quote

Francesco M. wrote:
Quote:
Hi all,
I have exported on table from one DB to another. I have this issue:

import done in US7ASCII character set and AL16UTF16 NCHAR character
set
import server uses WE8ISO8859P1 character set (possible charset
conversion)
export server uses US7ASCII NCHAR character set (possible ncharset
conversion)

I have found an interesting article which explains how to indentify a
character set:
http://www.dbaoncall.net/references/ht_identify_charset.html

but I haven't found which are the right steps to avoid this issues.
Should I change NLS_LANG before import, should I let Oracle do the
conversion...or what else ?
Thanks a lot
Francesco

Try to minimize the number of characterset conversions done during
exp/imp. To do that, set your client NLS_LANG to exactly the same as
the source database characterset, this would gaurantee no conversions
during export. Then keep the same NLS_LANG setting while importing
which means there will be only one conversion done during the entire
process.

Remember, exp and imp are client tools thus they will use the
characterset from NLS_LANG environment variable and NOT the database
characterset. If either is different, conversion will take place.

Regards
/Rauf
Back to top
Francesco M.
*nix forums beginner


Joined: 01 Apr 2005
Posts: 36

PostPosted: Fri Feb 04, 2005 8:41 am    Post subject: Import character set issue: Reply with quote

Hi all,
I have exported on table from one DB to another. I have this issue:

import done in US7ASCII character set and AL16UTF16 NCHAR character
set
import server uses WE8ISO8859P1 character set (possible charset
conversion)
export server uses US7ASCII NCHAR character set (possible ncharset
conversion)

I have found an interesting article which explains how to indentify a
character set:
http://www.dbaoncall.net/references/ht_identify_charset.html

but I haven't found which are the right steps to avoid this issues.
Should I change NLS_LANG before import, should I let Oracle do the
conversion...or what else ?
Thanks a lot
Francesco
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 3:28 am | All times are GMT
navigation Forum index » Databases » Oracle
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts TLS cert issue Nick Smith Postfix 3 Thu Jul 20, 2006 7:40 pm
No new posts Root relay issue Johnson, S Postfix 4 Thu Jul 20, 2006 6:50 pm
No new posts "CHARACTER SET COLLATE NULL" error with mySQL 4.0.27 thomas Armstrong MySQL 1 Thu Jul 20, 2006 9:11 am
No new posts Weird MemoryError issue jedi200581@yahoo.co.uk python 4 Wed Jul 19, 2006 3:58 pm
No new posts Basic IP Tables issue spec networking 3 Wed Jul 19, 2006 3:57 pm

Chitika | Server setup | Credit Counseling | Debt Help | Brazilian Property
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 1.3077s ][ Queries: 20 (1.2122s) ][ GZIP on - Debug on ]