Query to find biggest table in oracle ERP database?

Hi
I would like to see the biggest table in Oracle ERP database, can anybody provide me the query?
Thanks
Ateeq

Hi
Thanks. Actually, last week all of a sudden 1GB growth of database happen in one day. In our Oracle ERP instance, every user is attaching many documents to purchase orders. So our management is interested to know which table or file system directory is having this much of growth? We want to restrict the users for not uploading every document with purchase order as it will fill-up our server hard disk soon.
Regards
Ateeq

Similar Messages

  • 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

  • How to find encrypted columns in oracle 10g database

    Hi,
    How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
    my question is apart from this is there anyother views or tables?
    Thanks..

    user602872 wrote:
    Hi,
    How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
    my question is apart from this is there anyother views or tables?Hmm not which I could find,
    SQL> select * from dict where lower(table_name) like '%encrypted%';
    TABLE_NAME
    COMMENTS
    DBA_ENCRYPTED_COLUMNS
    Encryption information on columns in the database
    ALL_ENCRYPTED_COLUMNS
    Encryption information on all accessible columns
    USER_ENCRYPTED_COLUMNS
    Encryption information on columns of tables owned by the user
    SQL>HTH
    Aman....

  • List user tables in oracle 9i database

    Hi,
    Im new bi to oracle database...,
    Will anyone provide me the command to list the user tables in oracle 9i database.??.
    im using linux redhat 4.0... and oracle 9i database....
    thanks,
    vasanth....

    user12864080 wrote:
    Hi,
    Im new bi to oracle database...,
    Will anyone provide me the command to list the user tables in oracle 9i database.??.
    im using linux redhat 4.0... and oracle 9i database....
    thanks,
    vasanth....
    SELECT ... FROM USER_TABLES;=================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THIS LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • How to create a table in Oracle Lite database?

    Hi,
    I have installed SOA 10.1.3 on my laptop. Now I am trying to create a table in the database to do some own examples. I have problem in installing oracle database. So I am trying to create a table in Oracle Lite database which comes with SOA suite. I am not able to do it, can some body suggest me please?
    Regards
    Khaleel

    HI James,
    Thank you so much. I am able to create table and insert rows and able to select them too. However I am not able to use these tables in my BPEL process for my practice. The DB adapter is throwing some error, any idea?
    --khaleel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Take up Oracle ERP database responsibilities.

    Hi all,
    How to take up oracle ERP database responsibilities from old DBA mean to say which aspect should i consider most important.
    Thanks.

    - A - wrote:
    Hi all,
    How to take up oracle ERP database responsibilities from old DBA mean to say which aspect should i consider most important.
    Thanks.RMAN backups & being able to recover DB

  • Query to find dependency of an oracle VIEW

    Hi,
    I'm using oracle 10g database.
    DB name is - ORCL
    ORCL DB consists two schemas - Schema1 and Schema2
    I have one Oracle view called VIEW1 in Schema1.
    I need to find whether Schema2 uses VIEW1 in any of the Tables,views or Programs owned by Schema2.
    Is there any query available to find this one?
    Regards,
    Karthik

    How about querying the dba_dependencies view?
    SQL> conn / as sysdba
    Connected.
    SQL> conn aman/aman
    Connected.
    SQL> create table t as select * from scott.dept;
    Table created.
    SQL> create view v1 as select * from t;
    View created.
    SQL> grant select on v1 to scott;
    Grant succeeded.
    SQL> conn scott/tiger
    Connected.
    SQL> create view v_dependant as select * from aman.v1;
    View created.
    SQL> conn / as sysdba
    Connected.
    SQL> desc dba_dependencies
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    NAME                                      NOT NULL VARCHAR2(30)
    TYPE                                               VARCHAR2(18)
    REFERENCED_OWNER                                   VARCHAR2(30)
    REFERENCED_NAME                                    VARCHAR2(64)
    REFERENCED_TYPE                                    VARCHAR2(18)
    REFERENCED_LINK_NAME                               VARCHAR2(128)
    DEPENDENCY_TYPE                                    VARCHAR2(4)
    SQL> select owner, name , type from dba_dependencies where name='V1' and owner='AMAN';
    OWNER                          NAME                           TYPE
    AMAN                           V1                             VIEW
    SQL> select owner, name , type, REFERENCED_OWNER, REFERENCED_NAME from dba_dependencies where name='V1' and owner='AMAN';
    OWNER                          NAME                           TYPE
    REFERENCED_OWNER
    REFERENCED_NAME
    AMAN                           V1                             VIEW
    AMAN
    THTH
    Aman....

  • Query to find out tables using view

    Hi
    I have a views using three tables.Now i wanted a query to find out number of views using three tables
    I have written a query
    select * from dba_views where text like '%SELECT%;
    It is giving me error as ora error EXPECTED NUMBER GOT LONG.
    Appreciate your help?

    SELECT DECODE(referenced_type, 'NON-EXISTENT', '.....',
    referenced_type) || ' ' || referenced_owner ||
    '.' || referenced_name r_name, ' is referenced by: ' ||
    type || ' ' || owner || '.' || name name,
    ' Referenced Link: ' || DECODE(referenced_link_name,
    NULL, 'none', referenced_link_name) r_link
    FROM dba_dependencies
    -- WHERE owner NOT IN ('SYS', 'SYSTEM')
    -- and rownum < 50
    ORDER BY 1,2;
    add your own where clause to it

  • What are MD_ tables in Oracle 12c database?  What is their purpose?

    I just set up an Oracle 12c database with the purpose of migrating an existing Oracle 11.2.0.2 database.  Our application developers are a bit confused when it comes to the schemas suddenly having MD_ tables they did not create.  Any help is appreciated.

    I just set up an Oracle 12c database with the purpose of migrating an existing Oracle 11.2.0.2 database.  Our application developers are a bit confused when it comes to the schemas suddenly having MD_ tables they did not create.  Any help is appreciated.
    Did you do this using sql developer and the migration workbench to create a repository?
    See if anything in this article rings a bell:
    http://oraexplorer.com/2008/06/oracle-sql-developer-migration-workbench/#sthash.gNFtpafS.dpbs
    Next, you will need to create a repository. An database account, which has CREATE SESSION, RESOURCE, and CREATE VIEW must be created first. Then logon into SQL Developer as that account. From the tool, create a repository from Migration menu > Repository Management > Create Repository. This process creates a bunch of MD* and MIGR* tables and packages.
    I ask because you said you 'set up an Oracle 12c database' but then implied your developers are accessing it.
    Most people experimenting with 12c create a multitenant database which has a CDB and one PDB that contains the sample schemas.
    You typically would NOT allow developers access to the CDB; that is for admin purposes only. So, hopefully, if you developers access anything it is ONLY the sample PDB or a PDB that you have created from the seed.
    Make sure you, and your developers RTFM about the new multitenant architecture or you will all get horribly confused when you try to do simple things like create users or issue grants. All of that works VERY differently in 12c.
    See chapters 17 and 18 of the Database Concepts doc
    http://docs.oracle.com/cd/E16655_01/server.121/e17633/cdbovrvw.htm
    Pay particular attention to the discussion of 'common' and 'local' users. And a hidden 'gotcha' is that the PDBs will NOT be started/opened by default when you do a 'startup' of the database. If you create common users those users will NOT be created in PDBs that are not open; so there is the potential to have to do perform a lot of manual maintenance if you need to add those users to PDBs that weren't open at the time you added the users.

  • Hw to find the tables in the Portal Database

    Hello,
    I'm new to this Portals. I would like to know where the database tables stored in Portal Database. We are using the Oracle as the database. Can you please tell me where can I view the database tables.
    thnx in advance
    cheers
    murali

    Hi Murali,
    they are stored in a database which has the same name as your instance, for example J2E. KMC tables (most of them - if not all - starting with "KMC_") are stored within the same database as the portal tables are (this wasn't the case for EP5 and EP6 SP2 on 6.20).
    Anyhow, you shouldn't touch or trying to access these tables directly. Two reasons for this: (a) there are APIs for (almost) everything which can be accessed from the DB tables, even if sometimes not documented. Anyhow, the DB schema isn't documented, too, so you should choose the "upper layer"; (b) the DB schema is subject to change without notice (and this is also done regulary); whereas the released (=documented) APIs are stable and the non-released are at least quite stable, too.
    Hope it helps
    Detlev

  • SQL query to find out last login for each database

    Hi everybody,
    I have a view with following columns:
    DatabaseSid, lastLogin, firstLogin.
    I want to now the newest last_login date for every database.
    SID First Login Last Login
    e.g. Database1, 11.11.2011, 01.12.2011
    Database1, 01.04.2012, 01.05.2012
    Database3, 03.03.2004, 03.06.2005
    Database 3 07.09.2012, 12.10.2012
    How can I do a query to find out for eacht DB (DB1, DB2 and so on) the Last_Login Date?
    Thank you in advance
    Steve

    Steve wrote:
    Hi everybody,
    I have a view with following columns:
    DatabaseSid, lastLogin, firstLogin.
    I want to now the newest last_login date for every database.
    SID First Login Last Login
    e.g. Database1, 11.11.2011, 01.12.2011
    Database1, 01.04.2012, 01.05.2012
    Database3, 03.03.2004, 03.06.2005
    Database 3 07.09.2012, 12.10.2012
    How can I do a query to find out for eacht DB (DB1, DB2 and so on) the Last_Login Date?
    Thank you in advance
    SteveI'm curious as to how you collect this information from multiple databases into one database, and of what value the data is once you have it.

  • How to find custom table in Oracle EBS

    Hi experts,
    I am looking for the query that can find out all custom tables/objects in Oracle EBS? For some reasons, the custom tables/objects's name does not follow any standard. That a reason why I cannot find all custom objects in database. If you have that query, please share with me.
    Thanks in advance
    Hieu

    I am looking for the query that can find out all custom tables/objects in Oracle EBS? For some reasons, the custom tables/objects's name does not follow any standard. That a reason why I cannot find all custom objects in database. If you have that query, please share with me.There is no direct way to list the custom objects in the database/application unless you follow the customization standard (naming convention).
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Find+AND+Custom+AND+Objects&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Custom+AND+Objects+AND+Naming&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Need a query to find a table by two of its column names

    I work in software quality assurance. Oftentimes I am trying to figure out from which table data is being pulled, but the database has thousands of tables to look through. Instead of looking through all the tables, I just take a guess at one of the column names and execute a query like this:
    SELECT table_name FROM information_schema.columns WHERE column_name like '%pur%code%'
    That usually works, but occassionally it can return hundreds of table names which doesn't help me much. Instead, I'd like to form a query that could take two column names and return all the tables that have those columns.
    So, in English, I want to say:
    "Give me the names of all the tables that have a column named like %pur%code% and another column named like %client%loc%"
    How do I do this?

    One might have hoped that the QA guy actually had sufficient documentation to tell him which table information was "pulled from".
    (or is he actually checking that the documentation is accurate and complete .... )
    SQL> select phrase from well_known
             where upper ( phrase ) like '%PIG%' and upper ( phrase ) like '%FLY%'

  • Query to find relevant Table name

    Hi i need a SQL query which should return me relevant table names. i.e. if there is table 'EMP' , then query should give table names with below result:
    EMP
    EMP_1
    EMP_2
    EMP_3
    EMP_4
    i.e. All tables which is starting with EMP (No Hardcoding of table, It should be dynamic way).I know we can achieve through SELECT * FROM USER_OBJECTS WHERE OBJECT_NAME LIKE 'EMP%'.
    But here object_name i will passing dynamically.
    Actually my main purpose is to create backup tables i.e. EMP is main table and EMP_1,EMP_2,EMP_3 .. EMP_100 is backup table.Now whenever i am making the any changes in EMP table, then i should take the backup of exiting EMP table and backup data should go to EMP_101 (as last table with sequence is EMP_100).
    Any idea in SQL , PL/SQL i would appreciate .
    Thanks

    here is a way:
    set serveroutput on
    declare
    tab_name varchar2(30) := 'EMP';
    new_tab_name varchar2(30);
    begin
      for i in (
            select * from (
                select t.*,
                        row_number() over(order by t.table_name desc) as row_nr ,
                        min(table_name) over () as originiall_table
                        from all_tables t
                where table_name like tab_name||'%'
            ) where row_nr = 1
      ) loop
        new_tab_name := substr(i.table_name, 1, instr(i.table_name, '_') - 1 )
                        ||'_'
                        || (TO_NUMBER(substr(i.table_name, instr(i.table_name, '_') + 1 )) + 1 ) ;
        execute immediate 'create table '||new_tab_name||' as select * from '||i.originiall_table;   
      end loop;
    end;but why do you want to keep too many copies of tables in db?
    anytime you will get problems with tablespaces.

  • Synonym required to query custom tables from Oracle Apps database

    When creating an Answers report that queries from a table owned by a custom schema (not APPS), I cannot query the table and get error. Once I add a Synonym for APPS on this table, then OBIEE works normally.
    Since OBIEE is logging in as the APPS user, are Synonyms required for all non-APPS tables/views or is there another feature of the Administrator where it can store the table alias (our typical owner of custom tables is XXFI)?

    OK, well "compare" can mean one of two things: Compare structure or compare contents. Here is a quick script to compare column structures of two tables on one database:
    (select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:OWNR1
    and table_name = :tablename
    minus
    select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:ownr2
    and table_name = :tablename)
    union all
    (select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:ownr2
    and table_name = :tablename
    minus
    select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:ownr1
    and table_name = :tablename)
    If this query returns any rows, then these indicate that there are structural differences between the tables. We do a minus in both directions to ensure that an additional column in either schema will be returned in the query.
    If you are going across dblinks to remote tables then you have to amend the "dba_tab_columns" to "sys.dba_tab_columns@yourdblink"
    If you also want to compare indexes, triggers, etc then do the same sort of thing for the associated dba_ views for those objects.
    And if you want to compare table contents, then often the fastest way is also to check minuses in both directions, if the tables are not too big:
    e.g.
    (select * from schema1.table@dblink1
    minus
    select * from schema2.table@dblink2)
    union all
    (select * from schema2.table@dblink2
    minus
    select * from schema1.table@dblink1)
    local tables, of course, simply omit the "@dblink" issues.
    There are tools to help in such things. TOAD, for example, has a pretty good schema comparison tool, and there are plenty of other options out there. But if you need to script this yourself then the logic I've shown is a good starting point.
    Cheers,
    Mike

Maybe you are looking for

  • BSP - UserId and Password for Internal Users - Anonymous for other users

    Hello, We developed an application via BSP's. This application can be accessed by two kind of users. 1. External Users, with should access the page without using a userId and password. 2. Internal Users, they will have more authorisation and need to

  • Problems Printing to Shared Windows Printer Via SAMBA (foomatic error 255)

    I can NOT print from my MacBookPro to a printer that's shared out from my Windows PC. Of course, printing to this same printer from my PC works fine. Please help me resolve this printing problem. Read on for more details regarding my printing woes! I

  • How to export data to multiple csv files?

    Hey Scripting Guys, As stated by the name I'm a novice at scripting.  Typically I'm able to resolve most of my scripting challenges by reading through your site or scouring the internet.  This challenge I haven't been able to resolve.  Please help!!

  • Downloads not working in Firefox 4.0

    When I try to download a manual from this link, my screen goes blank... http://www.vizio.com/vm230xvt.html#support If I transfer the link to IE 8, it works fine.

  • Moving emails from Mail on Mac to Outlook Express on Windows...

    Can anyone help me with the following scenario? I have one Mac computer, with 2 accounts set up on it - one for me, one for my wife. My wife just recently got a Windows 'netbook' and now wants to transfer her entire Mail.app InBox to the new PC. Ther