Production database table dropped accidentally.

Hi,
In one of our production db an important table has been dropped.We wanted to know who has dropped this table.
How to know this?
We did not enable any kind of auditing for the db.
We did not create any database level trigger for the drop table event.
Please help me on this.
Thanks in Advance.
Raju,
DBA.
Hi,
Even though database is of 10.2.0.4.0 version flashback database feature is not enabled.
Edited by: user10979257 on Aug 13, 2009 1:25 PM

There is no need to configure LogMiner before the DDL happened. All LogMiner is doing is reading the REDO information in the archived log files. Configuring LogMiner gives you no new information, it just allows you to read information you already have. If you have the archived log files from the time in question, you should be able to determine what Oracle user issued the command and roughly when they did it.
You can run LogMiner on a machine other than the one that generated the archived log files, if that is a concern. That adds a bit of complexity to the setup process, though. Whether running LogMiner will have a noticible affect on performance for other applications will depend on a variety of factors-- how many archived logs you're reading through, how much data you need to read, and how I/O bound your other applications are to begin with.
Justin

Similar Messages

  • Zfs does not reclaim space after database table dropped

    Our Oracle DBA dropped 200GB of tables and zfs has not reclaimed the space. I have made sure we did not have any snapshots. When I do a du -h on the filesystem, it shows the correct space, but zfs list does not show the extra space. Any ideas?

    Hi,
    You should make sure that the removed Oracle Datafiles were on a ZFS file system. If they were under an UFS file system, the ZFS space will remain unchanged.
    Regards,
    Rei

  • Can't drop database table objects on a EJB Diagram.

    JDeveloper 10.1.3 EA.
    When I drop a database table object on a EJB Diagram the error below occurs. Also dropping components from the Component Palette doesn't work. A wizard opens, but after completing that, nothing is on the EJB Diagram.
    However, after dropping a table and a restart of JDeveloper, there is an empty 'tablename EJB' on the EJB Diagram, but a click with the mouse on it generates the same error as the drop did.
    Simular errors occur with JDeveloper 10.1.2, so writing this I realize that this might be a database version problem. I'm using 9i! I'll try 10g and see what happens.
    Message
    BME-99003: An error occurred, so processing could not continue.
    Cause
    The application has tried to de-reference an invalid pointer. This exception should have been dealt with programmatically. The current activity may fail and the system may have been left in an unstable state. The following is a stack trace.
    java.lang.NullPointerException
         at oracle.jdevimpl.xml.DescriptorNode.getWhitespaceHandler(DescriptorNode.java:349)
         at oracle.jdevimpl.xml.DescriptorNodeDomIO.load(DescriptorNodeDomIO.java:164)
         at oracle.jdeveloper.xml.BindingIO.load(BindingIO.java:43)
         at oracle.jdevimpl.xml.DescriptorNode.getNewDescriptorImpl(DescriptorNode.java:506)
         at oracle.jdevimpl.xml.DescriptorNode.getDescriptor(DescriptorNode.java:140)
         at oracle.jdeveloper.xml.oc4j.ejb.OrionEjbJarNode.getOrionEjbJar(OrionEjbJarNode.java:145)
         at oracle.jdeveloper.ejb.BaseEjbModuleContainer.getOrionEjbJar(BaseEjbModuleContainer.java:476)
         at oracle.jdeveloper.ejb.modeler.diagram.dropHandler.TableDropEJB21Handler.isAvailable(Unknown Source)
         at oracle.bm.diagrammer.ui.DropChooserPanel.populateOptions(Unknown Source)
         at oracle.bm.diagrammer.ui.DropChooserPanel.createComponents(Unknown Source)
         at oracle.bm.diagrammer.ui.DropChooserPanel.<init>(Unknown Source)
         at oracle.bm.diagrammer.dropHandler.AbstractChooserDropHandler.createPanel(Unknown Source)
         at oracle.bm.diagrammer.dropHandler.AbstractChooserDropHandler.processObjects(Unknown Source)
         at oracle.bm.addinUtil.IDEAppContext$4.performAction(Unknown Source)
         at oracle.bm.diagrammer.LockMonitor.performLockedAction(Unknown Source)
         at oracle.bm.diagrammer.BaseDiagram.performDiagramLockedAction(Unknown Source)
         at oracle.bm.addinUtil.IDEAppContext.dropNavigatorNodeLater(Unknown Source)
         at oracle.bm.addinUtil.IDEAppContext$5.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Action
    If further errors occur, you should restart the application.
    Also, report the problem on the JDeveloper forum on otn.oracle.com, or contact Oracle support, giving the information from this message.
    ________________________________________________________________________________

    Hi lisa, you've said that the problem does not occur in the 10.1.3 build but I have almost the same problem with the BME-99003 error message.
    I used the same workaround "changing the regional settings from BE to US" and the BME-99003 problem disappears :-)
    Here is the error message that I receive while I add a table into the EJBDiagram. I'm using
    windows XP SP2
    ADF Business Components     10.1.3.34.12
    Java™ Platform     1.5.0_04
    Oracle IDE     10.1.3.34.12
    Struts Modeler Version     10.1.3.34.12
    UML Modelers Version     10.1.3.34.12
    Versioning Support     10.1.3.34.12
    Abdelkrim BOUJRAF
    Message
    BME-99003: An error occurred, so processing could not continue.
    Cause
    The application has tried to de-reference an invalid pointer. This exception should have been dealt with programmatically. The current activity may fail and the system may have been left in an unstable state. The following is a stack trace.
    java.lang.NullPointerException
    at oracle.jdevimpl.xml.DescriptorNode.getWhitespaceHandler(DescriptorNode.java:349)
    at oracle.jdevimpl.xml.DescriptorNodeDomIO.load(DescriptorNodeDomIO.java:164)
    at oracle.jdeveloper.xml.BindingIO.load(BindingIO.java:43)
    at oracle.jdevimpl.xml.DescriptorNode.getNewDescriptorImpl(DescriptorNode.java:506)
    at oracle.jdevimpl.xml.DescriptorNode.getDescriptor(DescriptorNode.java:140)
    at oracle.jdeveloper.xml.oc4j.ejb.OrionEjbJarNode.getOrionEjbJar(OrionEjbJarNode.java:145)
    at oracle.jdeveloper.xml.oc4j.ejb.OrionEjbJarHelper.findOrionEjbJar(OrionEjbJarHelper.java:82)
    at oracle.jdeveloper.xml.oc4j.ejb.OrionEjbJarHelper.findOrCreateOrionEjbJar(OrionEjbJarHelper.java:73)
    at oracle.jdeveloper.ejb.modeler.diagram.dropHandler.TableDropEJBCommonHandler.processTableNodes(Unknown Source)
    at oracle.jdeveloper.ejb.modeler.diagram.dropHandler.TableDropEJB21Handler.processTableNodes(Unknown Source)
    at oracle.bm.typemodel.dropHandler.TableDropSubHandler.processDBObjectNodes(Unknown Source)
    at oracle.bm.typemodel.dropHandler.DBObjectDropSubHandler.processObjects(Unknown Source)
    at oracle.bm.diagrammer.dropHandler.AbstractChooserDropHandler.processObjectsImpl(Unknown Source)
    at oracle.bm.diagrammer.dropHandler.AbstractChooserDropHandler.processObjects(Unknown Source)
    at oracle.bm.addinUtil.IDEAppContext$4.performAction(Unknown Source)
    at oracle.bm.diagrammer.LockMonitor.performLockedAction(Unknown Source)
    at oracle.bm.diagrammer.BaseDiagram.performDiagramLockedAction(Unknown Source)
    at oracle.bm.addinUtil.IDEAppContext.dropNavigatorNodeLater(Unknown Source)
    at oracle.bm.addinUtil.IDEAppContext$5.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Action
    If further errors occur, you should restart the application.
    Also, report the problem on the JDeveloper forum on otn.oracle.com, or contact Oracle support, giving the information from this message.

  • Can not find product , sku attributes data in database table

    Hi there,
    I find it really strange to find data in database related to product and sku. I set up the commerce reference store and store is up and running fine. Catalog is fine too. I am not able to find data related to sku attributes in database.
    I have a product_id xprod2511 which has 11 child skus such as xsku2511_1, xsku2511_2 and so on. sku xsku2511_1 is blue color and size 4. When I search for this two sku attributes (color and size) information in dcs_sku_attr table with sku_id as xsku2511_1, no rows returned. In fact, I looked into few other sku tables but I am not able to find the information about color and size of a sku in any database table.
    this is the query I am running:
    select * from dcs_sku_attr where sku_id = 'xsku2511_1'
    Can someone please let me know the table name where this information regarding color and size resides in?
    Thanks a lot.

    In dyn/admin If you try and view the definition file of ProductCatalog repository, then under sku item descriptor you would see the color and size property which would be under some table tag, that table tag table name should be the table holding these values.
    the other question(may be silly) is that I hope that you are executing sql in correct schema, that is cata or catb schema (select * from catA.dcs_sku_attr) where the actual product catalog data resides.

  • Dropping database table

    Hi there,
    I have dropped a database table using:
    drop table tablename cascade constraints;However, in plsql developer table window i can still see the table upon refreshing. When i run a select * from statement in the intelli sense of plsql devloper i still the table name in the list but it gives an exception when executing the query "table does not exist". When i try to re-create the table it complains the table with constraint already exists...
    I am extremely confused as to what's happened here, it also appears in the owner under all_tables view. Could you someone please assist me in how i could clean this up?
    Thanks,
    Rohan

    Does your table perhaps have some 'weird tablename'? What is the tablename?
    And was it created with quoted identifiers? (Tablename between ", the double quoutes)
    Does using: drop table "tablename" cascade contraints; make any difference? (Note the quoted identifiers, perhaps you need to play with upper/lowercase)
    Or drop table "tablename" cascade contraints purge; ?

  • Creating table on production database

    Hi expert I want some real time knowledge
    If a user requested create a table on production database where DBA a should contact 1st.
    form where dba get approval for create table.
    Thanks & Regards
    Sanat

    are you asking who should DBA contact to ask if its ok to create a table for a user request?
    is there a process in place to handle user requests? Follow it. If there isnt, put one in place and ask user to follow it too.
    usually some managers approval which then comes to you to review.

  • New JNDI name created for each drag and drop of database table into table

    Hi All,
    I'm using Netbeans 5.5 with Visual Web Pack with Mysql as backend. Whenever I drag and drop a database table into table component it creates new JNDI (data source) name for each table. I want to use single JNDI name for all tables. If I change the JNDI name to default name then the design disappears and shows error . Is there any option to set the JNDI name unique for all tables?
    Thanks in advance.

    Hi again,
    Well I've tried using the MouseListener / MouseMotionListener approach but it doesn't quite seem to work, although it does get the events correctly. I think the reason is that it doesn't interact correctly with the Java DnD machinery which is something that V.V hinted at. It's something that I may need to look into if / when I have more time available.
    I have to say though that I haven't had any problems with scrollbars - we're making fairly heavy use of large tables and if you drag over a table with a scroll bar and move to the top or bottom then it scrolls as you would expect and allows you to drop the data where you like. For this situation I've used pretty much the same approach as for the toy example above except that I've implemented separate source and destination TransferHandlers (the source table is read-only, and it really doesn't make sense to allow people to drag from the destination table so I've essentially split the functionality of the example handler down the middle).
    I'm not actually particularly in favour of messing too much with the mechanics of DnD, more because of lack of time than anything else. Guess I'll just have to put up with this for the moment. Doesn't help that DnD is so poorly documented by Sun.
    Thanks for all your help.
    Bart

  • How to Insert a record in a database table in debugging mode in production

    Hi,
    How to Insert a record in a database table in debugging mode in production ?
    Waiting for kind response.
    Best Regards,
    Padhy
    Moderator Message : Duplicate post locked.
    Moderator message : Warning. Don't create multiple threads for same question.
    Edited by: Vinod Kumar on May 12, 2011 11:02 AM
    Edited by: Vinod Kumar on May 12, 2011 11:04 AM

    Hi Senthil,
    Regards,
    Phani Raj Kallur
    Message was edited by: Phani Raj Kallur

  • Adding new column to production database

    I have to add a new timestamp column, that defaults to the current date/time, to an existing production database. The table is large - 150M records. I am trying to understand the ramifications of adding a new column to a table this large that gets hit often, mostly with inserts and reads. The column does allow null values and I am not going back and populating existing records with a value. Basically, I am looking for some best practice guidelines - how to prepare, what to expect, what other processes should be followed along with this schema update.

    Radiators wrote:
    Thanks, I have not found any %TYPE or %ROWTYPE dependencies on the table I am altering. But at the same time I do not understand how these types of dependencies would invalidate packages. I wouldn't be breaking any %TYPE dependency because I am not dropping columns, only adding a new one. And according to documentation for %ROWTYPE - "If columns are later added to or dropped from the table, your code can keep working without changes." Can you point me to Oracle documentation that describes your concern in detail? Thanks.you can test it yourself
    SQL> CREATE TABLE abc (c1 NUMBER);
    Table created.
    SQL> INSERT INTO abc
      2       VALUES (99);
    1 row created.
    SQL> CREATE OR REPLACE PROCEDURE test_proc
      2  AS
      3     v   abc%ROWTYPE;
      4  BEGIN
      5     SELECT c1
      6       INTO v
      7       FROM abc
      8       WHERE ROWNUM = 1;
      9  END;
    10  /
    Procedure created.
    SQL> SELECT object_name, status
      2    FROM user_objects
      3   WHERE object_name = 'TEST_PROC';
    OBJECT_NAME                STATUS
    TEST_PROC                    VALID
    SQL> ALTER TABLE abc ADD (c2 VARCHAR2(10));
    Table altered.
    SQL> SELECT object_name, status
      2    FROM user_objects
      3   WHERE object_name = 'TEST_PROC';
    OBJECT_NAME                 STATUS
    TEST_PROC                     INVALID
    SQL> you should also consider the chance that some where if people are using "select * into" using this table, which will fail since you added new column. i don't see any unusual performance bottlenecks by adding a new column. in case of the backups, yes the earlier backups will not have the column. if you restore it, you will see earlier table structure itself. i have one specific question. why are you not attempting this in development/test environment first? even if it is a simple insert, it's always important to do it in test environments before attempting on production db. one thing for sure i know is, after adding column, you will have to recompile all the invalid dependencies. i think, it's better if you attempt it in test db and come up with any issues you see rather than asking a general question where problematic scenarios are plenty and rarely unknown before hand.

  • Database table wrongly update

    Hi team,
    I have one big production database; under this production database one very important table is there.
    Here I am updated the table wrongly, but I have table backup before updating  the table.
    Here how we can restore the backup table into old backup table.

    In your case, Its better to use the same condition to update the value from backup tables by joining the columns on a key combination.
    update T1
    set T1.<column1>=T2.<column1>,
    T1.<Column2>=T2.<Column2>
    FROM <TableName> T1 INNER JOIN <Table_Backup> T2 on T1.id=T2.id
    Where t1.id between 100 and 1000
    OR
    If there are no inserts/updates/deletes happen after the change, then you can try dropping the original table and rename the backup table by re-creating all the metadata
    -Prashanth

  • No data in Portal Database tables for Activity Report

    Hi experts,
    I've developed an Activity Report application in SAP Portal 7.0, which went live but the report shows no data.
    We are pulling data from 2 portal database tables: WCR_WEBCONTENTSTAT and WCR_USERPAGEUSAGE
    In non production environment there is data in the report but there is no data in the production environment.
    The Activity Report service is already activated/started and set to true.
    What could have caused this? And what should we check now?
    What other configurations/setup should be done?
    Regards,
    Greg

    Hi Greg,
    Those are the aggregated tables. If they are not filled with data although the Portal Activity Report is activated, you should check whether the aggregation finished successfully.
    In the older SPs there were some problems that were fixed in later SPs of 7.0.
    In order to have the latest version of Portal Activity report, you can check SAP note 1084379 - Portal Activity Report - Latest Version (SDA file).
    You can compare the SP via the MANIFAST file, as it contains the version and SP number.
    In order to troubleshoot problems in Activity Report, you can follow SAP note: 1690023 - Portal Activity Report - Component-specific Note
    Some basic checks that you can do:
    Run query on the raw data tables to check since when there is data in those tables:
    select min(timestamphour) from SAP<SystemID>DB.WCR_WEBCNODESTAT;
    If there is too much data from long time ago, then you should delete the old data, and leave only the new data (there is anyways retention time for the data to be kept).
    If there is no data, then it means that the Portal Activity Report does not collect data, and not really activated (usually this is not the case).
    The aggregation runs every top of the hour, so you can check in the default traces for an error during that time.
    In most of the cases something went wrong while aggregating the data.
    As a result the aggregation is not finished, so the transaction is not being committed, and the aggregated tables stay empty.
    If there is a DuplicateKeyException in the trace, you can follow SAP note 1054145 - Duplicate Key Exception.
    If you have any more questions, please don't hesitate to ask.
    I hope this information helps,
    Thanks & regards,
    Michal Zilcha-Lang

  • How to get a graphical overview of my database tables

    I am looking for a tool to get a clear overview of my database tables.
    the db structure is fairly simple at this moment, and I only need to see the tables with their "links" (foreign keys).
    I was not able to find such a tool in the enterprise manager package.
    thanks a lot for any help
    Pascal - Gent, Belgium
    [email protected]

    Oracle Designer will allow you to reverse engineer an ERD from an Oracle database. I don't know of any reason why it wouldn't work with 8i Lite.
    There are also other products which work with multiple database types. I recall ERWIN was such a product.

  • How to upload data to a "CLOB" datatype field in a database table

    Using sqlldr what is the correct way to upload character data (far greater than the 4000 Bytes allowed in varchar2)?
    setting the table field name datatype to clob and then using the field name against a large dataset in the control file I get the error that the input record (field) is to large.. adding "clob" after the table field name in the sqlldr control file just gives me a syntax error..
    Running Oracle 9.2.0.6 on Solaris 9

    user511518,
    I think you're in the wrong forum. Perhaps you should start with this Web page:
    http://www.oracle.com/technology/products/database/utilities/index.html
    Look for the SQL*Loader links.
    Good Luck,
    Avi.

  • Auto Incrementing a field in a database table

    Hello All,
    I have created a database table for generating a unique ID, based on two key fields; Product and Area.
    For a particular Product and Area,the ID generated should be unique, and it will be the third field of my table.
    Is there any possible way by which i can generate the ID automatically,based on the Product And Area entered? The ID should also be automatically incremented based on the next entry.
    Can anyone help me in resolving this problem?
    Also, if i am deleting a particular Product and Area, will it be possible to remove the ID generated by it?
    Thanks In Advance.
    Shino.

    Hi,
    If you are using a generated maintenance screen and populating the data manually your approach will need to be different.
    It could be possible to use a user exit in the generated screen to populate your ID field, but you will face the risk that the user will be able to presumably over-type the ID or enter their own value.
    Consider your overall requirement and design, it may be that a generated maintenance sceen is not the most suitable way to build this functionality.
    Regards,
    Nick

  • ADF Security from Database Table

    I have two database tables one holding username and password and other username and role.
    I want to secure my ADF application based on this. I have already gone through the following link ->
    http://www.oracle.com/technology/products/jdev/howtos/1013/oc4jjaas/oc4j_jaas_login_module.htm
    But, after configuring all the things for embedded J2EE server also I am finding some problem. It's not trying to connect with the database.
    If any other links or sample projects, you can mention that will be helpful for understanding.

    Hi,
    check the data source name that you use with the LoginModule. Use Enterprise Manager in OC4J to verify that the data source can connect to the database. If not, change the data source's connection information. This most likely is your problem.
    Frank

Maybe you are looking for

  • Adobe Photoshop Elements 8.0 Has Stopped Working

    I am running PSE 8.0 on my Windows 7 pc. I installed it about two weeks ago and it ran fine. As of early this week after launching, I get to the opening screeen where I can Organize or Edit (or go to the the advertisements or tour). If I start the to

  • HT201263 how to sync ipad with different computer than first synced

    How can I sync my ipad to a new computer than originally synced with?

  • REPORT TO GET CUBE OR VOLUME  AGAINST PO DUMP

    Hello Experts... I am new to MM and looking for the report where I can dump POs and get the  no of cube for each PO. Or in other words in which report I can find total volume for POs dump. The table and field name is MEPO1312-VOLEH2 Your help will be

  • Pages - Tables (and Charts) - how to make a list

    Hello everyone! Question. How do I name the tables? Underneath the table. E.g. Table 1 - Statistical Data. And then have pages keep track of all tables in a document, in a separate list at the beginning of a document (with perhaps an ability of track

  • Random order of adverts in inDesign document

    Hi! I have a monthly publication with about 18 pages of adverts with two to 6 adverts on each page. Every month I have to randomly change the order to make sure sometimes people are towards the fropnt, sometimes near the back. Is there any plugin or