Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2015
    Posts
    2

    Unanswered: Dump import issue.

    Hi,

    I had imported a dump (.dmp) to my database. But in the imported data some of the characters (eg; chr(149)) are replaced with Chr(191).

    The characterset of the Exported file (dmp) is US7ASCII

    and that of my database is WE8MSWIN1252.

    What could be the reason for this discrepancy?

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    I learned decades ago that 7-bit ASCII contained value 0-127 inclusive; how can chr(149) be valid?

    What do you think chr(149) represents?

    do as below & post the results

    SELECT CHR(149) FROM DUAL;
    Last edited by anacedent; 06-02-15 at 15:57.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713
    Quote Originally Posted by SVG3414 View Post
    Hi,
    . . . e t c
    What could be the reason for this discrepancy?
    Perhaps you did not correctly set the NLS_LANG environment variable.
    -- or -- US7ASCII is not subset compatible with WE8MSWIN1252
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  4. #4
    Join Date
    Jun 2015
    Posts
    2

    Import issue

    Quote Originally Posted by LKBrwn_DBA View Post
    Perhaps you did not correctly set the NLS_LANG environment variable.
    -- or -- US7ASCII is not subset compatible with WE8MSWIN1252
    Thanks for the reply

    Upon serching the web, it is confirmed that WE8MSWIN1252 is a superset of US7ASCII and hence there should be no problem while importing.

    But on verifying the data, it is found that chr(191) is seen where there should be some of OTHER characters (eg: 140, 149, 150, 152).

    Is there any possibility that the export file (dmp) is wrongly reporting the character set as US7ASCII. I dont see any other possibility, because as mentioned in Post #2, US7ASCII must not have characters above 127.

  5. #5
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    We don't know what you have.
    We don't know what you do.
    We don't know what is real or what unreality you report.
    You have a mystery & we have no real clues other than obvious contradictions.
    You're On Your Own (YOYO)!
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  6. #6
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    5,800
    Provided Answers: 11
    The database server only accepts what it is given for character data. What that data means is left to the client. Oracle will not validate that the uppermost bit is a 0, if the character set is USASCII7.

    Suppose you have one client machine using WE8MSWIN1252, and another client using WE8MSWIN1257 for their character sets.

    If the first guy inserts char(191) into a table, the first person sees an inverted question mark just as he expects. When the second client queries that data, he sees in that place. When he confronts the first person, the first person brings up the field again with an inverted question mark. Hilarity then ensues.

  7. #7
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    NLS_LANG is the key

    Did you set the NLS_LANG environment variable correctly for the import?
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •