How to find the user who dropped the tables

Hi All,
Some one has dropped 5 tables in the production database that has caused a SEV1 but thankfully we are having those tables in recyclebin and we are restored those with out data loss.
But I want to know who has dropped those tables and want to know who has connected to database at that time. Can you please guide me in this how to find out....
Database version: 11.2.0.2 version
Thanks
Kk
Edited by: 908098 on Jan 18, 2012 4:23 AM

Or you can use this kind of audit (i had used this some time ago)
-is pretty detailed but is good for auditing purpuse.
hope this helps
CREATE TABLE AUDITORIA_ESQUEMA (
operation VARCHAR2(30),
os_user VARCHAR2(30),
obj_owner VARCHAR2(30),
object_name VARCHAR2(30),
object_type VARCHAR2(30),
sql_text     VARCHAR2(64),
attempt_by VARCHAR2(30),
attempt_dt DATE,
Ip_adress VARCHAR2(15));
CREATE OR REPLACE TRIGGER AUDITORIA_ESQUEMA
BEFORE CREATE OR ALTER OR DROP OR RENAME or alter
ON DATABASE
DECLARE
oper varchar2(200);
sql_text ora_name_list_t;
i      PLS_INTEGER;
BEGIN
SELECT ora_sysevent
INTO oper
FROM DUAL;
i := sql_txt(sql_text);
IF oper IN ('CREATE', 'DROP','RENAME','ALTER') THEN
     INSERT INTO AUDITORIA_ESQUEMA
     SELECT ora_sysevent,(select sys_context('USERENV','OS_USER') from dual)
, ora_dict_obj_owner,
     ora_dict_obj_name,ora_dict_obj_type, sql_text(1), USER, SYSDATE,
     (select SYS_CONTEXT('USERENV', 'IP_ADDRESS') from dual)
     FROM DUAL;
ELSIF oper = 'ALTER' THEN
     INSERT INTO AUDITORIA_ESQUEMA
     SELECT ora_sysevent,(select sys_context('USERENV','OS_USER') from dual)
, ora_dict_obj_owner,
     ora_dict_obj_name,ora_dict_obj_type, sql_text(1), USER, SYSDATE,
     (select SYS_CONTEXT('USERENV', 'IP_ADDRESS') from dual)
     FROM sys.gv_$sqltext
     WHERE UPPER(sql_text) LIKE 'ALTER%'
     AND UPPER(sql_text) LIKE '%NEW_TABLE%';
END IF;
END AUDITORIA_ESQUEMA;

Similar Messages

  • How to find a user who created message in satelite system ?

    hi all,
    Does anybody know how to find a user who created message in satelite system, but when there is no business partner created for him in Solman ? In tx crm_dno_monitro, crmd_order or dnotifwl  there isn`t any information. Is there any Tx or something where i can check it ?
    Regards,
    M.

    Hi,
    BP should ne maintained for the user in satellite system as a identification in solman system.
    how you are trying to create a message in satellite system..
    if you are using help-> create support message then, you can get the message log details on the table BCOS_PROT.
    please update us
    Thanks,
    Jansi
    Edited by: shivjansi on Jan 25, 2012 7:44 PM

  • How to find the tables in OM

    Hi All,
    How to find the tables in Oracle order mangement and what are the links of the tables in oracle OM
    Thanks & Regards
    srikkanth.M

    How to find the tables in Oracle order mangement and what are the links of the tables in oracle OMeTRM
    http://etrm.oracle.com
    Thanks,
    Hussein

  • How to find the tables of datasource

    Hi
    can anyone tell me how to find the tables from where the datasource is extracting data?
    I have a datasource 0CO_PC_ACT_02 which i thought was extracting data from MBEW, but my MBEW table has only around 1000 records but while scheduling the data load of infopackage my PSA shows more than 4000 records.
    How does this happen?
    Thanx in advance
    Sujai

    Hi,
    yes it is mainly MBEW as well as MBEWH (history of MBEW); in adition you have some article ledger data (table ckmlhd) from which some records could be added; MARV as well...
    You can check in function module KKBW_XBEW_BW_GET_DATA_IS1 all the details.
    hope this helps...
    Olivier.

  • How to find the tables

    Could any one tell me how to find the tables for this Datasource 0GLACCEXT_T011_HIER and theExtract structure is  ROHIEROS.But I did'nt see any fields on it.
    In the Extract structure there is only one fields is OLTPSOURCE.
    Could any one explain me how  this hierarchy data get populated into BW. Its very urgent
    Thanks in advance
    Taj

    http://help.sap.com/saphelp_bw33/helpdata/en/64/032de5ff014c4c86bc15272216a5e2/frameset.htm
    table RFDT.. check the link
    and also http://help.sap.com/saphelp_erp2005vp/helpdata/en/af/6837bb0e954b7ab47aca5d9fce1101/frameset.htm
    null

  • How to find out users who have answered security questions

    Is there any report where we can find out users who have answered security questions.
    Please reply back to this.

    This might help you:
    Define a task template, reference the UserQuestionReport task definition:
      <TaskDefinitionRef>
        <ObjectRef type='TaskDefinition' id='#ID#TaskDefinition:UserQuestionReport' name='User Question Report' displayName='UI_REPTS_XML_USER_QUESTION_TITLE'/>
      </TaskDefinitionRef>Define desired variables
          <Attribute name='attrListField'>
            <List>
              <String>accountId</String>
              <String>policy</String>
              <String>loginInterface</String>
              <String>questions</String>
            </List>
          </Attribute>
          <Attribute name='attrMapField'>
            <Map>
              <MapEntry key='accountId' value='UI_REPTS_XML_REPORT_ATTR_ACCOUNTID'/>
              <MapEntry key='loginInterface' value='UI_ATTR_LOGIN_INTERFACE'/>
              <MapEntry key='policy' value='UI_SERVICEMODIFY_JSP_ACCOUNTPOLICY'/>
              <MapEntry key='questions' value='UI_ATTR_MIN_QUESTION_UNANSWERED'/>
            </Map>
          </Attribute>and the rest of the task template for a report definition.
    Hth
    Edited by: nickoarg on Feb 5, 2009 1:57 PM

  • How to find the table in which data from a structure sits

    Hi,
    I want to know how to find the exact table where data sitting in various structures during runtime are stored.
    For instance,in ME23N we have various tabs and data in those are held in various structures. This we can see by checking the technical setting of each field.
    I want to know in which table the data is actually stored for each field and how to find them.
    Any other means other than using "WHERE USED" option?
    Thanks
    CM

    After checking for technical field from the screen, when you reach out to structure, you can dbl click on the particular field's data element. From this data-element you can get to know in which tables it is used. Also if the data element refers to some master data field then you can check out its domain and in the domain you can refer the<b> value table</b> for that domain. This is what i will do if i am not sure about anything.
    Hope it will help a little.
    Jignesh.

  • How to find the tables which are the candidates for gathering stats in 10g

    Hi,
    In 10g how can we find the tables, partitions which are the candidates for gathering the stats.
    I want to findo those tables, partitions and gather the stats on daily basis.
    Thanks,
    Mahi

    The probem you describe has been posted about before. There are known issues with the default dbms_stats parameter settings for some environements.
    What you can do is just go ahead an manually submit dbms_stats commands with appropriate parameters for tables that have not been analyzed or modify the maintenance window to give it more time.
    I would rather just generate the missing statistics myself then the job can continue to run in the normal maintenance window. Since the job should be looking only for tables that meet the stale requirements then once everything is analyzed it is likely the job can keep the statistics updated in the default time allowed.
    Be warned that the default parameter settings do not work well for some tables in some environments and if that proves true for your shop you can generate workable statistics on a table and then lock them so the nightly job ships regenerating the statistics for that table. You would then manually unlock, generate, and lock that statistics for that table as necessary.
    HTH -- Mark D Powell --

  • Urgent-How to find the tables which are used in  DB02 transaction

    Hi,
    Can anybody help me in finding the tables  in Tablespaces tabstrip & Tables n Indexes tabstrip  in DB02 transaction??

    Hi,
    open the following link.
    http://books.google.co.in/books?id=jTTrZjucb_QC&pg=PA37&lpg=PA37&dq=dbo2%2Bsap&source=web&ots=FgA9pC3u24&sig=sOG3EJRm5HGW2aFpkVVH_oxBjjo&hl=en#PPP1,M1
    Master data load failure
    Reward if Helpful
    Jagadish

  • How to find the Table in extractor ?

    Hi experts,
      I would like to know how to find out the table involved for extraction for a datasource which is being extracted by function module?
      In this case i would like to know Table involved in FM BWSM_PM_GET_ORDCST?
    Thanks in advance
    arun

    Hi,
       Explaination given was really good. I understood the COSS and COSP has the same structure and COSP is the main table for PM extraction. Is that right?
       I just want to understand how the key figures for 16 periods are aggregated.
    In the Base FM "BWOM_RS_GET_ORDCST",
        APPEND_FIELDLIST: 'OBJNR',
                          'GJAHR',
                          'WRTTP',
                          'VERSN',
                          'KSTAR',
                          'VRGNG',
                          'BEKNZ',
                          'TWAER',
                          'PERBL',
                          'MEINH',
                          'WTG+++',
                          'WOG+++',
                          'WKG+++',
                          'MEG+++',
                          'PAROB',
                          'BELTP',
                          'HRKFT'.
    ...get data...........................................................
        GET_DATA.
    But in the actual extract structure i have only one amount key figure. Based on what i can extract only the Value CO Currency amount "WKG+++" data?
    Is there any document available to explain Order cost and allocation extraction?
    Thank you
    arun
    Message was edited by: Arun Prasad

  • How to find the tables corresponding to a particular field in datasource.

    Hi Experts,
    There are lot of extra fields in the structure like MCEKKN as compared with the table EKKN. The data in these fields are coming from some other table.
    So can u tell me how to find these tables corresponding to these fields?
    Let me be more clear..
    I want to know that the data in the datasource like 2LIS_02_ACC are coming from lot of tables.
    How can I find those tables corresponding to each field in the extraction structure.
    I have tried with ST05...as well as by filling setup tables in debbugging mode..but I am still in lot of confusion.
    Please try to help me....U will get good points in response.
    Thanx.
    Vinod.

    Hi Vinod,
    Why are you trying to enhance the extractor because the steps you are following is tio enhance the structure
    <i><b>like transferd one of the field from pool to selection criteria</b></i>
    If you want to see only the fields of the extractor and from which table it is coming you just have to see the pool only.
    There in the lef you have the fields which are already present  in the extractor and in the right you have the avaialbale fields present.
    Also in the two selection pools if you will see carefully you will find in each selection pool
    "Table name" and then the "field name" and then description of the field data type and length.
    Like in case of 2lIS_13_VDITM you will find all the fields coming from VBRK and VBRP and VBUK.
    Just check it you will get an idea.
    In this way you can find that which field in the extractor is coming from which of fields of the table.
    I think this is what you want to know.
    If not clear then do reply
    Thanks

  • How to find the tables were the objects are stored

    how to find in which tables the form layout and print program are saved i know for form as tnapr but for other objects i want to know
    Moderator message: please (re)search yourself before asking, provide more details when posting again.
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    locked by: Thomas Zloch on Sep 10, 2010 10:55 AM

    you gave us not enough information, and your question is unclear as well.
    kinda hard to help yah.
    besides in table TNAPR there are no forms stored... table TNAPR stores the assigning of the form and driver program and starting routine to an output type.

  • How to find the tables of se09

    Hi,
      I have developed an external application in vb i want to get the data from the se09 transaction.
      Can anyone help me how to find and get the version related date and the request number and the request status from sap.
    Adv-Thanks & Regards
    Guhapriyan

    Hi Guhapriyan,
    with txn se49 you can check which table is used by a
    particular txn in your case se09.
    If se49 is not available in your system then
    Create ur own transaction and give this program name and Screen Number.
    Program name - SAPMSEUZ
    Screen number - 200
    hope it'll help you.
    Regards,
    Narinder Hartala

  • How to find the Table from which a Custom table is created.

    Hi Gurus,
    I have a custom table in SAP and want to figure how that has been created. How can I do that?
    Regards
    Prashant

    Hello Prashant,
    what do you mean by "how"?
    When you say custom table do you mean "Customization table" or a "Customer table" (in namespace Z... or Y...)
    Anyway, you can access SE11 transaction, view the table and then check its attributes.

  • How to find the tables accessed by  the proxy?

    Hi,
         I have a sync abap client proxy. It makes a call to xi and gets the responce. How do i know, what are all the tables it is updating after getting the response. I am not ABAP developer,  i need help.
    Regards
    Monika

    Monika
    Check the following wiki, might be helpful
    Outbound Sync:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    Inbound Sync:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    If you have any questions let me know..I will try to clarify
    Learn Share Get Better

  • How to find the tables name in R3 datasource

    I am looking to find out the tables were used for that Datasources(0m_cc0_9). Pls let me know the steps to find out thsi.
    Thanks
    Taj

    Hi Tamkris
    1. First go to help.sap.com and simply search for the datasource. You would come to a page where detailed description of the datasource is given.Just note that SAP sometimes plays spoilsport and for few Datassources it doesnt give the table names. But in your case for 0CO_OM_CCA_9, details are given.
    2. If in some cases table names are not given, simply go to rsa3. open another session ST05. Activate the trace.In Rsa3, enter the datasource name. And then run extraction. Go to ST05 switch off the trace and then view the log.
    In the log, all tables that are hit are shown
    3. And if all this doesnt help, start debugging the datasource. TYpically these would be function module based. So dig in!
    Hope this info helps
    Prakash
    Assigning points is a way of saying thanks on SDN!

Maybe you are looking for

  • RAC - Oracle Grid Infrastructure configure failed

    Hi, am trying to install 2 node RAC on Oracle VMs. Before the installation during the -preinst check there were few issues which were resolved (ex user equivalence). After that during the installation process of the Grid it failed at step "Configure

  • How do I install on to a new macbook air laptop?

    How do I download from disk Adobe Acrobat X Pro onto my Air Macbook?

  • How to replicate database in 10g

    hi i want to use 10g replication option. i have installed 10g database release 10.2, grid control release 10.1 but still unable to find the replication option from the enterprise manager (web-based)

  • Retain Links in PDF

    When finding an article on the Web, is there a way to save to .pdf and preserve the links within the articel?

  • Error: Unable to resolve resource bundle "fiber" for locale "en_US".

    Hi all, Im trying to create a resources.swf file for the purpose of dynamic localization of our application. However, I keep getting this error thrown when I try to run the ant script. Im running Flash Builder 4, the sdk is Flex 4.5.1 with AIR 3.0 an