How to find full tables hierarchy in schema

Hi,
How to find the table hierarchy list from oracle schema by using Reference Key constraint?
In my schema I am having many tables, approximate 4000 and from there I needs to get a single list which should be based in the Foriegn key based (Parent tables should be first then child tables)
Regards
Anee

You can start with this
select A.table_name children,
         B.TAble_name Father
from DBA_CONSTRAINTS A,
        DBA_CONSTRAINTS B
WHERE A.CONSTRAINT_TYPE = 'R'
     And B.Constraint_name = a.r_Constraint_name

Similar Messages

  • How to find data dictionary and oracle schema tables for UTF8 char conversi

    I am doing UTF8 char conversition, i got lot of convertable objects,as per document we don't need to worry about data dictionary objects and how to find data dictionary and oracle schema objects for UTF8 char conversition.
    USER.TABLE Convertible Truncation Lossy
    MDSYS.OPENLS_NODES 17 0 0
    MDSYS.SDO_COORD_OP_PARAM_VALS 200 0 0
    MDSYS.SDO_GEOR_XMLSCHEMA_TABLE 1 0 0
    MDSYS.SDO_STYLES_TABLE 78 0 0
    MDSYS.SDO_XML_SCHEMAS 3 0 0
    ORDDATA.ORDDCM_CT_PRED_OPRD 51 0 0
    ORDDATA.ORDDCM_DOCS 9 0 0
    ORDDATA.ORDDCM_MAPPING_DOCS 1 0 0
    SYS.METASTYLESHEET 178 0 0
    SYS.REGISTRY$ERROR 2 0 0
    SYS.RULE$ 21 0 0
    SYS.SCHEDULER$_EVENT_LOG 182 0 0
    SYS.WRH$_SQLTEXT 2,099 0 0
    SYS.WRH$_SQL_PLAN 1,736 0 0
    SYS.WRI$_ADV_ACTIONS 5,452 0 0
    SYS.WRI$_ADV_DIRECTIVE_META 5 0 0
    SYS.WRI$_ADV_OBJECTS 2,278 0 0
    SYS.WRI$_ADV_RATIONALE 9,594 0 0
    SYS.WRI$_ADV_SQLT_PLANS 455 0 0
    SYS.WRI$_ADV_SQLT_PLAN_STATS 288 0 0
    SYS.WRI$_DBU_FEATURE_METADATA 188 0 0
    SYS.WRI$_DBU_FEATURE_USAGE 16 0 0
    SYS.WRI$_DBU_HWM_METADATA 20 0 0
    SYS.WRI$_REPT_FILES 27 0 0
    XDB.XDB$DXPTAB 2 0 0
    XML CSX Dictionary Tables:
    USER.TABLE Convertible Truncation Lossy
    Application Data:
    USER.TABLE Convertible Truncation Lossy
    APPLSYS.BISM_OBJECTS 4 0 0
    APPLSYS.DR$FND_LOBS_CTX$I 0 103 1,260,883
    APPLSYS.FND_CONC_PROG_ANNOTATIONS 272 0 0
    APPLSYS.FND_OAM_CONTEXT_FILES 15 0 0
    APPLSYS.FND_OAM_DOC_LINK 1 0 0
    APPS.FND_OAM_CONTEXT_FILES_1 6 0 0
    AZ.AZ_APIS 11 0 0
    AZ.AZ_SELECTION_SET_ENTITIES_B 48 0 0
    ECX.ECX_DTDS 205 0 0
    ECX.ECX_FILES 91 0 0
    IBC.IBC_ATTRIBUTE_BUNDLES 41 0 0
    JTF.JTF_HEADER_DTD 1 0 0
    JTF.JTF_MESSAGE_OBJECTS 82 0 0
    JTF.JTY_TRANS_USG_PGM_SQL 29 0 0
    ODM.ODM_PMML_DTD 1 0 0
    OKC.OKC_REPORT_SQL_B 3 0 0
    OKC.OKC_REPORT_SQL_TL 2 0 0
    OKC.OKC_REPORT_XSL_TL 5 0 0
    XDP.XDP_PROC_BODY 10 0 0
    [Distribution of Convertible, Truncated and Lossy Data by Column]
    Data Dictionary Tables:
    USER.TABLE|COLUMN Convertible Truncation Lossy
    MDSYS.OPENLS_NODES|SYS_NC00004$ 17 0 0
    MDSYS.SDO_COORD_OP_PARAM_VALS|PARAM_VALUE_FILE 200 0 0
    MDSYS.SDO_GEOR_XMLSCHEMA_TABLE|XMLSCHEMA 1 0 0
    MDSYS.SDO_STYLES_TABLE|DEFINITION 78 0 0
    MDSYS.SDO_XML_SCHEMAS|XMLSCHEMA 3 0 0
    ORDDATA.ORDDCM_CT_PRED_OPRD|SYS_NC00004$ 51 0 0
    ORDDATA.ORDDCM_DOCS|SYS_NC00005$ 9 0 0
    ORDDATA.ORDDCM_MAPPING_DOCS|SYS_NC00007$ 1 0 0
    SYS.METASTYLESHEET|STYLESHEET 178 0 0
    SYS.REGISTRY$ERROR|MESSAGE 1 0 0
    SYS.REGISTRY$ERROR|STATEMENT 1 0 0
    SYS.RULE$|CONDITION 21 0 0
    SYS.SCHEDULER$_EVENT_LOG|ADDITIONAL_INFO 182 0 0
    SYS.WRH$_SQLTEXT|SQL_TEXT 2,099 0 0
    SYS.WRH$_SQL_PLAN|OTHER_XML 1,736 0 0
    SYS.WRI$_ADV_ACTIONS|ATTR5 2,726 0 0
    SYS.WRI$_ADV_ACTIONS|ATTR6 2,726 0 0
    SYS.WRI$_ADV_DIRECTIVE_META|DATA 5 0 0
    SYS.WRI$_ADV_OBJECTS|ATTR4 2,278 0 0
    SYS.WRI$_ADV_RATIONALE|ATTR5 9,594 0 0
    SYS.WRI$_ADV_SQLT_PLANS|OTHER_XML 455 0 0
    SYS.WRI$_ADV_SQLT_PLAN_STATS|OTHER 288 0 0
    SYS.WRI$_DBU_FEATURE_METADATA|INST_CHK_LOGIC 21 0 0
    SYS.WRI$_DBU_FEATURE_METADATA|USG_DET_LOGIC 167 0 0
    SYS.WRI$_DBU_FEATURE_USAGE|FEATURE_INFO 16 0 0
    SYS.WRI$_DBU_HWM_METADATA|LOGIC 20 0 0
    SYS.WRI$_REPT_FILES|SYS_NC00005$ 27 0 0
    XDB.XDB$DXPTAB|SYS_NC00006$ 2 0 0
    XML CSX Dictionary Tables:
    USER.TABLE|COLUMN Convertible Truncation Lossy
    Application Data:
    USER.TABLE|COLUMN Convertible Truncation Lossy
    APPLSYS.BISM_OBJECTS|SYS_NC00023$ 4 0 0
    APPLSYS.DR$FND_LOBS_CTX$I|TOKEN_TEXT 0 103 1,260,883
    APPLSYS.FND_CONC_PROG_ANNOTATIONS|PROGRAM_ANNOTAT 272 0 0
    APPLSYS.FND_OAM_CONTEXT_FILES|TEXT 15 0 0
    APPLSYS.FND_OAM_DOC_LINK|DOC_LINK_INFO 1 0 0
    APPS.FND_OAM_CONTEXT_FILES_1|TEXT 6 0 0
    AZ.AZ_APIS|FILTERING_PARAMETERS 11 0 0
    AZ.AZ_SELECTION_SET_ENTITIES_B|FILTERING_PARAMETE 48 0 0
    ECX.ECX_DTDS|PAYLOAD 205 0 0
    ECX.ECX_FILES|PAYLOAD 91 0 0
    IBC.IBC_ATTRIBUTE_BUNDLES|ATTRIBUTE_BUNDLE_DATA 41 0 0
    JTF.JTF_HEADER_DTD|HEADER_DTD 1 0 0
    JTF.JTF_MESSAGE_OBJECTS|BUS_OBJ_DTD 41 0 0
    JTF.JTF_MESSAGE_OBJECTS|BUS_OBJ_SQL 41 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|BATCH_DEA_SQL 1 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|BATCH_INCR_SQL 5 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|BATCH_TOTAL_SQL 6 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|INCR_REASSIGN_SQL 5 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|REAL_TIME_INSERT 6 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|REAL_TIME_SQL 6 0 0
    ODM.ODM_PMML_DTD|DTD 1 0 0
    OKC.OKC_REPORT_SQL_B|SQL_TEXT 3 0 0
    OKC.OKC_REPORT_SQL_TL|HELP_TEXT 2 0 0
    OKC.OKC_REPORT_XSL_TL|HELP_TEXT 2 0 0
    OKC.OKC_REPORT_XSL_TL|XSL_TEXT 3 0 0
    XDP.XDP_PROC_BODY|PROC_BODY 10 0 0
    -------------------------------------------------- ---------------- ---------------- ----------------

    Hi;
    Please run below query which could be helpful for your issue:
    select * from dictionary where TABLE_NAME LIKE '%NLS%'
    select * from dictionary where TABLE_NAME LIKE '%GLOBAL%'
    Regard
    Helios

  • How to find which table is not being used ?

    Hi,
    I am in need of releasing space from the common schema we have. i have been permitted to drop the tables which has not been used for the last three months.
    Can anyone please suggest how to find the tables that has not been used for a given amount of time.
    Thanks and Regards.
    Rajib

    i have been permitted to drop the tables which has not been used for the last three months.Can I just chip in an observation on this premise? It's not unusual for systems to have processes that run quarterly or even annually. You need to be very careful about dropping "unused" tables - you might just kill your organisations end of year reporting system.
    Is buying more disk space really not an option?
    Cheers, APC

  • How to find those different namespaces in schema?

    Hi,
    I heard that schema contains different name spaces. how to find those different namespaces in schema?
    I checked with this but it is throwing "table or view doesn't exist".
    select namespace from v$librarycache;
    Thanks
    Praveen

    Are you referring to this? From the SQL Language Reference manual under Schema Object Names and Qualifiers
    7. Within a namespace, no two objects can have the same name.
    The following schema objects share one namespace:
    Tables
    Views
    Sequences
    Private synonyms
    Stand-alone procedures
    Stand-alone stored functions
    Packages
    Materialized views
    User-defined types
    Each of the following schema objects has its own namespace:
    Indexes
    Constraints
    Clusters
    Database triggers
    Private database links
    Dimensions
    Because tables and views are in the same namespace, a table and a view in the same schema cannot have the same name. However, tables and indexes are in different namespaces. Therefore, a table and an index in the same schema can have the same name.
    Each schema in the database has its own namespaces for the objects it contains. This means, for example, that two tables in different schemas are in different namespaces and can have the same name.
    Each of the following nonschema objects also has its own namespace:
    User roles
    Public synonyms
    Public database links
    Tablespaces
    Profiles
    Parameter files (PFILEs) and server parameter files (SPFILEs)
    Because the objects in these namespaces are not contained in schemas, these namespaces span the entire database.Which is why you can do:
    SQL> create table t (id number, descr varchar2(10));
    Table created.
    SQL> alter table t add constraint t check (mod(id,2) = 0);
    Table altered.
    SQL> create index t on t(id);
    Index created.
    SQL> create trigger t
      2  before update on t
      3  begin
      4     dbms_output.put_line('T Trigger');
      5  end;
      6  /
    Trigger created.but not:
    SQL> create view t as select * from t;
    create view t as select * from t
    ERROR at line 1:
    ORA-00955: name is already used by an existing objector
    SQL> create procedure t
      2  begin
      3     null;
      4  end;
      5  /
    create procedure t
    ERROR at line 1:
    ORA-00955: name is already used by an existing objectJohn

  • 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 can we copy table from one schema to other schema

    Hi,
    I have create one table in one schema and i want to copy it to other schema.How we can copy table from one schema to other schema

    Hi,
    You can try something like this :-
    SQL> CONNECT SYS/SYS123@SERVER AS SYSDBA
    Connected.
    SQL> CREATE USER TEST_1 IDENTIFIED BY TEST_1;
    User created.
    SQL> CREATE USER TEST_2 IDENTIFIED BY TEST_2;
    User created.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_1;
    Grant succeeded.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_2;
    Grant succeeded.
    SQL> CONNECT TEST_1/TEST_1@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY ( TEST_COL NUMBER );
    Table created.
    SQL> INSERT INTO TEST_COPY VALUES ( 1 );
    1 row created.
    SQL> INSERT INTO TEST_COPY VALUES ( 2 );
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> GRANT ALL ON TEST_COPY TO TEST_2;
    Grant succeeded.
    SQL>  CONNECT TEST_2/TEST_2@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY AS SELECT * FROM TEST_1.TEST_COPY;
    Table created.
    SQL>  SELECT * FROM TEST_COPY;
      TEST_COL
             1
             2Regards,
    Sandeep

  • HOW TO  FIND OUT TABLE DESCRIPTION FROM JDBC?

    HOW WILL FIND OUT TABLE DESCRIPTION FROM JDBC?

    Have a look at ResultSetMetaData
    getColumnCount()
    getColumnName(int)
    getColumnTypeName(int)
    getColumnDisplaySize(int)
    ***Annie***

  • How to find out table name for the field in the webUI

    Hi.
    I am in CRM2007.
    So i go to the transaction code    BSP_WD_CMPWB
    In that i provide the component name as CRM_UI_FRAME.
    I press the Test button.
    So, it opend the WebUI.
    I want how to find out table of the particular input field?
    I mean from which table the data is retrived how to find out?
    When i enter some thing in the input field how to find out in which table that data is stored?
    By pressing F2 on the input field it opend View and Component Name.
    I want find out table of that particular field. How to find it?
    If anybody know about this explain it with Screen shorts if possible.
    Thank You.
    Krishna. B.

    hi
    goto tx genil_model_browser. Suppose you want to find fields reated to your order header eg sold to name. In component set write all and press F8. Then goto access object and in access object click on node BTAdminH. Click on attribute structure. Here you will find structure and attributes. If you click relationship then you will see all the relationship wrt btadminh. open any r/s that you require. and click on other object and attribute. You will get to know the structure.
    Best regards
    Pankaj kumar

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

  • Which is oracle's dictionary to find which TABLE in particular SCHEMA.

    Hi All,
    Which is oracle’s dictionary to find which TABLE in particular SCHEMA with particular ROLE is missing.
    Thanks in advance

    user10699277 wrote:
    Hi
    We have role called XYZ which is assigned to specfic tables in schema ABC.No you don't. Roles are GRANTed (not assigned) to USERS or ROLES, not TABLES.
    There are tables in the same schema which dont have the role XYZ.
    In these case we need to find the table that dont have XYZ role.
    Thanks in Advance...

  • How to find Obsolete Tables?

    Hi!
      Can Anybody tell me how to find Obsolete tables in a ABAP System (like in 4.7B,6.0 etc)?
      Or if u have list of obsolete tables in any version,please send me.
    -Aruna

    You may have an overview wirth Solution Browser tool (at the solution point of view) in order to compare functionality between your current system and the ERP 2005.
    at:
    http://solutionbrowser.erp.sap.fmpmedia.com/
    You can get the detailed release information from the following link.
    http://service.sap.com/releasenotes.
    A release note is a brief explanation of new features or changes to the system since the last software release. A release note typically describes a new function or an existing function that has been enhanced or changed.
    I hope this helps.
    Reward Points If helpful
    Regards
    Vasanth

  • How to find an table for storing the employee salary

    hi,
           how to find an table for storing employee salary .. In which table those details are stored .. Please reply me.
    regards,
    kumar

    Hi,
    You can see the basic salary details from table -pa0008.If you can see the payroll data,then its not stored in transparent table.its in cluster.For viewing that,you can see through transaction code - pc_payresult.
    Regards,
    Manoj.

  • 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 Related Tables for the Tcode given.

    How to find Related Tables for the Tcode given. (master data)
    Thanks in advance.

    Hi Sridhar,
    Welcome to SDN.
    The tables for a given transaction can be seen in the transaction SE80.
    First goto SE93.
    Give ur Tcode and find the program name.
    Now goto SE80. select program in the first dropdown and give the program name in the second box. U can find the list of tables used.
    One more way is : use ST05.
    and One more is using FM 'get_tables'
    Thanks,
    Shailaja
    Edited by: Shailaja on Jul 11, 2008 12:33 PM

Maybe you are looking for

  • Txt format in a file created by the Payment Medium Program

    Hi, I need some help with a query from Payroll France. They use the transaction PC00_M06_FFOT (program RFFOF_V) to transfer payment data to banks. This program creates a txt file that is accessible to the payroll and accounting teams. This file is st

  • Third Party VPRS cost needs to be redetermine in F2 invoice.

    HI All, Can anybody tell me how we can update VPRS in billing as per MIRO invoice. following are the steps that i am following to process this process: 1-Sales Order with item category TAS and purchase Req authomatically created. 2-Purchase order cre

  • Google chrome install wont close when click the X

    google chrome install wont close when click the X . I dont know why but it is like the X is not there, ~I click in the X button and nothing happens in this browser, i am tlaking about the google site and the box in the uppper corner right,these happe

  • Trouble saving images on cRIO-9022

    I'm having trouble saving images on my RT target cRIO-9022 (VxWorks). I get "error 53 occurred at Write GIF File.vi LabView: Manager call not supported" when running the code. What I'm trying to do is save periodic snapshots of front panel charts/gra

  • How to put a line in a panel

    how can i draw a line like the one that is made whit the command <hr> in html