Who have dropped table

Hello expert,
Please tell me how to find out who have dropped a table in the oracle database.
Many Thanks,

Yes, it is possible the table is in the recycle bin and can be recovered. It is also possible that there has been demand for space in the tablespace in question and that the recycle bin copy space has had to be reused. It will depend on the environment, but checking the recycle bin is an excellent starting point providing the database is 10g+.
Querying v$sql for the drop command is also time (and load) dependent.
I suggest you configure auditing in all production environments to audit DDL since tables should rarely be created, altered, or dropped in production. Knowing when objects are added, altered, and dropped can be valuable when trying to track down process changes and for some other DBA tasks.
HTH -- Mark D Powell --
Add 10g+ requirement to first paragraph.
Edited by: Mark D Powell on Jun 17, 2011 7:26 AM

Similar Messages

  • How to trace a user who entered/dropped a table in a shared DataBase

    Hai, I have a doubt plz help me
    when working in a shared DataBase environment, different users will create or drop
    tables from the DataBase. Is it possible to trace who has created/altered a particular table in the DB. If yes plz tell me the procedure.
    Thanks in advance.
    SrihariKrishna

    Maybe this link provides some help?
    http://asktom.oracle.com/pls/ask/f?p=4950:8:5395923770553724381::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:6399608034075
    C.

  • How can I list all users who have access to a particular TABLE or VIEW

    Hi,
    Can someone tell me how I can list all users who have access to a particular TABLE or VIEW.
    Abhishek

    Hi,
    Take a look on this link: http://www.petefinnigan.com/tools.htm
    Cheers

  • Who have made the entry in Z table

    Hi Friends,
               Can anyone tell me - how to find out who have made the entry in Z table ?
    Sonal

    Hi sonal,
    I want to say that if logging of tables is on in your server and you have also make log on in Technical settings of the table then you will be able to see the log using 'SE14'.
    First consult with basis about the setting of server and if they have set logging of tables ON
    THEN
    goto se11 and give your table name.
    open the table and click on  'Technical Settings'
    in last their is a check box 'Log data Changes'
    Check if this is on or not.
    If both condition are ok then you can check the log of your table in SE14
    using 'Object Log' button in application tool bar.
    Regards,
    Wasim Ahmed

  • Allowing a user to create/drop tables in another users schema

    We have a central shared schema (TEAM). So we can monitor who is doing what users have there own login(USER1, USER2...). Is there a way to allow a user to create/drop objects in another user.
    I.e.
    SQL> connect USER1
    SQL> create team.table1(col1 char(1));
    SQL> drop table team.table1:
    How can this be set up?
    Ben

    Here is what you can do, If you want to keep track of what users are doing.
    Open the glogin.sql file and set the spool like this
    spool /oracle/audit/SID_&_user.logEverytime user logs in it will be populated and you will be able to see who is doing what.
    You can remove the write permission on glogin.sql so that no one can modify it.
    You also need to create a script like this, which would rename it every time same user would login.
    #!/bin/ksh
    time=`date +"%b"_"%d"_"%H"_"%M"`
    ##you need to pass some more variables and while loop to include all the users## ( This is just for an example)
    if [ -f /oracle/audit/SID_SYS.log ]
    then
    mv /oracle/audit/SYS.log /oracle/audit/SYS.log.$time
    fiEdit the glogin.sql file with this script information like this
    host /oracle/audit/file.kshHope this helps, if you need more information let me know.

  • Find info about dropped table

    A table has been dropped on a test system (Oracle 10g). Is there a way to find out who/when the table was deleted or any other hints?
    - I have checked flashback_transaction_query but I could not find the table. It looks like the undo space was not big enough!?
    - select * from sys.aud$ where OBJ$NAME = 'TABLE_XYZ'; shows only the satetement from the table creation
    Thanks.

    Is there a way to find out who/when the table was deleted or any other hints?To find out "who/when", either
    * you should have Auditing enabled or
    * at the database level you should enable supplemental logging and use log miner on your redo logs.
    Regards

  • Finding who has dropped th epartitions

    Hi,
    Can some body help me on how to find who has dropped the partitions in a table in oracle 10.2
    Thanks
    Lbn

    Partitions can only be dropped by a schema and code that have permissions to drop those objects. So given the security model you have on that database, nothing incorrect was done.
    If this happens not to be the case, and partitions were dropped "illegally", then the security model used is flawed.
    And the first action should be identifying the flaws in the security model and fixing these - properly. A witch hunt for an offender will not fix or resolve anything.
    As for finding the "offender" - unless you have auditing enabled, or archive logs to mine, there is no way to identify the "offender".
    Rather fix your security model first. That is what the problem is. Not the fact that an "offender" (accidentally) manage to wipe partitions.

  • What's the best case for a Macbook Air for someone who *may* drop the laptop?

    I see all the forums here about cases for Macbook Air, but most people seem more worried about scratches.  I am looking for the lightest case that might actually protect the Air in a fall.  Any ideas?
    BTW I have been a long time PC laptop user which seem to be a bit more rugged (and thus heavy).  I have dropped my PC laptop in the past without any damage. I've bought the Macbook Air 13 which arrives this week.  I don't mind adding a little weight to the laptop to protect it in a fall... 

    I am also clumsy but I find Apple products exceptionally tough.
    I dropped my MacBook Air with no case or anything onto concrete from like 1 meter and this is all that happened
    I also dropped my iPad from a table onto the same floor and when I saw it face down I was dreading having to pick it up...it was fine however with not a mark in sight
    Yes this is just the experience of 1 person however I think people are too cautious nowdays
    Remember the things you read on here "I dropped my macbook and the screen shattered please help" are probably the minority - if someone dropped it and it was fine they wouldn't post here so you are getting a false sense that everyone who drops their machine ends up bad!

  • Unable to drop table

    Hello,
    I'm currently tring to drop a table using a process trigered by a button click
    Icreated my button and also a "PL/SQL process" and I put
    DROP TABLE &P0_TABLE_NAME. CASCADE CONSTRAINTS;
    inside field "source" with ticking the checkbox "Do not validate PL/SQL code (parse PL/SQL code at runtime only)."
    But when a click on the button I have the following error
    ORA-06550: line 1, column 7: PLS-00103: Encountered the symbol "DROP" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe
         Error      Error while dropping table
    OK      
    Do anyone have a clue about this ?
    Debug trace is
    A C C E P T: Request="Purge"
    0.00: Metadata: Fetch application definition and shortcuts
    0.00: alter session set nls_language="AMERICAN"
    0.00: alter session set nls_territory="AMERICA"
    0.00: ...NLS: Set Decimal separator="."
    0.00: ...NLS: Set NLS Group separator=","
    0.00: ...NLS: Set date format="DD-MON-RR"
    0.00: ...Setting session time_zone to +02:00
    0.00: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.00: Fetch session state from database
    0.01: ...Check session 2289784661666743 owner
    0.01: ...Check for session expiration:
    0.01: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.01: Session: Fetch session header information
    0.01: ...Metadata: Fetch page attributes for application 121, page 2
    0.01: ...Validate item page affinity.
    0.03: ...Validate hidden_protected items.
    0.03: ...Check authorization security schemes
    0.03: Session State: Save form items and p_arg_values
    0.03: ...Session State: Save "P0_TABLE_NAME" - saving same value: "STATPHI_595730051"
    0.04: ...Session State: Save "P2_TABLE_NAME" - saving same value: "STATPHI_595730051"
    0.04: ...Session State: Save "P2_TYPE" - saving same value: "2"
    0.04: ...Session State: Save "P2_CALENDAR" - saving same value: "PA"
    0.04: ...Session State: Save "P2_FILE_NAME" - saving same value: ""
    0.04: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.04: Branch point: BEFORE_COMPUTATION
    0.04: Computation point: AFTER_SUBMIT
    0.04: Tabs: Perform Branching for Tab Requests
    0.04: Branch point: BEFORE_VALIDATION
    0.04: Perform validations:
    0.04: Branch point: BEFORE_PROCESSING
    0.04: Processing point: AFTER_SUBMIT
    0.04: Item button "P2_PURGE_TABLE" pressed process.
    0.04: ...Process "DROP TABLE": PLSQL (AFTER_SUBMIT) DROP TABLE &P0_TABLE_NAME. CASCADE CONSTRAINTS;
    0.06: Encountered unhandled exception in process type PLSQL
    0.06: Show ERROR page...
    0.06: Performing rollback...
    ----

    Hi user631592 ;-)
    You can't used directly a DDL statment.
    But you can use an EXECUTE IMMEDIATE in your process.
    SO
    BEGIN
    EXECUTE IMMEDIATE ' DROP TABLE STATPHI_595730051';
    END;
    Regards

  • Cannot drop table

    Versions are Oracle 11.2.0.1.0 and SQL Developer 4.0.0.12 on Windows 7 Ultimate SP1.
    Hi
    I'm following the CBT Nuggets SQL Fundementals training (video #11) and cannot drop a table I have just created.  The command executed and error are:
    drop table newprods;
    Error starting at line : 1 in command -
    drop table newprods
    Error report -
    SQL Error: ORA-00604: error occurred at recursive SQL level 1
    ORA-20000: Cannot drop object
    ORA-06512: at line 2
    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.
    As the HR user I created two tables and created a FK constraint between them.  After truncating the table with this FK, I am unable to drop it.  Even if I remove the FK, the error is the same.  Issing the command in SQL*Plus gives the same error.
    This is the first time I have created any tables since installing Oracle on this machine and is my first attempt at dropping a table.  I have not created any sequences, triggers or views based on these newly created tables.
    Does anyone have any ideas?
    Cheers

    C:\Oracle>sqlplus hr@orcl
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Sep 4 18:58:55 2013
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> CREATE TABLE table1 (column1 VARCHAR2(20 BYTE));
    Table created.
    SQL> select * from table1;
    no rows selected
    SQL> drop table table1;
    drop table table1
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20000: Cannot drop object
    ORA-06512: at line 2
    SQL>
    Can I run a query to see if there are any triggeres on the table?
    EDIT: Ok it looks like no triggers:
    SQL> show user
    USER is "SYS"
    SQL> select * from DBA_TRIGGERS where table_name like '%table1%';
    no rows selected
    SQL> select * from USER_TRIGGERS where table_name like '%table1%';
    no rows selected

  • Query to find out the list of user who have delete access

    Hi,
    I need a query to find out the list of users who have delete access on perticular folder/universe/ reports  in infoview.
    Please advice.
    Regards,
    Neo.

    orton607 wrote:
    thanks for replying guys. But the thing is i am using dynamic sql execute immediate in my package, so i want those tables also and the schema name.
    thanks,
    ortonThis is not possible. The best you could do is to have a good guess.
    Or how would you parse some dynamic statement as this:
       v_suffix := 'loyees';
       v_sql := 'Select count(*) from (select ''nonsense'' col1 from emp'||v_suffix||') where col1 = ''Y'''';
       execute_immediate(v_sql);
    ...What is the table name? How do you want to parse that?
    Better rewrite all dynamic SQL statements into non dynamic ones. Or do the source control logic for those dynamic parts in an extra module. For example implement your own dependency table and force every developer to add there all dynamic parts.

  • Dropping tables in Oracle 10g Express

    I have several schemas created in my oracle express db. And I have created 1 user, 'met' that has privs to do anything in any schema.
    If user met drops a table in the acct schema, it does not go in the acct recyclebin like I would think. It is renamed BIN$...... and left in the acct schema.
    If acct drops a table in the acct schema, then it shows up in the acct recyclebin as the same name it had in the schema.
    We have 40+ schemas, and I don't want to login as each individual user to manage there tables, I want one account to manage them all, but do not want to leave alot of BIN$..... tables in the schema when I drop a table.
    I know I can purge them, and remove them for good, but If I want to drop a table, and have a backup for a while, I want it to be in the recyclebin.
    Anyway to fix this, or is this just how it work?

    You may want to use the purge command:
    PURGE recyclebin;
    Or disable the recycle bin parameter, which will diables the flashback feature and won't allow you to recover any mistakenly dropped table:
    RECYCLE_BIN=FALSE;
    Regards.

  • Drop table is not Working in SQL

    Hi,
    I am trying to drop table in below code in dynamic way, but facing error. 
    Looking for your support.
    /**********************************RESET************************/
    if @TypeOfUpdate='Reset'
    Begin
    Drop table [' + @DestinationTable + ']  
    exec('select * into [' + @DestinationTable + '] from openrowset(''Microsoft.ACE.OLEDB.12.0'', ''Excel 12.0;HDR=YES;Database=' + @TABLENAME + ''', ' + ''' select * from '+@SourceSheet + ''')')
    PRINT 'Congratulations!!!! Database is Reset.';
    END
    above is part of SP code where I am getting an error if i run the below code. 
    EXEC [ImportExcelFile_Reset] 'C:\temp\TestFiles\OPENASNs.xlsx','Sheet1', 'test', 'Reset'
    ------------Error-------
    (1 row(s) affected)
    Msg 3701, Level 11, State 5, Procedure ImportExcelFile_Reset, Line 53
    Cannot drop the table '' + @DestinationTable + '', because it does not exist or you do not have permission.
    Msg 2714, Level 16, State 6, Line 1
    There is already an object named 'test' in the database.
    SharePoint_Consultant_EMEA

    You you need a dynamic SQL statement for drop too. :)
    if @TypeOfUpdate='Reset'
    Begin
    exec('Drop table '+ @DestinationTable+';
    select * into [' + @DestinationTable + ']
    from openrowset(''Microsoft.ACE.OLEDB.12.0'', ''Excel 12.0;HDR=YES;Database=' +
    @TABLENAME + ''', ' + ''' select * from '+@SourceSheet + ''')')
    PRINT 'Congratulations!!!! Database is Reset.';.......
    Satheesh
    My Blog | How to ask questions in technical forum

  • Drop table problem

    How can i drop a table (Access) with JDBC like "test one"?
    My problem is, that the table have in the name a whitespace.
    thank's

    The Access convention for non-standard table or column names is to surround them with square brackets, like this:
    DROP TABLE [Bad Choice Of Name]

  • SCAC Field Should have Drop Down Values and ASN should have Storage locatio

    Hi ,
    We have a requirement while creating ASN in which we have to add SCAC ID  in the SCAC field ( Carrier)  this SCAC ID comes in Shipping details  - We want to have drop down values in this field and also if we dont enter value in this field An Error Message should come like " Maintain SCAC code.
    And also the PO's coming from ECC are not carrying Storage location information - Is there a specific config / enhancement to be done.
    And in ASN can we have Storage location ?
    Thanks,
    Mahesh

    Hi Mahesh
    Regarding adding fields to UI
    Refer below links
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0b0e544-7a06-2d10-539d-f8648358ba67?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/SCM/SAPSupplyNetworkCollaboration%28SAP+SNC%29
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/908c1e69-0a01-2d10-e7a6-98ca00f19aa6?quicklink=index&overridelayout=true
    Not sure how to maintain it as a drop down, a developer could help you easily with that.
    Regarding Storage location from PO ECC.
    If you are using idocs, the standard SAP xml conversion will not be able to transfer this(if you download standard content)
    You can find the field in your IDOC ORDERS05, Data records-Segement-E1EDP01FIELDLGORD
    In order to transfer this, you need to rewrite the xml format in integration builder of XI/PI and then add some UI fields in Webui
    to show.
    But xml PurchaseOrderERPReplenishmentOrderCollaborationNotification as of SAP ECC EHP4 can carry this information in its payload document(SXI_MONITOR---INBOUND MESSAGE ---PAYLOADS) Under the node INVENTORY MANAGED LOCATION
    Not sure where this field is mapped to .........
    I will let you know once i find........Mean while you can ask any developer who worked on webdynpro .
    Yes we can have this field once we find where it is mapping, if you are using idocs then even the XML has to be build in PI
    accordingly.
    Best Regards
    Vinod

Maybe you are looking for

  • How can I ignore iCloud and Lion and live to tell it

    From what I have read about Lion, I just do not like it. I am more than happy with Snow Leopard, with my calendar on BusyCal and my Mail on my Mac. But I am getting more and more the impression that I am being pushed toward upgrading to Lion since, w

  • If it ain't broke, don't fix it!! I want classic site back

    I speak on behalf of most or for a large majority of paypal users with this complaint: The new paypal site is complete garbage and utterly disappointing. For starters, this is an insult to everyone using it because it is too "elementary" and it doesn

  • Modify Document Message Bar

    Once a form is created in LiveCycle and opened in Acrobat Professional, a bar (specifically, the document message bar) appears at the top indicating "please fill out the following form". Is there a way to modify the text that appears to something oth

  • In App purchase - app rejected

    Hi, Senario-- I have a navigation app in which there are numbers of route, some route are free and some are purchasable with different price (max $3). The routes are created by user on the go. To achive this, I categorise all the route into 3 categor

  • Need help with binary numbers

    hey i'm doing some things, but i need a entry of a binary coded number, i know that an hex number is written like 0xFF but how do i put a binary number in an instruction such as: byte b b="binary number"