Importing objects in default tablespace

Dear all,
We have our UAT and PRODUCTION environment having the same structure (same tablespaces, same amount of users) ..our application mainly runs with only one user called APPSDT. we have the
same user in our UAT also..
user APPSDT have objects created in all the tablespaces of the PROD environment. When we are
refreshing the schema APPSDT with that of the schema in UAT , IMP imports the objects the
objects in all the tablespace (since the tablespace name is the same in UAT as well in PROD)
I've allocated a big file tablespace as the default tablespace to the user APPSDT in UAT.
When am doing the import , all the objects have to be imported into the default tablespace
and not to user anyother tablespace ?
Any idea ?
Kai

KaiS,
If you have allocated quota only one tablespace which is default tablespace of the schema user, then all the objects pertaining to that user will be created in default tablespace. And if you have allocated quota on other tablespace then objects will spread over the other tablespaces (same tablespace as in your production server).
Regards

Similar Messages

  • Schema not imported to the default tablespace of the user

    I exported a schema. Then when I tried to import it in an existing schema, all the objects are successfully imported. But they are not imported in the default tablespace of that particular user. Why? How can I force the import to the default tablespace of that user?

    Did you attempt to import the objects into a new schema or into the existing one? If you are attempting to migrate the objects to a new schema you need to use the parameters:
    fromuser=<old_schema> touser=<new_schema>
    Or if you are attempting to migrate the objects to a new tablespace pre-create them as described above and import with the ignore=y.
    Message was edited by:
    klichten

  • Export from 8i to 11g does not create object in default tablespace

    Hello
    I have exported and schema from oracle 8i and i try to import it in oracle 11g in a different architecture (8i is sparc. 11g is x86)
    i have created an user with default tablespace and the original tablespace does not exist in this database, but I am getting the error;
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TS_ARCCLAIMS_DAT' does not exist
    if i create an indexfile and create all the objects by removing the REM from the indexfile i have countless contrains errors so i bet this is not an option.
    this is how the user is created in 11g:
    CREATE USER ARCCLAIMS
      IDENTIFIED BY <password>
      DEFAULT TABLESPACE ARCCLAIMS_DAT
      TEMPORARY TABLESPACE GN_TMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK;
      -- 2 Roles for ARCCLAIMS
      GRANT CONNECT TO ARCCLAIMS;
      GRANT RESOURCE TO ARCCLAIMS;
      ALTER USER ARCCLAIMS DEFAULT ROLE ALL;
      -- 1 System Privilege for ARCCLAIMS
      GRANT UNLIMITED TABLESPACE TO ARCCLAIMS;
      -- 1 Tablespace Quota for ARCCLAIMS
      ALTER USER ARCCLAIMS QUOTA UNLIMITED ON ARCCLAIMS_DAT;
    what do i have to do in order to have the objects go to the default tablespace of the user?
    thank you
    Mario G,

    Hello,
    I believe that you are right, the tables seem to have a clob datatype..
    here is it one of the tables affected:
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "CLM_MAIL_INBOX" ("IBX_CODE" NUMBER(6, 0) NOT NULL DISABLE, "I"
    "BX_CLM_CODE" NUMBER(10, 0), "IBX_IMP" CHAR(1), "IBX_FROM" VARCHAR2(50), "IB"
    "X_SUBJECT" VARCHAR2(200), "IBX_CREATION" DATE, "IBX_ATTACH_TYPE" VARCHAR2(1"
    "0), "IBX_ATTACH" BLOB, "IBX_CONTENT" VARCHAR2(1000), "IBX_RESP_STN" VARCHAR"
    "2(3))  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 LOGGING STORAGE(INITIA"
    "L 16384 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "TS_ARCCLAIMS_DAT" LOB (""
    "IBX_ATTACH") STORE AS  (TABLESPACE "TS_ARCCLAIMS_DAT" DISABLE STORAGE IN RO"
    "W CHUNK 8192 PCTVERSION 10 NOCACHE  STORAGE(INITIAL 24576 FREELISTS 1 FREEL"
    "IST GROUPS 1))"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TS_ARCCLAIMS_DAT' does not exist
    I have already reviewed the document 1180873.1
    could the DEFERRED_SEGMENT_CREATION=false be enough..
    could this be done with alter system or alter session? which one is better?
    thank you

  • DATABASE IMPORT IN THE DEFAULT TABLESPACE OF USER

    Hi,
    I have exported database into a dump file ,the exported database was using the system table space.
    Now i am trying to import database from the above dump file into the new user which has default table space specified, but its the import is happening in system table space rather then the default tablespace.
    On the command prompt command i am running this command to import:
    imp user/password@netservicename file=filename fromuser=x1 touser=xyz ignore=y

    You have to create the table in the tablespace you want before importing the datas in.
    Do you know the ALTER TABLE MOVE command to move a table from one tablespace to another ?
    Fred

  • Import of data into default tablespace

    I have Oracle 8.0 on one server having Win NT. Herein I have one
    database and a user assigned with 'x' default tablespace. I
    created a new user having 'y' as default tablespace. Then using
    imp command with fromuser - touser parameters, I imported data
    of 1st user into the new user. Atthis time the objects got
    created in the default tablespace of 1st user and not the new
    one. How do I manage this? i.e. the import to take place in the
    default tablespace of the new user

    Read the reference for the importAnXFDF-method. It's very straight-forward.

  • Create object on user's default tablespace only

    Hi all,
    Is there anyway I can limit a user to create tables NOT on system tablespace , besides alter user quota 0M on system ?
    Can I limit a user to create objects only on his own default tablespace ?
    alter user quota 0M on < all other tablespaces except user's default> ?
    Thanks.

    Hi,
    I have really no idea why oracle is behaving like this. How can you create a table without a quota.
    1) Write here the oracle version for your database software
    2) Can you try connecting to the database with same user id but from a remote client using TNS method instead of logging in locally, and they try creating the table.
    3) Can you give only CREATE SESSION privilege (not create table) and then perform the same task again.
    PS: Please paster your code/output enclosed withing code tag. Write **, then your code/output and then again *{code*
    Salmam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • IMPORT INTO A DIFFERENT TABLESPACE

    Hi All,
    When attempting to import a .dmp file into a user with different default tablespace errors IMP-00003 and ORA-00922 was raised, some objects were imported but the problem seems to arise when importing tables. Help will be greatly appreciated.

    Quote: apart from that you have to realize if the definition of your tables are poiting to a specific tablespace because if that is your case. You have to create that tablespace with quota for the new user and after move your tables from that tablespace.
    Not true, Import first attempts to create an object in it's specified tablespace. If it is unable to then it will create the object in the owners default tablespace.
    So buy changing a users default tablespace (with a quota) and removing the users quota from the old tablespace, you can actually change tablespaces on import.

  • Import to a specific tablespace

    Is there any method to import data to a specific tablespace?
    Scenario
    - have an exported dump of schemaA.tableA from databaseA
    - want to import above table as schemaB.tableB in tablespaceB[b] in databaseB

    well i don't understand your problem but try
    export file from
    Database Schema/User Tablespace Name
    catdb ----------------------->SCOTT---------------------------->MAKE
    above is your export file now you want to import
    orcl1----------------------------->HR-------------------------------------->USERS
    SQL> conn scott/tiger@catdb
    Connected.
    SQL> host exp file=e:\scott.dmp tables=EXPORT
    Export: Release 10.1.0.2.0 - Production on Sun Jan 7 12:00:00 2007
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Username: scott@catdb
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    . . exporting table                         EXPORT          1 rows exported
    Export terminated successfully without warnings.
    SQL> select property_value
      2  from database_properties
      3  where property_name = 'DEFAULT_PERMANENT_TABLESPACE';
    PROPERTY_VALUE
    TEST
    SQL> select username, default_tablespace from dba_users where username = 'HR';
    USERNAME                       DEFAULT_TABLESPACE
    HR                             DENI
    Now database default tablespace is 'USERS' and schema default tablespace is "DENI".
    SQL> host imp hr/hr@orcl1 file=e:\scott.dmp fromuser=scott touser=hr
    Import: Release 10.1.0.2.0 - Production on Sun Jan 7 12:00:45 2007
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V10.01.00 via conventional path
    Warning: the objects were exported by SCOTT, not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    . . importing table                       "EXPORT"          1 rows imported
    Import terminated successfully without warnings.
    SQL> select segment_name, tablespace_name
      2  from user_segments where segment_name = 'EXPORT';
    SEGMENT_NAME                   TABLESPACE_NAME
    EXPORT                         DENI
    Note : user HR having "RESOURCE" privs. so HR user having unlimited tablespace space on default tablespace.
    and user default tablespace is "DENI".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Exp/imp not going to default tablespace

    Hi all..
    i m using 8i
    and i m taking export of one schema by using these command.
    exp TEST/TEST file=TEST.dmp log=TEST.log buffer=10240000
    and importing
    imp TEST/TEST file=TEST.dmp log=imp_test.log full=y buffer=1024000
    i have created seprate tablespace for test user and test user's default tablespace is also test.
    but when i m importing test schema its going to other tablespace..
    how can i take export of one schema and import into other schema and all objects during import should go into defalut tablespace. ???
    can i do it using sys... ???

    how can i take export of one schema and import into other schema and all objects during import should go into defalut tablespace.Only way is prior to import CREATE empty objects in desired (new) tablespace; then use IGNORE=Y

  • Default Tablespace in Oracle

    When creating a new user, If no default tablespace is specified for that user, SYSTEM tablespace is designated as the default tablespace for that user. How do Oracle makes SYSTEM TABLESPACE as the dafault one. When a new tablespace is created, Is there any way to mark a that tablespace as the DEFAULT one for the Database?
    Thanks
    Mageshwaran A P

    793075 wrote:
    Hi All,
    Just wanted to clarify a satiuation where i had to change the default tablespace of an user/schema ( creating a new tablespace and assigning it to the user )   and take the export (expdp) of it,  and import back to the same user will it have all the objects  which were owned by that user before .
    1. create a new tablespace abc .
    2 Assigne that tablespace to an existing user/schema ( It has a different tablespace previously)
    3. expdp 'user'
    4.impdp 'user'
    will this retain all the objects of the user ?
    Any expert suggestion is highly apprciated .
    thaniks in advance
    What prevents you from doing this yourself and seeing for yourself what the behavior is?   (How do you think the 'gurus' got to be 'gurus'?)
    If, after conducting your own test, you see behavior you don't understand, I'm sure someone here will help explain the behavior you observe vs the behavior you expected.

  • Table created by datapump imp/exp, change default tablespace?

    Is there a way, without changing the users default tablespace, to force the table created by data pump import or export to go to a different tablespace than the users default? Our policy is that users must declare the tablespace they want an object created in, therefore the users tablespace is very small (6M), so if they accidently created an object in this TS it would fail. When we run expdp, this default tablespace fills up and export fails. I can't find a parameter in the documentation on giving an alternative tablespace for this table.

    When you run expdp, it creates a table under the user you logged in as. This table is used to keep track of the datapump process. I am looking for a way to direct datapump to create this table in a specific tablespace instead of the users default.

  • Modifying default tablespace + implications

    Suppose an Oracle user has his default tablespace set to Tablespace_Old and there are already objects stored there.
    Now suppose we want to alter the user such that this default tablespace is set to Tablespace_New. What happens to the objects which were stored in Tablespace_Old? Will they still be accessible from Tablespace_New or there will be the need to migrate the old data to the new tablespace?
    Moreover, in the case of a standby database scenario, will the standby database adopt such changes (i.e. will the user be assigned to tablespace Tablespace_New?)?
    thanks for your time.

    The default tablespace is only used to assign a location to build an object if a tablespace is not defined. The old objects will still be accessable. The more important thing is what quota's are assigned for the user on the tablespace. If the Quota is none, the user can't write in the tablespace. If it is unlimited, they can write anything and if the quota is 20 meg, then they can't create more then 20 meg of objects and rows.

  • Change in the oracle 11g user default tablespace

    Hi All,
    Just wanted to clarify a satiuation where i had to change the default tablespace of an user/schema ( creating a new tablespace and assigning it to the user )   and take the export (expdp) of it,  and import back to the same user will it have all the objects  which were owned by that user before .
    1. create a new tablespace abc .
    2 Assigne that tablespace to an existing user/schema ( It has a different tablespace previously)
    3. expdp 'user'
    4.impdp 'user'
    will this retain all the objects of the user ?
    Any expert suggestion is highly apprciated .
    thaniks in advance

    793075 wrote:
    Hi All,
    Just wanted to clarify a satiuation where i had to change the default tablespace of an user/schema ( creating a new tablespace and assigning it to the user )   and take the export (expdp) of it,  and import back to the same user will it have all the objects  which were owned by that user before .
    1. create a new tablespace abc .
    2 Assigne that tablespace to an existing user/schema ( It has a different tablespace previously)
    3. expdp 'user'
    4.impdp 'user'
    will this retain all the objects of the user ?
    Any expert suggestion is highly apprciated .
    thaniks in advance
    What prevents you from doing this yourself and seeing for yourself what the behavior is?   (How do you think the 'gurus' got to be 'gurus'?)
    If, after conducting your own test, you see behavior you don't understand, I'm sure someone here will help explain the behavior you observe vs the behavior you expected.

  • Default tablespace

    hi..
    i learnt that when u do import.. it will first look for the tablespace which is default to the user in import file.
    if the tablespace by that name does not exists. oracle will import the data to the default tablespace of the user where you are imporing the data.
    but i have a diff. case..
    i was importing a 'hr' users dump from daabase A to 'hr' users in another database B.
    hr users default tablespace in A database was 'ABIT' and hr user's default tablespace in B database was 'BBIT'
    As per my knowledge if i m importing hr users form db A to B it shoud import properly in 'BBIT' tablespace
    but import gave me error for some tables that 'ABIT' tablspace does not exists
    so finaly i had created same tablespace in B database and made it default to hr user . and import finished sussesfuflly..
    WHY.....???
    CAN anybody ple clear my doubts...

    Perhaps it is trying to create some objects that are not necessarily specified in the user's default tablespace, such as a special index tablespace, or even another tablespace for some other purpose.
    Also, not sure if IGNORE=Y would help, but did you have IGNORE=Y in your parameters? Usually this is in case an object already exist, but it might also make a difference if a tablespace does not exist and you want it to revert to the user's default tablespace.
    As was asked above: what were your exact errors? (and db version)?

  • How to determine the object in the tablespace

    Hi
    I have a problem with my database, How can i determine the object in the tablespace
    and how do move old tablespace into new tablespace and how to drop existing tablespace.
    Thanks

    Hi,
    If you want to find for all objects information, you can use dba_segments and filter this against the tablespace name. Once done you can create another tablespace and move the objects from old tablespace to new tablespace. Later you can drop the old tablepspace. You can use the below mention commands also:
    SELECT 'ALTER TABLE '|| table_name ||' MOVE TABLESPACE USERS;'
    FROM user_tables WHERE tablespace_name='MY_TableSpace';
    SELECT 'ALTER INDEX '|| index_name ||' REBUILD TABLESPACE USERS;'
    FROM user_indexes WHERE tablespace_name='MY_TableSpace';
    SELECT 'ALTER TABLE '|| table_name ||' MOVE LOB ('
    || column_name ||') STORE AS (TABLESPACE USERS);'
    FROM user_lobs WHERE tablespace_name='MY_TableSpace';
    On the other hand,
    You can also export a backup of the source tablespace and import into the target tablespace.
    Regards,
    XIC

Maybe you are looking for

  • How to sort this text file ?

    hi all i have a text file that contains archlinux package information int he following formate: File:alpine-2.00-1-i686.pkg.tar.gz     3623 KB     09/05/2008     10:53:00 PM File:alsa-lib-1.0.18-1-i686.pkg.tar.gz     474 KB     11/08/2008     04:46:0

  • Hyperlinks in Entourage no longer open in my default browser Firefox in English

    For a month or so now i have been unable to open any hyperlinks in entourage... they no longer click through to my Firefox default browser... Any thoughts?

  • Lightroom cannot identify my photo data in the iPhoto Library

    I am the new user of Lightroom 4, after installing the program I then tried to import (add) pictures from my iPhoto Library to the Lightroom, the iPhoto Library folder did not show on the source column. My iPhoto Library is under the Pictures folder

  • Shortcut to infotype in PA20

    Are there no keyboard-shortcuts for the infotype-field in direct selection on the PA20/PA30 etc. screens? Regards, Jan Petersen

  • E-Recruiting EEO/General employement ?

    Hello, I am implementing e-Recruiting 3.0 and we need to add and EEO/General Employement questions to the Cadidate profile container.  I am having a problem with it, everytime i add an element "Application Wizard: Questionnaire"  when i go to candida