Importing tables only

Hi,
i have an export of a database contaiing all objects like tables, procedure, packages, functions..etc
i want to import only tables of this database to another database
while running import command
imp chealth1/siobhan@test file=expdat.dmp fromuser=chealth1 touser=chealth1
what is the parameter i can specify to import only the table objects
thank

Really there is not any elegant way to do it directly with Oracle utilities up to 9i.
but when I had to do it , I used to do it so:
1.- Create the user who is going to be the owner of the new objects
2.- grant only to that user :
create session
create table
import_full_database
3.- import the user from his own account.
and so only the tables can be created and the rest of the obejcts are going to fail.
Joel Pérez
http://www.oracle.com/technology/experts

Similar Messages

  • 11gR2 Data Pump. Import table in one schema into a different schema

    I stady oracle. I export shema HR into file hrexport.dmp. When I import tables from this file I had trouble. I used Enterprise Manager:
    1. connected by user SYSTEM as NORMAL
    2. selected file, chosen import type - tables
    3. data from file was imported
    4. chosen tables which tables to import
    5. in the next step I try insert row in table Re-Map Shemas and edit cell Destination Shema, but in the list is only one name of shema - HR! Why?
    Edited by: alvahtin on 10.03.2013 6:11

    Paul M. wrote:
    Did you try using impdp command at OS prompt ?I don't know what this command use. I try:
    impdp system/oracle remap_schema=hr:inventory tables=employees, departments, locations directory=ORACLES_HOME dumpfile=hrexport.dmp logfile=hrimport.log
    But it finished with error:
    ORA-39166: Object SYSTEM.EMPLOYEES was not found.
    ORA-39166: Object SYSTEM.DEPARTMENTS was not found.
    ORA-39166: Object SYSTEM.LOCATIONS was not found.
    Job "SYSTEM"."SYS_IMPORT_TABLE_01" successfully completed at 18:43:19
    Job "SYSTEM"."SYS_IMPORT_TABLE_01" successfully completed at 18:43:19
    Why SYSTEM? I want import to INVENTORY from HR - replaced in the file hrexport.dmp

  • XI PCK Does Not Read Imported Tables

    Scenario is as follows:
    1. I have an environment from which I export all my objects (comm channels, send agr., receive agr.).
    2. I use loadercli to extract all the following tables:
    TABLEEXTRACT table XI_AF_CPA_PARTY data outstream file '/home/j2eadm/loader/unix/XI_AF_CPA_PARTY.txt' RECORDS
    TABLEEXTRACT table XI_AF_CPA_SERVICE data outstream file '/home/j2eadm/loader/unix/XI_AF_CPA_SERVICE.txt' RECORDS
    TABLEEXTRACT table XI_AF_CPA_CHANNEL data outstream file '/home/j2eadm/loader/unix/XI_AF_CPA_CHANNEL.txt' RECORDS
    TABLEEXTRACT table XI_AF_CPA_MOD_CONF data outstream file '/home/j2eadm/loader/unix/XI_AF_CPA_MOD_CONF.txt' RECORDS
    TABLEEXTRACT table XI_AF_CPA_MOD_SEQ data outstream file '/home/j2eadm/loader/unix/XI_AF_CPA_MOD_SEQ.txt' RECORDS
    TABLEEXTRACT table XI_AF_CPA_MAPPING data outstream file '/home/j2eadm/loader/unix/XI_AF_CPA_MAPPING.txt' RECORDS
    TABLEEXTRACT table XI_PCKMAPPINGS data outstream file '/home/j2eadm/loader/unix/XI_PCKMAPPINGS.txt' RECORDS
    TABLEEXTRACT table XI_AF_CPA_BINDING data outstream file '/home/j2eadm/loader/unix/XI_AF_CPA_BINDING.txt' RECORDS
    3. I use loadercli to import the very same tables to a different machine on the network, which has only part of the objects which I am trying to import (I am trying to overwrite the entire table)
    4. First problem - I receive a "SQL error 200 = Duplicate key (error position: 1)".
    5. I thought the overwrite is the problem, so I deleted all the objects and tryed importing again, this time - successfully.
    6. Main problem - After restarting the J2EE engine and the DB, the PCK tool recognizes all the new objects, but does not recognize the Communication Channel's File Access Parameters!!
    7. Even weirder - if I look at the imported tables through SQL studio for example, the ATTRIBS field for all the objects is imported correctly!
    Anyone ever bumped into this?
    Thanks for your help

    HI,
    Change list , whenever we change in any object immediately , one entry will be added to changelist .
    change the objects in IR
    In IR , goto click on changelist tab and reactivate all.And come back to ID.. also do it.
    Now refresh the SXI_CACHE, delta refresh and full refresh .
    regards
    Chilla..

  • ***Unable to import table which consists of nested tables

    Dear all;
    I have a problem on migrating my Oracle 8.1.7 database from windows nt environment into the ibm aix 4.3.3 environment. I have been using the import export utility. Exporting the data from the database does not produce any error but importing the export file produces the error as below;
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in WE8ISO8859P1 character set and WE8ISO8859P1 NCHAR character set
    . importing IIMS's objects into IIMS
    IMP-00017: following statement failed with ORACLE error 2331:
    "CREATE TABLE "CMGC_CURRENCY" ("CODE" VARCHAR2(10) NOT NULL ENABLE, "DESCP" "
    "VARCHAR2(60) NOT NULL ENABLE, "X_RATE" NUMBER(10, 6) NOT NULL ENABLE, "X_DA"
    "TE" VARCHAR2(10), "REMARK" VARCHAR2(255), "YEAR" NUMBER(4, 0) NOT NULL ENAB"
    "LE, "BANK_AC" VARCHAR2(20) NOT NULL ENABLE, "NSTBL_LEDG" "NSTBL_LEDGLIST" N"
    "OT NULL ENABLE, "NSTBL_XRATE" "NSTBL_XRATELIST" NOT NULL ENABLE) PCTFREE 1"
    "0 PCTUSED 40 INITRANS 1 MAXTRANS 255 LOGGING STORAGE(INITIAL 65536) TABLESP"
    "ACE "IIMS" NESTED TABLE "NSTBL_LEDG" STORE AS "NSTBL_LEDGLIST_LIST" RETURN "
    "AS VALUE NESTED TABLE "NSTBL_XRATE" STORE AS "NSTBL_XRATELIST_LIST" RETURN"
    " AS VALUE "
    IMP-00003: ORACLE error 2331 encountered
    ORA-02331: cannot create constraint on column of datatype Named Table Type
    Import terminated successfully with warnings.
    It seems that the error only occur when importing tables which consists on nested tables. I have done exporting and importing from windows NT into windows NT and from windows NT into AIX but the problem still arises. Please help.
    NSTBL_LEDG and NSTBL_XRATE are the nested tables with NSTBL_LEDGLIST and NSTBL_XRATELIST as the datatype accordingly.
    Thanks in advance;
    andrew

    Hi Sayak,
    This means we need to installed Oracle client to resolve this problem. Can you please share if you have some knowledge regarding the same.
    Thanks,
    Mohit

  • Can I use Word tables in InDesign?  Any way to import tables made with Word?

    Hi, I'm new here...  Well, the title says it all: I need to use (basically unchanged) nearly 100 tables from a book made recently with Word... Can I import them?
    It wouldn't be a problem making one new one (lines, etc...) with InDesign and then fill with text, but...  why repeat 100 different tables (that's my case) already done I can use without changes...  There must be a way to at least place a Word table into an ID document...  Thanks for all kinds of comments!

    OK, this looks like great news for me... So I understand ID places the Word table, and once inside ID, indeed ID sees it as a table you can vary... Is there any basic menu to vary one imported table, or is it a graphic (mouse) thing?  I really appreciate your advice, Bob...  I don't have much experience with tables in ID...  For example, how can I make the whole table smaller? Only by varying the placing of the lines one by one, or can I make it smaller in the way we make a jpg smaller?

  • Can't import excel file using Powerpivot Import Table Wizard

    I am new to the powerpivot in 2010 Excel.   I was trying to use the Powerpivot's import table wizard to import an Excel file into Powerpivot.  I was able to connect the target source file when I was in the wizard window testing the connection. 
    However, after I accepted to import the file and clicked finished, I couldn't see all the columns of the file were completely uploaded into the PowerPivot worksheet.  Also, the file has only 138 rows but it ends up over thousands row.  Can you please
    let me kow if this feature works at all or did I miss any steps?

    Hi MySueSue,
    Here are some tutorials about how to Import Excel Data into a PowerPivot Workbook.
    http://msdn.microsoft.com/en-us/library/gg399137(v=sql.110).aspx
    http://technet.microsoft.com/en-us/sqlserver/dn151367.aspx
    If there is anything I can do for you regarding this issue, feel free to post back.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Import table data in right order to avoid violating foreign key constraints

    Gentlemen
    I am trying to import table data into an existing 10g schema using datapump import in table mode.
    However, in order to avoid violating foreign key constraints, the tables must be loaded in a specified order. I tried specifying the order in the TABLES parameter:
    TABLES=table1,table2,table3 etc.
    However, datapump seems to chose its own order leading to errors like the following:
    ORA-31693: Table data object "SCHEMAX"."TABLE3" failed to load/unload and is being skipped due to error:
    ORA-02291: integrity constraint (SCHEMAX.TABLE3_TABLE1#FK) violated - parent key not found
    I want to try to avoid having to disable all foreign keys because there are hundreds of them.
    Any advice?
    Yours
    Claus Jacobsen, Denmark

    Thanks Anantha.
    Since I am only loadding data (the constraints are already defined in the target database), I am not sure whether this approach would work. Meanwhile I have solved the problem of moving data from one system to another using another, tedious and far from elegant approach that I would prefer to not eloborate on:-)
    However, I have also discovered another probable reason why the foreign key constraints were violated, other than wrong order of table data loading. It turns out almost every single table in the schema contains a trigger supposed to generate a unique row ID from a sequence on insert such as:
    CREATE OR REPLACE TRIGGER "SCHEMAX"."TABLEX#B_I_R"
    BEFORE INSERT
    ON TABLEX
    FOR EACH ROW
    DECLARE
    BEGIN
    SELECT tablex_seq.nextval INTO :NEW.ID FROM dual;
    END;
    If the import mechanism fires this trigger, and the sequences in the source and the target systems are not synchronized, then I guess that referred records a more than likely to end up with wrong ID's compared to the row ID's in the referring rows?
    Spooky. Anybody can confirm this theory?
    Yours
    Claus
    Message was edited by:
    user586249

  • Export single table in maxdb 7.4 and import table into maxdb 7.7

    Hello Guru
    Need your help as follows
    how to export single table from 32 Bit MAXDB 7.4 and import same table into another MAXDB 7.7 X64 bit.
    Thanks and Regards
    A P Rao

    Hello,
    the Database Studio Loader features are only available for MaxDB version > 7.5.
    Please have a look at the Loader documentation "Export table" and "Import table" command.
    http://maxdb.sap.com/doc/7_7/14/a08027b665485f8e09eca0c336171d/content.htm
    http://maxdb.sap.com/doc/7_7/24/ff7c8db8ae46f69a5ed3ec7e4c4db6/content.htm
    Best Regards
      Wolfgang

  • Importing table partition

    Hello all.
    I want to import only one partition of a table. The export that i have done is :
    exp usernmae/pass tables=(table_name:partition_name) ....
    And i want to import this partitino to another server with the same table_name.
    What can i do, i have first to create the partition to the target table and use import utility Or i directly use import utility and import will create first the partition.
    What the way to import it.
    Because when i import it directly i had an error like this:
    . . importing partition "TABLE_NAME":"PARTITION_NAME"
    IMP-00058: ORACLE error 14400 encountered
    ORA-14400: inserted partition key does not map to any partition
    Import terminated successfully with warnings.
    Thanks for your help.
    raitsarevo

    Hi,
    ops$tkyte@ORA920PC> drop table t;
    Table dropped.
    ops$tkyte@ORA920PC> create table t
      2  ( usercode1 varchar2(5),
      3    data      varchar2(10)
      4  )
      5  PARTITION BY LIST (usercode1)
      6      (partition p_acga VALUES('ACGA') ,
      7           partition p_aclj VALUES('ACLJ')  )
      8  /
    Table created.
    ops$tkyte@ORA920PC> !imp userid=/ full=y ignore=y
    Import: Release 9.2.0.4.0 - Production on Mon Feb 23 10:45:57 2004
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    export server uses WE8ISO8859P1 NCHAR character set (possible ncharset conversion)
    . importing OPS$TKYTE's objects into OPS$TKYTE
    . . importing table                            "T"
    IMP-00058: ORACLE error 14400 encountered
    ORA-14400: inserted partition key does not map to any partition
    IMP-00028: partial import of previous table rolled back: 2 rows rolled back
    Import terminated successfully with warnings.
    that is your error, it is because:
    ops$tkyte@ORA817DEV> select * from t;
    USERC DATA
    ACGA  hello
    ACLJ  world
    XXXX  ugh
    the source table has usercodes we did not anticipate - and your data must also have the same issue.
    to get this imported:
    ops$tkyte@ORA920PC> drop table t;
    Table dropped.
    ops$tkyte@ORA920PC> create table t
      2  ( usercode1 varchar2(5),
      3    data      varchar2(10)
      4  )
      5  PARTITION BY LIST (usercode1)
      6      (partition p_acga VALUES('ACGA') ,
      7           partition p_aclj VALUES('ACLJ') ,
      8           partition the_rest values ( DEFAULT ) )
      9  /
    Table created.
    ops$tkyte@ORA920PC> !imp userid=/ full=y ignore=y
    Import: Release 9.2.0.4.0 - Production on Mon Feb 23 10:45:58 2004
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    export server uses WE8ISO8859P1 NCHAR character set (possible ncharset conversion)
    . importing OPS$TKYTE's objects into OPS$TKYTE
    . . importing table                            "T"          3 rows imported
    Import terminated successfully without warnings.
    and there you go!  And then you can:
    ops$tkyte@ORA920PC>
    ops$tkyte@ORA920PC> select * from t partition(the_rest);
    USERC DATA
    XXXX  ugh
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1392403659992
    regards
    Taj

  • Importing tables with OMB+

    Hello all,
    I would like to import some tables, but not their constraints and I have not been able to do this through the OWB GUI (version 10.2), so I thought maybe I could do it using OMB+
    Does anybody know whether it is possible to import tables in a module using OMB+?
    As far as I have understood, (and please, correct me if I'm wrong!) OMBIMPORT only imports .mdl files and OMBRETRIEVE only gives you information about the existing tables in the repository.
    Thanks a lot in advance,
    Nerina

    Yes, you can import directly from your metadata source using OMB+, but as with the gui I beleive that it will import the FULL definition of the table, and that will include the constraints.
    However, if you want to play with this: You need to first connect to your repository, CC to your project, and then give it your password to your defined metadata location for your module (assuming that you normally need to set this). I have a config file of all relevant info, so you will be seeing a whole lot of dollar signs in this cut-paste job...
    #Connect to Design Repository
    set print [OMBCONNECT $OWB_DEG_USER/$OWB_DEG_PASS@$OWB_DEG_HOST:$OWB_DEG_PORT:$OWB_DEG_SIT USE REPOSITORY '$OWB_DEG_REPOS']
    puts "$print"
    #CC to Project
    set print [OMBCC '$PROJECT_NAME_DEV']
    puts "$print"
    #Enter Password to allow imports and deployments
    #NOTE: This needs to be modified to use paramters for proper release management.
    set print [OMBALTER LOCATION '$METADATA_LOCATION' SET PROPERTIES (PASSWORD) VALUES ('$PASSWORD')]
    puts "$print"
    OMBCOMMIT
    OMBSAVEOK, now you need to create your transient import plan, and then import from metadata location for each table.
    Sooo. assuming a table called SOURCE_TABLE you would do something like:
    set err [catch {
       set print [eval OMBCREATE TRANSIENT IMPORT_ACTION_PLAN 'IMPORT_ACTION1' \
                         ADD ACTION 'IMPORT_ACTION' \
                         SET REF SOURCE TABLE 'SOURCE_TABLE' \
                         SET REF TARGET ORACLE_MODULE 'MY_MODULE_NAME']
       puts "$print"
       set print [OMBIMPORT FROM METADATA_LOCATION FOR IMPORT_ACTION_PLAN 'IMPORT_ACTION1']
        puts "$print"
    } errMsg]
    if {$err != 0} {
              puts "ERROR Importing: SOURCE_TABLE!!!"
               puts "ERRMSG: $errMsg"
    }You can use this to import tables, sequences, and views from the defined metadata location by changing the source type in the action plan. Of course, you will also want to delete the action plan once you are done with it.
    Cheers,
    Mike

  • Import tables using same file name for all tables

    hi,
    We are using oracle 11.2.0.3.0, we have taken export of multiple tables in schema, unfortunately in exp command we have mention same file name for all the tables, now it has created one file for all export but the size of that file shows that all the tables included in it , when we try to import the tables only last table mention in export command is imported for other tables it hangs, example of code show below.
    Is there any way to import the remaining tables.
    exp system file =exp05042013.dmp tables=gr.table1
    exp system file =exp05042013.dmp tables=gr.table2
    exp system file =exp05042013.dmp tables=gr.table3

    Hi,
    You can use as :
    exp username@database tables=table1,table2 file=tabledata.dmpDid you have any RMAN full backup?
    Why you are not recover crash database?
    Mahir

  • Importing indexes only

    Here is the scenario:
    Export A contains tables, data, no indexes
    Export B (same database, different machine, contains tables, no data, indexes.
    Is there a way to import indexes only from export B into Database A without including tables?

    Hi Germando
    You can let IMP create a file with the CREATE INDEX statements with the option INDEXFILE, e.g.:
    imp <user>/<pass> indexfile=<out.sql> file=<in.dmp> full=y
    Then you can run it with SQL*Plus.
    Chris

  • Import tables to oracle module thru OMBPLUS

    How do i import tables from a repository to a module through OMBPLUS. Is there any command for it?
    Thanks in advance
    Prabhu

    Well, there's a command OMBIMPORT that can only import an mdl file into a repository but not tables into the module. I wasn't able to figure out any command that could import a table into a module from the repository.
    Thanks
    Prabhu

  • How to export / import tables from UAT Environment to Devlopment  in oracle

    i wanted to share some points about export/import tables in oracle.
    we have two environments one is development and integrated user acceptance test (UAT).
    we have finalized table structures with data in UAT. i wanted to move from UAT to Development.
    i found some commends in google. I tried but I am not able to export and then its throwing some errors.
    i am explaining below what i want to do and what i want did.
    Please provide solution what i need to do.
    admin credentials in UAT
    username :venkat_admin
    password :venkat_admin
    UAT user/schema
    username : ods_inb_stg
    password : ods_inb_stg
    development environment credentials
    admin user name : dev_admin
    password : dev_admin
    Development user/schema
    username :ods_inb_dev
    password :ods_inb_dev
    Above mentioned schema names i want move data from UAT (ods_inb_stg) to development (ods_inb_dev)
    I logged in uat ods_inb_stg user and then
    I used this command
    Exp ods_inb_stg/ods_inb_stg file=party_pt_address.expdat tables=(party,party_address)
    log=party_pt_address.log;
    getting error
    Unknown command beginning "exp ods_inb_stg/..." - rest of line ignored.
    What should I do any one help.
    One more thing i have more than 100 tables how to export all tables and which is the easiest way and how to do it.
    Thanks in Advance
    Venkat

    Hi,
    based import and export we need to do.
    suppose we think we have created tables in production and data also populated. we need to export the tables with data. i am able to export the tables with data some tables or full database.
    suppose we have development environment. in development environment there is no tables. we can treat nothing in development. we have only username,password and hostname.
    when you import the tables production to development automatically create the table structures with data.
    where ever we wanted to import the tables no need to create table structures. thats why no need to think about table structures.

  • OBIA / OBIEE Unable to Import Tables to DAC

    hi all,
    When I am trying to import tables or synonyms from the DAC console , it brings up only views like the _DFV which are views.
    It does not import any tables or synonyms.
    I am able to connect to the database thru sql developer /toad and can check that the tables exist in DB.
    The process I follow is DAC -> Design -> Tables -> Click any of the table line and 'right Click' -> Choose 'Import from Database' -> Choose 'Import Database Tables' -> Choose the EBS data source and just enter a % on the table name filter -> click on 'Read Tables'
    it brings up the _DFVs / views but doesnt show up any tables or synonyms.
    Plz help if anyone has resolved this issue.
    Thanks
    User

    Hi,
       If you are using DAC for OBIA ,then create olap table structure using dac console,why you trying to import EBS tables directly?
    Regards
    Naga

Maybe you are looking for