How to delete all TABLEs in Schema SYS which are created since 09:15?

Unfortunately a script created lots of tables in the wrong Tablespace (=SYSTEM) and Schema (=SYS).
How can I delete (in one DDL command) all TABLES which are created inTablespace=SYSTEM and SCHEMA=SYS
during the last 3 hours resp. since 09:15 of 25th Sep 2011 ?
Alternatively: How can I move these TABLEs to another Schema (e.g. ATEST) and Tablespace (USERS)?
Is this possible with Oracle XE or only with Oracle Enterprise?
Peter

user559463 wrote:
Unfortunately a script created lots of tables in the wrong Tablespace (=SYSTEM) and Schema (=SYS).
How can I delete (in one DDL command) all TABLES which are created inTablespace=SYSTEM and SCHEMA=SYS
during the last 3 hours resp. since 09:15 of 25th Sep 2011 ?
Alternatively: How can I move these TABLEs to another Schema (e.g. ATEST) and Tablespace (USERS)?
Is this possible with Oracle XE or only with Oracle Enterprise?
PeterYou can query dba_objects and join it with dba_tables where tablespace_name='SYSTEM' , then drop the tables result of the query; the idea is to use the following query;
SQL> select OWNER, OBJECT_NAME from dba_objects where OBJECT_TYPE='TABLE' and OWNER = 'SYS' and CREATED >= sysdate - 3 / 24;Please consider marking your questions as answered, when it is the case;
Handle:      user559463 
Status Level:      Newbie
Registered:      Feb 18, 2007
Total Posts:      583
Total Questions:      266 (186 unresolved)Edited by: orawiss on Sep 26, 2011 4:03 PM

Similar Messages

  • How to delete the queries in  BW Production which are no longer existing.

    Hi,
    How to  delete the queries in BW production which are no longer existing in DEV.
    1. I tried Using RSZDELETE in Production it is not getting deleted and the below message given.
    Query object 4A7V83T3RB4ABIOKSDJT2HWDL is blocked. Deletion has been cancelled.
    2. I tried creating another query in dev with the same technical name and send a transport with deletion
    it is not working.
    Please advise me on this for any function module or any other method.
    Thanks
    Surya

    Hi,
    If you transported the query from DEV and now you want to delete it, you should open a BEx request (Dev Class under which it was originally transported -- or-- Standard - type) in DEV delete the query and move the transport to Production.
    As far as your error is concerned, usually  when you  can delete a query using the delete option in query designer itself,
    Business Explorer> query-> delete objects , when you press execute the system offers you a list of dependent objects on the query(workbook,views), in case the sysytem is unable to delete them i.e.they being used as a input query for a characteristic variable (replacement path),then system throws this error.You can delete these all depndents under there prescribed roles , fav s & then proceed.
    Hope this will be expedite.
    Thax & regards.
    Vaibhave Sharma

  • How to delete ALL photos in iPhoto Library that are NOT contained in albums

    I would like to delete all those photos in the iPhoto Library which I have NOT assigned to an album. How do I do this efficiently?
    And conversely: how do I delete from the Library ALL the photos that ARE contained in a specific album?
    Thanks in advance for any suggestions or pointers (to one or to both questions).
    Cheers,
    Veit

    Viet
    I would like to delete all those photos in the iPhoto Library which I have NOT assigned to an album. How do I do this efficiently?
    The easiest way is to put them into an album:
    New Smart album ->
    Album -> Is Not -> Any
    This gathers them together into an album. Then it's the same answer as the second question...
    And conversely: how do I delete from the Library ALL the photos that ARE contained in a specific album?
    Select the Album. Then to delete them select the pics and hold down the *command (apple) and option (or alt)* keys and hit the delete button. This will put them in the trash. Then iPhoto menu -> Empty trash.
    Regards
    TD

  • Deleting all tables in a schema

    I am trying to delete all tables in a given schema. Any ideas how to do this via t-sql appreciated.
    tia,
    edm2

    If the tables are not dependent one of the other, then simple query like this:
    DECLARE @sql NVARCHAR(max)
    SELECT @sql = stuff((
    SELECT ', ' + quotename(table_schema) + '.' + quotename(table_name)
    FROM INFORMATION_SCHEMA.Tables
    WHERE table_schema = 'dbo'AND TABLE_TYPE = 'BASE TABLE'
    ORDER BY table_name
    FOR XML path('')
    ), 1, 2, '')
    SET @sql = 'DROP TABLE ' + @sql
    PRINT @sql
    BEGIN TRANSACTION
    EXECUTE (@SQL)
    ROLLBACK TRANSACTION
    If they are related, then the script will be much more complex as you need to drop tables in the right order.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • SQL azure database size not dropping down after deleting all table

    Dear all,
    I have a simple database on Azure for which I have deleted all table data. The size of the database is still showing 5Mb of data and I am charge for that. I have heard that this may happen from cluster index getting fragmented.
    I have run  a querry I found on internet on all my table index to show percentage of fragmentation and all report 0%.
    DBA is not so my job but what could it be or how can I reduce that size ?
    ON premise I would use COMPACT DB but not available in azure like some others DB action
    Thnaks for tips
    regards

    user created objects/data are not the only ones stored in your database. you got system objects and metadata as Mike mentions above.
    are you trying to skip being charged if you're not storing data? looking at the pricing table,  you'll still get charged the $4.995 for the 0-100MB database size range.

  • How to delete parent table data even though it has child records

    hi all,
    How to delete parent table data even though it has child records.
    ex: delete from pa_request cascade constraints;
    But this command is not working .
    Regards,
    P Prakash

    833560 wrote:
    ex: delete from pa_request cascade constraints;cascade constraints is DROP table option. It can't be used with DELETE. You need to delete child rows first or drop foreign keys and recreate them with ON DELETE CASCADE. Then:
    delete from pa_request will automatically delete child rows. However, personally I don't like ON DELETE CASCADE. You can, by mistake, delete half of your database without even realizing it.
    SY.

  • ADF Desktop Integration : How to delete the table in Excel?

    Hi,
    I am using Jdev 11.1.1.3.0 and Excel 2007 for Oracle ADF DI, I had created an ADF table using pageDef file in the excel. Now I wanted to delete that table and use a different pageDef file.
    I could not find a way to delete that table.
    I deleted full row of tables and then I used different pageDef file and created a new adf table. But when I am running this version of excel, I am getting runtime exception and excel is getting corrupted.
    My question how to delete the table not corrupting the Excel.
    Thanks
    Pavan

    Pavan,,
    Welcome to OTN.
    You can delete the table by selecting the top left column (of the table) and then select delete from the ADFdi tab.
    Refer the documentation for more info.
    http://docs.oracle.com/cd/E17904_01/web.1111/e10139/get_start_dev_tools.htm#ADFDI608
    -Arun

  • How to delete all messages in my inbox?

    How to delete all messages in my inbox?

    For messages, go to the conversation list (if viewing a conversation, tap Messages at the top left), tap the Edit button on the top left, tap the minus sign to the left of any of the conversations you want to delete, tap Done at the top.

  • How to delete all mails with one klick?

    It's annoying to delete every single mail.
    How to delete all mails with one klick, like in the paperbasket?
    Thanks

    If the emails have been previously deleted (I.e. in the trash folder), tap Edit at the top of the list. You should see a delete all button at the bottom. If the messages are in a standard folder, they need to be handled one at a time.

  • How to delete all contacts in thr e iPod Touch????

    The synchronization with Outlook does not work properly: some contacts appears 2 times, some appears 3 times and some appears 4 times in the ipod.
    And the sync hsa deleded several contacts in my Outlook.
    So, I want to delete all contacts in the iPod and then do a new clean sync.
    But I do not find an option to delete all contacts in the phone.

    thanks,
    this helped to reset the sync history.
    But I still do not know how to delete all contacts in the ipod.

  • How to delete all objects in a package?

    Hello,
    I've seen a similar question here. But is there a tool or a smart way to delete all objects in a dev class or a transport request?
    Best Regards
    Volker

    These are really 3 questions??
    1. To delete objects in a request there are a number of ways, here is one:
    Position cursor on modifiable request.
    Double click on request and choose 'Objects' tab
    Choose object line you want to delete and click 'Delete'
    Save your changes.
    2. To delete objects in a Dev Class:
    Go to work bench --> edit object, Class and give your class name, you will see delete option at the bottom of the screen.
    3. How to delete all objects in a package:
    here is a link with the steps you need for this: http://benxbrain.com/en/index.do?onInputProcessing(brai_object_thread)&001_threadid=0000161442&sysid=WP5&pgmid=R3TR&object=DOMA&obj_name=DEVCLASS&child_param=

  • How to delete all ALERTS in iCal at once?

    Over the years I have added repeating Events with Alerts to iCal on various devices (some of them passed on to my relatives). As a  result I get plenty of Alert emails or sounds. I find it onerous to go through all repeating events to delete the alert. Hence my question: how to delete all Alerts at once?
    Thanks for any suggestions/pointers/ideas. Cheers, Veit

    Hi John,
    Thanks so much for your help with this problem. I am trying to remove alerts for a couple of specific shared calendars (which I can edit) but am having some difficulty due to my inexperience with applescript! I am also not sure where else to go for help solving this problem.
    My plan is to run your script a couple of times specifying one calendar at a time by name.
    This is the modification I made to your script:
    tell application "Calendar"
      activate
              delay 0.5
              display alert "Removing all alarms from your editable calendars" message "This process may take some time and is permanent. Are you sure you want to do this?" buttons {"Yes", "No"} cancel button 2
              set calname to "Consultant_on_call"
      --- repeat with myCalendar in (calendars whose writable is true)
              repeat with myCalendar in (calendars whose name is calname)
                        repeat with myEvent in events of myCalendar
      delete display alarms of myEvent
      delete mail alarms of myEvent
      delete sound alarms of myEvent
      delete open file alarms of myEvent
                        end repeat
              end repeat
              display alert "Removing all alarms from your editable calendars" message "This process is complete." buttons {"OK"} default button 1
    end tell
    Are you able to tell me what I am doing wrong? Thanks again.
    Andrew

  • How to delete all bookmarks in iCloud ?

    Hi every body, could someone tell me how to delete all my bookmarks in iCloud ?
    Thanks for attention and answer, Vincent

    Hey mzhill78
    Remove you icloud contact information on all your IOS devices, go to the icloud setting on you ios device and turn off the addressbook syncing, when it asks you "do you want to remove keep the address on your ips device you say NO...  So now your MacBook is the only thing syncing too the icloud.
    Go to Addresbook and look for the menu option find duplicates.
    After that wait for your laptop to sync this too icloud.  to check give it about 2 min depending on how many changes log into your icloud account at www.icloud.com and check too see if the syncing has updated whats in the cloud.
    If it has then urn on your addressbook syncing in iclouud settings on your IOS devices and all should be back too normal.
    Hope it helps,
    If this has sloved your problem please mark it as Solved thank you..

  • How to delete all Contacts in BB 8530 ?

    Hi,
         Can any one tell  me how to delete all exisiting phone contacts in a single cli c? currently i am deleting one by one contacts.

    Hi
    If you want to clear your address book, load Desktop Manager (DTM) up, plug BB in, go to Backup/Restore.
    Go to Advanced, click on Address Book on the screen click "Clear" button.
    Blackberry Best Advice - Back-up weekly
    If I have helped you please check the "Kudos" star on the right >>>>

  • How to delete all items in the HUB ?

    How to delete all items on shot in the HUB ?

    Hi all,pay attention to the words I've marked in bold in the first answer from the technical support member:  "From the BlackBerry Hub, hold your finger on the date at the top of the list. A side menu will appear. Click on the Garbage Can to delete all messages prior to that date" At first, I also didn't understand how to make it works, but you have to slide until the date is at the top of displayed messages, then you can tap and hold to select all messages preceding that date. 

Maybe you are looking for