Converting from Single Byte to Multi Byte character set

Hello,
I'm trying to migrate one schema, including data, from a 10g (10.1.0.2.0) DB with IW8ISO8859P8 character set, to a 10g (10.2.0.1.0) DB with AL32UTF8 character set.
The original tables are using VARCHAR2 columns, including some VARCHAR2(1) columns.
I'm trying to use exp and imp for the task, but during import I'm receiving errors like:
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "SHAMAUT"."TIKIM"."GAR_SET" (actual: 2, maximum: 1)These errors are not limited to the one-character columns only.
Is there a way to export/import the data with AL32UTF8 in mind, so the system will automatically convert the data properly?
Thanks for the help,
Arie.

It's not a true conversion problem that you have but more a space problem. Tables columns are created by default with the init. parameter NLS_LENGTH_SEMANTICS character semantics:
If NLS_LENGTH_SEMANTICS = BYTE
then 1 character = 1 byte whatever the db character set
If NLS_LENGTH_SEMANTICS = CHAR
then 1 character = 1 character size for the db character set.
If this parameter is changed it is only taken into account for newly created tables or columns: existing columns are not changed.
See http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96529/ch2.htm#104327
The only solution I see is to enlarge your VARCHAR2 columns before running the import...
Message was edited by:
Pierre Forstmann

Similar Messages

  • Convert from Single Org to Multi-Org

    Hi All,
    Can someone tell me what are the steps to convert from Single Org to Multi-Org ?
    Is it only the profile value 'MO: Operating Unit' to be setup ? or any other steps to be setup ?
    Regards
    Jhansi

    Jhansi,
    Please see the following:
    Note 259546.1 - Setting Up Multiple Organizations in Oracle HRMS
    Regards,
    Greg

  • Faster way to migrate from Single byte to Multi byte

    Hello,
    We are in the process of migrating from a 9i Single byte db to a 10g Multi byte db. The size of our DB is roughly 125 GB. We have fixed everything in the source database (9i) in terms of seamlessly migrating from a single byte to a multi byte db. The only issue is the migration window - curently we are doing an export/import since there is a character set migration involved and it's taking about 20+ hrs to do the import in 10g. The management wants to cut this down to less than 10 hours, if that's possible. I know the duration it takes to import depends on many factors like the system/OS configuration, SAN, etc but I wanted to know what , in theory, is considered the fastest method of migrating a database from single byte to multi byte.
    Have anybody here gone through this before?
    Thanks,
    Shaji

    If the percentage of user tables containing some convertible data (I am assuming you will not have any truncation or lossy data) is low, you can export only those tables, truncate them, and rescan the database. This should report no convertible data, except some CLOBs in Data Dictionary. Such database can be migrated to AL32UTF8 using csalter.plb. After the migration, you import only the previously exported subset of tables.
    Note, for this process to work, no convertible VARCHAR2, nor CHAR, nor LONG data can be present in the Data Dictionary.
    The process should be refined by dropping and recreating indexes on the exported tables as recreating an index is faster then updating it during import. You should also disable triggers so that they do not interfere with the migration (for example, they should not update any "last_updated" timestamp columns).
    If the number and size of affected tables is low compared to the overall size of the database, the time saved may be significant.
    There may also be tables that require even more sophisticated approach. Let's say you have a multi-gigabyte table that stores pictures or documents in a BLOB column. The table also has a single text column that keeps some non-ASCII descriptions of the stored entities. Exporting/truncating/importing such table may be still very expensive. A possible optimization is to offload the description column to an auxiliary table (together with ROWIDs), update the original column to NULL, export the auxiliary table, drop it, rescan the database, migrate with csalter.plb, re-import the auxiliary table, and restore the original column. If pictures alone occupy, for example, 30% of the whole database, such approach should yield significant time saving.
    -- Sergiusz

  • Converting from single episodes to seasons

    What happened to episodes already purchased when you convert from single downloads to buy a whole season? Dop you get credits for the episodes you purchased before iTunes offeres up the series as a single purchase?

    It's not a true conversion problem that you have but more a space problem. Tables columns are created by default with the init. parameter NLS_LENGTH_SEMANTICS character semantics:
    If NLS_LENGTH_SEMANTICS = BYTE
    then 1 character = 1 byte whatever the db character set
    If NLS_LENGTH_SEMANTICS = CHAR
    then 1 character = 1 character size for the db character set.
    If this parameter is changed it is only taken into account for newly created tables or columns: existing columns are not changed.
    See http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96529/ch2.htm#104327
    The only solution I see is to enlarge your VARCHAR2 columns before running the import...
    Message was edited by:
    Pierre Forstmann

  • Multi Language Character sets

    Does anyone know if the oracle odbc drivers support multi language character sets?
    I am trying to retrieve Chinese (prc) characters from the database (it is stored correctly and I have the Microsoft Multilanguage service pack installed). Odbc won't retrieve them correctly (actually stops after 1 row).
    If I use the OLE DB driver, it does retrieve them. Is there a converter inside the OLE DB driver that ODBC doesn't have or is there a setting I'm missing? (The tool I want to use this with does not recognize OLE DB, is there a way top make it use oledb but defining an odbc connection??)
    Cheers
    Chris

    The version number you're providing doesn't seem to make any sense to me. Oracle's ODBC drivers are versioned to match the version of the Oracle client they work with, i.e. 8.1.7.8 is the latest Oracle ODBC driver for the 8.1.7 Oracle client. In the Oracle 7 days, there was a 2.5x series of Oracle ODBC drivers. So far as I'm aware, there's never been a 4.x series of Oracle ODBC drivers.
    AMERICAN_AMERICAN.UTF8 would be the option I'd tend to prefer on the client, particularly if you'll be working with more than just Chinese data (i.e. English & Chinese). I'm not sure what AMERICAN_AMERICAN.<some Chinese character set> would end up doing. There's a lot of info out there about NLS settings (including an NLS discussion forum) that might be helpful to you.
    What OLE DB provider are you using that works?
    Justin

  • Converting from unsigned int / short to byte[]

    Can anybody help me, I am trying to convert from:
    - unsigned int to byte[]
    - unsigned short to byte[]
    I will appreciate your help lots. thanks.

    @Op.
    This code converts an integer to a byte[], but you have to consider the byte order:
            int value = 0x12345678;
            byte[] result = new byte[4];
            for (int i=3; i>=0; i--) {
                result[i] = (byte)(value & 0xff);
                value = value >> 8;
            }This is another option:
            int dummy = 7;
            ByteArrayOutputStream os = new ByteArrayOutputStream();
            os.write(dummy);
            byte[] bytes = os.toByteArray();Kaj

  • Migrating from single-node to multi-node (2 Node)

    Hi,
    We have decided to migrate our existing 11.5.9 application from single-node to 2 Node(multi-node). Please let me know what services should reside on each node (Recommended by Oracle).
    Forms, Reports, Apache on one node and CM, Admin, DB on another ?
    (or)
    DB on one node and all other on another node ?
    And please let me know the steps I should follow to achieve the task as well.
    Thank & Regards,
    Abdullah

    Hi;
    I suggest please review our previous posts and check notes:
    shared appltop/distributed appltop
    Re: two nodes
    In R12 shared appltop/distributed appltop
    shared appltop -Which node
    Re: shared appltop
    Shared appltop in R12
    Shared appltop in R12
    shared APPL TOP or shared application
    shared APPL TOP or shared application
    Regard
    Helios

  • How to convert from single instance to RAC?

    Hi, I have one environment it is version is 10.2.0.4 in linux SUSE.
    I decided to move this environment to 10.2.0.4 Real applicaiton cluster has two nodes in linux red-hat.
    Firstly,
    I install 10.2.0.1 rac on two new machine in linux red hat.
    Then I upgrade my rac to 10.2.0.4 from 10.2.0.
    Now I want to move the single instance to RAC,
    Is there an anathoer way that different from export , import?

    Besides the obvious Export-Import which do not want to consider (although it would be the neatest method !), look the 4th conversion scenario under paragraph D.3.2 "Single-Instance to RAC Conversion Scenarios" at
    http://download.oracle.com/docs/cd/B19306_01/install.102/b14203/cvrt2rac.htm#BABFCAHF
    The 4th conversion scenario is "Converting a single-instance Oracle Database 10g Release 2 (10.2) to an 10g Release 2 (10.2) RAC database, running out of a different Oracle home, and where the host where the single-instance database is running is not one of the nodes of the RAC database".
    Reference section D of the "Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Installation Guide 10g Release 2 (10.2) for Linux"
    http://download.oracle.com/docs/cd/B19306_01/install.102/b14203/toc.htm

  • Import dump from a satabase with a different character set

    My database has this character set:
    select * from database_properties:
    NLS_CHARACTERSET     AL32UTF8     Character set
    NLS_NCHAR_CHARACTERSET     AL16UTF16     NCHAR Character set
    I need to import a dump from a database with WE8MSWIN1252 character set.
    After the import I have seet that some character in the table are wrog:
    I see this simbol " " insted of this "à".
    How can I solve the problem?
    The nls_lang variable on my os is: NLS_LANG=ITALIAN_ITALY.AL32UTF8
    I work with oracle 10.0.4 on linux
    Message was edited by:
    user613483

    I have read thos doc on metalink: Note:227332.1
    I also tried to set nls_lang = NLS_LANG=ITALIAN_ITALY.WE8MSWIN1252
    and then I execute the import command.
    BUt didn't work.

  • Upgrading from single processor to multi processor

    I am looking for information on upgrading a 7.3 Oracle from a
    single processor to a multi processor. I will be putting in
    another processor in my server and would like to know how to get
    Oracle to use this second processor. I know that I need to
    upgrade Windows NT to multiprocessor first but what do I need to
    do after that with Oracle.

    I'm not certain why that would be the wrong boards. I guess HP has the wrong boards posted on their product's support site at the link below.
    http://h20000.www2.hp.com/bizsupport/TechSupport/Home.jsp?lang=en&cc=us&prodTypeId=12454&prodSeriesI...
    When I clicked on Support Forum, that is where it took me.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Move hana db from single tenant to multi tenant

    Hi experts,
    I have read that, for the moment, we cannot do an upgrade of a SAP system + conversion to a multi tenant Hana database in one shot. We have to deploy it on a single tenant and then move it to a multi tenant environment (where we can put a series of systems). Am I right? Right now we have a single tenant environment (A), and a multi tenant environment (B).
    How can we move the database from a single tenant to a multi tenant?
    - do we need to 'upgrade' the single tenant (A) to a multi tenant and then put it to our other multi tenant (B) environment? Problem here is that we then lose our single tenant environment for deploying new systems. We then need to redeploy everything, no?
    - or do we just need to restore the system database to the multi tenant database?
    Regards,
    Kenny

    Hi,
    Have you changed the <sid>adm user environment variables?
    You can resolve this problem using system copy procedure.
    Use installation master,, export database and Instance files ..
    Regards
    Ben

  • MDT from Single Site for Multi Domain OS Deployment

    Hi all,
    We are looking for a solution which will make it possible to use MDT from a single site to deploy Windows 7 or Windows 8 and join different domains of different customers without trust relationships between domains.
    We are a service provider which supports different customers with separate domains. At this moment those different customers have their own WDS server on site and administration is time consuming because a lot of hardware changes occur.
    We are now searching for a solution which is easier to manage and one of the solutions we are thinking about is to install a WDS server in our office and use MDT for some custom task sequences but just build one image with all the different driver packs we
    have.
    Does anyone know how to deal with this from our point of view. All tooling I can find is based on Enterprise clients with one Domain Forest and maybe some different sites but all in one domain, which makes deployment a bit easier then in our situation I guess
    as we are looking for a solution that supports Multi-domain deployment.
    Hope someone might experienced this before and can help us in the right direction. If someone has experience with additional tooling which might help us I am more then interested to know how the tooling helped in solving this.
    Preferrably we had a tool which was Multi-tenant and multiple domains could be managed from a single console, but I think that tool just doesn't exist.
    Hope someone is able to help us in the right direction. Please let me know if you have any tips or did experience the same while making a Deployment plan for the service provider you are working for.
    Many thanks in advance!

    Hi all,
    We are looking for a solution which will make it possible to use MDT from a single site to deploy Windows 7 or Windows 8 and join different domains of different customers without trust relationships between domains.
    We are a service provider which supports different customers with separate domains. At this moment those different customers have their own WDS server on site and administration is time consuming because a lot of hardware changes occur.
    We are now searching for a solution which is easier to manage and one of the solutions we are thinking about is to install a WDS server in our office and use MDT for some custom task sequences but just build one image with all the different driver packs we
    have.
    Does anyone know how to deal with this from our point of view. All tooling I can find is based on Enterprise clients with one Domain Forest and maybe some different sites but all in one domain, which makes deployment a bit easier then in our situation I guess
    as we are looking for a solution that supports Multi-domain deployment.
    Hope someone might experienced this before and can help us in the right direction. If someone has experience with additional tooling which might help us I am more then interested to know how the tooling helped in solving this.
    Preferrably we had a tool which was Multi-tenant and multiple domains could be managed from a single console, but I think that tool just doesn't exist.
    Hope someone is able to help us in the right direction. Please let me know if you have any tips or did experience the same while making a Deployment plan for the service provider you are working for.
    Many thanks in advance!
    So is the goal is not only to get multiple domains to select from, if so you could use a DomainOUList.xml file .
    Also would the clients be imaged at your site or your clients site?
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • Converting from single app subscription to creative cloud

    Just converted account to CC. Was told I had to download DW6 , would lose DW5.5 with cancellation of the single app subscription.
    Did so- and it seems to be a standalone installation. Can I confidently uninstall 5.5 and move forward?

    Hi BLM-GLX
    Absolutely. You can now use the features of CS6 Suite.
    Adobe Creative Cloud™ is our most comprehensive creative solution ever, giving members access to all of the CS6 desktop software plus additional services, new tools and rich community features. In addition, Creative Cloud members will receive continuous upgrades and updates to all products and services as part of their membership.
    Benefits of joining the Creative Cloud
    All of Adobe Creative Suite 6 and more
    Exclusive features and product updates as soon as they are available (free upgrades)
    Sync, store, and share
    Get up to 100 GB of cloud storage
    Access and share your work wherever you are
    Publish apps and websites
    Design and host websites
    Create for the iPad without writing code
    ^Ani

  • Handling Tab Delimited File generation in non-unicode for multi byte lang

    Hi,
    Requirement:
    We are generating a Tab Delimited File in different languages (Single Byte and Multi Byte) and placing the files at application server.
    Problem:
    Our system is a Non-unicode system so we are facing problems with generation of Tab delimited file for multibyte languages like Russian, Japanese, Chinese etc.,
    I am actually using data: d_tab TYPE X value '09' but it dont work for multi byte. I cant see tab delimited file at application server path.
    Any thoughts about how to proceed on this issue?Please let me know.
    Thanks & Regards,
    Pavan

    >
    Pavan Ravikanti wrote:
    > Thanks for your answer but do you reckon cl_abap_char_utilities will be a work around for data: d_tab type X VALUE '09' .
    > Pavan.
    On a non-unicode system the X Variant is working, but not on a unicode system. Here you must use the class. On the other hand you can use the class on a non-unicode system und your char var will always be correct (one byte/twobyte depending on which system your report is running).
    What you are planning to do is to put a file with an amount of possible characters into a system with has a less amount of characters. Thats not working in no way.
    What you can do is to build up a multi-code-page system where the codepage is bound to the user or bound to the logon-language. Here you you can read and process textfiles in several codepages - but not a textfile in unicode. You have to convert the unioce textfile into a non-unicode textfile before processing it.
    Remember that SAP does not support multi-code-page Systems anymore and multi-code-page systems will result in much more work when converting the system to unicode.
    Even non-unicode system will not be maintained by SAP in the near future.
    What you encounter here are problems for what unicode was developped. A unicode system can handle non-unicode textfiles, but the other way round will always lead to problems which cant be solved.

  • Convert/Cast Single to double inaccurate.

    Whilst I have read some background on floating opint numbers not being able to accurately store numbers such as 0.1, I am not clear why converting from single to double is so inaccurate.
    Converting a single 0.1 to a double 0.1 yeilds
    0.10000000149011600
    But 0.1 can be represented in a double more accurately, even if not perfectly as
    0.10000000000000000
    This stems from the single representation of 0.1 actually equating to 0.10000000149011600 in binary.
    However, we know that the single has a particular level of precision.
    I would like a conersion function that converts single 0.10000000 to double 0.1000000000000000.
    I can appreciate that the standard conversion functions would need to still exist as real numbers for engineering would suffer less overall inaccuracies with the existing rounding functions.
    One other question:
    Can the convertsion be affected by the OS/framework/hardware or will it be consistent on different machines?  Are there any settings that can change the conversion behaviour?

    There is no reason that we should explicitly convert a single precision number to a double precision number using some function as a simple assignment would do the same. Please review the following code:
    float x = 10.5367f;
    double a = Convert.ToDouble(x);
    double b = (double)x;
    double c = x; //same as conversion or casting
    In the previous example, when x is declared as float, the memory space that is allocated is sufficient to hold the value of x as float along with precision. Now when we assign the value to some double variable (by conversion/casting/direct assignment), all
    what happens is,
    1. the space for the double variable is allocated
    2. the value is copied from single the single variable to double variable.
    Now obviously, the value of the single variable does not span as much memory space as the double variable. So when copied to double the remaining memory space of the double variable is still filled up with garbage data. The actual value of the single variable
    is still preserved upto the range of single precision.
    So frankly speaking, there is no such straightforward way that can be used to fill the garbage digits with 0s.
    I personally recommend that you use "decimal" instead of "double" if any such conversion is required.
    Thanks.

Maybe you are looking for

  • New Infinity Connection Slow and Keeps Dropping ou...

    Hi all, I had Infinity installed on Friday and am not 100% sure on the time it takes to become stable. Basically I checked my hub page yesterday and found it had dropped out at 3am Sat morn, today I have checked again and it dropped out at 8am Sun mo

  • Exclude accounts from the SharePoint online search results

    We have an issue whereby I want to exlude all unlicensed Office365 accounts from the people search on SharePoint online. We have a lot of shared mailboxes etc which are showing up in the people results and we want to only display active "real" accoun

  • SUN VS Microsoft supporting tools

    hi Guys , I have a question ?How do you find Sun development tools advantages and disadvantages and Microsoft .Just help me to fill up this pls. Mircosoft supporting tools Advantages 1.FrontPages - very fast development process with support of templa

  • Scrolling Thumbnails Speed

    Hi all, I recently made a scrollong thumbnail gallery using a tutorial from Kirupa.com (Link). I was wondering if there is a way to change the scrolling speed of the thumbnails as the position of the mouse changes. That is, if the cursor is a little

  • Camera RAW for D1000 Not supported on OS X Lion ?!

    Hello, Beforer Lion came out I took some photos and imported them from my EOS REBEL / D1000 Canon camera and everything went perfectly fine (using the camera software) then later I upgraded to OS X Lion when it was released and today I took some phot