Import differnet tablespace

How to import dumpfile different tablespace using older import utility (Not impdp utility)?
Thanks

Nikolay Ivankin  wrote:
Øyvind Isene wrote:
Create the new tablespace in target database, then create the user with default tablespace set to this and a with quota on it. When doing import, use fromuser=... and touser=... if the schema names differ. E.g.Remapping schema is not that OP've asked. He needs to remap tablespace, which is used under DataPump, but not in traditional imp.
1st way - use another DB and reexport with the help of datapump.
2nd way - create tbs(use existing) and assign unlimited quota to user you want to use for import. Revoke quota for others TBS.
Then all new data will be in the TBS you want. But if under this user will be activity - this activity will be saved also in the TBS.It was not clear to me that this was for the same user in the same database. If the user just wants to move tables and indexes from one tablespace to another for the same user/database he can just alter table ... move and alter index ... rebuild. With re-import to the same user, the objects must be dropped first, seems a bit more risky.
Anyway, we forgot to ask the most important question: why ?

Similar Messages

  • Can I import a tablespace into Oracle 10g Express Edition

    I am very new to Oracle 10g Express Edition. We have a server running Oracle Enterprise Edition and we have been creating a transportable tablespace to be imported into a few servers. This works fine for us. I would like to find out if I can import the tablespace into Oracle 10g Express Edition. Someone told me that I should be able to do that but I have no clue to how to do it. If this is possible, can someone tell where to find the information how to do this.
    Thanks,
    RJ

    I finally tried it and I got the following errors:
    IMP-00017: following statement failed with ORACLE error 721:
    "BEGIN sys.dbms_plugts.checkCompType('COMPATSG','10.2.0.2.0'); END;"
    IMP-00003: ORACLE error 721 encountered
    ORA-00721: changes by release 10.2.0.2.0 cannot be used by release 10.2.0.1.0
    ORA-06512: at "SYS.DBMS_PLUGTS", line 2004
    ORA-06512: at line 1
    IMP-00000: Import terminated unsuccessfully
    Am I right that the server that I exported the tablespace is using Oracle 10.2.0.2.0 while Oracle Express is 10.2.0.1.0? I looked around and I did not see Oracle Express version 10.2.0.2.0 that I can download. Is there a patch or something to upgrade it?
    Thanks,
    RJ

  • Import one tablespace  out of exp file

    Hello,
    I 'd would like to know how to import only one tablespace out of an export file. The import went wrong for one TS and I'd like to only retry that particular TS.
    Tyia,
    Cheers,
    A.R

    Tablespace clause is applicable only if you are working with transportable tablespaces and not otherwise.
    The following keywords only apply to transportable tablespaces
    TRANSPORT_TABLESPACE import transportable tablespace metadata (N)
    TABLESPACES tablespaces to be transported into database
    DATAFILES datafiles to be transported into database
    TTS_OWNERS users that own data in the transportable tablespace set
    Import terminated successfully without warnings.

  • Import from tablespace export

    Dear Experts,
    Oracle 10g, Windows 2003.
    I have exported users tablespace by using following command : exp system/password file='D:\userstablespace.dmp' tablespace=users.
    Now I want to export all objects in users tablespace to a user or object of a particular user to some other user ? is it possible ?
    Thanks&Regards
    Sunil Kumar

    Hi,
    Now I want to export all objects in users tablespace to a user or object of a particular user to some other user ? is it possible ?Not very clear with the question, but if you want user A's object in user B , export using owner=A and import using fromuser=A touser=B
    exp file= log= owner=A feedback=10000 buffer=3000000
    imp file= log= fromuser=A touser=B feedback=10000 buffer=3000000 commit=n
    Anand

  • Import Glitch - tablespace privileges

    Trying to do an Oracle export file import into a newly setup 10G Express database.
    Created a new tablespace.
    Import says privilege not set. How do that?
    Also, import seems to use SYSTEM tablespace as default tablespace when export file did not specify one. How to change that and force to the new tablespace?
    Thanks
    Ed

    user12264668 wrote:
    Trying to do an Oracle export file import into a newly setup 10G Express database.
    Created a new tablespace.
    Import says privilege not set. How do that?
    Also, import seems to use SYSTEM tablespace as default tablespace when export file did not specify one. How to change that and force to the new tablespace?
    Thanks
    EdHi Ed,
    It would be real useful to know the operating system you are using and to 'see' the actual error message. I suspect that the user does not have space granted (ALTER USER ... QUOTA ... command as described http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_4003.htm#i2058207)
    Default tablespace can be done at the user or the system level (ALTER DATABASE DEFAULT TABLESPACE USERS;) which, since Express Edition is part of the 10gR2 family, is described in the 10gR2 SQL Reference manual at http://tahiti.oracle.com

  • Import (which tablespace to go to ?)

    Another question about imports. On another (non-Oracle) database I used, I could specify with exports if the tablespaces must be specified (that the tables are loaded into).
    I could choose if they must go back into the same tablespaces, or if the tablespace should not be specified, and then they would go into the default tablespace for the user the tables belonged to.
    How do I do this in Oracle ?
    My problem is that I am importing onto a database, with different tablespace names, and the import crashes, because it tries to import some tables into the original tablespace names, and not into the default space for the user.

    The work was a little too urgent, so I decided to rather use the same tablespace names on the target server.
    We have a consultant that comes in once a week, if needed, and he assisted me with running the import.
    First mistake, I was running it as user SYS, and not SYSTEM.
    He also showed me how to write the code from the .dmp file, to a log file, using the SHOW=Y parameter.
    We used this to create the users on the target, and then imported the .dmp file, using the same tablespace names.

  • How does repeated snapshot import impact tablespace free space?

    Hello,
    Our client is doing DEC-2014 reconciliation in FCM. Every time he changes profile mappings he has to do snapshot import again. So far he did at least ten times snapshot import for DEC-2014 period. In our FCM database Tablespace FCM_TX_TS_DATA free space is reduced 7 GB for this period already by querrying dba_free_space table.
    By my understanding during the repeated snapshot import for the same period, the previous load data is deleted and the current load data is inserted. After data delete the table space will not be set free, and high water mark will not be reset.
    During snapshot import will the deleted blocks from the previous load be reclaimed when new load data is inserted in the table? If not, what is the best way to reclaim the free space in FCM_TX_TS_DATA tablespace?
    Thanks,
    Hongfei Liu (AT&T)

    Przemek P wrote:
    Hallo. I need to replace all schemas from one server to another. I want to know how much free space will be left on /data after this kind of refresh. Both servers are Oracle 9 so I will use exp/imp. Here is how I do it. Could you check if I think good? On target server there is 72 GB free space on /data.
    Filesystem Size Used Avail Capacity Mounted
    /dev/vgsmxdata/lvsmxcopy 194.74G 122.56G 72.18G 63% /data
    Overall size of schemas to be exported from SOURCE_DB is 150 GB. The same schemas on TARGET_DB takes 90GB. So difference is 60GB. Free space in datafiles in TARGET_DB is 30GB. Does it mean that in first place the free space in datafiles will be filled and after that datafiles would be extended? That would mean that a database would extend to 150GB and free space on /data would be 40 GB after refresh. Am I right?
    yes

  • Import tablespace failed due to different release version for 10g

    I try to exp tablespaces from 10.2.0.2 (Enterprise Edition, UNIX) to our test server 10.2.0.1 (express eidtion, linux) with transportable tablespace, when import the tablespaces, get the following error:
    Export file created by EXPORT:V10.02.01 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    import server uses WE8MSWIN1252 character set (possible charset conversion)
    export client uses US7ASCII character set (possible charset conversion)
    export server uses UTF8 NCHAR character set (possible ncharset conversion)
    . importing SYS's objects into SYS
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 721:
    "BEGIN sys.dbms_plugts.checkCompType('COMPATSG','10.2.0.2.0'); END;"
    IMP-00003: ORACLE error 721 encountered
    ORA-00721: changes by release 10.2.0.2.0 cannot be used by release 10.2.0.1.0
    ORA-06512: at "SYS.DBMS_PLUGTS", line 2004
    ORA-06512: at line 1
    IMP-00000: Import terminated unsuccessfully
    I have done the transportable tablespace between 2 test servers before, which are both on the 10.2.0.1. It's done sucessfully at the same target server (LINUX, XE edition). So this is the 1st time I get into this problem. Does anyone know that I can have the express edition upgrade/apply patches so that it will be on 10.2.0.2? Or is there anything I can try to import the tablespace from 10.2.0.2 to 10.2.0.1?
    Thanks,
    Hongmei

    Due to no patchset for XE edition, I try to import the tablespace to another LINUX server with EE edition, which is 10.2.0.2, I thought I should be ok for this time. But I get the same error again. I have applied the patches set for 10.2.0.2, and I have followed all steps in the poststeps. Do I miss somthing? Why it still mention it's 10.2.0.1. Thanks for your help. I attached the output here:
    Import: Release 10.2.0.2.0 - Production on Mon Jul 21 09:20:57 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    IMP-00002: failed to open /tmp/3tbsp_exp.dmp for read
    Import file: expdat.dmp > /tmp/3tbsps_exp.dmp
    Export file created by EXPORT:V10.02.01 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    export server uses UTF8 NCHAR character set (possible ncharset conversion)
    . importing SYS's objects into SYS
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 721:
    "BEGIN sys.dbms_plugts.checkCompType('COMPATSG','10.2.0.2.0'); END;"
    IMP-00003: ORACLE error 721 encountered
    ORA-00721: changes by release 10.2.0.2.0 cannot be used by release 10.2.0.1.0
    ORA-06512: at "SYS.DBMS_PLUGTS", line 2004
    ORA-06512: at line 1
    IMP-00000: Import terminated unsuccessfully
    Here is the imp -help output (top lines), it looks like the 10.2.0.2 version:
    $ imp -help
    Import: Release 10.2.0.2.0 - Production on Mon Jul 21 09:58:56 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.

  • How to import tablespace

    hi,
    anyone tell me how to import tablespace as i am repeatedly getting the different error.
    actually wat i did is during export i made the corresponding tablespace which i am going to export 'read only' and exported successfully.
    during import i dropped the corresponding tablespace including contents and datafiles with cascade constraints
    and tried to import but receiving the error
    here i given what i did during import
    $ imp \'sys\sys as sysdba\' transport_tablespace=y tablespaces=HEMU file=/export/home/oracle8i/exptab.dmp datafiles=/export/home/oracle8i/migdb/data/hem.dbf log
    =hemulog0.log
    Import: Release 8.1.7.3.0 - Production on Fri Jun 2 09:49:49 2006
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Password:
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.3.0 - Production
    JServer Release 8.1.7.3.0 - Production
    Export file created by EXPORT:V08.01.07 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in US7ASCII character set and US7ASCII NCHAR character set
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 19721:
    "BEGIN sys.dbms_plugts.checkDatafile(NULL,741328370,10,5120,14,10,4194302,"
    "1,398490,524480,314544,41943042,NULL,NULL,NULL); END;"
    IMP-00003: ORACLE error 19721 encountered
    ORA-19721: Cannot find datafile with absolute file number 10 in tablespace HEMU
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1577
    ORA-06512: at line 1
    IMP-00000: Import terminated unsuccessfully
    with regards
    Boo

    Hi,
    first check all dbf that are related with this tablespace should move to target database.
    second ,may be ur hitting bug 1826474.
    check metalink note 1826474.8.
    Thanks
    Kuljeet

  • ORA-39125 importing tablespace

    Oracle SE 10g
    SO- Unix
    I'm traying import a tablespace using EM, but y got this error, can somebody give me an advise?
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    ORA-39125: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS while calling DBMS_LOB.CREATETEMPORARY []
    ORA-25153: Temporary Tablespace is Empty
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 6228
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    c000000116b34ee8 14916 package body SYS.KUPW$WORKER
    c000000116b34ee8 6293 package body SYS.KUPW$WORKER
    c000000116b34ee8 9108 package body SYS.KUPW$WORKER
    c0
    00000116b34ee8 3870 package body SYS.KUPW$WORKER
    c000000116b34ee8 6910 package body SYS.KUPW$WORKER
    c000000116b34ee8 1259 package body SYS.KUPW$WORKER
    c0000001167c3828 2 anonymous block

    The normal procedure would be
    - one reads the error stack
    - one decides the second line is the most important error message
    - one looks this error up in the documentation
    - (error specifc)) one fixes this error making sure the temporary tablespace actually does have a tempfile
    The procedure here seems to be:
    - one hits CTRL-C
    - one dumps it in this forum, without doing anything
    not learning to be independent.
    Sybrand Bakker
    Senior Oracle DBA

  • Transportable Tablespace Importing - Failed to read stderr from process

    Hello,
    I'm using the normal EM console packaged with Oracle (10gR2) and am trying to import a tablespace on RedHat rel4.
    I follow the Transport Tablespaces link on the maintenance tab and get the option of export or import and also the place to put the host credentials in. I select import, enter the credentials and click continue and am given this error: Failed to read stderr from process.
    I've tried logging into EM as SYSTEM, SYS, and a DBA account I use and have used both root and the oracle account with no luck.
    Searching hasn't gotten me any useful results here or in metalink so I'm stuck. What am I missing?
    Thanks

    Thank you thank you!
    The short version is I traced it back to an error with /bin/nmo which traced back to a failure to run root.sh when upgrading to 10.2.0.3.
    Thanks again!

  • Import of a tablespace using a tablespace different name

    Hi,
    i'm trying to import a transportable tablespace into the same database it was exported from, but using a different name; the import utility fails saying that it can't find the original tablespace.
    The parameters used during export and import are:
    exp 'sys/pwd@host as sysdba'
    transport_tablespace=yes
    tablespaces=test_tbs
    direct=yes
    triggers=no
    constraints=no
    buffer=100000
    file=test_tbs.dmp
    imp 'sys/pwd@host as sysdba'
    transport_tablespace=yes
    tablespaces=test_tbs
    file=test_tbs.dmp
    buffer=100000
    datafiles='test_tbs.dbf'
    Both tools are spawned as child processes of my application.
    Is there any way to import a tablespace with a new name or to rename the tablespace after import. Needless to say, that I can't predict the new name at export time.
    What I basically want to do, is to imitate the "Attach/Detach Database" feature of mssql.
    Thanks in advance
    Heiko

    You can't rename tablespace with transport_tablespace features. Read the piece of information extracted from the metalink note : 103013.1
    Transported tablespaces are plugged in in a read-only configuration, however the file header also stores the tablespace name, so any attempt to rename it would require an update to the file header. Similarly at unplug time there is a requirement that the tablespace is in read only mode and the same restrictions therefore apply - you can't 'RENAME' a tablespace, because you might only be taking a copy of the datafile.

  • Tablespace import

    hi
    any one help me
    i have taken import of tablespace one database to another but i could not import data of existing tablespace from sorce database to target databse.
    please tell me command with path

    Hi user10808038!
    If I guess right you want to transport a tablespace from one database to another?!? You can't do that with a normal tablespace-export. You have to use transportable tablespaces. Please tell me your oracle version (9i or 10g, 11g). Depending on that you may use imp or impdp.
    yours sincerely

  • Cant Import In oracle 9i server

    I CREATE TABLESPACE AS FOLLOW
    create TABLESPACE INSURANCE
    DATAFILE 'C:\ORACLE\INSURANCE.ORA' SIZE 5M
    AUTOEXTEND ON
    MAXSIZE UNLIMITED
    THEN CREATE USER
    CREATE USER MAIN IDENTIFIED BY MAIN
    DEFAULT TABLESPACE INSURANCE
    QUOTA UNLIMITED ON INSURANCE
    GRANT DBA,CONNECT TO MAIN;
    I EXP LIKE THIS
    EXP USERID='MAIN/MAIN AS SYSDBA' FILE=X.DMP TRANSPORT_TABLESPACE=Y
    TABLESPACES=INSURANCE OWNERS(MAIN)
    WHEN I TRY TO IMP
    IMP USERID='MAIN/MAIN AS SYSDBA' TRANSPORT_TABLESPACE=Y TABLESPACES=INSURANCE FILE=X.DMP FROMUSER=MAIN TOUSER=MAIN
    IT SAYS
    The Following keywords only apply to transportable tablespaces
    TRANSPORT_TABLESPACE import transportable tablespace metadata(n)
    TABLESPACES tablespace to be transported into database
    DATAFILES datafiles to be transported into database
    TTS_OWNER users that own data in the transportable tablespace set

    Hi,
    <br></br>
    <br>See the doc to export tansportable tablespace : </br>
    <br>Exp - Transportable Tablespaces</br>
    <br>Imp - Transportable Tablespaces</br>
    <br>Nicolas.</br>

  • What data is contained in the export file for a transportable tablespace?

    "This operation will generate an export file, jan_sales.dmp. The export file will be small, because it contains only metadata. In this case, the export file will contain information describing the table temp_jan_sales, such as the column names, column datatype, and all other information that the target Oracle database will need in order to access the objects in ts_temp_sales."
    What is the other information?

    I don't have the sales dump. I was only quoting from the documentation. What i have is an export of 18 tablespaces - 9 partitioned data tablespaces and 9 partitioned index tablespaces.
    What I was trying to determine was if I could still import the tablespaces if the tablespace files were from a time that was after (one week) the original export of the metadata or if there was some bit of information that was held in the metadata which would prevent this.

Maybe you are looking for