Drop tablespace and recreate a new!

Hi all

Of my database (oracle 10g, aix server) has a tablespace called tools for xample. its size is nearly 16g, but current use is about 170 MB only. So I want to resize the size of tablespace to 2G

So what I've done, taken separately export tools tablespace and backup full export. so in my hand, I, tablespace backup tools (export file) and backup of the entire database (taken using new utility exp)

Now, I tried to drop the tablespace tools and got this error

SQL > DROP TABLESPACE TOOLS including CONTENTS AND DATA files;

DROP TABLESPACE TOOLS INCLUDING CONTENTS AND DATA FILES

*

ERROR on line 1:

ORA-29857: domain indexes and/or secondary objects exist in the tablespace.

so I planned too, instead of dropping the tablespace, I thought the deletion of objects in storage space and resize and import using the backup of what I have.

When I interrogate the tablespace, I had 4 object. indexes, tables, lobindex and lobsegment.

I wrote the script to delete the index and dint tables.but run again.

How delete/move, lobindex, and lobsegment, so that I can resize the tools tablespace?

someone has experienced this problem? or any other method is over come this problem?

Please provide detailed step if you did.

Kind regards

Pradeep. V

1. create a new tablespace with the expected size

2. move the original SCT to the second object

ALTER table move

change the index rebuild

ALTER table move lob () store (tablespace )

The lobindex will follow by itself.

3. be sure that the original tablespace is now empty

4. remove the original tablespace

5 rename the new tablespace as former

alter tablespace and rename

Nicolas.

Tags: Database

Similar Questions

  • Drop tablespace and flashback: ORA-01245: offline file 7 will be lost if RESETLOGS is done

    Hello

    1. create tablespace TS1
    2. create restore RP1 point;
    3 drop tablespace TS1 (datafile ' / c:/ts1.dbf ') including files
    4 restore database to RP1
    5 alter database open resetlogs failed with this error:
    ERROR on line 1:
    ORA-01245: offline file 7 will be lost if RESETLOGS is done
    ORA-01110: data file 7: ' / c:/ts1.dbf '

    Can you help me please to solve this problem and to understand why it happened.

    Hello

    If you check the log of alerts you will get message similar to

    Remove the #7 file recovery:'/db/dbs/UNNAMED00007 ' of controlfile.

    Now you have 2 possible

    1. If you have backup of the tablespace TS1, then you can restore and recover

    If you do not need this tablespace then you drop that datafile offline 7. Open the database in resetlogs mode and drop the tablespace TS1

    Thank you

  • Transfer of account and recreate a new account for the Touchpad even WebOS

    I recently got a 16 GB Touchpad at the great firesale and have a quick question.  I would use this Touchpad for me for a little while, but I get a hand on a 32 GB Touchpad as well.  If I do, I would keep the 32 GB for me and give the 16GB as a gift to a family member.  Is it possible to transfer my account to the new device, and then delete all my data from the first device and re-register with a new account?  I have not created an account on the first device still as I am anxiously awaiting word on whether I will get the Touchpad second, but I'd really just starting to use it if it will be an easy transition to the second device!  Thanks in advance!

    Absolutely, you can.  Here's what I would do to make sure that it's going really well:

    1. on the 16 GB model, perform a backup.

    2. the 16 GB model, perform a full erase.

    3. turn on the 32 GB model and enter your webOS account.

    4. leave to set up and install all your applications.

    5 perform a backup on the 32 GB model.

    6. go online to your webOS account and remove TouchPad 16 GB.

    7 log on the TouchPad to 16 GB with a new account of webOS.

  • Drop tablespace is not delete file from windows

    Hi all

    I installed oracle XE 10.2.0 on windowxs XP. I am not able to drop the tablespace with including content and data files.

    tablespace and the file is to delete the database file.

    But I'm not able to get automatically removed from the operating system.

    I ran a batch file which drop tablespace and relaxation with the same name and the same file name.


    Please suggest

    Current log# 1 seq# 110 mem# 0: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_5V3M5K7Z_.LOG
    Fri May 07 04:39:44 2010
    Thread 1 advanced to log sequence 111
      Current log# 2 seq# 111 mem# 0: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_5V3M5R0N_.LOG
    Fri May 07 11:18:39 2010
    DROP TABLESPACE PROVISION_DESIGN INCLUDING CONTENTS AND DATAFILES
    Fri May 07 11:21:25 2010
    WARNING: Cannot delete file C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\PROVISION_DESIGN..DBF
    Fri May 07 11:21:25 2010
    Errors in file c:\oraclexe\app\oracle\admin\xe\udump\xe_ora_3764.trc:
    ORA-01265: Unable to delete DATA C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\PROVISION_DESIGN..DBF
    ORA-27056: could not delete file
    OSD-04024: Unable to delete file.
    O/S-Error: (OS 32) The process cannot access the file because it is being used by another process.
    
    Completed: DROP TABLESPACE PROVISION_DESIGN INCLUDING CONTENTS AND DATAFILES
    Fri May 07 11:22:32 2010
    Memory Notification: Library Cache Object loaded into SGA
    Heap size 2291K exceeds notification threshold (2048K)
    Details in trace file c:\oraclexe\app\oracle\admin\xe\udump\xe_ora_3764.trc
    KGL object name :XDB.XDbD/PLZ01TcHgNAgAIIegtw== 
    
    Fri May 07 11:22:46 2010
    Memory Notification: Library Cache Object loaded into SGA
    Heap size 2073K exceeds notification threshold (2048K)
    Details in trace file c:\oraclexe\app\oracle\admin\xe\udump\xe_ora_3764.trc
    KGL object name :XDB.XD7DujEWKdQzCT1MWnFJ6WfA== 
    
    Fri May 07 11:22:52 2010
    create tablespace PROVISION_DESIGN
    logging
    datafile 'PROVISION_DESIGNDBF'
    size 50M
    autoextend
    on next 10M maxsize unlimited
    extent management local
    segment space management auto
    Fri May 07 11:22:55 2010
    Completed: create tablespace PROVISION_DESIGN
    logging
    datafile 'PROVISION_DESIGNDBF'
    size 50M
    autoextend
    on next 10M maxsize unlimited
    extent management local
    segment space management auto

    I'm under commnds in this frequency

    DROP TABLESPACE PROVISION_DESIGN INCLUDING CONTENT AND DATA FILES;

    Drop the waterfall PROVISION_DESIGN user;

    in fact order in which ran above the command could the reason of this

    Drop the waterfall PROVISION_DESIGN user;

    DROP TABLESPACE PROVISION_DESIGN INCLUDING CONTENT AND DATA FILES;

  • I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I'm not

    I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I don't?

    Are you turning in the Apple device, a company or the insurer? Can you turn on the device? If so, you could try to send a command to erase with iCloud. If this is not the case, if her deal with Apple, they he will wipe away. If the only damage the screen, you don't want just the screen replaced?

  • Hi our friend has an old e-mail address on his old phone and e-mail account is now closed he should drop his photos and has a new email address, how he retrieve it please

    Hi our friend has an old e-mail address on his old phone and e-mail account is now closed he should drop his photos and has a new email address, how he retrieve it please

    Even if the e-mail account is closed the Apple is still valid. If he has forgotten the password, see: If you forgot your Apple ID - Apple Support password

    What follows has instructions on how to change the e-mail address he serves his Apple ID: change your Apple - Apple Support ID

  • DROP TABLESPACE TIVOLIORTS INCLUDING CONTENT AND DATA FILES;

    How can I do it's 8i?

    Unless the storage space is already empty, you will still need to syntax "including the content. If there is any referential integrity between objects in this ts and others, you must the syntax 'constraints cascading:

    Drop tablespace tivoliorts including content of cascade constraints;

  • The UNDO tablespace and its data file cannot be removed

    I would like to delete an UNDO tablespace after you have created a new, but can't. I could follow a large number of instructions TOM and others, but tablepspace is still listed in the State to RECOVER. Please see what I've done below. Your help will be appreciated.
    SQL > drop tablespace UNDOTBS2;
    Drop tablespace UNDOTBS2
    *
    ERROR on line 1:
    ORA-01548: active rollback segment "_SYSSMU29_1272378969$" found, terminate
    drop the tablespace
    SQL > drop rollback segment "_SYSSMU29_1272378969$";
    Drop rollback segment "_SYSSMU29_1272378969$".
    *
    ERROR on line 1:
    ORA-30025: DROP segment ' _SYSSMU29_1272378969$ ' (in the undo tablespace) not
    permit

    Have you tried that
    http://arjudba.blogspot.com/2008/08/ora-01548-active-rollback-segment.html

  • ¿Will do a delete and create a new temp.dbf performance increase?

    I have a 32 GB temp file. I do not so understand what really mean that temp.dbf must be so great.

    The question is: can I delete and create a new temp.dbf? and what does this mean?

    I am beginner in this.

    Thank you, Luis.

    Published by: cabezanet on November 23, 2009 09:10

    Of course, delete and re-create the temp tablespace if the size is too large.

    cabezanet wrote:
    You have been very helpful. I guess in your reply that I can do a drop for temp.dbf I suppose that this isn't a problem, but it is not necessary unless the size used by this file is too large.

    Thank you very much!

    PS: But I see no marks on my post :)

  • synonyms cannot be recompiled when arrays are deleted and recreated?

    Hello

    I have a synonym pointing to a table.


    (1) when I remove and recreate a table...

    is it not enough to recompile the synonym? I have to drop the synonym as well and re-create again?

    (2) when I add new columns to a table synonym also will appear the new column?

    Thanks in advance
    REDA

    Your first question is answered below. You can see the synonym didn't need to be re-created or compiled or whatever it is.

    Your second question... synonyms is not the columns. Thinking of views instead of SYNONYMS?

    SQL> create table t(c number);
    
    Table created.
    
    SQL> insert into t values (42);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> create synonym t_syn for t;
    
    Synonym created.
    
    SQL> select * from t_syn;
    
                       C
    --------------------
                      42
    
    SQL> drop table t;
    
    Table dropped.
    
    SQL> create table t(c number);
    
    Table created.
    
    SQL> insert into t values (42);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from t_syn;
    
                       C
    --------------------
                      42
    
  • Drop tablespace temp going forever

    Hello

    Try to drop tablespace temp.

    I've done new temporary tablespace default and that part went well. I can see the system immediately to use.

    Then I tried to drop the old one.

    Drop tablespace temp including contents and data files;
    ... no go... Although content is over now. Tablespace was full before that now, it's empty.

    My order is always suspended in sqlplus.

    Any idea?


    Oracle 10.2.0.1 on Linux x 86.

    What version of Oracle?

    Control dba view v$ sort_usage see if there is any query, still holding the temp segment in the old temporary tablespace.

  • Airport Extreme 7,7,7 drop connection and internet high speed

    My Airport Extreme (6th generation) have had the serious problems of the internet, as said in the title I had problems with my internet connection, I checked if that was the problem of the modem to the beginning (D3.0 Ubee) which was provided by my Internet, Charter provider.

    I've had Airport Extreme for almost a year to 2 years now and since then, I had no problem with my internet until 7.7.7 update came.

    I updated my firmware and this is where my random internet connection problem started.

    My current contract with the Charter are their 60 Mbps (download speed) and 4 Mbps (download speed), during the first days since I've updated 7.7.7 connections was fine and then my internet has started to decline since a means 50-60 Mbps (download speed) to 0.1 - 2 mb/s (download speed), my download speed has remained a constant 3-4 MB/s (download speed). I have tried and used Opendns several times, he really did nothing.

    I tried to turn off both modem and Airport extreme for a couple of minutes and turn on their return, but he does nothing and just refers to an extremely slow speed.

    The only way I found to fix my problem to get my internet to 0.1 - 2 mb/s (download speed) back to its original state, I find myself to be a restore return settings on the Airport Extreme with my Airport utility by default whenever the problem returns (which contributes to a certain degree as it gets my back up to 50 internet-60 MB/s) then he drops down again).

    I wanted to restore to 7.7.6 or the latest version of previous firmware before 7.7.7 (not too sure what version of firmware, it was) but I can't find how to spend my Airport extreme to my Airport utility.

    My question is what could I do to fix this problem if the decommissioning of my extreme (I need instructions with this too), change some settings, get rid of the * thing and get a new router, or am I stuck resetting to the parameter by default whenever she acts upward.

    I use windows 10 for my laptop

    Thank you for your time

    Unfortunately, the first question that you encountered is the AirPort for Windows utility has not been updated since Windows 7. In addition, it is not supported for use with the 802.11ac latest versions of airport base stations. Then downgrade to earlier versions of the firmware for base station can be difficult, unless you can get hold of a Mac or iOS device.

    If you are ready to test Windows 10, here are the steps to do:

    • Open the AirPort for Windows utility.
    • Select the base and then station in the utility menu bar, select the access point > Download Firmware...
    • Click on the Download Version dialog box, where the current version of the firmware is listed.
    • You should now see a list of the firmware versions that are available.
    • Click on the one you want to get off at.
    • Choose either 'continue' to continue with the downgrade, OR click 'Cancel' If you decide not to do so.
    • If you choose to continue, allow the firmware to be downloaded, installed and the base station to turn.
  • With this new firefox updated. The (enter private browsing) is gone and replaced with (new private window). It is sort of back enter private browsing?

    With this new firefox updated. The (enter private browsing) is gone and replaced with (new private window). It is sort of back enter private browsing?

    You can drag links to the private browsing window (hover the icon on the task bar for this update of the Firefox window).

    If you drop the link on an empty space on the tab bar, then the link should open in a new tab.

  • When I go to delete a bookmark - I click the menu drop down and the page that I just removed is still there. What I am doing wrong.

    I click the menu drop down and highlight and open the web page and then I click on the yellow star and choose the tab delete press done and when I close and click the menu drop-down new my web page is still there that I wanted to delete.

    Click right a bookmark in the menu dropdown bookmarks and select Remove to remove the bookmark.

  • How to delete a contact in the menu 'To' drop down when starting a new email?

    How to delete a contact in the menu 'To' drop down when starting a new email?  Email is no longer in my list of contacts, but he continues to appear in the menu drop down and too often I am wrong send something to the wrong email since it is at the top of the drop-down list.

    2 possibilities:

    1. you have an invitation, that you still need to answer. The name stays on until you refuse the invitation. Then it will go away.

    Open outlook.com > top left, place your cursor on the Outlook logo > an arrow will appear > click on the arrow > click on people > here's the window of your people.
    Toolbar at the top, click on manage the > click on View Invitations > do you see an invitation? If so, decline the prompt will remove the names of th.
    2. There may be a suggestion of the application of the 'AutoComplete suggestion» It gives you the names so that you, at the same time, sent emails.
    You can remove this suggestion by doing this...

    Open outlook.com > top right, next to your name, click on the gear icon > click on e-mail settings more > under customization of Outlook, click Advanced Privacy settings > click the front point 'Only suggest people in my contact list' > click on save when finished.

    t-4-2

Maybe you are looking for