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.

Similar Messages

  • What should the default tablespace be for SAP users

    I'm using Oracle 10.2.0.4
    For the users
    OPS$<SID>ADM
    OPS$ORA<SID>
    SAP<SID>
    what should the default tablespace be
    PSAP<SID>USR or PSAP<SID>

    Hello Bill,
    > For the users
    > OPS$<SID>ADM
    For this user the default tablespace is SYSTEM
    > OPS$ORA<SID>
    For this user the default tablespace is SYSTEM
    > SAP<SID>
    For this user the default tablespace is PSAPPRDUSR
    Regards,
    Federico Biavati

  • Use of DEFAULT tablespace while re-enabling constraint

    Using 8.1.7.2.
    While trying to re-enable a constraint on a table, we hit a ORA-01630. According to the error message, Oracle was trying to use the DEFAULT tablespace (USERS) instead of the TEMPORARY tablespace (TEMP) to do the work.
    Why would Oracle use a tablespace other than TEMP to do work that needed temporary space?
    [email protected]

    What is the 'temporary_tablespace' value when you query user_users as this user?
    Oracle will use the tablespace that is specified as the users TEMPORARY_TABLESPACE for all sorts. If that tablespace does not exists, it uses SYSTEM.

  • How to resize the DEFAULT tablespace...

    When I use "Portal Configuration Assistant" to Install Oracle Portal, I got an alert from step 5 of 6 :
    "The Portal Configuration Assistant has halted because it has detected that the amount of free space available in the Default tablespace is less than 150M...."
    How could I do in next step?
    Thanks in advance!
    Regards,
    Eric
    null

    Eric,
    To fix the problem, log into SQLPLUS as MANAGER
    increase the table size by giving
    ALTER TABLESPACE <name> ADDFILE '<fullpathfilename>' SIZE <value e.g 50M>
    null

  • 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

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

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

  • Create new user with default tablespace

    I have created a new tablespace, now i want to create new user but i cannot mention default tablespace and temporary tablespace for the new user.
    how to do this in oracle xe ???

    That's right. Additionally, you can use assistant to perform this task. In the near future you may want to have the SQL Reference handy: http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm
    As well as the specific XE Reference manuals: http://www.oracle.com/pls/xe102/homepage?remark=tahiti
    HR Madrid

  • 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

  • BC4J temporary tables - default tablespace

    I have database Oracle database 9i. I have created database user by CREATE USER "DBUSER" PROFILE "DEFAULT" IDENTIFIED BY "dbuser" DEFAULT TABLESPACE "MYTABLESPACE" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK;
    So I expect all tables are created inside ORDBS tablespace. They do - but only my application tables. BC4J temporary tables (PCOLL_CONTROL, ...) are created inside "USERS" tablespace, not MYTABLESPACE nor TEMP.
    Why? I don't want they are created inside users but don't know how to change it...
    Any idea?
    Thank you very much for any comment
    Jan Pechanec
    PS. I use JDeveloper 9.0.3.4

    Hi Steve/Nick,
    I am facing a similar kind of problem in oracle 9iAS(90220). A few days back there was a lot of user activity in one of the application modules and 7 PS_<app.module.name(s)> tables were created with around 7GB of size which eventually filled up the entire tablespace(100%). I spoke to the developers about the attributes that need to be set for Row spill over feature discussed in this forum but they said after lots of testing they have set those values and cannot be changed.
    Could you please suggest me how can I ensure that, next time any application module specific PS_ tables will get created I can route them to different tablespace based on the module name. (I donot want to move them after they are created, to a different tablespace) Please let me know asap so that I can implement it and avert any future problems.
    Thanks & regards,
    Ramana

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

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

  • Query Database in non default Tablespace.

    Hi
    As I understand a Database can be spread over multiple Tablespaces (a Database can contain multiple Tablespaces).
    How do I query a table that exists in a non default Tablespace?
    How do I query a table in another database on a different Tablespace?
    Rob.

    user8803094 wrote:
    Hi
    As I understand a Database can be spread over multiple Tablespaces (a Database can contain multiple Tablespaces).
    How do I query a table that exists in a non default Tablespace?
    SQL> select table_name from dba_tables where tablespace_name not in (select default_tablespace from dba_users where username ="<your user>");
    How do I query a table in another database on a different Tablespace?Pl elaborate on what you mean by this.
    >
    Rob.HTH
    Srini

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

  • DEFAULT TABLESPACE and TEMPORARY TABLESPACE for eBusiness Suite database

    Hi:
    What is the
    DEFAULT TABLESPACE and TEMPORARY TABLESPACE
    for eBusiness Suite database.
    I want to create a new schema on the eBusiness Suite database.
    Please help

    DEFAULT TABLESPACE and TEMPORARY TABLESPACE
    for eBusiness Suite database.
    I want to create a new schema on the eBusiness Suite database.Create a new tablespace and temporary tablespace for your custom schema (you may use the existing temporary tablespace).
    Integrating Custom Applications with Oracle Applications Release 11i [ID 176852.1]
    Step By Step Guide to Creating a Custom Application in Applications 11i [ID 216589.1]
    Thanks,
    Hussein

Maybe you are looking for