Newbie ques : How to get the list of all tables in the database

Hi,
I'm very new to Oracle (using Oracle8i currently). I wanted to know if there is a way to get the list of all tables in the database. Like in mySQL you can use the command " show tables" to get the list of all the tables.
Any help will e greatly appreciated. Please "cc" any reply to [email protected] also.
thanks
Deven

Hi
Select table_name, owner from all_tables;
will give u all the tables in the database.
all_tables, dba_tables, user_tables
all_objects, dba_objects, dba_objects
there are many, more tables. login as system and query the tab and try to describe the tables.
Thanks
Malar

Similar Messages

  • Table to get the list of all tables in the database

    hi,
    please let me knwo the table where i can get the list of all tables in the database

    hi,
    please let me knwo the table where i can get the list
    of all tables in the databaseHi Michael,
    Will you EVER start reading some documentation?
    I guess it's not far that many regulars won't reply to those kind of questions.
    Believe me, reading doesn't hurt (well, at least, most of the times).
    Rgds,
    Guido

  • How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query

    How to retrieve Task Lists from All Subsites to the Parent Site and display in  Grid view using CAML Query + object model

    do u just want task list or items under task list for all subsites
    for items use spsitedataquery ref
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
    for tasklist only u can a simply use a for loop to find in all subsite
    Manish Sati

  • How to get a list of values used in the WHERE filter of stored procedures and functions in SQL Server

    How can I get a list of values (one or more) used in the WHERE filter of stored procedures and functions in SQL Server?
    How can get a list of values as shown (highlighted) in the sample stored procedure below?
    ALTER PROC [dbo].[sp_LoanInfo_Data_Extract] AS
    SELECT   [LOAN_ACCT].PROD_DT,
                  [LOAN_ACCT].ACCT_NBR, 
                  [LOAN_NOTE2].OFCR_CD, 
                  [LOAN_NOTE1].CURR_PRIN_BAL_AMT, 
                  [LOAN_NOTE2].BR_NBR,
    INTO #Table1
    FROM
                    dbo.[LOAN_NOTE1],
                    dbo.[LOAN_NOTE2],
                    dbo.[LOAN_ACCT]
    WHERE
                    [LOAN_ACCT].PROD_DT = [LOAN_NOTE1].PROD_DT
                    and
                    [LOAN_ACCT].ACCT_NBR = [LOAN_NOTE1].ACCT_NBR
                    and
                    [LOAN_NOTE1].PROD_DT = [LOAN_NOTE2].PROD_DT
                    and
                    [LOAN_NOTE1].MSTR_ACCT_NBR = [LOAN_NOTE2].MSTR_ACCT_NBR
                    and
                    [LOAN_ACCT].PROD_DT = '2015-03-10'
                    and
                    [LOAN_ACCT].ACCT_STAT_CD IN
    ('A','D')
                    and
                    [LOAN_NOTE2].LOAN_STAT_CD IN
    ('J','Z')
    Lenfinkel

    Hi LenFinkel,
    May I know what is purpose of this requirement, as olaf said,you may parse the T-SQL code (or the execution plan), which is not that easy.
    I have noticed that the condition values in your Stored Procedure(SP) are hard coded and among them there is a date values, I believe some day you may have to alter the SP when the date expires. So why not declare 3 parameters of the SP instead hard coding?
    For multiple values paramter you can use a
    table-valued parameter. Then there's no problem getting the values.
    If you could elaborate your purpose, we may help to find better workaround.
    Eric Zhang
    TechNet Community Support

  • How do I run sp_spaceused for all tables in a database?

    Hi,
    I am struggling to understand how to run the sp_spaceused sproc for all tables in a database.
    I know how to use it for one table but how would I replicate it automatically for each table in a given database?
    Regards,
    Ian.

    I just managed to alter the code of VidyaSagar and have pulled out all the information including Schema name. Below is what it looks like:
    set
    nocount
    on
    select
    'Database Name: ',
    db_name
    if
    exists(select
    name from tempdb..sysobjects
    where name='##tmp'
    drop
    table ##tmp
    create
    table ##tmp(TABLE_SCHEMA
    nvarchar(256),TABLE_NAME
    nvarchar(256),
    num_rows int,
    reserved_KB varchar(15),data_KB
    varchar(15),index_KB
    varchar(15),unsed_KB
    varchar(15
    go
    declare
    @tbl_schema nvarchar(256
    declare
    @tbl_name nvarchar(256
    declare
    @schema_tbl_name nvarchar(256
    declare
    tblname CURSOR
    for
    select
    TABLE_SCHEMA
    TABLE_NAME
    from
    INFORMATION_SCHEMA.TABLES
    where TABLE_TYPE='BASE
    TABLE' 
    open
    tblname
    Fetch
    next
    from tblname
    INTO @tbl_schema,@tbl_name
    WHILE
    @@FETCH_STATUS
    = 0
    BEGIN
    set @schema_tbl_name=@tbl_schema+'.'+@tbl_name
    insert
    into ##tmp(TABLE_NAME
    , num_rows
    , reserved_KB
    ,data_KB
    ,index_KB
    ,unsed_KB
    exec
    sp_spaceused
    @schema_tbl_name
    update ##tmp
    set TABLE_SCHEMA
    =@tbl_schema
    where TABLE_SCHEMA
    is
    NULL
    and TABLE_NAME=@tbl_name
    FETCH
    NEXT
    FROM tblname
    INTO @tbl_schema,@tbl_name 
    END
    CLOSE
    tblname
    deallocate
    tblname
    go
    select
    from
    ##tmp
    drop
    table ##tmp
    Warm Regards, Ajay

  • How to get a list of all the clients logged in to the network

    hiii
    how can i fetch a list of all the users who are currently logged on the network...so that the list can then be sent to a database..plz tel me what techniqe can followed to do this....thanx

    hiii
    how can i fetch a list of all the users who are
    currently logged on the network...Easy, nobody logs onto the network so this is always nobody.
    You may be asking, how do I determine all the users who have logged in to all the PCs on the network.
    Write a program which is added to each user's Startup a program which updates the database with their details. If you have network scripts, this can be added to the user' network login batch script.

  • Reporting In Service Manager 2012 - How To Get A List Of All Service Requests Regardless of Status

    Within the Custom Reporting Options available to users of Ssystem Center Service Manager 2012, which would one use to create reports that do not contain any agregated data but are instead detail level info such as a list of all Service Requests reardless
    of status?  I want to include within the report the same data you see on the main page of a Service Request when you double-click a Service Request within Service Manager and it pops opne the details of the Service Request.
    I'm trying to get the following info for each Service Requests
    SR ID (i.e. SR1234)
    Affected User
    Title
    Description
    Priority
    Source
    Area
    Support Group
    Assigned To
    Created By and Created On
    I know the cubes w/Excel offer a great way to get data for a **piece meal report or for getting agregated data (I.E. counts, sums, avergares, Max's & Mins) but I need a report that has zero totals and no agregations. 
    Thanks
    ** A piece meal report is a report that has to be manually pieced together by combining data from others reports and other sources because no single report can be constructed to bring all the data togethere into a single report.  If you've ever
    worked with an accountant taht uses Excel for everything but who has no idea how SQL or databases in general are deisgned then chances are you've either been asked to create a piece meal report for them and or seen them do one them selves when they open a
    spreadshet and dump into it disperate data from a variety of sources and then ask you why you can't automate that same report for them.

    the following thread covers some good SQL queries to get details about the Incident Request, just amend them to cover the Service Request
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/e703641d-3e05-4df4-be2b-bf9bd62534f8/how-to-generate-incident-report-with-incident-description-field-in-scsm-2012-sp1

  • How to Get a List of All XMLElements (Follow up to previous posting)

    (CS5, Win7, 64Bit)
    I need a collection (or array, etc.) of all the XMLElement objects in a given document in flat form (just like the "Structure Tree"'s hierarchichal view - only flatened).
    I could not find any "normal" way (i.e., built-in property or method) to get at the information. Instead, I found that I had to recurse through the entire XMLElement tree, starting with the Root Element. For a large document, this can take close to a ten minutes, and sometimes I have to do this for an InDesgin Book containing over ten enormous INDD files.
    After "கற்பனை Imagine" responded to my previous post about how to get all the XMLTags, I assumed that myDocument.xmlElements would return a collection of all the XMLElements in the Document. Unfortunately, it does not - it returns only the Root XMLElement. Thus, I have to recurse therough the hierarchy of XMLElements under the Root XMLElement - which takes a very long time.
    There HAS to be a better way, right?
    Would it be better were I to recurse through all PageItems in the document and then recurse through each PageItem's XMLElement tree? I assume that wouldn't make a big difference either way.
    I'm open to suggestions...
    TIA,
    mlavie

    mlavie:
    I could not find any "normal" way (i.e., built-in property or method) to get at the information. Instead, I found that I had to recurse through the entire XMLElement tree, starting with the Root Element. For a large document, this can take close to a ten minutes, and sometimes I have to do this for an InDesgin Book containing over ten enormous INDD files.
    What do you intend to do with this flat layout of XMLElements? That probably matters a great deal.
    If performance is really at play, you can try using XML Rules instead of interacting with the DOM from JavaScript. But they are complicated and confusing and more suited to declarative programming.
    Imagine suggests:
    var a = myroot.evaluateXPathExpression ("//*");
        xmlObjArray.push(a[b--]);
    Why not stop there? evaluateXPathExpression already returns an array, why iterate over it and push its elements into a new array? What's wrong with the return value?

  • How to find the list of all tables populated

    How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
    Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to get row index of data table in the while ValueChangeListener fired?

    Hi,
    i have a data table in my page, which contains various components like inputText, selectOneChoice in each row.
    i am invoking a method ValueChangeListener attribute of the selectOneChoice component. I have given the autoSubmit=true for this component.
    <tr:selectOneChoice id="ratingModelType"
    value="#{childRatio.ratingModelType}" binding="#{pageManager.form.bindRatioType}"
    valueChangeListener="#{pageManager.form.onRatingModelTypeChange}" autoSubmit="true"
    contentStyle="width:150px" required="#{!childRatio.disableChildRatioRatingModelType}"
    requiredMessageDetail="#{appBundle['error.ratingModelTypeShouldNotBeEmpty']}">
    <f:selectItems value="#{pageManager.catalog['Rating Model Type']}" />
    <tr:selectOneChoice>In that method i want to fetch the map(with all updated values) relevant to the currently modified row of the table.
    Since i am not using the selectionListener or any radio buttons in the page i am not able to get the row index of the table.
    somebody please tell me how to get the row index of the table, while ValueChangeListener fired?
    Thanks in advance.
    Subbu

    Hi niki,
    Thank you so much. With your suggestion i got the result exactly what i want.
    thanks again.
    --subbu                                                                                                                                                                                                                               

  • Getting a list of all table and index names

    Hi,
    I have just create a set of tables and indexs, but I have misspelt on of the table names and am now trying to find out what it is. I am using sql*plus as a command line interface but can only find desc as a way of finding any data on a table. What is the command to list all the tables within a table space?
    Cheers
    Simon

    Hi,
    there are almost always three ways to find things in Oracle's dictionary :
    USER_xxx = thing that you own
    ALL_xxx = thing that you own and have access to
    DBA_xxx = all things in hole database
    If you want to find tables/indexes that you own :
    SELECT table_name FROM user_tables
    WHERE tablespace_name = 'APP_TBS';
    SELECT index_name FROM user_indexes
    WHERE tablespace_name = 'APP_TBS';
    /Uffe

  • How to delete duplicate records in all tables of the database

    I would like to be able to delete all duplicate records in all the tables of the database. Many of the tables have LONG columns.
    Thanks.

    Hello
    To delete duplicates from an individual table you can use a construct like:
    DELETE FROM
        table_a del_tab
    WHERE
        del_tab.ROWID <> (SELECT
                                MAX(dups_tab.ROWID)
                          FROM
                                table_a dups_tab
                          WHERE
                                dups_tab.col1 = del_tab.col1
                          AND
                                dups_tab.col2 = del_tab.col2
                          )You can then apply this to any table you want. The only differences will be the columns that you join on in the sub query. If you want to look for duplicated data in the long columns themselves, I'm pretty sure you're going to need to do some PL/SQL coding or maybe convert them to blobs or something.
    HTH
    David

  • How can I get the list of all canvas in the forms programatically?

    I want an exemple of how to do it. I really need it to put in a template.

    This is the code.
    You will see how to loop through every item of every blocks of the form:
    PROCEDURE Get_Canvas_Names IS
      lc$blockDeb     varchar2(60); -- start block
      lc$block          varchar2(60); -- current block name
      lc$item               varchar2(60); -- current item
      lc$Type               varchar2(20); -- item type
      lc$itemdeb     varchar2(60); -- first item
      lc$canvas          varchar2(60); -- current canvas name
      lc$tabcan          varchar2(60); -- current tab canvas name
      lc$Acanvas     varchar2(60):= ' '; -- old canvas name
      lc$Atabcan     varchar2(60):= ' '; -- old tab canvas name
      ln$NbRec          pls_integer := 0 ;  -- number of records (for know if the block is multi-records)
    BEGIN
      LC$BlockDeb := get_form_property( NAME_IN('System.Current_Form'), FIRST_BLOCK ) ;
      LC$Block := LC$BlockDeb ;
      Loop -- For each block of the form
      LN$NbRec   := get_block_property(LC$BLOCK, RECORDS_DISPLAYED) ;
      lc$itemdeb := get_block_property(LC$BLOCK, FIRST_ITEM) ;
      lc$item := LC$BLOCK || '.' || lc$itemdeb ;
      while lc$itemdeb is not null loop -- For each item
        -- visible item ? --
        IF GET_ITEM_PROPERTY(LC$Item , VISIBLE) = 'TRUE' Then
             -- Get the canvas and tab canvas name --
             lc$canvas := GET_ITEM_PROPERTY(LC$Item , ITEM_CANVAS ) ;
             lc$tabcan := GET_ITEM_PROPERTY(LC$Item , ITEM_TAB_PAGE ) ;
        End if ; -- GET_ITEM_PROPERTY(LC$Item , VISIBLE) = 'TRUE'   
        lc$itemdeb := get_item_property(lc$item, NEXT_NAVIGATION_ITEM );
        lc$item := LC$BLOCK || '.' || lc$itemdeb ;
      end loop ;
      LC$Block := get_block_property( LC$Block, NEXTBLOCK ) ; -- next block
      exit when LC$Block is null ;
      End loop ;
    END Get_Canvas_Names;all you have to do is to save each different canvas names in a pl/sql table.
    Francois

  • How get all table name from database

    hi master
    sir
    how get all table name from database

    The big question is 'why'.
    Selecting from view 'dba_tables' will indeed give the list of all tables in the database, but that includes the dictionary tables and the internal tables, and many others that are probably not of interet to a person who needs to ask this question. Besides, the dba_tables view requires access to a DBA account.
    There are several other views: "user_tables" will list all the tables in this user's schema; and "all_tables" will list all the tables this user can access in some way.
    The above do not, of course, include any information about synonyms, sequences, views, indexes and so on.
    The correct answer and the meaningful answer may be two different things.

  • List of all objects in the data dictionary

    How to capture the list of all objects in the data dictionary named like PSDFDI and verify they are granted to the FDIREADR role

    See the database security guide http://docs.oracle.com/cd/B28359_01/network.111/b28531/authorization.htm#BABFHBFH
    Finding Information About User Privileges and Roles
    This section discusses the system views that have the grant information.
    The tricky part of this is that because roles can be granted to other roles the data is hierarchical.
    So start with the grants made to the FDIREADR role. So referring to the doc above;
    select * from role_role_privs where role = 'FDIREADR'will list the roles granted to your role.
    You will want to look at ROLE_ROLE_PRIVS, ROLE_TAB_PRIVS and ROLE_SYS_PRIVS.
    I suggest you walk thru the views manually to see how the information is related. Then write a test script that queries the views for you.

Maybe you are looking for