Different NLS_LENGTH_SEMANTICS in two dbs...and ORA-12899

Hi,
I have created two db instances on the same server. One with db characterset EL8MSWIN1253(single-byte characterset) , NLS_LENGTH_SEMANTICS=BYTE and the other with UTF8(multi-byte characterset) NLS_LENGTH_SEMANTICS=CHAR.
I'm trying to export a table from db1 and import to db2 ... respectively reffered above.
This table has the following definition:
SQL> CREATE TABLE TEST(A NUMBER(1) , B VARCHAR2(10));
Table created
SQL> INSERT INTO TEST VALUES(1 , 'TEST_TEST');
1 row inserted
SQL> COMMIT;
Commit complete
SQL> INSERT INTO TEST VALUES(2 , 'ΤΕΣΤ_ΤΕΣΤ');     <------------greek chars 1 row inserted
SQL> COMMIT;
Commit completeIn order to accomplish the aim....
1) I exported the table
2) I imported it without the rows - only to 'precreate' the tables
3) I imported it with rows ... but error ORA-12899 (current value exceeds the max length specified) occurs....
Of course this type of error is not a suprise ...since after step 2 , when i issue the command:
SQL> DESC TEST;
Name Type              Nullable Default Comments
A    NUMBER(1)         Y                        
B    VARCHAR2(10 BYTE) Y                        <---------the NLS_LENGTH_SEMANTICS of the exported file has been used...Issuing the command
SQL> alter table test modify b varchar2(10 char);
Table alteredbefore step 3 and after repeating step 3 ... solves the problem(ORA-12899).
However , is there any other way to do this .....????? (imagine that there are some hundreds/thousands of tables....to be imported in such a db)...
Note: I use Db10g v.2
Thanks...
Sim

Actually.. there is one ...Metalink - Note : 313175.1...
However , i tried to modify/accomplish the scenarios expressed on :
1)Metalink Note: 144808.1 (point E1 - How to go to CHAR semantics ? -> use exp/imp ) and
2)the steps described on:
http://otn.oracle.com/oramag/oracle/03-mar/o23sql.html
Have anybody accomplished it with exp/imp as described above on two dbs running different db charactrer sets(one single-byte and the other UTF8)...????
Thanks....
Sim

Similar Messages

  • ORA-01401 and ORA-12899 : "too large for column" error messages

    I posted this already in the Database - General forum.
    Sorry for the double post.
    For the past 8hours, I have been googling about
    the related ORA-01401 and ORA-12899 error
    messages.
    I noticed that ORA-01401 had been removed from the list
    of error messages in Oracle 10g documentation.
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10744/e900.htm#sthref30
    And, ORA-12899 has been added.
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10744/e12700.htm
    1. Is there an official Oracle document (e.g. release notes) stating such facts? If so, please provide the link.
    2. Why did Oracle change the error code and not just update ORA-01401?
    3. Someone posted in http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:7143933880166
    Even if installed Oracle is 10g, when he tried to "insert a 100 into a number(2).",
    he supposedly got ORA-01401. So, is ORA-01401 still part of 10g or not?
    I have yet to confirm this myself.
    Sorry for being meticulous. Our customer just wants to know the
    information for the 2nd question. It's hard to convince them without
    showing official documents.
    Thanks!

    1)
    Well, go to Metalink and check out Note 119119.1 (B.4) and Note:287754.1
    2)
    Such details are seldom published. One guess is what they changed altered the reason behind the message so using the same code would be a bad idea.
    3)
    If you are referring to the occurrence of ora-1401 from a select on a XE db, that may be a bug.

  • ORA-01401 and ORA-12899

    For the past 8hours, I have been googling about
    the related ORA-01401 and ORA-12899 error
    messages.
    I noticed that ORA-01401 had been removed from the list
    of error messages since Oracle 10.1 documentation.
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10744/e900.htm#sthref30
    And, ORA-12899 has been added.
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10744/e12700.htm
    Is there an official Oracle document (e.g. release notes)
    stating such fact?

    Yes, there is : Documentation
    But I have some doubt that Oracle Corp. will change anything else from the 10.1 documentation.
    Furthermore, the doc is correct in regards of the database (error doc cannot differ of the database because this is a dump, so this is not a doco problem...) :
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.4.0 - Production
    SQL> insert into notes_tbl (name) values ('too large value here');
    insert into notes_tbl (name) values ('too large value here')
    ERROR at line 1:
    ORA-01401: inserted value too large for column
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> insert into notes_tbl (name) values ('too large value here');
    insert into notes_tbl (name) values ('too large value here')
    ERROR at line 1:
    ORA-12899: value too large for column "SCOTT"."NOTES_TBL"."NAME" (actual: 20, maximum: 10)Nicolas.

  • Warning ORA-01002, ORA-06502 AND ORA-12899

    Hi All,
    When iam executing my mapping iam facing the following warninigs.
    Name      Status      Log
    MAP_     Warning     CursorFetchMapTerminationRTV20007
    MAP_     Warning     ORA-01002: fetch out of sequence
    ORA-02063: preceding line from link
    MAP_Warning     ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    MAP_Warning     ORA-12899: value too large for column %s (actual: %s, maximum: %s)
    ORA-02063: preceding line from link
    Further to inform you that, in source and target the data type size is same.
    How can i resolve it
    Thanks in advance.

    I mean to say select while executing it from Database you can pin-point the exact line which cause error.
    cheers
    Nawneet

  • ORA-00604 and ORA-12899-- please explain...

    ORA-00604: error occurred at recursive SQL level 1 ORA-12899: value too large for column "DVIR"."TB_USERS"."USER_DB_NAME" (actual: 12, maximum: 10) ORA-06512: at line 55 ORA-12899: value too large for column "DVIR"."TB_USERS"."USER_DB_NAME" (actual: 12, maximum: 10)

    This error means you are trying to insert the value having 12 characters but the length of the column specified is 10. So you cannot insert the data beyond the specified limit. For Ex. you have specified varchar2(10) and the data you are inserting is more than 10 characters then you will get this error.

  • ITunes states that my credit card security codes are invalid, but they are correct! I know for a fact that the information I've put in is correct, and I have tried three different credit cards; two visa, and one Amex. Same problem for others in 2008-now.

    How can I fix this problem? I've tried signing out and back in.
    I owe them $1.29 too, from a song, so I cannot select "none" as a payment.
    I'm not buying an iTunes giftcard, either.... HELP!
    I can't even download any free apps, or update my apps.
    Any ideas?

    Look, I understand I still need a card attached to the account. The problem is, it won't accept my card because I only have 87 cents in my bank account right now.
    If I had known there would be so much trouble with the iTunes card, I would have just put the cash in my bank account in the morning instead of buying an iTunes card (I didn't expect the banks to be open on Thanksgiving of course).
    Apple will only accept cards that have a balance. The balance is so small in my account that it won't accept it as a valid card.
    I'm going to have to contact Apple anyway to reset the security questions. That's obvious. Your answers were not exactly helpful. You didn't tell me anything I don't already know, but thanks for trying to be helpful.

  • TS3274 When I plug in it says not charging.  I have tried 3 different ways. Two computers and direct to power

    anyone know why my iPad says not charging?

    Your computer's USB port would not be providing enough power. It gives that messege but is in fact charging quite slowly. This method is not recommended.
    If you are also getting the message when using the supplied 10W charger then I also suggest trying another cable.

  • I have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    i have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    Chris, I believe this link may have the information you're looking for. Welcome to discussions!
    http://docs.info.apple.com/article.html?artnum=300432

  • Two different apple IDs/two different iClouds - help! I had a Yahoo e-mail when I bought my iPod and registered it/set up my iTunes acct with it. Gmail acct w/ my iPad due to virus, now 2 apple ids and 2 iclouds, can I merge them somehow?

    When I set up my iPod I had a Yahoo email account, and I set up my iTunes acct. with it. It got hacked, viral, and I closed it. When I got my iPad2, I had a gmail account, and set it up w/ that email account. As a result, I was given a different apple id - stupid of me. This also resulted in me getting a different iCloud. When I got my iPhone, I used my iPod account (linked to a newly set up Yahoo account), because I wanted all of my iTunes song on my phone. So now I have two apple ID's and two iClouds, and my phone and my iPad are on separate iClouds. I hate it, and I don't know if I can somehow merge the two. I want to buy additional iCloud storage, but only if I can do so on ONE account that is for both devices. Does anyone know if/how I can accomplish this?  Thanks so much.

    When I set up my iPod I had a Yahoo email account, and I set up my iTunes acct. with it. It got hacked, viral, and I closed it. When I got my iPad2, I had a gmail account, and set it up w/ that email account. As a result, I was given a different apple id - stupid of me. This also resulted in me getting a different iCloud. When I got my iPhone, I used my iPod account (linked to a newly set up Yahoo account), because I wanted all of my iTunes song on my phone. So now I have two apple ID's and two iClouds, and my phone and my iPad are on separate iClouds. I hate it, and I don't know if I can somehow merge the two. I want to buy additional iCloud storage, but only if I can do so on ONE account that is for both devices. Does anyone know if/how I can accomplish this?  Thanks so much.

  • I have two different accounts with I-tunes and I want to link both purchases for my music to one account. How can I do this?

    I have two different accounts with I-tunes and I want to link both purchases for my music to one account. How can I do this?

    You are going to need to change the email address you use with your old ID. Once you have got access to your old account you will then log into both accounts at the same time on your Mac and transfer your data to a single account. We can do this later, but need you to get access to your old account first.
    My Apple ID

  • I have two iPads and giving one to my grandson. Using my Apple id for both, can we use different passwords to access our "own" apps. Also I don't want the downloaded App to go to both iPads. Been looking for hours for an explanation! Thanks for any help.

    I have two iPads and giving 1st gen. to my grandson. Using my Apple idI for both... can we use different passwords to access our "own" apps. Also I don't want the downloaded App to go to both iPads. Been looking for hours for an explanation! Thanks for any help.

    Look at this link.
    Giving your former iPad to a spouse or family member: the quick guide
    http://www.tuaw.com/2012/03/17/giving-your-former-ipad-to-a-spouse-or-family-mem ber-the-quick/
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • HT5622 How do I change the Apple id against a certain telephone number?  I have two iPhones and wish to use a different Apple id for each and confused as to how I do this?

    How do I change the Apple id against a certain telephone number?  I have two iPhones and wish to use a different Apple id for each and confused as to how I do this?

    Create a new Apple ID for the second phone. If you are setting the phones up as new phone enter the ID you want to use on each phone.
    If both phones are already signed in to one Apple ID then use the settings app to change Apple IDs on one phone.
    Settings > iTunes and App Store > tap on the Apple ID > sign out > sign in with alternate Apple ID.
    Note that if you have downloaded apps with the original Apple ID on the phone with the new Apple ID, those apps will still be associated with the old Apple ID and will require the old ID and password in order to update them.

  • Do I need a different apple id for each device? I have two iPads and an iPod but can only purchase things on the first one. When I go to verify the questions they say they are wrong.

    Do I need a different apple ID for each device I have? I have two iPads and an iPod but I can only make purchases with the first one I purchased. It tells me the security questions are wrong but I know they are not because I wrote them down. I have also reset them and my password once. Please help if you can

    You can not login into iTunes or the App Store using VPP credentials. You must purchase all apps/book/etc.  from the VPP website. Then you can redeem the codes thru itunes/app store or import the codes thru apple configurator. Here is the url for the VPP website: https://volume.itunes.apple.com/WebObjects/MZFinance.woa/wa/login?cc=us
    (It will not affect any of the apps you already have but the id can only be used for VPP.)
    Cheers,    
             Alec

  • HT1660 I have two iTunes libraries on two different pc's (one windows and one Mac).  Can I consolidate these on an external hard drive?

    I have two iTunes libraries on two different pc's (one windows and one Mac).  Can I consolidate these on an external hard drive?

    I'm sorry I just saw the last post. I had two users on my hard drive, one for me and one for my daughter, but I am not sure what you mean by partioning my external????? I have heard the term before, but don't know how to do it. I am having serious crashing issues with this computer and believe I really need to do a clean install. I just want to make sure everything for both ipods is safe (is???? I think so, everything is......I hate when the English language does this to me!)

  • We have an ipad two iphones and an ipod nano can we sink all of them to one itunes the items have different itune accounts

    we have an ipad two iphones and an ipod nano can we sink all of them to one itunes the items have different itune accounts

    Did you change the email address or create a new Apple ID?
    If the email address associated with the account was merely changed, sign out of the Apple ID on the devices and sign in using the new credentials.

Maybe you are looking for

  • Can't install iTunes 10.7 on Windows XP with SP 3

    I have tried installing iTunes 10.7 and get a error due to a problem with the windows installer package. I have run WindowsXP-KB942288-v3-x86.exe, and rebooted, but I still have the same problem. I had the same problem with the previous version of iT

  • Is there a maximum PDF size for ios? can handle 2GB?

    I'm creating a very huge pdf file, aprox 2GB can it be viewer in an ipad or iphone?. Can it be viewer from an Android tablet? TnkU

  • Still having headphone jack problems!

    I got my new/refurbished iPod back from Apple Service. The problem I'd had was that I was only hearing sound out of the left headphone unless I pressed on the headphone jack. Quick service, got my iPod back after less than a week. Charged it up last

  • Apple 20" display problem

    I have an  20-inch apple display connected to a late 2006 mac pro (3ghz dual core). Recently a horizontal line (black mostly, but sometimes with some color pixels) began appering inside the web browser window (Safari or Chrome)...not always immediate

  • Using more than one ipod on a computer!

    Hi, can anyone tell me how to use 3 different ipods on one computer, each having different playlists? I have to keep deleting and re-installing to update! Its driving me mad!If i plug in my ipod and my daughters songs are in the library, it wipes all