Problem with exp/imp transport_tablespace=y & CLOBs

All,
I am having a problem with values in a CLOB column when exporting/importing a database using "transport_tablespace" command line option.
Some background:
Origin: 9i Windows
Destination: 10g Windows
Export/import work without warnings. But this SQL command:
SELECT DUMP(CAST(TEXT_VALUE AS VARCHAR(4000)), 1017)
FROM SE_PSOI.SEPROPTEXT
WHERE TEXT_ID = 316161
Gives me from the 9i database:
Typ=1 Len=18 CharacterSet=UTF8: U,n,d,e,r, ,C,o,n,s,t,r,u,c,t,i,o,n
But the following from the 10g database:
Typ=1 Len=54 CharacterSet=UTF8: e5,94,80,e6,b8,80,e6,90,80,e6,94,80,e7,88,80,e2,80,80,e4,8c,80,e6,bc,80,e6,b8,80,e7,8c,80,e7,90,80,e7,88,80,e7,94,80,e6,8c,80,e7,90,80,e6,a4,80,e6,bc,80,e6,b8,80
It appears as if there is some sort of charset issue to me. I've tried working with the environment NLS_LANG value when I export and import (and other text values come through OK - just the CLOB is the problem). After Googling and searching the forums here I am unable to find an answer.
Can someone help me or point me in the right direction?
Regards,
Matthew Lesko

i got an error:
IMP-00003: ORACLE ERROR 1565 encountered
ORA-01565: error in identified file '/u01/app/oracle/oradata/test201.dbf'
my question can we import transport_tablespaces=y with two tablespaces and four datafiles ???
First Check, What is the status of the datafiles.
SQL> select file_name,online_status from dba_data_files where file_name like '%test201%';
also
$ ls -ltr /u01/app/oracle/oradata/test201.dbf

Similar Messages

  • Problem with EXP 10.1.0.3.0

    I have problem with EXP in Oracle (linux Fedora 3). I used command as oracle:
    exp userid=user/pass@server file=/tmp/dmp.dmp
    and I got message.
    Export: Release 10.1.0.3.0 - Production on Fri Mar 4 10:13:40 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    EXP-00056: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    EXP-00000: Export terminated unsuccessfully
    Witch tables or views does not exist ? Does export from oracle 10g clinet work with 8.1.7 database ?
    I used expcat.sql from rdbms.

    From 10.1.0 to 8.1.7 => Use the EXPORT 8.1.7 to export the data from the
    10.1.0 database and IMPORT 8.1.7 to import the
    data into the 8.1.7 database.more info on the imp/exp matrix :
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=132904.1

  • Exp/Imp Transport_tablespace

    Dear Sir,
    Oracle Database 10.0.2.5g EOL 5 Operation system.
    we have two tablespace
    create tablespace test1 datafile
    '/u01/app/oracle/oradata/test101.dbf',
    '/u01/app/oracle/oradata/test102.dbf';
    create tablespace test2 datafile
    '/u01/app/oracle/oradata/test201.dbf',
    '/u01/app/oracle/oradata/test202.dbf';
    ALTER TABLESPACE test1 READ ONLY;
    ALTER TABLESPACE test2 READ ONLY;
    exp \"sys/pass as sysdba\" transport_tablespace=y datafiles='/u01/app/oracle/oradata/test101.dbf',
    '/u01/app/oracle/oradata/test102.dbf',
    '/u01/app/oracle/oradata/test201.dbf',
    '/u01/app/oracle/oradata/test202.dbf' file= /u01/dmp/dmptts.dmp;
    DROP TABLESPACE test1 INCLUDING CONTENTS;
    DROP TABLESPACE test2 INCLUDING CONTENTS;
    imp \"sys/pass as sysdba\" transport_tablespace=y datafiles='/u01/app/oracle/oradata/test101.dbf',
    '/u01/app/oracle/oradata/test102.dbf',
    '/u01/app/oracle/oradata/test201.dbf',
    '/u01/app/oracle/oradata/test202.dbf'
    tablespaces=test1,test2
    file= /u01/dmp/dmptts.dmp;
    i got an error:
    IMP-00003: ORACLE ERROR 1565 encountered
    ORA-01565: error in identified file '/u01/app/oracle/oradata/test201.dbf'
    my question can we import transport_tablespaces=y with two tablespaces and four datafiles ???

    i got an error:
    IMP-00003: ORACLE ERROR 1565 encountered
    ORA-01565: error in identified file '/u01/app/oracle/oradata/test201.dbf'
    my question can we import transport_tablespaces=y with two tablespaces and four datafiles ???
    First Check, What is the status of the datafiles.
    SQL> select file_name,online_status from dba_data_files where file_name like '%test201%';
    also
    $ ls -ltr /u01/app/oracle/oradata/test201.dbf

  • Can't recreate 9i to 10g with EXP/IMP

    I've been trying to duplicate a database from 9i to 10g. I'm only interested to recreate the users, roles, database links,
    etc. The (production) server that has 9i is outdated, and the 10g is on a new server. I've created a new database on the 10g server, and created all the tablespaces that reflects the 9i server. Next, I used the EXP command on 9i:
    exp system/password FILE=allusers.DMP LOG=allusers.log OWNER=(*list of users*) COMPRESS=N ROWS=N DIRECT=Y CONSTRAINTS=Y INDEXES=Y;
    In the 10g server, I used the import command:
    imp system/password FULL=Y CONSTRAINTS=Y INDEXES=Y FILE=allusers.DMP LOG=allusers.log ROWS=n;
    When I try the IMP command in 10g, I get an error that the users doesn't exist. That only way I can think of to resolve this is
    if I export the entire database from 9i. Wouldn't that conflict with the 10g SYSTEM tablespace? IE:
    exp system/password FULL=Y FILE=full.dmp LOG=allusers.log COMPRESS=N ROWS=N DIRECT=Y CONSTRAINTS=Y INDEXES=Y;
    I even tried to import one user at a time, and it didn't work. IE:
    imp system/password FROMUSER=user1 CONSTRAINTS=Y INDEXES=Y FILE=allusers.DMP LOG=allusers.log ROWS=n;
    I'm stuck. Please help.

    Hello,
    Here's an example of some of the objects, as well as the result when I manually compile them (I even logged in as SYS):
    SQL> alter package cwh.smp_vdg compile;
    Warning: Package altered with compilation errors.
    SQL> alter package sys.comp_login_funct compile;
    alter package sys.comp_login_funct compile
    ERROR at line 1:
    ORA-04043: object comp_LOGIN_FUNCT does not exist
    Few other objects are SYS.DBMS_XPLAN, PUBLIC.SDO_TO_DATE.

  • Exp/Imp with tablespace autocreate?

    Hello dear community,
    I've got a question about backup with exp/imp. It's not about RMAN, but nevertheless I hope it's the right board.
    Is there a command to tell imp to automatically create a specified tablespace from a dumpfile?
    For exp I use:
    exp.exe user/pass tablespaces=test file=FILE.DMP
    For imp I use:
    imp.exe user/pass tablespaces=test file=FILE.DMP
    Now, if I drop the tablespace between exp and imp, so imp can't restore it. There I manually have to create the specified tablespace first. It would be nice, if there is a way that imp creates the tablespace if it is not present.
    Are there maybe some parameter like "autocreate" and "use datafile=..." and so on?
    Thanks for help,
    best regards,
    Ronny

    Transportable Tablespaces is a seperate feature whereby you take a physical
    copy of tablespace datafiles and "plug" them into the target database.
    That is different from taking a logical export dump.
    With export dumps, the only way to get the tablespace created is in a FULL
    export and import. The CREATE TABLESPACE commands are written into
    the dmp file only when a FULL export is done. At import time, you can choose
    to import a specific schema in which case, the CREATE TABLESPACE
    commands are not executed by import (they must be precreated). So,
    CREATE TABLESPACE is executed only when you do a FULL import as well.
    Note that this {obviously} creates the same datafile names (including physical
    paths) and sizes as existant in the source database. That may or may not
    meet your requirements on occassion (eg different filesystem structure,
    different sizes planned in the target database).

  • Export / import  exp / imp commands Oracle 10gXE on Ubuntu

    I have Oracle 10gXE installed on Linux 2.6.32-28-generic #55-Ubuntu, and I need soe help on how to export / import the base with exp / imp commands. The commands seems to be installed on */usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin* directory but I cannot execute them.
    The error message I got =
    No command 'exp' found, did you mean:
    Command 'xep' from package 'pvm-examples' (universe)
    Command 'ex' from package 'vim' (main)
    Command 'ex' from package 'nvi' (universe)
    Command 'ex' from package 'vim-nox' (universe)
    Command 'ex' from package 'vim-gnome' (main)
    Command 'ex' from package 'vim-tiny' (main)
    Command 'ex' from package 'vim-gtk' (universe)
    Command 'axp' from package 'axp' (universe)
    Command 'expr' from package 'coreutils' (main)
    Command 'expn' from package 'sendmail-base' (universe)
    Command 'epp' from package 'e16' (universe)
    exp: command not found
    Is there something I have to do ?

    Hi,
    You have not set environment variables correctly.
    http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#BABDGCHH
    And of course that sciprt have small hickup, so see
    http://ubuntuforums.org/showpost.php?p=7838671&postcount=4
    Regards,
    Jari

  • Anyone knows how to export ROLES and SYNONYMS with exp command?

    Anyone knows how to export ROLES and SYNONYMS with exp/imp commands?
    Help is needed. Thanks.

    Hi,
    Pls. post this query in RDBMS forum since Portal export import forum does not handle this.
    Thanks,
    ~Kirit.

  • Summary: Problem with export (maybe...terminated sucEE to XE issues exp/imp

    Summary: Problem with export (maybe...terminated successfully with warnings) and import (IMP-00022: failed to process parameters)
    I used PL/SQL developer to make a parameter file (initially I used it to export, then I just stole the file to try again). It contains 100 tables from a single schema.
    Export from prod DB using exp parfile=test.par: Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses ZHS16GBK character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table     CONTRACT_INFO         12 rows exported
    EXP-00091: Exporting questionable statistics.
    'Export terminated successfully with warnings.' !!!I want to import into the cs2_user schema (same privileges as on the production DB) trying:impdp 'sys as sysdba'@danieldb schemas=cs2_user dumpfile=test01tables3.dmpThat gets the error: UDI-00014: invalid value for parameter, 'attach'
    I then thought maybe you have to use imp/exp or impdp/expdp instead of a combination (exp + impdp) so I tried: imp 'sys/admin as sysdba'@danieldb touser=cs2_party_owner file=test01tables4.dmpbut then I just get: IMP-00022: failed to process parameters
    Anyone see why its all failing? :s
    Mike

    you must input SID name into single-quotes like:
    C:\Tools\Oracle\product\10.2.0\db\NETWORK\ADMIN>expdp 'sys/manager@stb as sysdba'
    Export: Release 11.2.0.1.0 - Production on Thu Feb 9 13:46:16 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    UDE-06550: operation generated ORACLE error 6550
    ORA-06550: line 1, column 11:
    PLS-00201: identifier 'SYS.DBMS_UTILITY' must be declared
    ORA-06550: line 1, column 11:
    PL/SQL: Statement ignored

  • Problem with imp

    HI All,
    We are facing some problem with imp. What we are trying to do is to import one table from full exp backup.
    Below is my exp script:
    compress </nhi3/export/epipe > /nhi3/export/exp-nov.dmp.Z &
    exp holland/kangra file=/nhi3/export/epipe full=y compress=n buffer=250000 log=/nhi3/export/exp.log
    Now iam trying to import one table from full exp backup using the below script.
    P6DB NODE>uncompress < /rmanbkp/backup/export0402/export/exp-nov.dmp.Z > /nhi3/export/epipe &
    [1] 3190958
    P6DB NODE>imp holland/kangra file=/nhi3/export/epipe fromuser=baan touser=baan tables='TTIPSL042100' ignore=n log=/rmanbkp/backup/export0402/export/ttipsl042100.log indexes=n full=n
    After firing this command there is no response from the terminal and nothing is showing in the imp logfile.
    Only response i can see is:
    P6DB NODE>imp holland/kangra file=/nhi3/export/epipe fromuser=baan touser=baan tables='TTIPSL042100' ignore=n log=/rmanbkp/backup/export0402/export/ttipsl042100.log indexes=n full=n
    Import: Release 10.2.0.4.0 - Production on Mon Apr 2 12:42:28 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    Need Help
    Thanks,
    Sandy

    Hi,
    Just to start eliminating potential error sources, what if you do the uncompress to file, and then try to import using that file?
    Also, since you do a full export, it might take a while for the uncompress to reach the schema and table you're trying to import.
    HtH
    Johan

  • EXP/IMP with NCLOB/BLOB

    Hello all,
    I have to pass an schema from one database, to another recreated as the first one (same schema name, same rights, same tablespace, same all) Both are Oracle database 11.2.0.2 enterprise 64 bits on linux 64. Is there any consideration I have to take, as there's objects with NCLOB and BLOB types... I've tryed the export, and it has gone ok without any problem, buy there will be any issue when I import it on the second database?
    All this is to change the database's server from the phisical one that it's now, to a virtual one (OVM).
    Thanks for your help!!

    It would probably be better if you used Data Pump (expdp/impdp) instead of original exp/imp. It has support for more objects and features that you may have used.
    Dean

  • 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 java.sql.Clob and oracle.sql.CLOB

    Hi,
    I am using oracle9i and SAP web application server. I am getClob method and storing that in java.sql.Clob and using the getClass().getName() I am getting the class name as oracle.sql.CLOB. But when I am trying to cast this to oracle.sql.CLOB i am getting ClassCastException. The code is given below
    java.sql.Clob lOracleClob = lResultSet.getClob(lColIndex + 1);
    lPrintWriter = new PrintWriter(new BufferedWriter (((oracle.sql.CLOB) lOracleClob).getCharacterOutputStream()));
    lResourceStatus = true;
    can anybody please tell me the what is the problem with this and solution.
    thanks,
    Ashok.

    Hi Ashok
    You can get a "ClassCastException" when the JVM doesn't have access to the specific class (in your case, "oracle.sql.CLOB").
    Just check your classpath and see if you are referring to the correct jar files.
    cheers
    Sameer
    PS: Please award points if you find the answer useful

  • Exp/imp related problem

    Hi all,
    I have one problem in Oracle 9.2.0.8 onRHEL4. Iwant to use exp/imp to update one table from one server to another.
    Suppose I have one table abc on A server and it is having around 1 million records and another B server is also having the same no. of records and some of the record have been changed to A server and i also want to imp the same record to another server B.Is there any paramneter in IMP.
    Please suggest me.

    Hi,
    Kamran Agayev A. wrote:
    user00726 wrote:
    but how would i know which table has been updated or modifiedUsing MERGE funtion, you'll merge two tables. This command will updated changed rows and insert non-inserted rows to the second table and make it as the same as the first tableSQL> create table azar(pid number,sales number,status varchar2(20));
    Table created.
    SQL> create table azar01(pid number,sales number,status varchar2(20));
    Table created.
    SQL> insert into azar01 values(1,12,'CURR');
    1 row created.
    SQL> insert into azar01 values(2,13,'NEW');
    1 row created.
    SQL> insert into azar01 values(3,15,'CURR');
    1 row created.
    SQL> insert into azar values(2,24,'CURR');
    1 row created.
    SQL> insert into azar values(3,0,'OBS');
    1 row created.
    SQL> insert into azar values(4,42,'CURR');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from azar01;
    PID SALES STATUS
    1 12 CURR
    2 13 NEW
    3 15 CURR
    SQL> select * from azar;
    PID SALES STATUS
    2 24 CURR
    3 0 OBS
    4 42 CURR
    SQL> merge into azar01 a using azar b on (a.pid=b.pid) when matched
    2 then update set a.sales=a.sales + b.sales, a.status=b.status
    3 delete where a.status='OBS'
    4 when not matched
    5 then insert values(b.pid,b.sales,'NEW');
    3 rows merged.
    SQL> select * from azar01;
    PID SALES STATUS
    1 12 CURR
    2 37 CURR
    4 42 NEW
    Hello Sir, is this correct?
    Regards
    S.Azar
    DBA

  • Problem with utility exp

    I have a problem with utility exp, and crash my database
    error ORA-0600 ORA-04031

    I have a problem with utility exp, and crash my database
    error ORA-0600 ORA-04031

  • Exp/imp problems

    Hi,
    Kindly Help.
    I plan to export full the database then I'll import it back to the same database, my purpose is to fix the fragmentation of the tables/tablespaces.
    1. Before importing the export file should I do anything to the database( e.g. truncate the tables, delete the contents)?
    2. Does the exp/imp utility depend on the SGA for it's performance or if not the SGA what parameter should I change to speep up the exp/imp?
    Thank you

    I plan to export full the database then I'll import
    it back to the same database, my purpose is to fix
    the fragmentation of the tables/tablespaces. Why you using export/import to de-fragmentation, there are other ways to do same like rebuild indexes, Use LMT etc
    Virag

Maybe you are looking for

  • BUG: iTunes writes invalid id3 tags.  This is unacceptable.

    Hi there, I'm a developer on a large opensource media player (XBoxMediaCenter) and have recently encountered a number of completely invalid id3v2 tags written by iTunes. For instance, TCP and TCMP frames have been written (in the case of compilations

  • How do I manually recreate the site definition (.ste) for an existing site?

    My iMac hard drive recently failed and had to be replaced. Though I had backed up my web site files, I don't have a backup of the site's Site Management (*.ste) file. Thus, I'm unable to manage this site in Dreamweaver (reinstalled on the new hard dr

  • BlueTooth connects via HotSynch, not other means PALM TX

    I am at my wit's end here. Really. I'm about to toss my Palm, and I'm hoping someone can help me out. Here's my setup: 1. PALM T|X - less than a month old. 2. Dell Inspiron 6000 laptop, running Windows XP Home SP2, 2gb of memory, Centrino technology.

  • Cannot control size of adjustment brush in Lightroom 5 Develop mode

    Whenever I click on the adjustment brush tool in Develop mode, its circle of influence automatically expands to the maximum diameter. Even when I try to contain the dimensions of the circle via the LR5's size slider or left bracket key, the adjustmen

  • XI Multi-reciever scenario

    When one source message is sent to >1 recievers, the QoS automatically becomes EOIO i.e. if system A has an error and cannot recieve the messages, this stops the queue and hence system B, C, D etc which are unrelated also stop working. This seems lik