Query to fetch all tables created by user

Hi All,
I am Joshi. I would like to draft a query which will return all the tables created by me in one day. Can anyone give me the query to do so.
Thanking you
Joshi

To get list of tables owned by X and created on 16-May-2007
ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY HH24:MI:SS';
SELECT OBJECT_NAME,CREATED
FROM DBA_OBJECTS
WHERE OBJECT_TYPE='TABLE'
AND OWNER='X'
AND CREATED BETWEEN '05/16/2007 00:00:00' AND '05/16/2007 23:59:59';
Change the date to the one of your choice
Regards

Similar Messages

  • Need a query to list all table names

    I have more than 500 tables in my database.
    'insert_date' & 'update_date' columns are found in more than 100 tables with data type as date.
    I need a query to list all table names and 'insert_date' , 'update_date' column's content.
    Please Help
    Lee1212
    Message was edited by:
    LEE1212

    I have more than 500 tables in my database.
    'insert_date' & update_date column is found in more
    than 100 tables with data type as date.
    I need a query to list all table names and
    'insert_date' column's content.What do you mean by "column's content". A table can have many rows. Do you want to display all the distinct value for these columns?
    Below is the query to get the tables which has columns insert_Date and update_date
    select table_name
    from user_tab_columns
    where column_name ='INSERT_DATE'
    or column_name ='UPDATE_DATE'
    /You can write a PL/SQL block to retrive the distinct values of INSERT_DATE for these tables
    declare
    TYPE ref_cur IS REF CURSOR;
    insert_date_cur ref_cur;
    lv_insert_date DATE;
    cursor tables_list IS
    select table_name
    from user_tab_columns
    where column_name ='INSERT_DATE';
    begin
    for cur_tables in tables_list
    loop
      OPEN insert_date_cur for 'SELECT DISTINCT insert_date from '||cur_tables.table_name;
      DBMS_OUTPUT.PUT_LINE(cur_tables.table_name);
      DBMS_OUTPUT.PUT_LINE('--------------------------------');
      LOOP
      FETCH insert_date_cur into lv_insert_date;
      EXIT WHEN insert_date_cur%NOTFOUND;
      DBMS_OUTPUT.PUT_LINE(lv_insert_date);
      END LOOP;
    CLOSE insert_date_cur;
    end loop;
    end;I haven't tested this code. There might be some errors. Just posted something to start with for you.

  • Export all tables' name under user by informatica

    Hi,
    I have a requirement about informatica mapping,
    we want to user one mapping to export all tables' name under user,
    like sql :
    SELECT t.OWNER || '.' || t.TABLE_NAME ||
    FROM all_tables t
    WHERE t.OWNER = 'BIEBS';
    How to realize it?
    Thank you!

    Get the table all_table in source analyzer save it. While building the map choose this as ur source, modify source qualifier as select table_name,table_name from all_tables where table_name='BIEBS'.
    Once u have this, use an expression transformation to build ur expression and load it into a flat file.
    Please mark this answered or helpful if it solves your purpose.
    Rgds.

  • Query to fetch all the responsibilities for which OA page is attached

    Hi Team,
    please help me to prepare a query to fetch all the responsibilities for which OA page is attached.
    thanks in advance
    Thanks & Regards,
    Sriram T

    Hi,
    Querys which you have provided was helpful.
    But i was struck with the following issue. As the function is not excluded directly it may be excluded via a menu to the responsibility.
    Even though it is displaying the responsibility name.
    The following query is used to display the responsibility name with menu and function exclusions.
    please help me on this.
    SELECT r.RESPONSIBILITY_NAME
    FROM
    fnd_responsibility_vl r,
    fnd_form_functions f
    WHERE f.function_name = 'VSFFFRMADMN'--f.form_id =p_form_id
    AND r.menu_id IN (SELECT me.menu_id
    FROM fnd_menu_entries me
    START WITH me.function_id = f.function_id
    CONNECT BY PRIOR me.menu_id = me.sub_menu_id)
    and r.menu_id not in (select frf.action_id
    from fnd_resp_functions frf
    where frf.action_id=r.menu_id
    and frf.rule_type='M')
    and f.function_id not in (select frf.action_id
    from fnd_resp_functions frf
    where frf.action_id=f.function_id
    and frf.rule_type='F')
    Thanks
    Sriram T

  • BO SDK Query to find all folders that a user has access to

    Hi Experts
    Please help me on BO SDK Query to "find all folders that a user has access in a single query".
    I am tried trial & error using PARENTS & CHILDREN. nothing worked
    Please advice
    Thanks!
    Prasath

    Hi Aasavari
    I am checking BO Web services samples and .NET samples. Please advice me the correct files to check the user/folder rights.
    Thank you so much
    Prasath
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETWebServicesSDKSamples

  • Query should fetch all the query details in the system.

    Hi All
    We  are looking for a query which will fetch all the query details in the system along with the user names either who has created the query or who has run it atleast once.
    If any of the queries are not used for a long time then we  can delete it with the user's/owner's approval.
    Is there anyway we can desing such query .
    Thanks
    Asim

    Hi,
    Thanks for the reply.
    My requirement is that we want to create a new query which should fetch the details information of already existing queries.
    Like who has created that query, how frequently the use it etc...
    Whenever we run the new query it should give information of all other existing queries.
    Thanks and Regards
    Asim

  • Query to get all tables related to a given table directly or indirectly

    Does anyone have a query to get a list of tables that are directly or indirectly related to a given table by foreign keys?
    I used a CONNECT BY clause to get a list of all child tables and their child tables and so forth by going against the ALL_CONSTRAINTS table. I then UNIONed the result with another query that got all the parents/grandparents etc. for this table.
    I realized that I then need to get all the other child tables of these parent tables and their children and it sort of ran into an endless number of unions because we're traversing up and down a tree and are starting out from the middle.
    Is there a better way to do this?
    Thanks,
    Mohit

    Hello!
    Do you know transaction SUIM. From there you can find all roles with a given authorization. If you need a function maybe you can look which functions are used behind SUIM. For the tables check the table behind the fields in the transaction with F1.
    Best regards,
    Peter

  • EXP: Export all tables for one user except the contents of one table

    I need to export all tables (> 100 Tables) of an user except the contents of one table. Is there a possibility to call the EXP command and exclude the one table ??
    Thanks in advance .-)
    (Oracle11G)
    Edited by: gromit on Feb 14, 2011 4:41 AM

    It is not possible to perform it from a client. Is this correct? The datapump task itself can be started from a client, but - you are right - datapump is server-based. Especially that refers to the dumpfile location, which has to be defined as DIRECTORY on the server:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/dp_overview.htm#i1007107
    Werner

  • View list of tables created by user

    How can I see a list of tables that I, as a user, have created in Oracle9i (assuming that I am just a user and not an administrator)?
    Thanks,
    Pattie

    'select table_name from user_tables' will give you list of all the tables you own.
    'select object_name,object_type from user_objects' will show you all objects (tables,indexes,views,synonyms,procedures,triggers etc) that you own.

  • Query to select all direcotries created

    how can i get a list of my directories i created using plsql
    eg
    select * from all_directory

    for logical database directories that you created
      select * from all_directories;for physical directories on the server
    -- Get a directory listing from a remote FTP server.
    DECLARE
      l_conn  UTL_TCP.connection;
      l_list  ftp.t_string_table;
    BEGIN
      l_conn := ftp.login('ftp.company.com', '21', 'ftpuser', 'ftppassword');
      ftp.list(p_conn   => l_conn,
               p_dir   => '/u01/app/oracle',
               p_list  => l_list);
      ftp.logout(l_conn);
      IF l_list.COUNT > 0 THEN
        FOR i IN l_list.first .. l_list.last LOOP
          DBMS_OUTPUT.put_line(i || ': ' || l_list(i));
        END LOOP;
      END IF;
    END;
    /

  • Create user with read access for all tables SAP SID .*

    Hello all,
    could you please help me ? I would like to grant select privilege on all tables SAP<SID>.* for newly created user.
    I have created standard database user (not exclusive).
    I`m able to grant select for individual tables, but I would like to grant select for this user on all SAP<SID>
    schema in simplier way
    But as far as I know, the schema`s owner name must be different then schema name.
    Any idea please ?
    Thank you.
    Pavol

    create user <user_name> identified by <password> <options>;
    grant read on all tables:-
    CREATE OR REPLACE PROCEDURE GRANT_SELECT AS
    CURSOR ut_cur IS
    SELECT table_name
    FROM user_tables;
    RetVal NUMBER;
    sCursor INT;
    sqlstr VARCHAR2(250);
    BEGIN
    FOR ut_rec IN user_tabs_cur;
    LOOP
    sqlstr := 'GRANT SELECT ON '|| ut_rec.table_name
    || ' TO <user_name>';
    sCursor := dbms_sql.open_cursor;
    dbms_sql.parse(sCursor,sqlstr, dbms_sql.native);
    RetVal := dbms_sql.execute(sCursor);
    dbms_sql.close_cursor(sCursor);
    END LOOP;
    END grant_select;
    Edited by: varun4dba on Jan 18, 2011 4:13 PM

  • How to find a dependent row in the all tables using single SQL query

    hi all,
    I have created some table with master and some dependent tables.I want to mark a (row)tuple as inactive in master so that corresponding child records also should be marked as inactive.
    So i decided to mark the master and dependent records as inactive starting from master table and traverse to child tables.
    So I need SQL query to fetch all dependend records to the row(marked row in the master ) from the master table and dependent rows from the child row and to mark as flag inactive.
    can anybody help me out to build this query or any other way to mark flag as inactive ?
    Regards
    punithan

    You can find dependant tables from ALL_CONSTRAINTS, e.g:
    SQL> CREATE TABLE m (id INT PRIMARY KEY, flag VARCHAR2(1) NOT NULL);
    Table created.
    SQL> CREATE TABLE d1 (m_id REFERENCES m, flag VARCHAR2(1) NOT NULL);
    Table created.
    SQL> CREATE TABLE d2 (m_id REFERENCES m, flag VARCHAR2(1) NOT NULL);
    Table created.
    SQL> SELECT table_name, owner, status
      2  FROM   all_constraints c
      3  WHERE  c.constraint_type = 'R'
      4  AND    ( c.r_owner, c.r_constraint_name ) IN
      5         ( SELECT owner, constraint_name
      6           FROM   user_constraints
      7           WHERE  table_name = 'M'
      8           AND    constraint_type IN ('U','P') );
    TABLE_NAME                     OWNER                          STATUS
    D2                             WILLIAMR                       ENABLED
    D1                             WILLIAMR                       ENABLED
    2 rows selected.There is no SQL command to apply all updates in one go, if that's what you were looking for.
    AFAIK the word "tuple" is for mathematics and relational theory, and does not refer to a physical row in a database.

  • Query help - Fetch employees working on two consecutive weekends(SAT/SUN)

    Hello Gurus,
    I have the following requirement and i need your help on this.
    We have a table with all employees effort logged in for the days they have worked. a sample data is given below
    TD_date     Emp_id     Effort     Archive_month
    2-Mar-13     123     8     Mar-13
    9-Mar-13     123     8     Mar-13
    2-Mar-13     213     4     Mar-13
    3-Mar-13     213     4     Mar-13
    24-Mar-13     213     8     Mar-13
    9-Mar-13     312     4     Mar-13
    10-Mar-13     312     4     Mar-13
    16-Mar-13     312     8     Mar-13
    In the above sample data, we have employee 123 who worked on consecutive SATURDAY and 312 who worked on consecutive weekends (9th, 10th and 16th March) but the employee 213 worked on 1st weekend and 4th weekend of the month(Archive_month). So the output should return the employees who worked on two consecutive weekends as below.
    Emp_id
    123
    312
    I have written a query to fetch all employees who worked only on a SAT or SUN which is given below, but i am not able to return the employees who worked on consecutive weekends and i need your help.
    select emp_id, count(*)
    from timesheet_archive
    where archive_month = '03/2013'
    and trim(to_char(td_date,'DAY')) in ('SATURDAY','SUNDAY')
    group by emp_id having count(*) > 1
    order by td_date desc
    Please help me with an approach in SQL or PL/SQL to generate a report of employees who worked on two consecutive weekends.
    Thanks,
    Edited by: 999145 on Apr 9, 2013 11:08 PM
    Edited by: 999145 on Apr 9, 2013 11:10 PM

    hi Manik,
    thanks for your response!!
    Please find the below create and insert scripts for your testing.
    I am also validating the output with my requirement. Thanks for your help!
    create table timesheet_archive as
    (TD_date date,
    Emp_id number(19,0),
    Effort Float,
    Archive_month varchar2);
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 123,8,'03/2013');
    insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 123,8,'03/2013');
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 213,4,'03/2013');
    insert into timesheet_archive values (to_date('3-MAR-2013','dd-MON-yyyy'), 213,4,'03/2013');
    insert into timesheet_archive values (to_date('24-MAR-2013','dd-MON-yyyy'), 213,8,'03/2013');
    insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 321,4,'03/2013');
    insert into timesheet_archive values (to_date('10-MAR-2013','dd-MON-yyyy'), 321,4,'03/2013');
    insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 321,8,'03/2013');
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 124,8,'03/2013');
    insert into timesheet_archive values (to_date('9-MAR-2013','dd-MON-yyyy'), 124,8,'03/2013');
    insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 124,4,'03/2013');
    insert into timesheet_archive values (to_date('23-MAR-2013','dd-MON-yyyy'), 124,4,'03/2013');
    insert into timesheet_archive values (to_date('16-MAR-2013','dd-MON-yyyy'), 241,8,'03/2013');
    insert into timesheet_archive values (to_date('23-MAR-2013','dd-MON-yyyy'), 241,4,'03/2013');
    insert into timesheet_archive values (to_date('24-MAR-2013','dd-MON-yyyy'), 241,4,'03/2013');
    insert into timesheet_archive values (to_date('2-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
    insert into timesheet_archive values (to_date('3-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
    insert into timesheet_archive values (to_date('30-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');
    insert into timesheet_archive values (to_date('31-MAR-2013','dd-MON-yyyy'), 412,8,'03/2013');

  • Stop ADF from fetching all data on startup

    Hi all,
    I have built an ADF page with a search form on it. Goal here obviously is to search the DB for certain user entered criteria. The problem now is that ADF fetches all data before the user has enetered anything. Pretty annoying, as it takes about 5 minutes to fetch the 1 mil records over VPN. And not very performant either...
    How can I stop ADF from doing this?
    Thanks,
    Stijn.

    Hi,
    2 topics here that I'll address one after the other
    1. ADF fetches nothing. The business Service layer does. If you use ADF BC for example then you can define the number of records that are fetched initially. If you use EJB then this kind of intelligence is all yours to implement. Same then for POJO and Web Service. If you are working with a million of records, think about using query hints in your query to boost performance.
    2. To solve your issue
    - assuming you use ADF BC: Set the iterator to find mode or set the query condition to where it finds no hits. If your query uses bind variables then it is enough to not provide a default value for the bind variable. Another option is to use a invokeAction method and set the iterator into findMode upon page load
    - If you use EJB, make sure the initial query also doesn't return any hits
    Note that for the refresh property on teh iterator there are other conditions like "deferred" that you may want to try out
    Frank

  • NEED HELP!!!!! Create Tablespace, User, and Schema

    Hello Everyone,
    I am kind of confuse with Oracle 10g since i am doing it first time. I am trying to accomplish to create a user for my WORLD database and by using Report Builder 10g to generate reports.
    I have been told that i need to create a Tablespace in my WORLD database in order to log-in to the Report Builder. When I am trying to log in to Report Builder i have to enter
    UserName:xxx123
    Password:password
    Database:@@@.WORLD -- where you see @@@ i have to put my tablespace where i have to store my all tables and assign user to this table space that i have been told so far.
    so here what i did.
    I create a new database name WORLD
    created New tables Space name mySpace
    but when i was tyring to create table through Enterprise Manager
    On create table screen i enter table Name EMPLOYEE
    ask me to select Tablespace : mySpance
    ask me to select Schema: (when i scroll down i saw my username) ??? so I am kind of confuse how do i make this stuff work?
    Can anyone give me simple direction or steps that i need to follow.
    I am trying to use Report Builder10g and using Oracle Database to access data.
    Please anyone can give me suggetion asap. Its vrey important for me since i just got new entry level job.
    Thank You

    I have two TNSNAMES.ORA file
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora90\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    OEMREP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = OEMREP.broadvoice.com)
    WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = world)
    DEV1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = Dev1)
    DEVAM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = devam)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = KAM)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Also, I checked in Services that my oracleserviceWORLD was running. So, my database run when i start my computer.
    Please let me know if there is anything wrong. I am very thankful to you that you are helping me out. I do appreciate your kind help.
    Thank You

Maybe you are looking for

  • How do I add a reminder for a future date in my reminders with the os 7

    How do I add a reminder for a furure date in my reminder?  I can't find a calendar anywhere in reminder so that I can select a date and then type my reminder.

  • Installation hangs, then doesn't recognize eth0 + other problems

    I have so far successfully installed Arch on two other computers and although I am new to Arch, I'm fairly experienced Linux user in general. I bought this computer http://www.woot.com/Blog/BlogEntry.aspx - tryId=4109 and I decided to install Arch on

  • DMVPN HUB router behind NAT

    we are getting new sip trunks put in and in order for the provider to put them in the Providor put in a router to control all web traffic so they can QOS the voice that means our VPN routers will go behind the nat barrier. but when i switched the rou

  • Popup on Pageload?

    Hi, I'm wanting to have a have a popup appear when users first enter my site. Basically I have a band website that users, in order to see the next upcoming show, have to navigate to the "Shows" link in order to see the next upcoming show. I'd like to

  • What Changes to Software Update Group Causes Clients to Re-check Compliance

    Hello, I have a number of software update groups that have been deployed over the past couple of years. When Microsoft release new updates etc. some of the updates already deployed change their status e.g. an update might get marked as expired. As a