Import schema to a different tablespace

hi,
I've exported my instance:
EXP SYSTEM/MANAGER@OLDINSTANCE FULL=Y FILE=C:\EXP_FILE.DMP LOG=C:\ERROR_EXP.LOG
after I've created new tablespace and new user:
CREATE TABLESPACE MAX DATAFILE 'c:\MAX01.dbf' SIZE 3800M REUSE DEFAULT STORAGE
(INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS 256 PCTINCREASE 0) ONLINE;
CREATE USER MAX IDENTIFIED BY MAX DEFAULT TABLESPACE MAX TEMPORARY TABLESPACE TEMP;
finally I've imported tom's objects in MAX:
IMP SYSTEM/MANAGER@NEWINSTANCE FROMUSER=TOM TOUSER=MAX FILE=C:\EXP_FILE.DMP LOG=C:\ERROR_IMP.log
but in some tables I get these errors:
IMP-00017: following statement failed with ORACLE error 1658:
"CREATE TABLE "AREA" ("OFL" VARCHAR2(4), "OBL" VARCHAR2(32), "OSITE" V"
"ARCHAR2(32), "OLS" VARCHAR2(32), "OAREA" NUMBER, "DV_ID" VARCHAR2(32), "DP_"
"ID" VARCHAR2(32), "ODISMESSO" VARCHAR2(2), "OTYPE" VARCHAR2(64), "OCAT" VAR"
"CHAR2(64), "OOCCUP" NUMBER, "SFL" VARCHAR2(32), "SBL" VARCHAR2(32), "SSITE""
" VARCHAR2(32), "PRORATE" VARCHAR2(8), "STYPE" VARCHAR2(64), "SCAT" VARCHAR2"
"(64), "SAREA" NUMBER, "SOCCUP" NUMBER, "AREA_SERV" NUMBER) PCTFREE 10 PCTU"
"SED 40 INITRANS 1 MAXTRANS 255 LOGGING STORAGE(INITIAL 314572800 NEXT 52428"
"800 MINEXTENTS 1 MAXEXTENTS 1000 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS "
"1 BUFFER_POOL DEFAULT) TABLESPACE "TOM""
IMP-00003: ORACLE error 1658 encountered
ORA-01658: unable to create INITIAL extent for segment in tablespace TOM
In new instance there are 2 tablespaces (TOM, MAX)
I tried 2 solution:
1) I've taken the tablespace TOM offline in the new instance, but when I import fromuser=TOM touser=MAX.............
I get error because not exist tablespace TOM
2)I removed MAX's quota on the TOM tablespace in the new instance.
ALTER USER MAX QUOTA unlimited ON TOM;
but when I import I get alway the same error:
ORA-01658: unable to create INITIAL extent for segment in tablespace TOM
I know That I must encrease tablespace TOM for avoid this error, but I must create 6 new users in 6 different tablespaces and I'd to increase tablespace TOM too much (how many GB?).
how can I import schema to a different tablespace?
Thanks
Raf

I don't understand why you cannot import TOM's scheme
to new instance, because you say that you' ve TOM
tablespace in the database.
Check size of it, may be you need to increase size or
you can TOM tablespace set autoextended.
Also, you can set MAX tablespace is default in new database and set TOM tablespace is readonly.
Then import cannot create object in TOM tablespace
and create this in MAX tablespace.
Best regards, Victor

Similar Messages

  • How can I import schema to a different tablespace in a new database?

    Hi,
    I want to transport a schema "abc", which is on 'USERS" tablespace in the old database, to a new database using Data Pump. But on the new server, I want it on a different tablespace, say "TEST". How can I do that? I tried the following but it does not work:
    1. Create a user "abc" on new database, assign "TEST" as its default tablespace;
    2. use impdp to import the dmp file;
    I found that on the new server, the imported tables are still on the "USERS" tablespace.
    Can anyone tell me how to do it? thanks a lot.

    Use the REMAP_TABLESPACE option:
    REMAP_TABLESPACE = source_tablespace:target_tablespace
    Rick

  • How to import partitioned tables in different tablespace

    Hi everyone,
    I try to import the partitioned tables in different tablespace.
    Consider the following situation:
    I have a dump file which is created by using "Export" utility. Some data are in partitioned tables, some of them are in non-partitioned tables. Also, all tables are located in "MYTBS" tablesapce. I try to import all data from this dump file to another database. I didn't get error messages when importing the data from non-partitioned tables. However, I got error message when importing the data from partitioned tables. The error message is: tablespace 'MYTBS' does not exist.
    I just want to how I can solve this problem other than create 'MYTBS' tablespace for my new database.
    Thanks in advance.
    Angel

    Hi,
    I got the following error message:
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "FACILITYCONNECTION",....., "CONNECTIONTYPE" "
    "NUMBER(1, 0) NOT NULL ENABLE) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 25"
    "5 PARALLEL ( DEGREE DEFAULT INSTANCES 1) NOLOGGING STORAGE( PCTINCREASE 0) "
    "TABLESPACE "MYTBS" PARTITION BY RANGE ("CONNECTIONTYPE" ) (PARTITION "
    ""EXT" VALUES LESS THAN (1) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 S"
    "TORAGE(INITIAL 65536) TABLESPACE "MYTBS" NOLOGGING, PARTITION "FAC" VA"
    "LUES LESS THAN (2) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(I"
    "NITIAL 65536) TABLESPACE "MYTBS" NOLOGGING )"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'MYTBS' does not exist
    Thanks.
    Angel

  • Importing data into a different tablespace

    How do we import an user level export file into another user and a different tablespace from the tablespace clause specified in the export file ?
    Thanx in advance
    Abhijit

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • Import Schema in different tableapces

    Dear All,
    I need help regarging small issue our developers have created some schemas in user and system tablespace and we are migrating to another server. I want to tranfer them in different tablespace non system tablespaces during migration.
    I create schema in new database and assigned deafult tablespace to non system table space but still data was migrated in Users table space.
    Please suggest how i can migrate data to a different table space.
    Thanks

    //I create schema in new database and assigned deafult tablespace to non system table space but still data was migrated in Users table space.//
    first the reason why it went to the system and user tablespace is because the newly created schema had access to these tablespace.
    now how do you prevent access ?
    check that your user does not have RESOURCE role assigned. RESOURCE role provided UNLIMTED TABLESPACE rights to all the tablespace in your system. check these 2 privileges and remove them.
    if you have done this and imported the schema all the tables would have gone only into the default tablespace.
    p.s. obviously if you are running 10g, you dont need to worry all about this. use datapump. use REMAP_TABLESPACE

  • Export Import with different tablespaces

    Does anyone know if there is a way to export from one database (creating a dmp file) and then importing into another database with different tablespaces? I have tried this and get this error:
    ORA 959. It complained that the tablespace doesnt exist (which it doesnt). Is there a way I can change the export or import parameters to avoid this and just use the default tablespaces?
    I may well be missing the point here so please feel free to tell me I am being a fool.
    Thanks
    Johan

    Example. All these tables are from the same schema with the same tablespace specified in the dmp file. There are many more and 90 % fail but not all.
    importing SCHEMA1 objects into SCHEMA2
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "ACCOUNT_RPRT_NOT_TOBE_PUBLISH" ("O__NUM" CHAR(13) NOT NULL EN"
    "ABLE, "O__ST" NUMBER(4, 0) NOT NULL ENABLE, "STEP_COUNTER" NUMBER(7, 0), "S"
    "TATUS" NUMBER(1, 0), "RETRY_COUNTER" NUMBER(5, 0), "RESTART_COUNTER" NUMBER"
    "(5, 0), "PID" NUMBER(3, 0), "OBJ_LOCK" VARCHAR2(10), "MYFILE" VARCHAR2(200)"
    ", "LONG_FIELD" CLOB, "LAST_SELECT_B_S" VARCHAR2(250), "LAST_SELECTION" VARC"
    "HAR2(250), "L_EXECUTION_CTRL" CHAR(13), "ID" NUMBER(6, 0), "ERROR_COUNTER" "
    "NUMBER(7, 0), "CREATION_TIME" NUMBER(5, 0), "CREATION_DATE" NUMBER(6, 0), ""
    "COMPLETION_TIME" NUMBER(5, 0), "COMPLETION_DATE" NUMBER(6, 0), "COMMIT_COUN"
    "TER" NUMBER(5, 0)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(I"
    "NITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "AIA_DATA_T_256K" LO"
    "GGING NOCOMPRESS LOB ("LONG_FIELD") STORE AS (TABLESPACE "AIA_DATA_T_256K""
    " ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE STORAGE(INITIAL 65"
    "536 FREELISTS 1 FREELIST GROUPS 1))"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'AIA_DATA_T_256K' does not exist
    . . importing table "ACTUARIAL_RPT_CNTR" 0 rows imported
    . . importing table "ACTUARIAL_RPT_CVRG" 0 rows imported
    . . importing table "ALIS_CANCEL_BILLING" 2799 rows imported

  • Migrating schemas - Different tablespace names on source and destination

    Hi,
    I am migrating database schemas with exp/imp from 8i on Solaris to 9i on Linux and also from one 9i on Linux to another 9i on another Linux machine.
    The tablespaces and schemas (empty) already exist in the destination, so the schemas now need to be filled using imp. However, the default tablespace of the schemas have a different name in the source than in the destination. Is this going to cause errors during the import?
    Thanks.

    Not at all, i think. Just verify that the source tablespace is not present in the destination database. If you have a tablespace with the same name like the source, put the user quota to zero, so imp will switch to the default tablespace.
    Dba Z.

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • Import to different tablespace

    Hi all..
    I created dump file in one database with tablespace1 in Oracle 10g XE using expdp
    and
    now i want to import that dump file in another database with different tablespace2 name.
    What is the option for this...?
    Thanks in advance
    Pal

    Change the default tablespace of the user, under which the dump is to be imported, to a different tablespace.
    Once importing is done, you can restore the tablespace.

  • Move schema to a diff.tablespace

    Dear all,
    How can I move a particular shcema objects or the complete schema from his default tablespace to other tablespace ?
    Kai

    Kai,
    Here are some ways you can move schema from its default tablespace to other tablespace.
    Using anonymous pl/sql block or sql script;
    DECLARE
       CURSOR mcur
       IS
          SELECT   table_name FROM user_tables;
       v_sql                        VARCHAR2 (100);
       c_tablespace_name CONSTANT   VARCHAR2 (30) := 'MY_NEW_TS_NAME';
    BEGIN
       FOR x IN mcur
       LOOP
          v_sql :=
                'alter table '
             || x.table_name
             || ' move tablespace '
             || c_tablespace_name;
          DBMS_OUTPUT.put_line (v_sql);
       -- execute immediate v_sql :
       END LOOP;
    END;*2nd Method*;
    Using conventional export and import
    exp username/password file=myuserexport.dmp log=myuserexport.log
    Before importing
    1. drop all the objects from user (except roles and db-link).
    2. Setup a new default tablespace and revoke unlimited tablespace from the user and set quota 0 on old tablespace.
    3. You can also drop entire user and recreate one with new default tablespace
    imp username/password file=myuserexport.dmp log=myuserexport.log*3rd Method: (if using 10g), you can make use of datapump (remap tablespace)*
    http://www.oracle-base.com/articles/10g/OracleDataPump10g.php
    Regards
    Edited by: OrionNet on Mar 11, 2009 12:27 AM

  • Assign AW to a different tablespace

    Hello all,
    We would like to move an analytical workspace (Oracle 10.2.0.1) to a different tablespace. The owner user was originally assigned to a shared tablespace; however, it was changed to use a dedicated tablespace. I have attempted to export / import the AW upon the change, but it is still assigned to the original shared tablespace. Could you please let me know how to change the tablespace, so I don't have to recreate the AW from scratch.
    Many thanks!

    If I read this correctly, you have an existing AW that you want to move to a different tablespace. If so, you will need to recreate your AW. The easiest way to do this is as follows:
    1. Save dimensions and cubes to XML templates. (Save them independantly, don't just save the AW to a template.)
    2. Create a new AW, using the tablespace option. (I recall that there was a bug in 10.x where the tablespace option got ignored. After you create your AW with the spacespace option, check to see which tablespace the AW$ table is in. If it's in the default tablespace, not the tablespace you have chosen, you probably need a patch or upgrade.)
    3. Create your dimensions and then cubes from the templates in the new AW.

  • Using a schema from a different Logical Data Service

    Is it possible to use a schema from a different Logical Data Service in a new Logical Data Service? I want to maintain just one version of the schema.

    when I try and associate a schema type the 'Select Schema Type' dialog appears. On there the scope is set to project. Next to it is 'All projects', is there a way I can get that ungreyed?I don't think so. I assume that is a remnant from ALDSP 2.x when we had the notion of an ALDSP application that contained multiple ALDSP projects and there was visibility across projects (actually just folders) in the same application.
    can I use a schema associated with another dataspace projectNo. The contents of a dataspace are not accessible from outside the the dataspace other than what is provided by the APIs. And although the schemas could be accessed via catalogservices, this isn't a standard protocol (like http://) and therefore schema processors wont' be able to use them.
    You could host your schemas in a web-application and expose them via http. Create a Dynamic Web Project and put your schemas where the content gets served from (i.e. alongside index.html), and then they would be accessible via http://<yourserver>:<port>/yourWebApp/yourSchema.xsd. All the schemaLocation in the imports would need to be relative. It would probably be easier to create your schema-hosting application first, then build your dataservices.

  • How to import schema into logical standby database

    i had created a new schema(A)in different database and exported the schema into a dmp file using export utility
    from the exported dmp file i want to import that schema(A) into logical standby database using import utility
    iam importing as system user .
    i am getting the following error
    IMP-00003: ORACLE error 1031 encountered
    ORA-01031: insufficient privileges
    can some one help what was going wrong.
    thank you in advance.
    kalyan

    Hi kalyan,
    May u plz let us know which import command you are using? kinldy check that your system user has import/export privileges?
    Thanks
    Hassan Khan

  • Import Date Go to User Tablespace

    i create one tablespace for one user and grant this tablespace or put default tablespace to user .but when import tables go directly in USERS tablespace. Please Advice Me How Make Solution.
    Ahmed.

    Where were the tables on the source database created. If they were created in tablespace users, then that is where they will be created on the target system. Just because you changed the default tablespace on the target database doesn't mean that is where the tables will be loaded.
    If you want to move them to a different tablespace I think you need to make sure the old tablespace is not there.
    If you use datapump, you can use the remap_tablespace parameter
    remap_tablespace=old_tablespace:new_tablespace
    This is not available on exp/imp.
    Dean
    Edited by: Dean Gagne on Aug 13, 2009 10:50 AM

  • Import schema doesn't show any link id.

    Hi,
    When i connect http://hostname:50300/strategy/bi/ then choose import schema,after that i cannot see any link ids in the menu.Link ids were already created on application server.Do yo have any suggestion about this situation?
    Regards...

    Hi,
    - If you can't see a Link ID in the dropdown of the BICA Import Schema screen, make sure that PIP is actually connecting properly to PAS.
    - In the SM Administrator you must go to the Manage Models screen and create a Model Connection (BICDEFAULT) to be used by the BICA tool.
    - Stop and start the SAP SM Extended Listener and the SAP SM Listener services. If you are running SM 7.5 with the JPIP version of Interactive Publisher, go to the JPIP Session Monitor from the Tools menu and restart JPIP.
    Hope this helps,
    Miguel

Maybe you are looking for