Taking a table space offline

On oracle 10g .How do i take a table space offline for NORMAL, TEMPORARY and IMMEDIATE. what is the syntax.
Edited by: Mutiat on Jun 18, 2009 2:13 AM

See the documentation :
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3002.htm#i2154551
and
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3002.htm#i2154547

Similar Messages

  • ORacle  table taking too much space

    Hi
    I am using Oracle 9i
    I created one table using script .Table is blank but It takes around 1 Gb space .
    When I create another table using that table
    as create table t_name as select * from original_table ;
    Space is taken by that table is vely low in MB (.6 MB)
    Only Index is not created
    why my table is taking to much space ?
    How to resolve it ?
    what parameter to check ?

    Hi Pavan,
    I am trying to take backup of oracle DB using RMAN script with OSB (Oracle Secure backup). I am facing the following issue given below. I had created a storage selector and my devices are configured in OSB.. Given below the error message
    My Rman script is :
    RMAN> run {
    2> allocate channel oem_sbt_backup type 'sbt_tape' format '%U';
    3> backup as BACKUPSET current controlfile tag '11202008104814';
    4> restore controlfile validate from tag '11202008104814';
    5> release channel oem_sbt_backup;
    6> }
    error message is given below
    allocated channel: oem_sbt_backup
    channel oem_sbt_backup: sid=143 devtype=SBT_TAPE
    channel oem_sbt_backup: Oracle Secure Backup
    Starting backup at 20-NOV-08
    channel oem_sbt_backup: starting full datafile backupset
    channel oem_sbt_backup: specifying datafile(s) in backupset
    including current control file in backupset
    channel oem_sbt_backup: starting piece 1 at 20-NOV-08
    released channel: oem_sbt_backup
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on oem_sbt_backup channel at 11/20/2008 22:50:05
    ORA-19506: failed to create sequential file, name="07k075kr_1_1", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
    sbt__rpc_cat_query: Query for piece 07k075kr_1_1 failed.
    (Oracle Secure Backup error: 'no preauth config found for OS user (OB tools) oracle').
    Need help from you ..
    Thanks in Advance

  • Scattering Data Across Table Space

    Hi Guys,
    We have System Performance team who checks the performance of our product .As per them there are few tables which they are concurrently updating(For the performance check) and due to being the tables in the same table space the insert is taking long time and CPU wait spikes under high concurrent user load.
    I am wondering is it the problem of many tables in the same table space or some thing differernt.
    We are using Oracle 11g Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production.
    Please share any ideas or thoughts if any body has encountered this problem already.
    Thanks in advance.
    Regards,
    Papi

    957590 wrote:
    We have System Performance team who checks the performance of our product .As per them there are few tables which they are concurrently updating(For the performance check) and due to being the tables in the same table space the insert is taking long time and CPU wait spikes under high concurrent user load.
    I am wondering is it the problem of many tables in the same table space or some thing differernt.
    Your performance team haven't told you enough about what they're doing to give you any sensible ideas about their problem.
    If we assume that they understand nearly everything they're doing, and are looking in the right place at the right time, then there is a possibility that their problem is too much activity on a single tablespace, but the problem would be platform dependent and also be affected by the Oracle configuration.
    Assume that they are using a file system for the Oracle data files, have just one file for the critical tablespace, and have configured multiple db writers (or writer slaves) and aren't using the O/S direct I/O and async features (which typically means they've not set Oracle's parameter filesystem_io_options to "setall") then they could be seeing inode contention for the relevant file and that could result in lots of CPU spinning. (At the file system level, readers block writers, writers block readers).
    If you want to start understanding what their problem is, get them to show you an AWR report generated over a short interval, and get them to explain exactly what their test was doing in that interval.
    Regards
    Jonathan Lewis

  • Tables Space Identification

    Hi all
    We have set Oracle 10g express edition for our development server; but it has reached the maximum allotted 370MB Space... even after deleting few of my records it is not able to gain any space.. any ideas to trace this out.
    Is there a way to find which table has occupied more space inside a tablespace...?
    has expression edition has export tablespace option for me to recreate?.
    Thanks in advance.

    Thanks Ed and avi.
    All my analysis started when we started getting ORA-12514 error, as part of that analysis we found out that the table space is filling up; so we did delete some unwanted records from multiple table and ran compact storage/update statiscs jobs ... but noting really helped. but then today both the SYSAUX and SYSTEM tablespace are looking full. for that 12514 error, as per one post, i replaced the service with SID and now i'm not getting that error.
    But then this space issues is not giving a fruitful result. as i'm not a dba, it is taking little longer to analyse and seek expert advice to resolve things.
    I couldn't find a easy way to allocate more space to the tablespace.
    Here is the detial report of my storage...
    Tablespaces Percent Used Allocated (MB) Used (MB) Datafiles
    DM_CDCPCM_DOCBASE 99.56% 370.00 368.38 1
    DM_CDCPCM_INDEX 12.33% 330.00 40.69 1
    SYSAUX 99.14% 560.00 555.19 1
    SYSTEM 98.46% 370.00 364.31 1
    UNDO 28.09% 500.00 140.44 1
    USERS 1.63% 100.00 1.63 1
    report total: 2,230.00 1,470.63 6
    1 - 6
    Tablespace File Name Size MB Maximum Size (MB) Auto Extensible
    DM_CDCPCM_DOCBASE C:\ORACLEXE\ORADATA\XE\DM_CDCPCM20080110200609_DB.DBF 370 1,024 YES
    report total: 370
    Please advice, how and what i should do to increase the allocated space.

  • Best way to recover from "drop user; drop table space"

    Hello,
    I am practicing several different RMAN recovery senarios on oracle 11g windows 2003.
    The senario that I am stuck on is.
    drop user MYUSER cascade;
    drop table space MYUSER including contents and datafiles;
    Originally, I was trying to do this with RMAM. From further reading, it seems that RMAN fit for this type of recovery.
    What is the best approach to recover from this?
    thanks for any tips.

    DBPITR did not bring backup my tablespaces.
    break database
    drop user PWRPLANT CASCADE
    drop role PWRPLANT_ROLE_USER
    drop role PWRPLANT_ROLE_DEV
    drop role PWRPLANT_ROLE_ADMIN
    alter tablespace PWRPLANT_IDX offline
    alter tablespace PWRPLANT offline
    drop tablespace PWRPLANT_IDX INCLUDING CONTENTS AND DATAFILES
    drop tablespace PWRPLANT INCLUDING CONTENTS AND DATAFILES
    recover with BDITR
    RMAN> run {set until sequence 56; restore database; recover database;}
    executing command: SET until clause
    using target database control file instead of recovery catalog
    Starting restore at 28-APR-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=317 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to I:\ORACLE\ORADATA\PWRGAME\SYSTEM
    01.DBF
    channel ORA_DISK_1: restoring datafile 00002 to I:\ORACLE\ORADATA\PWRGAME\SYSAUX
    01.DBF
    channel ORA_DISK_1: restoring datafile 00003 to I:\ORACLE\ORADATA\PWRGAME\UNDOTB
    S01.DBF
    channel ORA_DISK_1: restoring datafile 00004 to I:\ORACLE\ORADATA\PWRGAME\USERS0
    1.DBF
    channel ORA_DISK_1: reading from backup piece I:\ORACLE\FLASH_RECOVERY_AREA\PWRG
    AME\BACKUPSET\2011_04_28\O1_MF_NNNDF_DATABASE_FULL_BACKUP_6VMMSSXV_.BKP
    channel ORA_DISK_1: piece handle=I:\ORACLE\FLASH_RECOVERY_AREA\PWRGAME\BACKUPSET
    \2011_04_28\O1_MF_NNNDF_DATABASE_FULL_BACKUP_6VMMSSXV_.BKP tag=DATABASE_FULL_BAC
    KUP
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:07:06
    Finished restore at 28-APR-11
    Starting recover at 28-APR-11
    using channel ORA_DISK_1
    starting media recovery
    archived log for thread 1 with sequence 55 is already on disk as file I:\ORACLE\
    PRODUCT\11.1.0\DB_1\RDBMS\ARC00055_0748950531.001
    archived log file name=I:\ORACLE\PRODUCT\11.1.0\DB_1\RDBMS\ARC00055_0748950531.0
    01 thread=1 sequence=55
    media recovery complete, elapsed time: 00:00:02
    Finished recover at 28-APR-11
    Did I miss something?

  • Unable to extend the temp segment by 2560 in table space TEMP

    Hi,
    I am running the procedure, it aggregate the data, it's taking minimum 1 hour to complete. B4 complete it throw an error:
    ORA-01652 - Unable to extend the temp segment by 2560 in table space TEMP.
    Note: Tround 5GB disk space is there.
    Please help and give me your suggestions.
    Thanks
    Sathya

    Well, I'll go out on a limb and suggest that the problem is that the procedure ran out of TEMP space. It's relatively easy to generate 5 GB of intermediate results to sort in the space of an hour. If other sessions were using TEMP space at the same time, that would obviously reduce the amount available to this procedure.
    Your two options would be to decrease the amount of sorting that the procedure needs to do or to allocate more TEMP space for it.
    Justin

  • Table space not getting cleaned after using free method (permanent delete)

    Hi ,
    We are using the free method of the LIB OBJ, to permanently delete the objects. As per documentation, the ContentGarbageCollectionAgent will be cleaning the database which runs in a scheduled mode. But the log of that ContentGargabageCollectionAsgent shows, all zero for objects without reference, objects cleared,etc. I.e the table space remains the same before and after deleteing all the contents in the cmsdk database. But the agent is running as per the schedule but just comes out doing nothing.
    Can anbody put some light on this issue.
    thanks
    Raj.

    Hi Matt,
    Thanks for replying. It's been a very long time waiting for you ;)
    ---"Are you running the 9.2.0.1, 9.2.0.2, or 9.2.0.3 version of the Database?"
    we are using 9.2.0.1
    ---"If you installed the CM SDK schema in the "users" tablespace ......."
    Yes we are using USERS tablespace for our Development.
    I ran the query. The result is:
    SYSTEM MANUAL NOT AFFECTED
    USERS MANUAL NOT AFFECTED
    CTXSYS_DATA MANUAL NOT AFFECTED
    CMSDK1_DATA MANUAL NOT AFFECTED
    (USERS belongs to develpoment cmsdk schema. And CMSDK1 for Prod CMSDK schema)
    From the results I see only "Manual", but still I don't see the tablespace size being coming down. Both table space sizes (USER and CMSDK1) always grows higher and higher.
    Also to let you know, We use ORACLE EM Console (Standalone) application to see the oracle databse information online. Will there be any thing to do with the tool we use to see the table space sizes. We make sure we always refresh it before making a note.
    So is there anything else I can see. Once I saw the ContentGarbageCollection agent to free 1025 objects and deleted 0 objects. But I don't see any change in the table space size. I am little confused b/w freed and deleted.
    thanks once again for your response Matt.
    -Raj.

  • What is difference between table space and shchema

    what is difference between table space and shchema ?

    784633 wrote:
    so each user has it own space of tables - schema ?yes, but let's clarify a bit ....
    The "schema" is the collection of all objects owned by a particular user. So if user SCOTT creates two tables, EMP and DEPT, and a view EMP_RPT, and a procedure GET_MY_EMP, those objects (tables, views, procedures) collectively make up the SCOTT schema.
    Those objects will be physically stored in a tablespace.
    A tablespace is a named collection of data files. So tablespace USERS will be made up of one or more data files. A specific datafile can belong to one and only one tablespace. If a tablespace has more than one data file, oracle will manage those files as a collection invisible to the application - much like the OS or disk subsystem handles striping across multiple physical disks.
    A specific object in the SCOTT schema can exist in only one tablespace, but not all objects of the schema have to be in the same tablespace. Likewise a tablespace can contain objects from multiple schemas.
    and can one user to access tables of other users?As others have said - FRED can access tables belonging to SCOTT as long has SCOTT has granted that access to FRED.

  • Space in bytes used by a single index in given table space

    Hi All,
    How can i find a table space used by index in bytes
    Eg:
    suppose i have a table space USERS and i have a table say customer . one index defined on table customer called CUSTOMER_UQ and mapped to table to table space USERS . How can i find the bytes used by object CUSTOMER_UQ in table space USERS.
    Thanks

    The used space in Karthik's example is the number of bytes actually used by entries in the index, not the amount of space allocated to the index itself.
    To find out how much space in disk is allocated to the index you can use (as the owner of the index) something like:
    SELECT bytes FROM user_segments
    WHERE segment_name = <index name>You could also use all_segments or dba_segments if you have access as another user, but you would also need to specify the owner name.
    John

  • BRtools table space creation error

    hi,
    Iam trying to create new table space in my R/3 system. When i went to brtools - space management sytem throwing error owner failed.I tried with all users to login like ( <SID>adm,administrator etc ...)even then same problem.Could you please suggest how to create table space with what login id
    Error:
    Main options for creation of tablespace in database WA6
    1 - Tablespace name (tablespace) ......... [PSAPECDATA]
    2 - Tablespace contents (contents) ....... [data]
    3 - Segment space management (space) ..... [auto]
    4 - SAP owner of tablespace (owner) ...... [EC5ADM]
    5 - Data type in tablespace (data) ....... [both]
    6 # Joined index/table tablespace (join) . []
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    c
    BR0280I BRSPACE time stamp: 2006-06-14 21.08.45
    BR0663I Your choice: 'c'
    BR0259I Program execution will be continued...
    BR0824E Owner EC5ADM not found in database or not SAP owner
    BR0691E Checking input value for 'owner' failed
    BR0669I Cannot continue due to previous warnings or errors - you can go back to
    repeat the last action
    BR0280I BRSPACE time stamp: 2006-06-14 21.08.45
    BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
    Please suggest.
    - Cheers

    Login as ora<sid> and run brtools. Tablespace owner will be SAP<SID> or SAPR3 depends upon your version.
    Thanks
    Prince

  • On iTunes when i plug my iphone in, the bar at the bottom with contains the information about the capacity of my iphone, it has a bar called 'other' which has 4GB. I don't know what is taking up that space or how to get rid of it. please help :)

    On iTunes when i plug my iphone in, the bar at the bottom with contains the information about the capacity of my iphone, it has a bar called 'other' which has 4GB. I don't know what is taking up that space or how to get rid of it. please help

    You can reduce the size to normal, which is about 1GB, by restoring the phone.
    Backing Up, updating, and restoring your iPhone and iPod touch software
    The size of this part can increase when something goes wrong during a sync, or some files can't be read anymore by iTunes.

  • The Ipad2 Application Data folder is taking up huge space in C: Drive. How can I shift the User Application data for iPad2 to another Drive?

    The Ipad2 Application Data folder is taking up huge space in C: Drive. How can I shift the User Application data for iPad2 to another Drive?

    Thanks a lot for the response. Yes, I am checking my C: drive data thoroughly now, including the hidden folders, to ascertain if something else can be moved, as per your suggestion.

  • Table space not reduce after delete in oracle 11G

    Hi Team,
    I have a DB 11.1.0.7 on unix.
    I have execute delete tables on tablespace, but this not reduce.
    Thanks

    935299 wrote:
    What segment space management type is defined for the tablespace in question?
    MANUAL
    Then you should check out the documentation some more.
    But even if you shrink the table segement what is that going to do for the data file size?
    I don't undertand you.
    ThanksYour thread is titled "Table space not reduce after delete in oracle 11G" which implies to me that you are interested in reducing the size of a tablespace (which really means reducing the size of the underlying datafile(s)).
    So, if you shrink the size of the sys.aud$ table, will that cause the datafile(s) to become smaller? Will it accomplish your goal? What else, if anything, needs to happen?

  • Table space not reduce after delete in oracle 10g

    Hi..
    Based on my system, i have found that my oracle table space did not reduce after the deletion query. Why ?.. Could somebody help me. As your info, I am using oracle 10g.
    Thank you,
    Baharin

    After Delete the table space will not be set free. high water mark will not be reset. to regain the space you need to recognize the objects from which you deleted the data. This can be done in many ways.
    1) Move the objects.
    Alter table temp move --> optionally tablespace clause can be used. After this you need to rebuild table indexes.
    2) With 10g table can be shrinked or reorganize to free the space.
    alter table mytable enable row movement;
    alter table mytable shrink space;
    3) Export/Import
    export the objects and drop and recreate with import.

  • How to restart after table space error

    Hi,
    While loading a big file ( 360 MB)  with the File -> XI-<ABAP prodxy from source, we got the table space error in middle of load. Due to Content conversion split for 20K we normally get many messages per load.
    In this case after basis increased the disk space, how do i restart the process so that it start from where it is left. I checked Moni and there is no Que. I checked RWB for adapter also and there is no message with error. I also checked integration and all possible places..
    The Alert that came in for failure has a message ID. I checked and found that message ID has been processed successfully. Still the count of records at the source does not match with target and lot of records are missing.
    Is there any way to re run the process from where it was left.
    Thanks

    Hi,
    Check following:
    - RWB->Message monitoring->Adapter engine (not integration server)
    -Check for follwing status:
    "Holding", "Waiting" "To be delivering" "Error" your message should be here any of above status.
    Note: in RWB message monitoring select "Adapter engine"
    Regards,
    Gourav
    reward points if it helps you

Maybe you are looking for

  • Weird Error Message - Transaction Terminated....

    Hi I am running one job at the background and it has failed twice since morning giving this error message in system job log....I cant make out anything out of this any clues??? 07:51:16 prd0ap02_P01_79      BTC  4 100 ZB_JB             F6F TemSe obje

  • Can I run VGA monitor from Mac Mini HDMI port?

    Hi: I have a Mac Mini with one HDMI port and one Thunderbolt port. I have a Thunderbolt-only audio interface, so I need to connect my monitor to the HDMI port. I bought an HDMI to VGA adapter cable for this purpose, but when I connect the monitor (Ac

  • Several purchase requsitions from one sales order

    Hi, I am using item category TAB to create a purchase requsition from a sales order, this works fine. What I really want to do is to create one purchase requsition for each condition type of a special kind from the TAB position in the sales order. An

  • Cut and delete (paste and copy)

    Hello all. I have written a simple Spreadsheet application using the JTable. I had thought i correctly implemented the cut/copy/paste and delete methods as when i selected a range of values, and click cut, the would disapear and paste when i selected

  • Authorization issues holding ebooks hostage

    Getting "the vendor account you entered is not associated with the item you are trying to open" when trying to open my ebook. I've de-authorized and re-authorized, un-installed and re-installed, and even set up a different adobe ID and still having t