Benefits of Reorg to reclaim space in Oracle

Hi All,
I have archived and deleted records from few big tables from my database, now how want to reclaim space by doing reorg.
Can anyone please guide me how to find out If I can reclaim some space by doing reorg.
What are the queries which can help me find out space used before and after reorg.
Thanks & Regards,
Deepak

You cannot do much with a long raw short of export/import it - so you would export it, drop the old table, create a new one in the new tablespace and import with ignore=y. Other objects can be online redefined into this tablespace - or indexes if they are in there can be rebuilt online into this new tablespace, but moving the long raw is going to be offline.  
Source:Ask Tom "Reclaim space"
Shrink, Move, CTAS (Reclaiming space) do not works for LONG datatype. For LONG dataype export/import is the best and feasible solution.
Regards
Girish Sharma

Similar Messages

  • Reclaim space at OS level.

    Dear all
    I have performed following activities to reclaim space at database level on development system but I am quite suspicious about to reclaim at OS level.
    1) Choose baldat table for REORG candidate
    2) Size of table before deleting record was 11GB
    3) Delete record from it using slg2
    4) Offline REORG done
    5) Table size is now around 2.5GB
    6) Since database is DB9.7 and tablespace is in DMS type, I need to issue two command as following to reclaim space at DB and OS level.
         alter tablespace TCD#BTABD lower high water mark
         ALTER TABLESPACE TCD#BTABD REDUCE (ALL CONTAINERS G/K/M)
    7) I have issued only first command to lower HWM which freed up space at Database level.
         Checked from DBACOKPIT to see tablespace status as following
         Tablespace Name     KB Total     Percent Used     KB Free     Page Size (KB)     High-Water Mark (KB)    
         TCD#BTABD            16121856        33.25           10762016       16                         5359712
    Now my query is I want to reduce it down by 9GB at OS level so which figure I have to put (??) on the following. Is there any harm to execute this command on the fly which causes database issue???
          ALTER TABLESPACE TCD#BTABD REDUCE (ALL CONTAINERS ??? G/K/M)
    Thanks
    Mehul

    Hi,
    I have a following output from abovemention query
    TBSP_NAME                      TBSP_TYPE  RECLAIMABLE_SPACE_ENABLED
    SYSCATSPACE                    DMS                                1
    SAPTOOLS                       DMS                                1
    SAPEVENTMON                    DMS                                1
    PSAPTEMP16                     SMS                                0
    SYSTOOLSTMPSPACE               SMS                                0
    SYSTOOLSPACE                   DMS                                1
    TCD#STABD                      DMS                                1
    TCD#STABI                      DMS                                1
    TCD#BTABD                      DMS                                1
    TCD#BTABI                      DMS                                1
    TCD#CLUD                       DMS                                1
    TCD#CLUI                       DMS                                1
    TCD#POOLD                      DMS                                1
    TCD#POOLI                      DMS                                1
    TCD#DDICD                      DMS                                1
    TCD#DDICI                      DMS                                1
    TCD#DOCUD                      DMS                                1
    TCD#DOCUI                      DMS                                1
    TCD#EL702D                     DMS                                1
    TCD#EL702I                     DMS                                1
    TCD#LOADD                      DMS                                1
    TCD#LOADI                      DMS                                1
    TCD#PROTD                      DMS                                1
    TCD#PROTI                      DMS                                1
    TCD#ES702D                     DMS                                1
    TCD#ES702I                     DMS                                1
    TCD#SOURCED                    DMS                                1
    TCD#SOURCEI                    DMS                                1
    TCD#USER1D                     DMS                                1
    TCD#USER1I                     DMS                                1
    TCD#DIMD                       DMS                                1
    TCD#DIMI                       DMS                                1
    TCD#FACTD                      DMS                                1
    TCD#FACTI                      DMS                                1
    TCD#ODSD                       DMS                                1
    TCD#ODSI                       DMS                                1
      36 record(s) selected.
    Thanks
    Mehul

  • How to verify reused table space in oracle 10g ?

    Hi..
    From my system, i have seen that the table size keep increasing event the delete query is running. Due to that, I would to check either the oracle allowed to reuse the table space or not ? if not then how could i enable it ?
    Please help me..
    Thank you,
    Baharin

    You can use dbms_space.space_usage to check the for free space.
    Space reuse will depend on whether you are using MSSM or ASSM, PCT_FREE, PCT_USED, and how new data is inserted ?
    You can shrink or move the table and rebuild indexes to reclaim space.

  • Can't reclaim space in tablespace after deleting records

    Oracle 11gR1 RHEL5 64bit
    Hi.
    I am having trouble reclaiming space from a tablespace after having deleted all (thousands) of the records from a table (which resides in that tablespace). I have tried the following options to no avail:
    - Alter table <table_name> shrink
    - purge tablespace
    - purge recyclebin
    This table has several LOB columns and is using securefiles. I don't know if that has something to do with it or not. The tablespace is locally Managed and Segment space management is set to AUTO. Below is the create table command:
    CREATE TABLE IIQ.DICOM_OBJECT
    DICOM_OBJECT_RID NUMBER CONSTRAINT NN_DICOM_OBJECT_DICOM_OBJ_RID NOT NULL,
    SUBMISSION_RID NUMBER,
    SUBMISSION_ITEM_RID NUMBER,
    DICOM ORDSYS.ORDDICOM,
    IMAGETHUMB ORDSYS.ORDIMAGE,
    ANONDICOM ORDSYS.ORDDICOM,
    ACTIVE_FLAG VARCHAR2(1 CHAR) DEFAULT 'Y' CONSTRAINT NN_DICOM_OBJECT_ACTIVE_FLAG NOT NULL,
    CREATED_TIMESTAMP TIMESTAMP(6) WITH LOCAL TIME ZONE DEFAULT SYSTIMESTAMP CONSTRAINT NN_DICOM_OBJECT_TIMESTAMP NOT NULL,
    SOURCE_DESCRIPTION VARCHAR2(100 CHAR) CONSTRAINT NN_DICOM_OBJECT_SOURCE NOT NULL,
    OP_CONFORMANCE_FLAG VARCHAR2(1 CHAR)
    COLUMN IMAGETHUMB NOT SUBSTITUTABLE AT ALL LEVELS
    TABLESPACE IIQDCMDAT01
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 80K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    LOB ("DICOM"."EXTENSION") STORE AS SECUREFILE
    ( TABLESPACE IIQDCMLOB01
    DISABLE STORAGE IN ROW
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX (
    TABLESPACE IIQDCMLOB01
    STORAGE (
    INITIAL 80K
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    STORAGE (
    INITIAL 208K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOB (SYS_NC00050$) STORE AS
    ( TABLESPACE IIQDCMDAT01
    ENABLE STORAGE IN ROW
    CHUNK 16384
    PCTVERSION 10
    NOCACHE
    INDEX (
    TABLESPACE IIQDCMDAT01
    STORAGE (
    INITIAL 80K
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    STORAGE (
    INITIAL 80K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOB ("DICOM"."SOURCE"."LOCALDATA") STORE AS SECUREFILE
    ( TABLESPACE IIQDCMLOB01
    DISABLE STORAGE IN ROW
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX (
    TABLESPACE IIQDCMLOB01
    STORAGE (
    INITIAL 80K
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    STORAGE (
    INITIAL 208K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOB ("ANONDICOM"."SOURCE"."LOCALDATA") STORE AS SECUREFILE
    ( TABLESPACE IIQDCMLOB01
    DISABLE STORAGE IN ROW
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX (
    TABLESPACE IIQDCMLOB01
    STORAGE (
    INITIAL 80K
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    STORAGE (
    INITIAL 208K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    XMLTYPE SYS_NC00017$ STORE AS CLOB
    ( TABLESPACE IIQDCMLOB01
    DISABLE STORAGE IN ROW
    CHUNK 16384
    RETENTION
    CACHE READS
    INDEX (
    TABLESPACE IIQDCMLOB01
    STORAGE (
    INITIAL 80K
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    STORAGE (
    INITIAL 208K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOB ("IMAGETHUMB"."SOURCE"."LOCALDATA") STORE AS SECUREFILE
    ( TABLESPACE IIQDCMLOB01
    DISABLE STORAGE IN ROW
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX (
    TABLESPACE IIQDCMLOB01
    STORAGE (
    INITIAL 80K
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    STORAGE (
    INITIAL 208K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOB ("ANONDICOM"."EXTENSION") STORE AS SECUREFILE
    ( TABLESPACE IIQDCMLOB01
    DISABLE STORAGE IN ROW
    CHUNK 16384
    RETENTION
    NOCACHE
    INDEX (
    TABLESPACE IIQDCMLOB01
    STORAGE (
    INITIAL 80K
    NEXT 1
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    STORAGE (
    INITIAL 208K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOCACHE
    NOPARALLEL
    MONITORING
    ENABLE ROW MOVEMENT;
    Thank you all.

    Justin Cave wrote:
    OK, so you did a SHRINK SPACE CASCADE? Not just a SHRINK SPACE?That is correct.
    What makes you believe that there is more space that can be reclaimed? Well, what I don't understand is that when a table (and only that table) was assigned to a specific tablespace whose data was completely removed is showing as if the data is still there...at least when you look at the tablespace. If all the rows of a table are removed, then shouldn't the tablespace size go down? There was 95 GB of data in that tablespace and all from that one table, which was completely emptied. However, it still shows the tablespace as being 95GB full.
    Can you post the size of the table segment and the LOB segments as well as the size of the actual data in the table and the LOBs?Can you tell me which views you would like to the see the data from ? dba_lobs, dba_segments, etc... I want to make sure i have the right query for you.
    Here is some info...not sure if this is what you want (formatiing is off):
    select owner, segment_name, segment_type, tablespace_name, bytes
    from dba_segments
    where owner = 'IIQ'
    and tablespace_name = 'IIQDCMLOB01'
    and segment_type = 'LOBSEGMENT';
    OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME BYTES
    IIQ SYS_LOB0000651630C00012$$ LOBSEGMENT IIQDCMLOB01 9.8416E+10
    IIQ SYS_LOB0000651630C00018$$ LOBSEGMENT IIQDCMLOB01 755236864
    IIQ SYS_LOB0000651630C00021$$ LOBSEGMENT IIQDCMLOB01 755236864
    IIQ SYS_LOB0000651630C00023$$ LOBSEGMENT IIQDCMLOB01 262144
    IIQ SYS_LOB0000651630C00044$$ LOBSEGMENT IIQDCMLOB01 262144
    IIQ SYS_LOB0000651630C00053$$ LOBSEGMENT IIQDCMLOB01 262144
    OWNER TABLE_NAME
    COLUMN_NAME
    ----------------------------------- SEGMENT_NAME TABLESPACE_NAME INDEX_NAME CHUNK PCTVERSION RETENTION FREEPOOLS CACHE LOGGING ENCR COMPRE DEDUPLICATION IN_ FORMAT PAR SEC
    IIQ DICOM_OBJECT
    "DICOM"."SOURCE"."LOCALDATA"
    SYS_LOB0000651630C00012$$ IIQDCMLOB01 SYS_IL0000651630C00012$$ 16384 10800 NO YES NO NO NO NO NOT APPLICABLE NO YES
    IIQ DICOM_OBJECT
    SYS_NC00018$
    SYS_LOB0000651630C00018$$ IIQDCMLOB01 SYS_IL0000651630C00018$$ 16384 10800 CACHEREADS YES NO NO NO NO ENDIAN NEUTRAL NO YES
    IIQ DICOM_OBJECT
    "DICOM"."EXTENSION"
    SYS_LOB0000651630C00021$$ IIQDCMLOB01 SYS_IL0000651630C00021$$ 16384 10800 NO YES NO NO NO NO NOT APPLICABLE NO YES
    IIQ DICOM_OBJECT
    "IMAGETHUMB"."SOURCE"."LOCALDATA"
    SYS_LOB0000651630C00023$$ IIQDCMLOB01 SYS_IL0000651630C00023$$ 16384 10800 NO YES NO NO NO NO NOT APPLICABLE NO YES
    IIQ DICOM_OBJECT
    "ANONDICOM"."SOURCE"."LOCALDATA"
    SYS_LOB0000651630C00044$$ IIQDCMLOB01 SYS_IL0000651630C00044$$ 16384 10800 NO YES NO NO NO NO NOT APPLICABLE NO YES
    IIQ DICOM_OBJECT
    "ANONDICOM"."EXTENSION"
    SYS_LOB0000651630C00053$$ IIQDCMLOB01 SYS_IL0000651630C00053$$ 16384 10800 NO YES NO NO NO NO NOT APPLICABLE NO YES
    Thanks.

  • Re-organizing table to reclaim space

    Hi All,
    Recently we have purged data from some tables in the database.
    Is it necessary to reorganize the table to reclaim space after we remove the data from the tables? How can we find out that the table can be reorganized?
    Database version:11.2.0.2
    OS version:AIX

    how did you purge the data?
    have you used delete or truncate.
    please check space under dba_segments for particular object which was purged.
    from 10g onwards we have segment advisor.
    The segment advisor performs analysis on the fragmentation of specified tablespaces, segments or objects and makes recommendations on how space can be reclaimed. The advisor is accessible from Enterprise Manager (Home > Advisor Central > Segment Advisor) or from PL/SQL by using the DBMS_ADVISOR package.
    https://forums.oracle.com/forums/ann.jspa?annID=718
    Please close the thread after marking it helpful or correct if you get the answer.
    Thanks
    Kuljeet Pal Singh

  • Shrink / reclaim space

    what is the best proceedure to reclaim or shrink a 109GB of reclaimable space? w/o using alot of disk space.
    tyia

    1. ALTER TABLE tablename SHRINK SPACE COMPACT;
    -> DML operations and queries can be issued during compaction.
    2. ALTER TABLE tablename SHRINK SPACE;
    -> DML operations are blocked when the HWM is adjusted.
    When you specify the SHRINK SPACE COMPACT clause, the progress of the shrink operation is saved in the bitmap blocks of the corresponding segment. This means that the next time a shrink operation is executed on the same segment, the Oracle database server remembers what has been done already. You can then reissue the SHRINK SPACE clause without the COMPACT clause during off-peak hours to complete the second phase.

  • Clear FND_LOBS to reclaim space in applsysd

    we have on LOB in applsysd tablespace which is taking 20% space in tablespace. I do not need this, please advise how to move to reclaim space on it.
    I have LOB segment details and we can findout LOB files location in FND_LOBS, but wondering how to match both of these.

    Review the following notes:
    Note: 303709.1 - Reclaiming unused space in APPLSYSD tablespace
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=303709.1
    Note: 298698.1 - Avoiding abnormal growth of FND_LOBS table in Applications 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=298698.1
    Note: 555463.1 - How to Purge Generic or Purchasing Attachments from the FND_LOBS Table
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=555463.1

  • Need to reclaim space from dwh tables.

    We have couple of large tables (> 200G) in one of the DWH schema. I need to reclaim space on the mountpoint.
    I have used ALTER TABLE <> MOVE COMPRESS; command to compress these tables.
    Now in dba_segments it is showing the improvement. 200g table came down to 60G. However I am not able to see any change in datafile and in mountpoint, I beleive due to the HWM.
    I tried shrink for the tables, it did not help.
    Could you please suggest any other approach.

    refer to
    http://jonathanlewis.wordpress.com/2010/01/30/free-space/
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/
    Anand

  • Trimming double byte space in Oracle

    Dear All,
    DB Version: Oracle 10g
    Client : Oracle SQL Developer
    How can we TRIM double byte space in Oracle without first converting it into single byte and then using TRIM function.
    Sample data is :
    トヨタカロ-ラナンカイ (カ 
    I want to TRIM trailing double byte space.
    Regards,
    Vikas Kumar

    untested, because of missing examples
    TRIM(TRAILING doubleByteCharacter FROM sampleData)ok there is an example now, so this will work
    select trim(trailing ' ' from '有限会社 ヴオーグ      ') from dual;
    "     P>
    {code}
    Edited by: Sven W. on Aug 27, 2010 5:30 PM
    Edited by: Sven W. on Aug 27, 2010 5:31 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How SMON coalesces free space in oracle 9i and 10g

    how SMON coalesces free space in oracle 9i and 10g?
    Is it doing same as it was behaving in oracle 7 like looking through free extent table every five minutes (sys.fet$) to see if there are any adjacent free extents that can be coalesced into a single extent, and on every 25th cycle (i.e. every two hours and five minutes) it looks at the segment table (sys.seg$) to see if there are any temporary segments that need to be eliminated, as explained by jonathan lewis?
    what are extent and segment tables available in oracle 9i and 10g like sys.fet$ and sys.seg$ in oracle7?

    >
    how SMON coalesces free space in oracle 9i and 10g?
    Is it doing same as it was behaving in oracle 7 like looking through free extent table every five minutes (sys.fet$) to see if there are any
    adjacent free extents that can be coalesced into a single extent, and on every 25th cycle (i.e. every two hours and five minutes) it looks
    at the segment table (sys.seg$) to see if there are any temporary segments that need to be eliminated, as explained by jonathan lewis?
    what are extent and segment tables available in oracle 9i and 10g like sys.fet$ and sys.seg$ in oracle7?I think you need to go and have a look at the Oracle 9i documentation here
    http://www.oracle.com/technology/documentation/oracle9i_arch_901.html
    and automatic segment management in 10g
    http://www.oracle.com/technology/pub/articles/10gdba/week15_10gdba.html
    HTH.
    Paul...
    Software - OS (+ version), Server,
    Hardware - CPU + Disk configuration.
    Please include all of the above information with database queries.
    This will help those who are trying to help you!
    Furthermore, please do not top-post and do try to trim your replies!

  • How to subscribe to a group space in Oracle Web Center application

    Hi All,
    I am a newbie to Oracle Web Center and playing in and around with the Oracle WebCenter Spaces..
    At the time of creation of Group Space in Oracle WebCenter Application, there are two options :
    1. Adding the members by the owner of the group space
    2. Opening the open group space which allows others users can join by searching the specified GroupSpace and joining into that group space.
    If i try to do like this, I was getting this error :
    WCS#2010.07.21.15.05.39: Unable to send subscription notification to moderator(s). The reason is : Can not retrieve group space workflow configuration. Please contact administrator.
    Can anyone please help me to solve this out..
    Thanks in advance
    Regards,
    Sandeep
    Edited by: user10681665 on 22-Jul-2010 02:13

    Sandeep,
    To get this notifications to work, you need to setup BPEL and connect WebCenter to your BPEL server.
    Regards,
    Rob

  • Reclaim space from DBFs

    Hi All,
    I have one query regarding tablespace reclaim space. I have users tablespace which is having 5 dbfs. Some of the DBFs of USERS tablespace having autoextend on with max size 32G and some of the DBFs not having autoextend on and maxsize 4G.
    Now when I checked the USERS TBS through EM , I come to know only few MBs out of 20G are in used in 3 DBFs of USERS tablespace and rest of 2 dbfs are in good in use. Now I want to reclaim the space from 3 dbfs say users03,users04 and users05. users01 and users02 are properly in used. I want to reclaim the space from 03,04 and 05.
    can I have any idea how to reclaim space from dbfs? I try with alter database datafile ...resize but giving error "ORA-03297: file contains used data beyond requested RESIZE value".
    please suggest me,
    Thanks...

    Yes, I think you are understanding how it works. For a visual example, if this is your data file:
    XXXX--XX-XXXX-XXXX-XXXX-XXXXXXX-----------------
    and you delete some data
    XX----X--------X------------------X-----------------
    The datafile can be resized only down to
    XX----X--------X------------------X
    Which tools are available to do this efficiently vary by database version, for example in my 9.2.0.6 database I can use exp/imp, CREATE TABLE AS SELECT, rebuild indexes (mostly) online, exp/imp, move LOBs around with ALTER TABLE ... MOVE LOB, or other strategies - some of these are more work than others, and all will take some amount of time. In 8i There are fewer options; beginning with 10g data pump and DBMS_REDEFINITION are available; in 11g the index rebuilds don't lock the data, so the time may be less of a concern.
    Before you even spend the time to shrink these data files, consider the space needs for USERS. If the extended size was a one-time thing, then shrinking datafiles may be justified. If USERS may grow that large again then a data file shrink is a lot of work for little gain.

  • UNDO table space in oracle

    Hi,
    Recently i have added one data file(2GB) to undo table space.Later i gog to know it is not recommend to extent the undo table space.In oracle 9i undo management is handle automatically.(in my init<SID>.ora file undo_management='AUTO')
    I have 3 data file undo_1,undo_2,undo_3.
    undo_2 is the datafile of 2Gb that i have added.
    My question is ....is there any possibility to remove that data file from the DB(undo_2) if possible how can i dod that.
    Pls help me.
    roshantha

    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 900
    undo_tablespace string UNDOTBS1
    SQL>
    SQL>
    ##FIRST : CREATE AN ANOTHER TEMPORARY UNDO TABLESPACE FOR YOUR DATABASE USERS.
    SQL> create undo tablespace UNDOTBS_TEMP datafile 'c:\undotbs_temp1.dbf' size 2G;
    Tablespace created.
    SQL> show parameter undo
    SQL> alter system set undo_tablespace=UNDOTBS_TEMP;
    System altered.
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 900
    undo_tablespace string UNDOTBS_TEMP
    ##NOW DROP YOUR UNWANTED TABLESPACE INCLUDING DATAFILES
    SQL> drop tablespace undotbs1;
    Tablespace dropped.
    SQL> drop tablespace undotbs2 including contents and datafiles;
    Tablespace dropped.
    ##NOW RECREATE THE UNDOTBS and RUSE THE FILE YOU WANTED TO
    SQL> create undo tablespace UNDOTBS1 datafile 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\UNDOTBS01.DBF' reuse;
    Tablespace created.
    SQL> alter system set undo_tablespace=UNDOTBS1;
    System altered.
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 900
    undo_tablespace string UNDOTBS1
    SQL>
    hope it helps :-)
    Thanks,
    Z

  • Benefits vs Disadvantages of using DNS for Oracle RAC (12c or 11g)

    For nearly all of my Oracle RAC Builds, I've used /etc/hosts and not DNS.  As such I've not been able to take full advantage of GNS and SCANS.
    Please note some of your experiences associated with the benefits of using DNS configuration for your Oracle 12c RAC Builds.   I'm building my 12c RAC now and I'm starting to configure DNS so that I can provide my customers with better value/add of High Availability.   I've used /etc/hosts in the past and one of my arguments in using /etc/hosts can be more secure because you only put in the /etc/hosts what you want the node to know.   I also beleave that using /etc/hosts is a lot more simple and perhaps that could be a potential vulnerability.   I've decided to start using DNS and to learn how to make it secure.
    Your experiences are appreciated.  Thanks in Advance!

    I see no disadvantages using DNS.
    What happens with your clients if your DNS goes down? It stop working?
    What is the cost to manage the host files from all host desktop and servers?
    I see no reason to not use DNS.
    > For nearly all of my Oracle RAC Builds, I've used /etc/hosts and not DNS.  As such I've not been able to take full advantage of GNS and SCANS.
    Wrong... Full advantage of Clusterware, because is not supported use GNS or SCAN without a DNS.

  • Space management oracle

    Hi all,
    Greetings of the day..
    I have few doubts about the space management in ASSM tablespace.
    1.Does ALTER TABLE SHRINK COMPACT needs ALTER TABLE ENABLE ROW MOVEMENT to be fired prior
    2. I have table having fragmentation and materialized views on top of it updating with ROWID' s , how can i defragment the table without dropping the MVS
    Thanks,
    Uday

    I'm not sure what you're showing here. Is this showing why you believe the table is fragmented? It shows that the table has some reclaimable space. That's not normally what people are concerned about when they talk about "fragmentation".
    Note that if you use the \ tag (6 characters, all lower case) before and after cutting and pasting fixed format data (such as the output of SQL statements), you'll preserve the white space and make your posts much easier to read.
    Justin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for