Objects of a tablespace

Hi,
1-how can I see the objects of a tablespace ?
2-does TEMP tablespace contain any object ? How to see ?
Thanks.

Many thanks but :
SP2-0734: unknown command beginning "'free spac..." - rest of line ignored.
SP2-0734: unknown command beginning "' ' object..." - rest of line ignored.
SP2-0734: unknown command beginning "file_id, /..." - rest of line ignored.
SP2-0734: unknown command beginning "block_id, ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "CEIL(block..." - rest of line ignored.
SP2-0734: unknown command beginning "from dba_f..." - rest of line ignored.
SP2-0734: unknown command beginning "where tabl..." - rest of line ignored.
SP2-0042: unknown command "union" - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "substr(own..." - rest of line ignored.
SP2-0734: unknown command beginning "substr(seg..." - rest of line ignored.
SP2-0734: unknown command beginning "file_id, /..." - rest of line ignored.
SP2-0734: unknown command beginning "block_id, ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "CEIL(block..." - rest of line ignored.
SP2-0734: unknown command beginning "from dba_e..." - rest of line ignored.
SP2-0734: unknown command beginning "where tabl..." - rest of line ignored.
SP2-0734: unknown command beginning "order by 1..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
select tablespace_name,
ERROR at line 1:
ORA-00936: missing expression
Usage: { EXIT | QUIT } [ SUCCESS | FAILURE | WARNING | n |
<variable> | :<bindvariable> ] [ COMMIT | ROLLBACK ]
Message was edited by:
user522961

Similar Messages

  • Move objects from one tablespace to another

    Hello
    Running Oracle 10g rel 2 and I would like to move all objects from one tablespace to another. There are Primary Key indexes to other tables in this tablespace. The size grew too large and I want to reduce the size.
    Thank you.

    Good afternoom Sir!
    I believe that below "ask tom - moving tables across tablespaces" may help you.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:47812348053
    Regards,
    Marcello M.

  • 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

  • To capture all the objects from an tablespace and restore.

    Hi All,
    I have a situation in the  Schema  refresh process where i may have  to delete a tablespace  and its datafiles.
    Then I have to recreate it as it was before and restore all it objects .
    Is there any way that i can capture all the objects of that tablespace before it is deleted  and then later restore it back as it was .
    Any Expert sugggestion is highly apprciated .
    The Platform is as below ..
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Thanks In Advance .

    There are 2 methods you could use with Data Pump.
    1. tablespace mode export.  expdp user/password tablespaces=<your list here> ...
    2. transportable tablespace mode.  expdp user/password transport_tablespaces=<your tablespace list here> ...
      NOTE:  for #2, you need to have your tablespaces in read only mode, then you need to copy the data files, and the
                    tablespaces need to be self contained.
    Hope this helps.
    Dean

  • Moving objects from USERS tablespace

    Hi All,
    I want to clean my database and this involves moving all objects from USERS tablespace to their respective tablespaces. I have following types of objects in my database:
    INDEX
    INDEX PARTITION
    INDEX SUBPARTITION
    LOBINDEX
    LOBSEGMENT
    TABLE
    TABLE PARTITION
    TABLE SUBPARTITION
    Syntax of moving TABLES and INDEXES is pretty simple. But, since there are other objects like TABLE PARTITION, INDEX PARTITION etc. Can anybody help me in finding out what are the syntax of all the above objects movement?
    Thanks,
    Danish
    Edited by: Danish on Dec 5, 2008 5:19 AM

    Hi..
    You need to use the SUBPARTITION <name> instead of PARTITON<name>
    For partition
    ALTER TABLE parts MOVE PARTITION abc TABLESPACE xyz parallel (degree 2);
    For subpartition
    ALTER TABLE parts MOVE SUBPARTITION def TABLESPACE xyz PARALLEL (DEGREE 2);
    This is because every segment represents one and only one type of database object,such as a table, a partition of a partitioned tables etc.For partitioned table , every partition resides in its own segment.
    Anand
    Edited by: Anand... on Dec 5, 2008 5:20 PM

  • Moving objects into different tablespaces

    Hi Gurus,
    Here is my query .
    I have 40gb space to have dataset from production database.
    Test enviornment will be refreshed with production database.
    From testing enviornment development will be refreshed to aviod any connections to production.
    As part of data copying to dev env is depending on the conditions given by business.
    So my question comes here
    Initially I will be dumpring all the data to one tablespace in one tablespace of development environment.
    It could take 39 to 40GB.
    Now i want to move objects into different tablespaces accoring to storage clause and no of records .
    New tablespaces will be created in development enviornment and will be created in same 40GB.
    Space is constraint in dev env and cann't be extended.
    How can i create tablespaces into the dev env and move objects into them?
    I hope you understood my queries ...
    In simple
    TESTING ENV - - - -- - - - > DEV ENV(Initially one tablespace for all tables/objects) - - -- -- ---- >DEV ENV(Objects in diiferent tablespaces )

    You say:
    While creating scripts of tables we are removing all tablespace names as we will be having 3 tablespaces at target that is also after loading the data into them.Don't remove the TS clause, but replace the TS so-and-so with TS that-and-that.
    Or replace tablespaces a, b and c with x+, and d* and e with y*+.
    This can be automated, but you will have to write some logic for that.
    Because ... we will be having only 3 tablespaces in DEV. ex NEWYORK tablespace is in production but it won't be created in DEv , istead all the objects into that tablespace will be moved to large table space.
    As I said: You will need a code which greps for TS NEWYORK* and replaces it with +<your_big_TS>+.
    So once again: Where is the problem?
    It's just a question of coding.

  • How to find objects in a tablespace?

    Is there a possibility to find out all objects, that are placed in one tablespace?

    select owner, count(object_name) from dba_objects where object_type = 'TABLE' group by owner;
    null

  • Objects in a tablespace

    Hai all,
    How to findout the largest object and its size in a particular tablespace ?
    is there anyway we can list out that ?
    Thanks
    Yusuf

    objects of a tablespace
    List objects in tablespace
    may be helpful to you.

  • Objects in a tablespace or datafile ???

    How do we find out what objects ( tables, indexes etc ) are there in a particular tablespace ?
    Is there a way to find which object is in a particular datafile if the tablespace has more than one datafile ?

    Objects in tablespace:
    SELECT segment_name, segment_type
    FROM dba_segments
    WHERE tablespace_name = 'YOUR_TABLESPACE';Object in datafile:
    SELECT DISTINCT e.segment_name, e.segment_type, f.file_name
    FROM dba_extents e, dba_data_file f
    WHERE e.file_id = f.file_id and
          e.tablespace_name = 'YOUR_TABLEPACE'Note that a segment may be in more than one data file, so the second query can return multiple rows.
    If you only care about what segments have at least one extent in data file x, then:
    SELECT DISTINCT e.segment_name, e.segment_type
    FROM dba_extents e, dba_data_file f
    WHERE e.file_id = f.file_id and
          f.file_name = 'your_file_name'TTFN
    John

  • Relocating objects into new tablespace?

    I was looking for an easy way to relocate all objects from one table space to another table space? Is there a utility or any way to have all objects in one table space move to a new tablespace with out have to either move or rebuild each object one at a time.
    We have a tablespace that is 50 gig but is only 2% utilized so I am looking to shrink the overall db size by relocating the objects, and the dropping the 50 gig table space.
    I am trying to avoid extracting all of the ddl for all of the objects as well as the ddl to rebuild all of the indexes as there are over 200 objects that need relocating?
    Thanks.

    HI..
    To relocate the tables into another tablespace you can spool the output of below query and run it.
    select 'alter table '||owner||'.'||table_name||' move tablespace new_tbs_name parallel N;' from dba_tables where tablespace_name='XXX';
    Note:- N = cpu_count-1
    parallel --> to fasten the activity
    After its done,
    Rebuild the indexes of these tables:-
    select 'alter index '||owner||'.'||index_name||' rebuild parallel N;' from dba_indexes where table_name in (select table_name from dba_tables where tablespace_name='XXX');
    Then change the degree back:--
    select 'alter table '||owner||'.'||table_name||' parallel (degree 1);' from dba_tables where degree > 1;
    select 'alter index '||owner||'.'||index_name||' parallel (degree 1);' from dba_indexes where degree > 1;
    If on 10g
    select 'alter table '||owner||'.'||table_name||' parallel (degree 1);' from dba_tables where degree > '1';
    select 'alter index '||owner||'.'||index_name||' parallel (degree 1);' from dba_indexes where degree > '1';
    HTH
    Anand

  • Needto find no. of valid and invalid objects in a tablespace

    Hi,
    Can anyone tell me how to find the no. of objects that are valid and invalid in a tablespace.Below are the 2 tablespace that i want the info for
    SQL> select
      2  fs.tablespace_name "Tablespace",
    (df.totalspace - fs.freespace) "Used MB",
      3    4  fs.freespace "Free MB",
      5  df.totalspace "Total MB",
      6  round(100 * (fs.freespace / df.totalspace)) "Pct. Free"
      7  from
      8  (select
      9  tablespace_name,
    10  round(sum(bytes) / 1048576) TotalSpace
    11  from
    12  dba_data_files
    13  group by
    14  tablespace_name
    15  ) df,
    16  (select
    17  tablespace_name,
    18  round(sum(bytes) / 1048576) FreeSpace
    19  from
    20  dba_free_space
    21  group by
    22  tablespace_name
    23  ) fs
    24  where
    25  df.tablespace_name = fs.tablespace_name
    26  and fs.tablespace_name IN ('FPR_GL_I02','FPR_GL_D02');
    Tablespace                        Used MB    Free MB   Total MB  Pct. Free
    FPR_GL_I02                             18       4500       4518        100
    FPR_GL_D02                           1980     119250     121230         98Thanks in advance...........

    You can try with below query too.
    idle> select b.object_name,b.object_type,b.status,b.owner,a.tablespace_name from dba_objects b, dba_segments a where b.status='INVALID' and a.tablespace_name='USERS';
    OBJECT_NAME OBJECT_TYPE STATUS OWNER TABLESPACE
    QSRO_DDL_TRIG TRIGGER INVALID DB_QIPS USERS
    QSRL_USRDT_TRIG TRIGGER INVALID DB_QIPS USERS
    QSRL_DDL_TRIG TRIGGER INVALID DB_QIPS USERS
    DEMO VIEW INVALID DAVID USERS
    QSRO_DDL_TRIG TRIGGER INVALID DB_QIPS USERS
    QSRL_USRDT_TRIG TRIGGER INVALID DB_QIPS USERS
    QSRL_DDL_TRIG TRIGGER INVALID DB_QIPS USERS
    DEMO VIEW INVALID DAVID USERS
    QSRO_DDL_TRIG TRIGGER INVALID DB_QIPS USERS

  • Listing objects in a tablespace

    Hi All,
    I am planning to drop some of the tablespaces from DB and I want list and need to know what are the objects present in the tablespaces, is this possible?
    I tried with dba_tables, dba_tablespaces but couldn't proceed with it.
    Please help me out.
    Thanks

    Hi,
    dba_tables will just tell you the tables in that tablespace. To see all the objects:
    SELECT DISTINCT
            owner
    ,       segment_name
    ,       segment_type
    FROM    dba_extents
    WHERE   tablespace_name  = 'WHATEVER'   -- Capitalization matters inside quotes
    ;

  • 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

  • Can object max_extents exceed Tablespace Max_extents limit

    Hi Folks,
    My database version is 8.1.7.0.
    In the alert log i am getting an error of ora-1632 max_extents 500 exceeded tablespacename.index name
    If i alter the object max_extents the isssue will be resolved.
    But, my doubt is if my existing tablespace, max_extent is 500 can my object max_extents exceed it..??
    Thanks a lot..!!
    Regards,
    Nik.

    The [url http://download.oracle.com/docs/cd/A87860_01/doc/server.817/a85397/state25d.htm#2068535]storage clause explains the precedence of maxextents.
    You should not be running an unpatched version 8 Oracle.
    See also [url http://download.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/general.htm#10896]Displaying Segments that Cannot Allocate Additional Extents and [url http://download.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/tables.htm#340]Plan for Large Tables.
    Note that if you went away from dictionary managed tablespaces and upgraded, you would solve many problems. There were arguments at one time about whether separating indices from tables could improve performance, and it is interesting to note the last link I posted has one reason: if you have enough extents to have a performance problem, it might easier to find contiguous space when rebuilding indices due to re-enabling constraints.

  • 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

Maybe you are looking for

  • How do you make more albums in photo

    How do you make more albums in photo

  • How Do I Save PDFs in Safari

    Safari in Mountain Lion displays PDFs but it doesn't provide any Preview tools to zoom or save. The Help File suggests otherwise. I do have Acrobat Pro and Acrobat Reader on the Mac, but Preview is the default app to open PDFs when I double click on

  • Opinion on 2.16 Core 2 Duo with 120GB HD

    Anyone one using it? I am looking into this model now. My 1.67GHz PB is very tired and looking for a retirement/replacement Is the 120 HD slow compared to others? How much of a difference between the 2.16 and .33 in terms of speed? Lastly, is 1GB suf

  • OS2.0.1.35​8 and missing bridge contacts.

    I came across a problem that I have a solution for.  First the senerio  I have my bb phone contacts being synced to my Gmail contacts so I have my native contacts on my Playbook.  With the upgrade to OS 5.0.1.385 my bridged contacts app stated the fo

  • Informatica to SAP BI

    Hi all, I am totally new to informatica and have a task of extracting data to SAP BI. Please help me with the useful links and tell me where to start. Also, I would like to have basic understanding of informatica. Thanks Diksha.