Names of tablespace in a schema

How to identify the tablespaces that belongs to a schema ?
Rephrasing the question:
Query to list the tablespaces that are used in a particular schema of a database

I believe the DBA_EXTENTS view has the information you require.
Here is a describe of the view:
OWNER                                                                                              VARCHAR2(30)
SEGMENT_NAME                                                                                       VARCHAR2(81)
PARTITION_NAME                                                                                     VARCHAR2(30)
SEGMENT_TYPE                                                                                       VARCHAR2(18)
TABLESPACE_NAME                                                                                    VARCHAR2(30)
EXTENT_ID                                                                                          NUMBER
FILE_ID                                                                                            NUMBER
BLOCK_ID                                                                                           NUMBER
BYTES                                                                                              NUMBER
BLOCKS                                                                                             NUMBER
RELATIVE_FNO                                                                                       NUMBERHTH!

Similar Messages

  • ORA-20001: Schema name SCOTT is a reserved schema and cannot be provisioned

    After upgrade to 1.6:
    ORA-20001: Schema name SCOTT is a reserved schema and cannot be provisioned.
    Any idea ?
    The same for username TEST

    "38452",
    Please read the section "Understanding Oracle Default Schema Restrictions" on page 18-3 of the HTML DB 1.6 documentation.
    Joel

  • Assign default tablespace to all schemas

    Hi All,
    How can I assign default tablespace to all schemas present in my DB's ?
    Thanks.

    907490 wrote:
    Hi All,
    How can I assign default tablespace to all schemas present in my DB's ?
    Thanks.whenever you are creating the user ,a default tablespace is assign to that user ........ You can check the default tablespace by database_properties view .....
    To check the default tablespace of each user by using the below query :
    select username,default_tablespace from dba_users ;Hope this help you :)
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Help! How to transfer tablespace of certain schema into another tablespace?

    Hi I'm using oracle 10g, i have schema name test which is in USERS tablespace.. how can I move it to different tablespace?thanks

    Changing the default tablespace will only affect the creation of new objects. You could perform a "ALTER TABLE xxx MOVE ..." on all tables, followed by moves or rebuilds of all indexes. It might be simpler to do a datapump export of the schema and re-import it with the REMAP_TABLESPACE=USERS:NEW_TABLESPACE option
    Bjoern

  • NEED HELP!!!!! Create Tablespace, User, and Schema

    Hello Everyone,
    I am kind of confuse with Oracle 10g since i am doing it first time. I am trying to accomplish to create a user for my WORLD database and by using Report Builder 10g to generate reports.
    I have been told that i need to create a Tablespace in my WORLD database in order to log-in to the Report Builder. When I am trying to log in to Report Builder i have to enter
    UserName:xxx123
    Password:password
    Database:@@@.WORLD -- where you see @@@ i have to put my tablespace where i have to store my all tables and assign user to this table space that i have been told so far.
    so here what i did.
    I create a new database name WORLD
    created New tables Space name mySpace
    but when i was tyring to create table through Enterprise Manager
    On create table screen i enter table Name EMPLOYEE
    ask me to select Tablespace : mySpance
    ask me to select Schema: (when i scroll down i saw my username) ??? so I am kind of confuse how do i make this stuff work?
    Can anyone give me simple direction or steps that i need to follow.
    I am trying to use Report Builder10g and using Oracle Database to access data.
    Please anyone can give me suggetion asap. Its vrey important for me since i just got new entry level job.
    Thank You

    I have two TNSNAMES.ORA file
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora90\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    OEMREP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = OEMREP.broadvoice.com)
    WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = world)
    DEV1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = Dev1)
    DEVAM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = devam)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Also, I checked in Services that my oracleserviceWORLD was running. So, my database run when i start my computer.
    Please let me know if there is anything wrong. I am very thankful to you that you are helping me out. I do appreciate your kind help.
    Thank You

  • ENT- 06955 Cube Name does not exist in schema !!!

    Hi , I decided to implement a small scale warehouse just to get a feel of OWB anyways i retrieved the data from a SQL Server database and populated my staging database i then implemented a cube and called it sales it so happens that upon creating a cube it automatically creates a measures "sales_1" tables in the tables sections. Anyways so i did the mapping and successfully the table got populated. I.e The table contained 2 aggregated (summed) measures with the three dimensions specified in the cube . So i guess the cube table got populated. This is the cube rite ?? I mean the table is the cube rite with both the measures and all the dimensions in one table ?? Furthermore so will each cube have a distinct table ?? What bothers me is when i double click on the cube in OWB i get the error the cube must be deployed... So i deploy the cube and it says successfully deployed. After that when i right click on the cube and select view data a error message comes up saying the workspace does not have a sales database (but it does) ?? Can we actually view the data in a cube through OWB other than viewing the data in the sales_1 table generated by the cube? ?? Could anyone know what i am doing wrong or what may be the problem..
    The error message that i am getting is "Cube name sales does not exist in OLAP schema ACME_DWH. Please deploy the cube SALES on to the olap schema ACME_DWH"

    Hi,
    When you create a dimension or a cube with ROLAP implementation, their "Deployment Option" will be set to "Deploy Data Object only" by default. If you want to browse data in dimension/cube using "Data Viewer", you have to right click the dimension/cube, click "Configurate..." in the popup menu, find "Deployment Option" property in Configuration editor, set it to "Deploy All" or "Deploy to Catalog only", then deploy and run it again.
    However there is another way to check dimension/cube data if you selected "Deploy Data Object only". You can find dimension/cube implement table, right click on that table, then click "Data...".
    Cheers,
    Dawei
    Edited by: dawsun on May 19, 2010 11:53 PM

  • Two soa domain with same name "TestSOADomain" sharing same SOA schema ?

    I tried creating two soa domain with same name "TestSOADomain" (different path) sharing same SOA schema .However one domain came UP to Running mode and other domain going to AdminMode and "soa-infra" application of that domain is not active.
    I do want to understand can this be possible with SOA ,ie. two soa domain sharing same SOA schema ?
    If possible what are all the problems might come
    1. While executing soa composites with asyncronous behaviour ?
    2. How the polling services will work ?
    3. will the XREF_DATA table ROW_NUMBER column inserted uniquely while inserting data from two different domain into same SOA schema ?
    4. Other issues ?
    Thanks

    Each domain is expected to refer to its own unique database schema. Same SOA schema should not be shared by multiple SOA clusters/domains. It is technically possible though, I suppose, and still can run fine any one SOA environment at any given time with the other SOA environments/domains (sharing the same SOA schema) shutdown. It is not the general/recommended practice to share SOA schema across domains and there could be potential implications and unexpected behavior, particularly when the SOA environments pointing to the same schema are all running at a time.

  • V 8.05 - Corrupted tablespace file for schema - cannot open database

    Group,
    Sun 450 Enterprise running Solaris 6. No hardware failures or problems.
    I have a database that will not open, and here's the info I think you'll need:
    Several schemas, each in it's own tablespace. Only one schema, production is needed, and it's fine. The test schema "tst" got it's tablespace files replaced by one of our admins. I DO NOT need any of the data in any schema but production, and it's files are OK.
    When I attempt to open the database to drop the tablespace and contents, I get:
    Logged on as oracle owner
    svrmgrlSVRMGR> connect internal
    SVRMGR> startup
    SGA message
    Buffermessages
    Database mounted.
    ORA-01122: database file 5 failed verification check
    ORA-01110: data file 5: '/oracle01/max/tst01.dbf'
    ORA-01251: Unknown File Header Version read for file number
    SVRMGR>drop tablespace tst including contents;
    ORA-011109: database not open
    I have tried "startup force open" - same error, just about every combination of svrmgrl options I can think of.
    All I want is to get Oracle to ignore those "tst" schema (tablespace) files.
    Thanks,
    Vince

    EdStevens wrote:
    N. Gasparotto wrote:
    You could try :
    startup
    alter database datafile 'your_datafile_name' offline drop;
    alter database open;
    drop tablespace your_tablespace_name;Nicolas.Wouldn't that need to be a 'startup mount'?I assume the startup will "partially" failed, and then the db will be in mount status...
    Nicolas.

  • EXP -- IMP but tablespace of source schema increased!

    Hello,
    I wanted to make a copy of a schema called ELT (has default tablespace = ELT) on a another schema on the same database (version 92040).
    So I created a new schema ELT2 with a new tablespace as its default tablespace called ELT2.
    I've done export of ELT using user system with rows=y consistent=y owner=ELT
    and then I've done import using also user system with the following params fromuser=ELT touser=ELT2
    but the import doubled the size of tablespace ELT while the size of tablespace ELT2 remained zero!!!! It should have been the opposite, and I'm sure I've everything correctly? I've checked and re-checked.
    I don't understand what happened! Can somebody explain this.
    Many thnx.
    Cheers,
    Simon

    IMHO:
    1/ You grant RESOURCE to user ELT2 -> hence ELT2 is granted UNLIMITED TABLES
    2/ You did export: The objects were exported with "TABLESPACE ELT" in their DDL statement.
    3/ When you import, the objects are creates as expected in tablespace ELT.
    If you want those objects to be created in ELT2 tablespace, revoke UNLIMITED TABLESPACE from ELT2, ensure tablespace ELT2 is user ELT2's defalt tablespace and then reimport.
    Regards,
    Yoann.

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

  • Using expdp/impdp to backup schemas to new tablespace

    Hello,
    I have tablespace A for schemas A1 and A2, and I wish back up these schemes to tablespace B using schema names B1 and B2 (so the contents of schemas A1 and A2 are copied into schemas B1 and B2, respectively, to use as backups in case something happens to schemas A1 or A2 or tablespace A).
    I began by creating tablespace B, and schemas B1 and B2. Then I attempted to populate schemas B1 and B2 by doing the following:
    EXPORT SCHEMAS:
    expdp a1/a1password@myIdentifier ESTIMATE=BLOCKS DUMPFILE=myDpumpDirectory:a1.dmp LOGFILE=myDpumpDirectory:a1_export.log SCHEMAS=a1 COMPRESSION=METADATA_ONLY
    expdp a2/a2password@myIdentifier ESTIMATE=BLOCKS DUMPFILE=myDpumpDirectory:a2.dmp LOGFILE=myDpumpDirectory:a2_export.log SCHEMAS=a2 COMPRESSION=METADATA_ONLY
    IMPORT SCHEMAS:
    impdp b1/b1password@myIdentifier DUMPFILE=myDpumpDirectory:a1.dmp LOGFILE=myDpumpDirectory:b1_import.log REMAP_SCHEMA=a1:b1
    impdp b2/b2password@myIdentifier DUMPFILE=myDpumpDirectory:a2.dmp LOGFILE=myDpumpDirectory:b2_import.log REMAP_SCHEMA=a2:b2
    This resulted in backing up schema A1 into schema B1, and schema A2 into B2, but the tablespaces for schemas B1 and B2 remained tablespace A (when I wanted them to be tablespace B).
    I will drop schemas B1 and B2, create new schemas, and try again. What command should I use to get the tablespace correct this time?
    Reviewing the documentation for data pump import
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_import.htm#SUTIL300
    specifically the section titled REMAP_TABLESPACE, I'm thinking that I could just add a switch to the above import commands to remap tablespace, such as:
    impdp b1/b1password@myIdentifier DUMPFILE=myDpumpDirectory:a1.dmp LOGFILE=myDpumpDirectory:b1_import.log REMAP_SCHEMA=a1:b1 REMAP_TABLESPACE=a:b
    impdp b2/b2password@myIdentifier DUMPFILE=myDpumpDirectory:a2.dmp LOGFILE=myDpumpDirectory:b2_import.log REMAP_SCHEMA=a2:b2 REMAP_TABLESPACE=a:b
    Is that correct?
    Also, is it OK to use the same export commands above, or should they change to support the REMAP_TABLESPACE?

    Hi,
    if i understand correctly, you want to import  A1:B1 and  A2:B2 with the Respective Tablespace. You are using the expdp with ESTIMATE it can not help you
    You can use something like that with one dump file
    expdp system/password directory=<myDpumpDirectory> dumpfile=A1_A2_Export.dmp logfile=A1_A2_Export.log schemas=A1,A2
    impdp system/password directory=<myDpumpDirectory> dumpfile=A1_A2_Export.dmp logfile=A1_A2_Import.log remap_schemas=<A1:B1,A2:B2> REMAP_TABLESPACE=<TAB1:TAB2>
    HTH

  • Importing one schema to different user name

    How can I import one schema (all objects of a user) to another user's name in same database?
    When I tried to run import, I found import expects that same user name and tablespace name should exist in target database.
    Tnanx

    imp help=y" will show all available options << and imp is documented in the Utilities manual which will explain the parameters that are not obvious.When doing a fromuser touser import you may encounter some object validation errors for third party owned objects that are referenced in stored code (packages, functions, procedures) and views if the touser does not have privileges on them or the objects do not exist in the target database.
    HTH -- Mark D Powell --

  • Generating traffic report of a tablespace or schema

    Hello together,
    at an Oracle 11gR2 (11.2.0.3.0) Enterprise Edition (fully licensed) with RHEL 6 as OS I'm trying to generate a statistic, that shows me a weekly or monthly report over the traffic on a tablespace or a schema.
    Until now, I've worked with the HIST_VIEW dba_hist_tbspc_space_usage (I mean there is also one nearly called so for schema), but that view show me only the grow of a tablespace in a timeline of 1 week. But that would not be the hole traffic. Because SELECT statements will nothing do on the grow of the tablespace but it generates traffic.
    In that case it wouldn't be so important, if it is more tablespace or schema sided because at this database each tablespace has it's own schema and timeline would be nice if it is weekly or monthly.
    Does somebody of you know a way to generate such a report? I know I could do with some tcp_dump, but i would also see if there is also any Oracle database way.
    Thanks and regards,
    David

    Thanks for your answer Justin!
    That is what i meant with fully licensed. Performance and tuning pack is on board.
    Directly, I can try the view tomorrow, I'm not at work right now.
    But it sounded not like that what I'm searching for. Normally traffic should be something in MB or GB I think.
    Better would be to describe, for whgat I need that: my company want's to "outsource" our dedicated server to an IAAS provider. To calculate the cost they need informatioin about:
    The complete size of DB
    Size of each schema / tablespace
    And the traffic, because traffic generate extra cost
    Traffic in this case doesn't mean only the shrink and grow of a schema or a tablespace (insert, update, delete) it also means the read out of data in the database by select or merge or something like that.
    So the shrink and grow I'm able to calculate them by dba_hist_tbspc_space_usage by getting the size of a tablespace each hour and make an addition of the changes of the size. But here I can't see the traffic that is generating by everything else? And you mean, that can I do with DBA_HIST_SEG_STAT?
    Regards,
    David

  • One db and user for multiple tablespaces or schemas per server?

    Hello again.
    I installed Oracle 11g on server_1 and created one database db_1.
    Using Enterprise Manager, I did the following:
    Created a tablespace myname_1.
    Created a user myname_1.
    Logged in as myname_1 and created a table into the default tablespace myname_1.
    When creating this table, the schema field defaulted to myname_1.
    Created another tablespace myname_2.
    My confusion about the relationship between tablespaces, users, and schemas starts here:
    When I try to create a new table for tablespace myname_2, I get an error:
    "user myname_2 does not exist"
    I am seeking some clarification on these levels of organization in Oracle.
    My goal is to setup my server with one database each and one user each per database.
    Then, I think I want to create multiple tablespaces and organize objects per tablespace.
    Or should it be per schema?
    Eventually each tablespace will be moved to a separate server.
    Any comments and suggestions are greatly appreciated.
    Thank you for helping.

    Hello,
    This error means user MYNAME_2 doesn't exists and you have to create one.
    Example 1:
    CREATE USER MYNAME_2
      IDENTIFIED BY "my_password"
      DEFAULT TABLESPACE MYNAME_1
      TEMPORARY TABLESPACE TEMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK;
      -- 4 Roles for KLONDIKE
       GRANT RESOURCE TO MYNAME_2; ---> This privs give unlimited quota on all the tablespaces
      GRANT CONNECT TO MYNAME_2;
      ALTER USER MYNAME_2 DEFAULT ROLE NONE;
    Then create your table (you were missing "AS" )
    create table myname_2.mytable_1 as
    select * from source_table@dblink_2;Example 2: If you want to create table mytable_1 in tablespace myname_2 then you have to create tablespace myname_2 first. To create table in different tablespace than user default tablespace
    create table mytable_1 tablespace myname_2 as select * from source_table@dblink;Regards
    OrionNet

  • Temp File Name Schema in Receiver File adapter

    Hi,
    I have a scenario where i have to write the file in the temperaory location before writing it to the FTP loacation, I have selected the Processing Parameter as "Use Temperory File" but when the file gets created it is padded with the Message Id, is thr any option to get the file name as the temp file name without the Message Id or timestamp.
    Please let me know if any one has come across such scenario.
    thankx,
    shree

    Hi,
    Under Write Mode, specify whether the target file is to be written directly in the specified directory. If an additional step is to be added using a temporary file, choose Use Temporary File.
    You can specify a naming scheme for the temporary file under Temporary File Name Scheme.
    This schema is used to determine the prefix and extension of the temporary file; to ensure a unique file name, a time stamp is also added to the name during processing.
    The schema xitemp.tmp, for example, results in the file name xitemp<timestamp>.tmp
    So you have to customise the file name in schema.
    see below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    Regards
    Chilla

Maybe you are looking for