Import dmp database with EE8MSWIN1250 to AL32UTF8 (XE)

I have problem with importing dmp database with EE8MSWIN1250 to AL32UTF8 (XE)
I've tried to import my database dump with settings NLS_LANG=POLISH_POLAND.AL32UTF8 but it didn't work
I had
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "MYDB"."AP_ARKUSZE_PRZECENY"."PRZEC_KOD" (actual: 26, maximum: 25)
Column 1 1
Column 2 Arkusz Średniowaťon\$NR$
Column 3 16-WRZ-2002:00:00:00
so I exported my database with NLS_LANG=POLISH_POLAND.AL32UTF8 and next I tried to import this dump but it still didn't work.
Anybody knows how to import dump database ??

It isn't correct approach. Column size is one of database constraints and you compromised it, so beware.
Correct approach is modifying columns to apply char length semantics, it means you should use following construct
alter table tablename modify columnname varchar2(10 CHAR)
In your code replace your execute immediate line with:
EXECUTE IMMEDIATE 'ALTER TABLE ' || tn || ' MODIFY ' || cn || ' VARCHAR2(' || crec.data_length || ' CHAR )';
Look at this example:
This is your original table
SQL>
SQL> create table T2( c varchar2(10 byte) );
Tabulka vytvořena.
SQL>
SQL> insert into T2 values ('0123456789');
1 řádka vytvořena.
SQL> insert into T2 values ('0123456789 few more');
insert into T2 values ('0123456789 few more')
CHYBA na řádku 1:
ORA-12899: value too large for column "MIGR"."T2"."C" (actual: 19, maximum: 10)
values longer then 10 characters are not allowed, it was your constraint, and now your modification
SQL>
SQL> alter table T2 modify c varchar2(20); -- 2*10
Tabulka změněna.
SQL> insert into T2 values ('+ěščřžýýáí');
1 řádka vytvořena.
You solved the problem, you shoud be praised
SQL> insert into T2 values ('0123456789 few more');
1 řádka vytvořena.
But, you compromised your data model
SQL>
SQL> rem correct approach
SQL>
SQL> delete from T2 where length(c)>10;
1 řádka vymazána.
This solve both problems, and constraint is still valid
SQL>
SQL> alter table T2 modify c varchar2(10 char);
Tabulka změněna.
SQL>
SQL> insert into T2 values ('+ěščřžýýáí');
1 řádka vytvořena.
SQL> insert into T2 values ('0123456789 few more');
insert into T2 values ('0123456789 few more')
CHYBA na řádku 1:
ORA-12899: value too large for column "MIGR"."T2"."C" (actual: 19, maximum: 10)

Similar Messages

  • How to import whole database (with data) from remote server?

    I am using oracle sql developer 2.1. Our main database server is in USA, we use this from Bangladesh. We also a local copy here time to time updataed.
    Is there any way copy or migrate the whole database with data from usa server to our local serve using sql developer 2.1?
    we use windows server 2003 service pack 2 in local server.

    I replied to you in Import Data wizard not found and stand by my suggestions.
    Regards,
    K.

  • How to import complete database with all schemas

    I have exported all database using system/manager in oracle 8.
    Now How i can i import all database in oracle 9i with all users, Roles etc...
    I tried to import "Import Entire database=y" using system manager schema but face following errors.
    Schema doesn't exit, Role errors etc.....

    Hi,
    As you are working with Old version of Oracle, then Oracle data pump would not be applicable to in order to carry out. So, in order to complete the export and import from prior version either you need to upgrade the version of Oracle so that you can make use of upgrade tools or either clone it or make sure you create required things prior to import on destination database. Further you can check Oracle support team
    - Pavan Kumar N

  • IMPORT from database with dynamic parameter list

    Hi Gurus,
    Iu2019m having problems during import from a cluster table.
    I wanu2019t to do an import with a dynamic parameter list, but I cannot get it to work.
    Sample code ********
    DATA: BEGIN OF st_key,
    report LIKE rsvar-report,
    variant LIKE rsvar-variant,
    END OF st_key.
    DATA dirtab1 LIKE cdir OCCURS 10 WITH HEADER LINE.
    DATA dirtab2 LIKE cdir OCCURS 10 WITH HEADER LINE.
    st_key-report = 'ZPRG'.
    st_key-variant = 'VAR1'.
    IMPORT DIRECTORY INTO dirtab1 FROM DATABASE vari(vb) ID st_key.
    IMPORT DIRECTORY INTO dirtab2 FROM DATABASE vari(va) ID st_key.
    DATA: tmp_var(100)   TYPE c.
    This works - P_BWTAR is a parameter from the selection screen registred in VARI
    I'm getting the content of the field in tmp_var
    IMPORT p_bwtar TO tmp_var FROM DATABASE vari(va) ID st_key.
    This does not work - the parameter P_BWTAR is in the dirtab2-name
    I'm not getting the content
    LOOP AT dirtab2.
        IMPORT dirtab2-name FROM DATABASE vari(va) ID st_key.
      ENDIF.
    ENDLOOP.
    I have tried the syntax IMPORT (dirtab2-name) ........
    but this fails the syntax check.
    Please - if you have any suggestions  :o)
    Best Regards,
    Vibeke

    Dear Vibeke,
    Could you please explain us how you solved the problem because you have the same issue ?
    thanks a lot
    KR
    véronique

  • Exports / Imports on Databases with VPD

    I'm running Oracle 11.1.0.7, with VPD. I'm trying to use datapump to export and import the data from one machine to another.
    Not all the information in all the tables is making it across. Is there a special role or privilege that will allow SYSTEM (as opposed to SYS as SYSDBA) to grab all the data?

    I'm running Oracle 11.1.0.7, with VPD. I'm trying to use datapump to export and import the data from one machine to another.
    Not all the information in all the tables is making it across. Is there a special role or privilege that will allow SYSTEM (as opposed to SYS as SYSDBA) to grab all the data?

  • Database migration from non rac and non asm to RAC database with ASM

    HI,
    i have requirement to import one database ( db1) which running one node with out ASM and with out RAC , now i want to import that database with rman backup to another database ( db2) which running on different server with 3 node RAC and ASM ( disk group +DATA ) , can you please provide me the steps how i can migrate.? ( i have created db2 with dbca with RAC).
    regards,
    sri

    Sri,
    This could be done multiple ways. Simplest for you is to use DBCA:
    http://download.oracle.com/docs/cd/B28359_01/install.111/b28264/cvrt2rac.htm

  • Can not Import *.dmp file in 10g Database

    I have successful to install 10gDB and 10gDS to my home computer. But when i try to import *.dmp file to my Repository Object Navigator.
    Would you mind help me to take a look.
    Error Message
    RME-02105 Oracle error occurred...
    ORA-01986: OPTIMIZER_GOAL is obsolete
    Cause: An unhandled oracle error has occurred.
    Action: Examine reported errors for specific detail.

    Ken,
    This issue has been reported with Designer releases prior to 9.0.4.4 against 10g database. Please upgrade to the latest Designer release 9.0.4.5 (available on OTN) and the import should work correctly.
    - Suresh

  • TA25361 I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addres

    I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addresses.

    I tried Peggy's List > Select All > Copy > Paste into an AW spreadsheet suggestion.
    In my case, pasting into the spreadsheet lost all text formatting (mostly text set to bold). The results of formulas were pasted, and checkboxes were pasted as "on" or "off". The DB did not contain any pop-up menus or radio buttons, but I expect they would transfer as a number showing the list position of the chosen item.
    Pasting the copied List view data into a Numbers table gave a result similar to that with AppleWorks. I selected B2 as the target cell (for top left cell of the pasted data) to avoid any effects of posting into a header row or column. Bold and regular text formatting looked the same as it had in AW's List view.
    Based on that, I'd slip the 'paste into an AppleWorks Spreadsheet step, and paste directly into a Numbers Table.
    Regards,
    Barry

  • Import the database dmp file

    hello friend
    what is the process import the database dmp file into oracle application express.
    i want to import the database dmp file into the http://apex.oracle.com/ online workspace .
    it is possible ? please help me how to complete this process .
    regards
    vicky........
    Edited by: vicky....... on Dec 5, 2010 9:30 PM

    Hi,
    You can't import dump file to apex.
    For importing you have to take your database in sql script and run it on apex.
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • How to import Spacial Data with mapviewer into Database?

    I have deployed mapviewer10133wls with oc4j and able to see mapviewer home page but don't know how to get started with mapviewer like what configuration it needed and how to import sapcial data into Database with mapviewer. please help with reply.
    Thanks,
    Suchetana.

    If its the Oracle Spatial option you're after, its not included in XE http://download.oracle.com/docs/cd/B25329_01/doc/license.102/b25456/toc.htm#BABJIJCJ
    For GIS data, I'll be no help at all someone else here may have experience with it. If its something that can fit into RDBMS tables there is probably a way to do it without Spatial, but that's just a guess :(

  • Problems with importing .dmp file (CLOB)

    dear all
    i am using oracle 10g XE
    I am facing a problem with importing dmp ( one of my table contains clob coloum)
    below mentioned is the error it gives while importing, please guide me as to how to handle this.
    Thanks in advance
    regards
    Uday
    "CREATE TABLE "RTEXT" ("SRNO" NUMBER, "TEXTDET" CLOB) PCTFREE 10 PCTUSED 40"
    " INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS "
    "1 BUFFER_POOL DEFAULT) TABLESPACE "APEX_1244730274482010" LOGGING NOCOMPRES"
    "S LOB ("TEXTDET") STORE AS (TABLESPACE "APEX_1244730274482010" ENABLE STOR"
    "AGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE LOGGING STORAGE(INITIAL 65536 "
    "FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT))"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'APEX_1244730274482010' does not exist

    You have to use SELECT tablespace_name, status FROM dba_tablespaces; from sql prompt or sql developer.
    Ash
    As Jonathan Lewis mentions:
    A general reminder about "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
    If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
    It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching the same question, moreover it means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) what's so bad or wrong about the answer you found helpful.

  • Problem with "import sabasrv.database.*;"

    Hi there..
    I am new to the Java game so this is probably a very easy problem to fix.
    I am using the Forte IDE and My code has the following imports :
    package sabasrv.user;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.sql.SQLException ;
    import sabasrv.database.*;
    The problem is that whenI try to compile I get the following error:
    src/sabasrv/user/User.java [8:1] Package sabasrv.database. not found in import.
    import sabasrv.database.*;
    ^
    src/sabasrv/user/User.java [16:1] Class DbSql not found in type declaration or import.
    DbSql sql ;
    ^
    2 errors
    Any ideas why I am getting this? My CLASSPATH environment variable is :
    CLASSPATH=C:\jdk1.1.8\jsdk23.jar;C:\old_Saba_servlet\src\sabasrv\database
    I hope this is enough info to go on.
    Your fwend.
    Korwin

    You classpath should probably be
    C:\old_Saba_servlet\src
    instead of
    C:\old_Saba_servlet\src\sabasrv\database
    if you have classfiles in that directory and not just the source files. Try that. The package name is "appended" to the classpath, so sabasrv.user will be /sabasrv/user when it looks for class files in that package.

  • How to create a database with full import

    Any other way to create a database without using below steps :
    1)create database
    2)use show=y and then create all the tablespace
    3)and last imp full=y and ignore=y

    i used following option to create a database from full exp
    1)create database (sample database with same DBname on other server)
    2)use show=y and then create all the tablespace
    3)and last imp full=y and ignore=y
    I just wanted to know is there any other way to create the Db with imp option without creating all the tablespace.

  • Query distributed database with different character sets.

    Hello experts, this is my situation:
    I have two databases A and B, the same version 11.1.0.7, the same OS Suse Linux Enterprise 10 but with different character sets, A has WE8MSWIN1252 while B has AL32UTF8. The database B is my XML DB repository so there I have some XML type tables. I need to query this tables from the database A using a dblink and in fact I have done that but the XML content is trasformed due to the different character sets between the databases. Some time there are data loss and some time there are data missmatch.
    Is there any way to query the tables stored in the database B without problems? I do not know if the following is correct: Maybe I can set the character set for the session in the database A during the time it query the database B. That is, change the character set in fly at session level.
    Do you have any special suggestion?
    I hope you can help me, thank you in advance.

    The Globalization Support Guide for 11.1.0.7 has a chapter on character set migration that should be helpful. AL32UTF8 is a superset of WE8MSWIN1252 but it is not a strict superset. That is, it doesn't meet the second prong of the test in the documentation
    The new character set is a strict superset of the current character set if:
    Each and every character in the current character set is available in the new character set.
    Each and every character in the current character set has the same code point value in the new character set. For example, many character sets are strict supersets of US7ASCII.Exporting the data from the A, changing the character set (or creating a new database with the AL32UTF8 character set), and then importing the data may be the easiest approach in your case.
    Justin
    Edited by: Justin Cave on Jan 13, 2011 12:08 PM

  • Please provide me unix shell script (export and import of database schema)

    please i am new in unix
    \please give me sample unix shell script (export and import of database schema)

    please i am new in unix
    \please give me sample unix shell script (export and import of database schema)Instead of providing you the readymade unix shell script for your requirement, I will give you the hints to prepare the same at your own.
    Create a file with .sh extension.
    # Specify and set all required Environment variables.
    ORACLE_HOME, PATH, NLS_LANG, etc.,
    # Use the export command with all clauses
    export scott/tiger@orcl file=scott.dmp log=scott_emp.log
    # Compress it.
    compress scott.dmp
    Refer any unix/linux documents for scripting basics.
    http://www.bijoos.com/ora7/oracle_unix.htm
    Regards,
    Sabdar Syed.

Maybe you are looking for

  • Getting started with ni hardware

    Hi everyone, I am using NI hardware for the first time.Are there any video tutorials and pdfs which will tell me information about them? for example NI RIO, PXI, PCI. Their functions and how to use them? I have used compact DAQ by reading on NI site 

  • In range and coerce

    I want to make a VI that will show me how many random numbers from 0-100 range should be generated. After that VI should draw a histogram, showing how many percent of numbers were from 0-49 range and how many from 50-99. There should also be two nume

  • Nexus 5500 - unexplainable mutual-exclusion error when using "conf sync" mode

    We have 2 Nexus 5548UP switches which are running NX-OS 7.0(5)N1(1). I'm trying to reconfigure an interface, which was previously configured in conf t (local) mode on both switches, in conf sync mode. Original config: conf t: interface Ethernet104/1/

  • Bates numbering not recognized in Acrobat XI Pro (through Creative Cloud).

    Several times recently, I bates-numbered the pages, had to shuffle or add or remove pages, did so, and then tried to renumber. Each time I got the message that Acrobat could not find any Bates numbering even though I had added Bates numbering via Acr

  • HVX Files and Media Backup. Raw or converted are keepers?

    I am in Russia shooting a documentary and I'm starting to rack up the footage with the HVX200. I am archiving all those crazy files that the HVX producess but I'm wondering if I really need to do that. I have to download this stuff because the camera