Problem With Imp/Exp

I have exported a database schema containing spatial data using exp and Imported it into a new database using imp. It seems to be dropping rows from the user_sdo_geom_metadata table in the new database.
Has anyone else seen this problem and is there a solution to the problem?

Oracle Spatial will only carry rows from the user_sdo_geom_metadata view for tables that have spatial indexes. You could choose to export the contents of the view by doing something like this:
create table my_sdo_geom_metadata as select * from user_sdo_geom_metadata;Export the my_sdo_geom_metadata table, then after the import
insert into user_sdo_geom_metadata
  (select *
   from my_sdo_geom_metadata
   where table_name not in
      (select table_name from user_sdo_geom_metadata);

Similar Messages

  • 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

  • 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

  • Moving data type with imp/exp

    i used this line in one database:
    create or replace type sagi_row as object (
    ids varchar2 (250)
    str varchar2 (250));
    create or replace type sagi_srray os table or sagi_row;
    it work and i can use it.
    i duplicate the database by simple defaul exp and imp, it do every tink but not the data_type.
    it is simply do not transfer with all the data.
    and my question is WHY????????
    Thank you

    What version of Oracle are you using? Can you post the export and import logfiles?

  • Problems with imp

    I have expdat.dmp full-export file from 9i database
    I want to import this into 10g database, but .............
    D:\>imp
    Import: Release 10.2.0.1.0 - Production on Wed Jul 30 11:18:34 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Username: sys as sysdba
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
    Production
    With the Partitioning, OLAP and Data Mining options
    Import file: EXPDAT.DMP >
    Enter insert buffer size (minimum is 8192) 30720>
    Export file created by EXPORT:V09.02.00 via conventional path
    import done in CL8MSWIN1251 character set and AL16UTF16 NCHAR character set
    List contents of import file only (yes/no): no >
    Ignore create error due to object existence (yes/no): no > yes
    Import grants (yes/no): yes >
    Import table data (yes/no): yes >
    Import entire export file (yes/no): no > yes
    . importing SYS's objects into SYS
    . importing A's objects into A
    "ALTER SESSION SET CURRENT_SCHEMA= "A""
    IMP-00003: ORACLE error 1435 encountered
    ORA-01435: user does not exist
    IMP-00000: Import terminated unsuccessfully
    Thanks )

    As per Sybrand, looks like your export dump is not a FULL export dump.
    Perform the hint given him.
    Moreover, if the export was done in FULL mode, no need to create the users in advance on the target database. And also, no need to create the tablespaces on target system in advance as long as the source and target data files location same. If they are different, then you will have to create the tablespaces in advance on Target database.
    Regards,
    Sabdar Syed.

  • Problem with regular exp.

    i'm trying to write a program that prints
    lines from a string:
    Pattern p = Pattern.compile("^(.*)$", Pattern.MULTILINE);
    String s = "firstline\rsecondline\r";
    Matcher m = p.matcher(s);
    while (m.find()) {
    System.out.println("line: " + m.group());
    System.out.println("start: " + m.start());
    System.out.println("end: " + m.end());
    The problem is that i get an IndexOutOfBounds
    exception, thrown by m.find(). Seems like a bug
    to me. Or have i done something wrong?
    It doesn't happen if the string ends with '\n' or '\r\n'.

    It's a bug. Would you like to report it, or shall I? Whoever reports it, should do so quickly, if we want it to be fixed in Tiger. In the meantime, you can use the following as a workaround:Pattern p = Pattern.compile("(?<!.)(.*)$", Pattern.MULTILINE);

  • Problem with imp in 10g, imp

    Hi,
    We are trying to restore a schema by running >imp. We are pretty sure that the dump file is ok.
    We get the error
    IMP-00>01: dump file "path/expdat.dmp" may be an Data Pump export dump file <imp-0000: Import terminated unsuccessfully
    Any ideas?
    Many thanks
    Camilla

    Dear Camilla,
    Please check if you user impdp instead of imp command!
    Regards,
    Reza

  • 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 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

  • Imp Exp utility in ubuntu 10.4 with oracle instant client 10

    Hi,
    I have a problem with the imp/exp utility on Ubuntu 10.4.
    I have installed the oracle instant client 10, and I have followed this thread
    [http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/impexp.htm#CHDDBGDF]
    So, I've set env variable in my .bashrc
    ORACLE_HOME=/home/lucia/Programmi/instantclient10_1
    export ORACLE_HOME
    LD_LIBRARY_PATH=/home/lucia/Programmi/instantclient10_1:${LD_LIBRARY_PATH}
    export LD_LIBRARY_PATH
    PATH=/home/lucia/Programmi/instantclient10_1:${PATH}
    export PATH
    SQLPATH=/home/lucia/Programmi/instantclient10_1:${SQLPATH}
    export SQLPATH
    Sqlplus works fine, but when I try to use the utility exp/imp
    exp DB_USER/DB_PW@DB_SCHEMA owner=DB_USER buffer=300000 LOG=DB_USER.log FILE=DB_USER.dmp compress=n
    I have the following error:
    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
    (I cannot use data pump exp)
    Any suggestions?
    thanks in advance.
    Lucia

    root@laptop:~# /tmp/CVU_11.2.0.1.0_lucia/runfixup.sh
    Response file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.response
    Enable file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.enable
    Log file location: /tmp/CVU_11.2.0.1.0_lucia/orarun.log
    [: 845: true: unexpected operator
    [: 860: unexpected operator
    Any suggestions?
    thanks
    LuciaHello,
    I had the same problem. It was related to the shell script interpreter being used: it is really a bash script asking to be interpreted as sh. For the impatient, the solution was to change the first line of the script orarun.sh to read as:
    #!/bin/bash
    Explanation:
    1. The script runfixup.sh calls orarun.sh. The latter is the one that fails starting at line 845.
    2. The script is really a bash script as can be seen from the if syntax used. For example at line 191 we see the double equall sign ==:
    if [ "`echo $SET_KERNEL_PARAMETERS | tr A-Z a-z`" == "true" ]
    3. The bash man page says:
    string1 == string2
    string1 = string2
    True if the strings are equal. = should be used with the test command for POSIX conformance.
    string1 != string2
    True if the strings are not equal.
    (End of man page excerpt)
    Notice in particular that for a bash script to be POSIX it should avoid the == and just use =
    4. orarun.sh has on its first line #!/bin/sh. On my Ubuntu system, sh is a softlink to dash and the dash man page says:
    s1 = s2 True if the strings s1 and s2 are identical.
    s1 != s2 True if the strings s1 and s2 are not identical.
    5. So this script script uses bash syntax but is interpreted by dash. It is possible that this worked fine for the Oracle developer if on their system sh was softlinked to bash (which is often the case). Apparently, one should then be very careful to not use idioms that are not POSIX compliant.
    6. Another solution is to change the /bin/sh softlink from dash to bash. Personally, I was less comfortable doing this (the possible repercussions were wider than the proposed solution above).
    After making the change, the script ran perfectly. I think the best solution is for Oracle to update the script to be POSIX compliant or to identify itself as bash.
    Hope that helped,
    Mark Gaber
    Edited by: user1112514 on Jun 30, 2010 3:28 AM

  • 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

  • Problems compiling objects after imp/exp

    I am moving an Apex database to a new machine using imp/exp. I have run into problems getting 2 packages ( WWV_FLOW_CUSTOM_AUTH_STD and WWV_FLOW_SECURITY ) to compile due to PLS-00753: malformed or corrupted wrapped unit. I have tried using both imp/exp and datapump with no success. I have insured that my sys grants exist on the new database. I have also tried generating the package code and manually creating the package with no luck?
    Any ideas? Is there a script in the Apex distribution that can be run to recreate these pacakges?
    Thank you
    Message was edited by:
    birk

    Birk,
    1. Connect as FLOWS_xxxxxx (depends on your version) and   alter package wwv_flow_security compile
       alter package wwv_flow_security compile body
       alter package wwv_flow_custom_auth_std compile
       alter package wwv_flow_custom_auth_std compile body
       /2. If that doesn't work, go to the core directory in the distribution and, again connected in SQL*Plus as FLOWS_xxxxxx, run:    @auth.sql
        @auth.pkb
        @custom_auth_std.sql
        @custom_auth_std.pkb3. If that doesn't work, you may have to contact Support about the imp/exp steps that seem to have given rise to this.
    Scott

  • .EXP problem with  library .JAR

    Hello,
    I would like to create a javacard library to import it in a new project. Unfortunately I have a problem when I import my library and build in the new project. This is my process:
    1) To create my library I generate a .JAR with my .class files
    2) Seconde step I generate an .EXP file with interface desciption.
    3) in my new project I import my library and I put .EXP file in 'export' directory
    4) I use my library in new servlet
    BUT when I build my new project, i have errors with my .EXP file. Errors are:
    class com.sdk.StringUICC not found in export file sdk.exp.So i have used exp2file to read my .EXP file and this .EXP doesn't decribe all my classes but just my package:
    export file {          // com/sdk
         magic     00FACADE           // in hex
         minor_version     1
         major_version     2
         constant_pool_count     2
         constant_pool {
              Constant_Utf8_info {
                   tag     1
                   length     22
                   bytes     com/sdk
              CONSTANT_Package_info {
                   tag     13
                   flags     0
                   name_index     0          // com/sdk
                   minor_version     0
                   major_version     1
                   aid_length     12
                   aid     0xA0:0x0:0x0:0x0:0x18:0x52:0x1:0x4:0x0:0xFB:0x0:0x41
         this_package     1
         export_class_count     0
         export_classes {
    }So my question is : "What I have to do to generate a correct .EXP file?"
    Thank you :)
    Jérémie

    I didn't use converter command correctly :) it's all right now
    Best regards
    Jérémie

  • Use of imp/exp to restore a database will fail ??

    I have a database that uses mdsys and other user-defined objects. This week I've had the "pleasure" to try to restore a database from scratch using imp, but had to abandon because imp refuses to create tables if they refer to objects, that upon export had a different id than the database being imported to.
    Since mdsys for instance, is always excluded from exports (like sys and system) when you create a new database, the spatial objects are created with a different ID than the original database. Hence, every table you have with spatial data will not be imported.
    So imp only works if the internal object ids match.
    What would be the "imp/exp" procedure to do a full db restore that bypasses the above problem? Has datadump solved this issue?

    Correct - all schemas considered part of the dictinary are excluded (why has things become so complicated- in the old days we had ONE place where everything dictionary went).
    That's the problem. I have tables in my export that depends on MDSYS objects. In other words, spatial data. So, to re-create my database I must first create a database and ADD a MDSYS schema. So yes, I created the schema prior to import. The problem is, that the MDSYS objects then do not get the same object-ids. And there lies the problem. IMP will not import my tables with spatial data in them because the reference to the MDSYS objects do not match the object ID that was used during export. Why this rule is applied is the mystery.
    In addition, which I rote in the spatial forum, anything related to the mapviewer application is also placed in the MDSYS schema, excluding them from export; regardless that the data related to mapviewer is not related to database objects. The result is, that your Oracle Mapviewer application data is lost. The "official workaround" is to run pre-scripts that copy the dictionary views to fixed tables, then run your export. And on import you run a post-script to copy it back. Rather silly and inflexible.

  • How to redirect imp/exp or impdp/expdp output

    Hello,
    I'm sorry for that, if this forum not the right place for this posting, but I hope that some one has this problem too.
    I've an application written in C# (an windows.forms app) that calls imp/exp or impdp/expdp (depends on user). I need the output of this tools in my app.
    Thank a lot for any help.

    user9099355 wrote:
    Hello,
    I'm sorry for that, if this forum not the right place for this posting, but I hope that some one has this problem too.
    I've an application written in C# (an windows.forms app) that calls imp/exp or impdp/expdp (depends on user). I need the output of this tools in my app.
    Thank a lot for any help.EXPDP/IMPDP:-
    [oracle@adg disks]$ expdp system/manager schemas=scott directory=DATA_PUMP_DIR logfile=scot_exp.log
    Export: Release 11.2.0.1.0 - Production on Tue Oct 4 14:36:54 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01":  system/******** schemas=scott directory=DATA_PUMP_DIR logfile=scot_exp.log
    [oracle@adg disks]$ cd /u01/app/oracle/admin/adg/dpdump/
    [oracle@adg dpdump]$ ls -lt scot_exp.log
    -rw-r--r-- 1 oracle dba 1965 Oct  4 14:38 scot_exp.log
    [oracle@adg dpdump]$exp/imp:-
    [oracle@adg dpdump]$ exp system/manager file=exp_schema.log log=exp_schema_trad.log owner=scott
    Export: Release 11.2.0.1.0 - Production on Tue Oct 4 14:38:53 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    [oracle@adg dpdump]$ ls -lt exp_schema_trad.log
    -rw-r--r-- 1 oracle dba 1774 Oct  4 14:39 exp_schema_trad.log
    [oracle@adg dpdump]$or
    nohup exp system/manager file=exp_schema.dmp owner=scott > exp_schema_test.log
    +[oracle@adg dpdump]$ ls -ltr exp_schema_test.log+
    -rw-r--r-- 1 oracle dba 1922 Oct  4 14:40 exp_schema_test.log
    +[oracle@adg dpdump]$+

Maybe you are looking for

  • Reg : How to get the company address in Crystal Report

    Dear members, I am stuck up with problem in Crystal Report in my project. I want to get the company address in the Crystal Report. How can i get the company address in the crystal report. Hope i will get help in this regard. Thank you. Regards, Venka

  • Powerbuilder an Chinese Characters

    I am using powerbuilder 12.5.2 Build 5006 with a MSSQL Server 2008 SP2 database.Version 10.0.5500.0 The connection to the database uses ODBC and the connect string is DBParm=ConnectString='DSN=StarKISHK_Dev;UID=;PWD=;APP=%app%;WSID=%wsid%',ConnectOpt

  • Incorrect date created

    I have some old documents from the OS9 days that have invalid 'date created' metadata .. i.e. some say they were created in 1934. Is there a way to modify this without going into terminal? A shareware program hopefully?

  • How to keep stuff on calendar permanently

    I put a lot of things on my calendar (such as bills to pay and etc).  But when I go back a month, those things are no longer on my calendar.  How do I keep things on my calendar permanently?

  • Mod_sapsso.so and Apache2

    Hello. I'm trying to build SAPLogonTicket access to a NON SAP system using mod_sapsso, but the one available on sapservX seems to be built for apache1.3 only. Anyone else is facing the same issue? Regards, Luca Paleari