Drop rollback tablespace after using UNDO

I have switched to using UNDO instead of using rollback segments. The UNDO works fine, and I have sucessfully dropped all rollback segments. Now I try to drop rollback tablespace. Can I simplely issue drop tablespace command to drop it? the reason I hesitate to simply drop it is that before I do drop, I placed the rollback tablespace offline. And there are errors during transaction since some tables somehow still checking on this tablespace. Can I simplely drop rollback tablespace, and Oracle would clean this internally, and everything would be finr?
thanks for your input.

Hi,
This is the steps to migration from rollback tablespace to undo tablespace (from 8i to 9i migration by manual upgrade) :
SQL>alter system set undo_management=auto scope=spfile;
SQL>create UNDO tablespace UNDOTBS  datafile ‘d:\database\mydb\system\undotbs01.dbf’ size 500M;
SQL>alter system set undo_tablespace= UNDOTBS  scope=spfile;
SQL>shutdown immediate
SQL>startup
SQL>select SEGMENT_NAME,TABLESPACE_NAME,STATUS from dba_rollback_segs; --Verirify creation and usage UNDO tablespace
SQL>drop tablespace rbs including contents and datafiles;
SQL>create pfile=’d:\database\mydb\system\pfile\init.ora’ from spfile;No need to drop old rollback segment.
Nicolas.

Similar Messages

  • Drop empty tablespaces after OATM in 11.5.9

    Hi All,
    In 11.5.9 we don't have the option of "Generate script to drop empty tablespaces". Could you suggest a best way to generate this in 11.5.9?
    Thanks

    Hussein,
    Could you please confirm the steps for moving the below objects from APPLSYSD after OATM
    SQL> select segment_name, segment_type from dba_segments
    where tablespace_name ='APPLSYSD'; 2
    SEGMENT_NAME
    SEGMENT_TYPE
    SYS_IL0002020632C00006$$
    LOBINDEX
    SYS_LOB0002020632C00006$$
    LOBSEGMENT
    SQL>
    SQL> select OWNER, TABLE_NAME, COLUMN_NAME, SEGMENT_NAME from dba_lobs where SEGMENT_NAME like '%SYS_LOB0002020632C00006$$%';
    OWNER TABLE_NAME
    COLUMN_NAME
    SEGMENT_NAME
    APPLSYS AQ$_WF_CONTROL_D
    RSUBS
    SYS_LOB0002020632C00006$$
    SQL>
    SQL> select OWNER, TABLE_NAME, COLUMN_NAME, SEGMENT_NAME from dba_lobs where INDEX_NAME like '%SYS_IL0002020632C00006$$%';
    OWNER TABLE_NAME
    COLUMN_NAME
    SEGMENT_NAME
    APPLSYS AQ$_WF_CONTROL_D
    RSUBS
    SYS_LOB0002020632C00006$$
    SQL>
    SQL> select OWNER, TABLESPACE_NAME from dba_tables where TABLE_NAME like '%AQ$_WF_CONTROL_D%';
    OWNER TABLESPACE_NAME
    APPLSYS
    SQL>
    alter table AQ$_WF_CONTROL_D move tablespace APPLSYSD
    lob(RSUBS) store as SYS_LOB0002020632C00006$$(tablespace APPS_TS_QUEUES);
    Thanks

  • Can't drag and drop from iTunes after using Ion USB/ EZ Converter

    I am new to transferring old vinyl to mp3, and want to make a CD.
    I have the tracks in iTunes now- they play perfectly well, but I cannot drag them onto my desktop (to then transfer to Toast).
    Before the tracks were reading as wav, but now they are mp3, however, I did use the "Create mp3 version" feature, so have I confused my Mac, but "re-mp3ing" my tracks?
    Thanks.

    Release the mouse when you see the symbol with the line through it; you should then be given the option to authenticate in the dialog which appears. If so, choose this option and provide an administrator password when prompted. If not or if the option doesn't work, move the files to another location inside your home folder.
    (16657)

  • Dropping Rollback table space in export dump and use the undo table space

    Hi,
    I want to upgrade my DB which is on 9.2.0.1.0 to 10.2.0.1.
    I have done an export.
    In order to import the DB I have created all the table spaces identical that of my export copy. While creating the Blank database I have already created Undo table space. In the exported DB I have a table space called rollback, how can I drop this table space and use undo table space. I believe this is the recommended table space that should be used in new releases
    Thank you

    Very briefly, these are the steps you will need to perform:
    1) Create an UNDO tablespace the same size as the Rollback tablespace, e.g.:
    CREATE UNDO TABLESPACE undo
    DATAFILE ‘/ora/$ORACLE_SID/001/oradata/$ORACLE_SID/undo_01.dbf’ size 1000M;
    2) Add the initialisation parameters UNDO_MANAGEMENT=AUTO, UNDO_TABLESPACE=UNDO. Omit the UNDO_RETENTION parameter unless it is to be set to a value other then the default of 900 (seconds)
    3) Remove the initialisation parameter ROLLBACK_SEGMENTS
    4) Bounce the database to bring the new parameters into effect.
    5) Drop the Rollback tablespace including contents and datafiles
    Cheers,
    Jason

  • Rollback segments using UNDO Tablespace?

    First, I created a database for a vendor with an Undo Tablespace UNDOTBS. Then the vendor requested me to create rollback segments instead. So I created a new tablespace RBSTBS just to hold these segments. When I tried to create the rollback segment using the newly created tablespace RBSTBS, it complained that I am not allowed to use non-system tablespaces.
    So instead, I used the Undo tablespace UNDOTBS to hold the rollback segment. It worked.
    Am I really allowed to use the UNDO tablespace to hold rollback segments? Can't I use normal tablespaces for rollback segments?
    Another thing, the vendor wanted me to create rollback segments of 200MB each. Where do I set this while creating the rollback segment? Is this the INITIAL, NEXT, or OPTIMAL size?
    I know that Oracle recommends using UNDO rather than rollback segments. Is there any advantage in using traditional rollback segments?
    Thanks for any help!

    Advantage with rollback segment is you can force your transaction to use any specific rollback segment, where as with undo you don't have any control. Oracle does it for us.
    Thanks and Regards,
    Satheesh Babu.S
    Bangalore.

  • Deleted undo datafile before dropping the tablespace.

    i had accidently deleted a undo datafile which was no more needed before dropping the tablespace.
    i started up the database in mount stage by making that datafile offline.
    now while dropping the database it is giving an error.
    SQL> drop tablespace UNDOTBS1 ;
    drop tablespace UNDOTBS1
    ERROR at line 1:
    ORA-01548: active rollback segment '_SYSSMU1$' found, terminate dropping tablespace
    Do someone have a resolution. I dnt need this tablespace anymore.

    http://www.my-whiteboard.com/oracle-dba/how-to-drop-and-recreate-oracle-undo-tablespace-and-its-data-files.html may be helpful to you.

  • Where do the segments belong after the drop of tablespace...?????

    Hi ,
    After a tablespace drop solely .... what is happening with its included segments....., i mean where would they belong to.... to SYSTEM tablespace...?????
    NOTE: I use Oracle10g on Windows XP platform......
    Thanks , a lot
    Simon

    Hi ,
    The following portion of document is from an Oracle documentation :
    "To drop a tablespace, use the DROP TABLESPACE statement. The following statement drops the users tablespace, including the segments in the tablespace:
    DROP TABLESPACE users INCLUDING CONTENTS;
    If the tablespace is empty (does not contain any tables, views, or other structures), you do not need to specify the INCLUDING CONTENTS clause. Use the CASCADE CONSTRAINTS clause to drop all referential integrity constraints from tables outside the tablespace that refer to primary and unique keys of tables inside the tablespace.
    To delete the datafiles associated with a tablespace at the same time that the tablespace is dropped, use the INCLUDING CONTENTS AND DATAFILES clause. The following statement drops the users tablespace and its associated datafiles:
    DROP TABLESPACE users INCLUDING CONTENTS AND DATAFILES;
    "So , from the above , i understand that :
    1) if i specify DROP TABLESPACE USERS.... then the tablespace db object is dropped only.... not datafiles , not segments......So , my question is where these segments belong to ....afterwards????
    2) if i specify DROP TABLESPACE users INCLUDING CONTENTS ... then the tablespace db object is dropped as well as the segments included in it.....Not the datafiles....
    3) if i specify DROP TABLESPACE users INCLUDING CONTENTS AND DATAFILES... then the tablespace db object is dropped , the segments and datafiles ,as well ....
    Are the above considerations correct...?????
    Many thanks ,
    Simon
    Message was edited by:
    sgalaxy

  • Rollback tablespace to UNDO tablespace

    Hi
    I have an Oracle Database on 9.2.0.7 which has got a rollback tablespace, I want to start using undo tablespace. Whats the procedure I should follow to enable undo tablespace.
    Thank you

    Hi,
    If you are using rollback segment and want to switch to automatic undo. following are the steps.
    1. Create UNDO tablespace. (if does not exists)
    2. ALTER SYSTEM SET UNDO_MANAGEMENT=AUTO SCOPE=SPFILE;
    3. ALTER SYSTEM SET UNDO_TABLESPACE=UNDO SCOPE=SPFILE;
    4. Shutdown and start the database.
    Cheers, you are now using automatic undo management.
    Dilipkumar Patel.

  • How to exclude undo and temp from "Tablespace Space Used (%)"

    Dear All
    Is it possible to exclude undo and temp tablespace monitoring from "Tablespace Space Used (%)" matric?
    Thanks & Regards
    Quazi Abdur Rab

    If you use TEMP >=100 as Warning, this warning can still be raised.
    What version of the database is it? If Oracle 10g, Grid Control (the agent) searches the alert table in the database for alerts, so the database raises the alert and the agent just passes this alert to Grid Control.
    If you are using Oracle 10g, you can use the following statement (connected as sys):
    DBMS_SERVER_ALERT.SET_THRESHOLD(
    metrics_id => DBMS_SERVER_ALERT.TABLESPACE_PCT_FULL,
    warning_operator => DBMS_SERVER_ALERT.OPERATOR_GT,
    warning_value => '90',
    critical_operator => DBMS_SERVER_ALERT.OPERATOR_GT,
    critical_value => '100',
    observation_period => 1,
    consecutive_occurrences => 1,
    instance_name => NULL,
    object_type => DBMS_SERVER_ALERT.OBJECT_TYPE_TABLESPACE,
    object_name => 'TEMP');
    This will create the GT (Greater Than) instead of GE (Greater Equal).
    Kind regards,
    Dave
    ps. I'm using GC 10.2.0.3.0, so thanks for the note that 10.2.0.4 doesn't take 100+ values.

  • I have two macs, i was able to install mavericks on my 17", i can't do it with my 13" MacAir, I get a drop down box after i login, I could use some help. George

    I have two macs, i was able to install mavericks on my 17", i can't do it with my 13" MacAir, I get a drop down box after i login, I could use some help. The drop down box says, unknown error, George

    Welcome to the Apple Support Communities
    Pages for the iPad and Pages for a Mac are completely different, so you have to purchase them twice, one for the iPad and another one for the Mac. The only advantage is that, if you buy another iPhone, iPod touch or iPad, you will be able to install Pages for free on all of them.
    As you are running Mac OS X 10.6.8 on the MacBook, you can't purchase Pages from the App Store, so you have to buy iWork '09 on a DVD on Amazon or eBay in order to install it

  • Drop Temporary Tablespace!

    Hi All,
    I have tried dropping my old temporary tablespace TEMP after making new TEMP2 as default.
    All the users (checked in dba_users) are using TEMP2 as default temporary tablespace.
    Now, issue is when I am trying to take TEMP offline and dropping it some of the users are not able to open the forms.
    Please suggest, is it necessary that I must do this activity after taking a proper downtime or I can do it in business hours.
    Thanks,
    Anchorage

    It's done now!!!
    Actually issue was
    You cannot drop a tablespace if it contains any rollback segments holding active transactions.*
    Try to check whether any one using the temp segments or not on query "v$sort_usage"*
    If it returns the rows, the sessions are using the temp tablespace. Once the Sessions Closes then the the command execution will be completed, else you and go head and kill the session with respect to session Id.*
    Which was been explained to me by Pavan in General Database Forum!
    I have killed the active session and it was success!
    Anchorage

  • Drop huge Tablespace

    Hi Everybody,
    Here there are some steps that leaded me into a dead end, where I would like and greatly appreciate some help.
    1. We have a tablespace FONC, dictionary managed, 136Gb spliced in 11 datafiles
    FONC1 to FONC11.
    2. There it is a huge table in this tblsp, T1, 70GB, having BLOBs.
    3. Some other tables are in it also.
    My plan is to move all objects in this tblsp in a 2 new tblsp, one for the
    BLOBS, one for the rest. And to drop this tablespace at the end.
    I do not have enough disk space in order to have both tablespaces present in the
    same time.
    What I did.
    0. ArchiveLog off.
    1. Export the T1 table, the huge one (splitting the export in 24 files, placed
    in all free spaces I found).
    2. alter table move tablespace for the other tables.
    3. start the Drop table T1.
    4. after 6 hours, I stopped the drop, being short in time.
    5. start drop tablespace FONC.
    6. after another 5 hours, I cancelled this drop also.
    7. tblsp FONC contains nothing else but a 67GB temporary segment.
    8. took the tblsp FONC offline.
    9. shutdown db abort.
    10. delete datafiles FONC1 to FONC11.
    11. startup db - no errors except a message in SMON Log - timeout waiting for a
    tablespace management resource.
    12. Create new tablespace.
    13. Import table T1.
    14. Archivelog ON - error ORA-265 - instance needs recovery.
    15. Shutdown Abort.
    16. Startup Open.
    17. Shutdown Immediate.
    18. startup mount.
    19. ALter database datafile fonc1...11 offline drop.
    20. Recover database - everything ok.
    21. Alter ... ARCHIVELOG - same error.
    22. Other trials - same results ...
    No indications in any oracle log that SMON did an instance recovery, or other
    error message.
    Finally, the DB is operational, but ARCHIVELOG is OFF.
    My problem is how to get rid of the FONC tablespace without loosing another xxxx
    hours. A normal DROP tablsp including contents did not finished after 24 hours.
    I need a way just to invalidate the temporary segment in the FONC tblsp, to get
    rid of it, to be able to get rid of the tblsp FONC also. I guess that the
    missing datafiles impede the instance recovery. An solution to be done when the
    DB is online and in use is of course the most desirable one ...
    using DBMS_SPACE_ADMIN can be more helpfull ?
    Manually edit the controlfiles ?
    Using RMAN ?
    Thanks in advance, I appreciate what you are doing,
    Dan

    No I did not tried with Nologging.
    On the other hand, what I see that takes long are the updates on the tables fet$ and uet$. More than that, a system session is issuing all the time blocking locks on this tables, that makes the drop to take so much time. Releasing 67GB in extents is quite challenging ...
    So I need a way to lead only to delete on the fet$ and uet$ tables, and, a way to avoid the blocking locks. I thought that using DBMS_SPACE_ADMIN and invalidating the temporary segment first can be a solution.
    The real problem here is that I can not do try-and-see, I can not stop the exploitation of the DB so I was hoping that somebody went through the same experience and has a working solution.
    Thanks,
    Dan

  • Drop temporal tablespace

    Hi all,
    I'm working with an 11.2.0.1 RAC. I need resize the temp tablespace. In order to do it, I've created a new temp tablespace with the correct size and I've configure it as default tablespace for database. After it, I try to drop the old temp tablespace but when I launch the drop sentence, it never finish.
    I've take a look and I can see some inactive sessions are using the old temp tablespace.
    How can I drop it? Any ideas?
    Best Regards,
    dbajug

    >
    I'm not getting errors if I try to drop the tablespace. I execute this estatement:
    ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP1;
    DROP TABLESPACE TEMP INCLUDING CONTENTS AND DATAFILES;
    But it never ends. No error appears. After 20 minutes, I cancel the execution with a Ctrl+C.
    >
    Because there are sessions which still use space in old temporary tablespace .I don't think this sessions which already used old space in old temporary tablespace) can automaticly change from old t new .hence you have to choose one of the above ways
    Edited by: Radrigez on 04.07.2011 5:56

  • My i Phone drops WiFi connection after just a few minutes and wont reconnect unless I reset the network settings and reboot the  phone?

    My i Phone 4s has suddenly started to drop wifi connection after nealy months of near perfect connections?
    To restore a wifi connection I have to reset the network settings and restart the phone, this only fixes the issues for around 2-3 mins?
    Other quick fixes like switching wifi on and off/ switching to airoplane mode for a few secconds have no impact.
    This is really annoying as I am using my data allowence very quickly, and as the phone is continually searching for a wifi connection the battery time has reduced dramatically.
    I just wondered if any one else has the same issue, and any suggestions as to how I can fix this.
    Thanks in Advance

    Reboot.
    Restore (from backup)
    Restore (as new)
    Test after each step. If one of them doesn't fix the problem, make an appointment at the genius bar.

  • Why I got error ORA-02429 when I tried to drop a tablespace?

    I use the following command to drop the tablespace:
    drop tablespace users including contents and datafiles;The error message is below:
    Error report:
    SQL Error: ORA-00604: error occurred at recursive SQL level 1
    ORA-02429: cannot drop index used for enforcement of unique/primary key
    00604. 00000 -  "error occurred at recursive SQL level %s"
    *Cause:    An error occurred while processing a recursive SQL statement
               (a statement applying to internal dictionary tables).
    *Action:   If the situation described in the next error on the stack
               can be corrected, do so; otherwise contact Oracle Support.However, I have removed all the tables and indexes in this tablespace.
    Nothing found when I issued the following enquiries.
    select index_name from user_indexes where TABLESPACE_NAME = 'USERS';
    select table_name from user_tables where TABLESPACE_NAME = 'USERS';Is there anything I missed?
    Thanks in advance.

    999274 wrote:
    Could you please let me know how to purge recyclebin ?It's bad form to hijack someone else's thread for your own questions.
    As for your question
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to [url tahiti.oracle.com]tahiti.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

Maybe you are looking for

  • Session Timeouts - User modifiable

    I'm looking for a way for a user to be able to increase their session & idle timeouts after logging in. I want the user to have to make the choice to increase them, every time they login. On checking the API we have getMaxSessionTime() and getMaxIdle

  • Handling hierarchy in oracle sql query

    I have two tables: The first contains COMPANY_ID and CATEGORY_ID The second contains CATEGORY_ID and PARENT_CATEGORY_ID I need to return a list containing COMPANY_ID and CATEGORY_ID. The entries, however, must come not only from the first table, but

  • After I changed my apple ID for icloud, all my data gone !!! Help...

    Me n my bf are both iphone user, he is using Iphone 4 and I'm just gotten my Iphone 5. My bf has been using my email account as his icloud log in ID. I am also using my same personal email account when I first register for the icloud account on my ip

  • Pop3 email account stuck 'preparing to retrieve messages'

    Hi, I've seen others with this issue, but so far none of the suggestions has worked for me. I have three accounts in Mail, two gmail ones, and one pop account. The latter hasn't been able to retrieve messages since the 6th of March. I've moved the me

  • RFC SDK

    Hi I am completely new to SAP. We are investigating the possibility of coupling of our middleware solution (which is a C application) to SAP systems. As I understand it the RFC SDK is the appropriate tool for this. I have, however, two questions: 1.