To find the tables

Hi Folks,
In my schema several times several inserts are performed on tables. I want to find the tables in which the records inserted recently
is alert log file helpful?
but i dontknow how to check in toad
please shed some light
thanks

assuming you have aforementioned timestamp
(ours is a column called create_dt on the majority of our tables )
and you wanted to see the number of inserts as of a given time.
WITH t AS (SELECT DISTINCT table_name
             FROM all_tab_columns
            WHERE column_name = 'CREATE_DT')
SELECT table_name,
       TO_NUMBER (
          EXTRACTVALUE (
             xmltype (
                DBMS_XMLGEN.
                 getxml (
                      'select count(*) c from '
                   || table_name
                   || ' where create_dt > trunc(sysdate-1)')),
             '/ROWSET/ROW/C'))
          num_rows_inserted_yesterday
  FROM t
ORDER BY num_rows_inserted_yesterday DESC;we also have one called delete_dt but I everytime I query this column I get no rows returned :)
Edited by: pollywog on Jun 23, 2011 4:55 PM

Similar Messages

  • Crystal Reports Cant Find the table

    Hello ,
    I have a problem when i try to preview a report Crystal Reports says that cant find the table , it happend when add a table that in his name has an underscore example "SALES_REP" , im working with CR 2008 and open access ODBC driver.
    Can you help me with the problem?
    Thank you
    Manuel

    Hello,
    Try installing all CR patches and then test using OLE DB. If not an option we need to know more details of the database and driver/client?
    I recall this may be an issue and not sure if it's been patched or not. Try searching here to see if anyone else has had this problem.
    Thank you
    Don

  • Using column value is it possible to find the table name in the database?

    Hi all,
    using column value is it possible to find the table name in the database?
    guys i need the table value
    Note:
    oracle-9i
    for example:
    i don't know NIC(column value) in which table in the database.
    Thank you,
    with regards,
    JP.
    Edited by: Guest on Feb 27, 2012 5:42 AM

    Hi,
    As far as I understand what you are asking for I would suggest 4 data dictionaries that will help you to know the table name from the column names
    1. USER_TAB_COLS
    2. ALL_TAB_COLS
    3. DBA_TAB_COLS
    4. COLS
    These can give you detail information about the columns and respective tables at user, schema, dba level. Further information on the table can be found by querying ALL_OBJECTS table giving table_name as Object_name, or you can join the data dictionaries too.
    To know about various data dictionaries avalible in Oracle please query select * from cat;
    Let us know if you need further assistance.
    Twinkle

  • Regarding finding the table name for a field in R12 forms

    Hi all,
    I need to know how to find the table name for a field in R12. I am working on extracting the employee information but i need to know how to get the table names for the fields.
    Thank you,
    raj

    Please see these threads.
    How to find table name in ebs
    How to find table name in ebs
    E-Business tables
    E-Business tables
    Thanks,
    Hussein

  • 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

  • Find the Table of Content in Pdf

    Hi,
    How can i find the Table of Content in a particular PDF?.
    Is this possible in itext?
    Thanks,
    nithi.

    When converting a FrameMaker book to PDF, the PDF may include bookmarks for additional paragraph tags (on top of those specified in the book's PDF setup)
    The workaround is to specify PDF Setup in the individual file. For example, open your TOC, select Format > Document > PDF Setup, and make sure that the Heading1TOC, Heading2TOC... paragraph tags are not included in the bookmark setup.
    Shlomo Perets
    MicroType * http://www.microtype.com
    FrameMaker training & consulting * FM-to-Acrobat TimeSavers
    "Improve Your FrameMaker Skills" live web-based training sessions

  • Is it possible to find the  table based on the Date ?

    Dear Team ,
    Is it possible to find the table based on the Date ?
    I have created an table ,But forgot the Table Name .
    Is it possible to find the Tables created on particular Date .
    Regards ,
    Augustine

    as date is record the time also below query will work.
    select * from user_objects
    where
    object_type = 'TABLE' and
    to_date(created,'DD-MON-YYYY') =to_date('<your date value in DD-MON-YYYY format>','DD-MON-YYYY');
    Edited by: shaileshM on Feb 24, 2010 9:39 PM

  • Basic technique to find the tables that get AFFECTED

    5.can anyone please explain tables that get affected when we create sales order.
    similarly like this we have many,,,is there any basic technique to find the tables that get AFFECTED.

    Steps :
       Execute ST05  and activate trace
       and Create VA01 tran(sales order)
      And Deacftivate ST05(SQL Trace)
    U can know All tables Afftected .
    Thanks
    Jagadeesh

  • 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 --

  • How can i find the tables which dont contain any data under my database ?

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    Regards,
    Renu

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    For the schema that you've logged in to, you could do something like this:
    test@XE>
    test@XE> @test
    test@XE> --
    test@XE> set serveroutput on size 1000000
    test@XE>
    test@XE> declare
      2    n_count  number;
      3  begin
      4    for rec in (select object_name from user_objects
      5                where object_type = 'TABLE')
      6    loop
      7      execute immediate 'select count(*) from '||rec.object_name
      8      into n_count;
      9      if (n_count = 0) then
    10        dbms_output.put_line(rec.object_name);
    11      end if;
    12    end loop;
    13  end;
    14  /
    BONUS
    RUN_STATS
    PL/SQL procedure successfully completed.
    test@XE>
    test@XE>For the other schemas, you could query from dba_objects and probably display the owner as well.
    HTH
    isotope

  • Where can I find the Tables script that are used in the Documentation

    Hello All,
    Where can I find the Tables script that are used in the Documentation, Like Sales, Customers, employee, department.......
    Appreciate any Help
    Thanks & Regards
    Madhu K

    10g
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14198/scripts.htm#sthref77
    9i
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96539/scripts.htm#4216

  • 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

  • Find the table names in a package body

    How to find the table names in a package body in single query .(SQL).

    Hi,
    you can find dependent objects of a package from below query
    select distinct referenced_name ,REFERENCED_TYPE from ALL_DEPENDENCIES where name = 'PACKAGE' and  referenced_owner not in ('SYS','PUBLIC') and referenced_type = 'TABLE';
    Thanks
    Handle: user12057782
    Status Level: Newbie
    Registered: Oct 13, 2009
    Total Posts: 5
    Total Questions: 4 (4 unresolved)
    mark answered if helpful/correct
    Edited by: CKPT on Nov 22, 2010 1:21 PM

  • Help to find the table name in MTE class properties in RZ20

    HI,
    In Tcode - Rz20
    - Expand 'SAP ERP Monitor Templates'
    - double click on 'SAP ERP Monitor Templates'.
    - expand the server and instance
    - expand 'OperatingSystem'
    - expand 'CPU'
    - select 'CPU_Utilization' and click 'properties'.
    -  I need to Find the table where the fields 'properties of' and MTE class field are stored.
    Thanks,
    Thileeban

    See Note: 605089.1 - How To Find Table / View Objects Behind Self Service / Newer R12 Screens?
    Once you follow the note, you can go to About this page > expand all > find the query that the page is running.
    Also see Hussein's suggestion in How to find "Who Columns" behind Self Service / OA Framework pages
    Sandeep Gandhi
    Edited by: Sandeep Gandhi, Independent Consultant on Mar 13, 2012 10:22 AM

  • Please help me to find the table for fields where the descriptions are give

    please help me to find the table for fields where the descriptions are given below
    Customer Support Administrator
    first line Support indicator

    You could also try table DD01T. In se 16,put in the description thats needed,you will get to know the respective data elements.
    Then you can use DD03L to find the respective table. This would work if the data element is not generic.
    Regards,
    Anubhav.

Maybe you are looking for

  • Spool Problem

    Hi Guys, I'm running a report in background. Basically I have scheduled this report, it mails the report in PDF format. My problem is with the print parameters, the format which i define while scheduling this report, changes when it is run. When I ch

  • HT2731 how can i create an account to sell my music?

    how can i create an account to sell my music?

  • Can I buy an iPhone 5 from Verizon, unlock it, and use it with AT

    I have an android phone on AT&T currently, and I am looking to switch to an iPhone 5. My wife has a non-smartphone, and she does not want to switch to another phone. However, if we move to Verizon, she will HAVE to switch to another phone. So my ques

  • ALV - Call transction

    Hi , I am using REUSE_ALV_GRID_DISPLAY to display ALV. My requirement is that when user selects a row and press change button (Custom created) it should take me to PP01. The issue is in PP01 field PM0D1-SEARK doesnu2019t have Parameter ID. Is there a

  • Error in allocating ExciseJV number Num. generation Part2 Serial J_1IRG23A2

    Dear All We are Unable to post Document through J1IH --> Additional Excise for particular Excise group. The error shown is as "Error in allocating Excise JV number Number generation Part2 Serial J_1IRG23A2". Altough we have maintained the Excise numb