Data Dictionary for Flatfiles?

Hi everyone,
Is there a document out there for the data dictionary of the flat files?
I found "BIAPPSDMRV796_RevA.pdf", which is the data model/data dictionary for the OBAW tables. But it doesn't contain the info for the flat files (at least I haven't found the flat files in there yet).
thanks for the help!
-Joe

Based on what has been said so far, you understanding is correct.
But I've been talking with some colleagues and I believe i am not actually going to modify the existing Universal Connectors.
The reason being are the following:
1) The existing connectors already have metadata created in the DAC that will run them. If I copy and paste them into my "custom" universal connectors, then I will need to find a way to hook up these new ETLs into the DAC.
2) If there were ever updated versions of the Universal Connectors, then I would have to first, import the new version. Then make a copy. Then apply my custom changes to the copy.
3) If I ever wanted to pick this solution up and hand it to someone else, having based upon the standard BI Apps ETLs will make this more portable.
What I do plan on doing is making a custom ETL folder for ETLs that populate the flat-files. This method makes sure that if the logic in the Universal connectors ever changes, my code is virtually unaffected (barring changes to the flat-file structure). On top of that, I could hand someone the Informatica XML in a completely different BI Apps environment and they could import it and get up and running very fast without having to impact the out of the box code from Oracle.
-Joe

Similar Messages

  • What is the data dictionary for direcoty objects?

    Dear All,
    I would like to know the data dictionary for directory objects. Or where i can get more details of directory objects.
    Thanks in advance
    Balaji

    Hi,
    YOu can use dba_directories view to get info about directory.
    For other views
    1.select * from tab where tname like '%DIRECT%';
    2.select * from dictionary where table_name like '%DIRECT%';
    Regards
    Jafar

  • Data dictionary for jdbc

    hi guyz
    I need some help!!
    I have created a table in a data dictionary project.
    Please let me know how to deploy it. Do you have to deploy it through an ear file or so?
    Next, since its on the portal database i heard that we need to use the default datasource.
    What is the name of the datasource? Has any setting to be done to use it and please show me 2-3 lines of code on how to use it in order to establish a JDBC connection.
    Thanks.

    Created on 3-nov-2006
    To change the template for this generated file go to
    Window>Preferences>Java>Code Generation>Code and Comments
    package tmp.userslist.comp.model.userslist;
    import java.sql.Connection;
    import java.util.Properties;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    @author rtagliento
    To change the template for this generated type comment go to
    Window>Preferences>Java>Code Generation>Code and Comments
    public class MyJDBC {
         private boolean hasConnection;
         private Connection con;
         private DataSource ds;
         private InitialContext ctx;
         private Properties properties;
         public MyJDBC(){
              hasConnection = false;
              con = null;
              ds = null;
              ctx = null;
         public boolean startDBCon(){
              hasConnection = true;
              try {
                     String datasource_name =
                                    "jdbc/SAP" +
                                    (String) System.getProperties().get("SAPSYSTEMNAME")
                                              + "DB";
                        hasConnection = this.startDBCon(datasource_name);
                } catch (Exception e) {
              //            e.printStackTrace();
                     hasConnection = false;
           return hasConnection;
         public boolean startDBCon(String datasource_name){
              hasConnection = true;
           try {
                datasource_name = "jdbc/" + datasource_name; // + "DB";
                String contextUrl = "";
                String contextFactory = "com.sap.engine.services.jndi.InitialContextFactoryImpl";
                properties = new Properties();
                properties.put("java.naming.factory.initial", contextFactory);
                ctx = new InitialContext(properties);
                ds = (DataSource)ctx.lookup(datasource_name);
                con = ds.getConnection();
           } catch (Exception e) {
    //            e.printStackTrace();
                hasConnection = false;
           return hasConnection;
         public Connection getConnection (){
              if (hasConnection)
                   return con;
              else
                   return null;

  • How to search data dictionary for interval partitions?

    Oracle 11.2.0.3
    When I query DBA_PART_TABLES.PARTITIONING_TYPE it says 'range'. I want to be able to differential an interval from other range based partitions in the data dictionary?
    used this example. shows 'range'
    http://www.rittmanmead.com/2008/09/investigating-oracle-11g-interval-partitioning/
    Oracle Docs list 'SYSTEM' as a partitioning_type which I thought would be intervals.
    ALL_PART_TABLES
    [code]
      1   CREATE TABLE interval_sales
      2          ( prod_id        NUMBER(6)
      3          , cust_id        NUMBER
      4          , time_id        DATE
      5          , channel_id     CHAR(1)
      6          , promo_id       NUMBER(6)
      7          , quantity_sold  NUMBER(3)
      8          , amount_sold    NUMBER(10,2)
      9          )
    10       PARTITION BY RANGE (time_id)
    11       INTERVAL(NUMTOYMINTERVAL(1, 'MONTH'))
    12         ( PARTITION p0 VALUES LESS THAN (TO_DATE('1-1-2005', 'DD-MM-YYYY')),
    13           PARTITION p1 VALUES LESS THAN (TO_DATE('1-1-2006', 'DD-MM-YYYY')),
    14           PARTITION p2 VALUES LESS THAN (TO_DATE('1-7-2006', 'DD-MM-YYYY')),
    15*          PARTITION p3 VALUES LESS THAN (TO_DATE('1-1-2007', 'DD-MM-YYYY')) )
    SQL>/
    Table created.
    Elapsed: 00:00:00.01
    SQL> select partitioning_type from user_part_tables where table_name = 'INTERVAL_SALES';
    PARTITION
    RANGE
    [/code]

    CREATE TABLE junk1
       ( id         NUMBER )
       PARTITION BY RANGE (id)
       INTERVAL(5)
         ( PARTITION p0 VALUES LESS THAN (5),
           PARTITION p1 VALUES LESS THAN (10),
           PARTITION p2 VALUES LESS THAN (15),
           PARTITION p3 VALUES LESS THAN (20) )
    CREATE TABLE junk2
       ( id         NUMBER )
       PARTITION BY RANGE (id)
         ( PARTITION p0 VALUES LESS THAN (5),
           PARTITION p1 VALUES LESS THAN (10),
           PARTITION p2 VALUES LESS THAN (15),
           PARTITION p3 VALUES LESS THAN (20) )
    select owner, table_name, partitioning_type, interval
      from dba_part_tables
    where table_name in ('JUNK1', 'JUNK2')
    OWNER                          TABLE_NAME                     PARTITIONING_TYPE INTERVAL           
    GREGS                          JUNK1                          RANGE             5                  
    GREGS                          JUNK2                          RANGE                 
    2 rows selected.

  • Help me in design of data model for flatfiles

    hello Guru's,
                         my client is implementing FI in ECC still they are in realization. then my client gave me FI flat files and told me to extract those into BI. those flat files consists of profit and loss statements with actuals and budget data and balance sheet statements with actuals and budget in addition to these there are forecast files.
    can you tell me what are the questions i have to ask user? and please sugest me some designs
    Thanks,
    SAM

    Hi Sam John,
    Tks for ur appreciation for me.
    In my opinion, you have to understand first regarding the what purposes from the are. Then u learn the relationship among the data; it's purposes is to define dimension / master data.
    (You can ask to ur user regarding the data itself: What the relationsionship is in among those data? What's the purposes of data itself? What's the full cycle of that business ?? )
    Then u have to define whether it uses ODS / Info Cube. You can decide it by knowing whether the data is detail data / summary. If it's detail you can choose ODS, and Cube for summary one.
    I just gave u the highlight point, for the detail u can see on this refrence.
    how to build good modeling.
    http://help.sap.com/bp_biv270/documentation/Multi-dimensional_modeling_EN.doc
    Hopefully it can help you a lot.
    Best regards,
    Niel.

  • Data Conversion for Flatfiles in Sender-Adapter or Mapping

    Hi folks,
    I get a flatfile - let's say - with three fields with names f1, f2 and f3, with the corresponding values. The adapter creates the following xml
    <node1>
      <f1>v1</f1>
      <f2>v2</f2>
      <f3>v3</f3>
    </node1>
    Has anybody an idea how to convert these structure into
    <nodeA>
      <name>f1</name>
      <value>v1</value>
    </nodeA>
    <nodeA>
      <name>f2</name>
      <value>v2</value>
    </nodeA>
    <nodeA>
      <name>f3</name>
      <value>v3</value>
    </nodeA>
    without using Java? And if it is not possible how would a Java mapping look like? Or is it possible to create another structure with the file-adapter?

    You can make it with a graphical mapping, sending the normal XML to the integration server:
    <node1>
    <f1>v1</f1>
    <f2>v2</f2>
    <f3>v3</f3>
    </node1>
    and then changing the structure with a graphical mapping to:
    <nodeA>
    <name>f1</name>
    <value>v1</value>
    </nodeA>
    <nodeA>
    <name>f2</name>
    <value>v2</value>
    </nodeA>
    <nodeA>
    <name>f3</name>
    <value>v3</value>
    </nodeA>
    Regards,
    Sandro

  • Data dictionary for table updates

    Hi,
    I want to know which audit tables are to be looked into to see a particular transaction done on a db table.
    For ex:- I've updated a table(say Tab1) and I want to know when,by whom and what changes they have done Tab1.
    Thanks in advance

    For information on Oracle Auditing refer to :
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/audit.htm#1108

  • Data Dictionary for PP

    Can someone provide me with all the tables with the Production Planning environment?
    Or at least all the ones in direct regard to RBOM's and Routes?

    Dear,
    Please refer this link you will get all table here,
    [PP Table|http://www.sap-img.com/sap-pp.htm]
    Routing
    PLPO          Routing Operation Details
    PLKO         Routing Header Details
    MAPL         Routing Link to Material
    PLAB          Relationships - Standard Network
    PLAS          Task List - Selection of Operations
    PLMZ         Component Allocation
    PLPH          CAPP Sub-operations
    PLFH          PRT Allocation
    PLWP         Maintenance Package Allocation
    PLMK         Inspection Characteristics
    Bill of Material
    STPO          BOM Item Details
    STPU          BOM Sub Items (designators)
    STKO         BOM Header Details
    MAST         BOM Group to Material
    STZU          BOM History Records
    STAS          BOM Item Selection
    STPF           BOM Explosion Structure
    Regards,
    R.Brahmankar

  • Slow response  on data dictionary queries with optimizer_mode=rule in  10g

    I have two dataabse: DB1 (9i) and DB2 (10g) on windows 2000
    They are two development databases with the same schemas and same tables. The application executes the same commands but with different results and execution plans.
    In DB2 the queries with the most slow response tima are the queries on the data dictionary (for example: all_synonyms).
    These query are very fast with the optimizer_mode=cost and very slow with the optimizer_mode=rule.
    And the the problem is this:
    in DB1 and DB2 the application executes after the connection this command:
    ALTER SESSION SET OPTIMIZER_MODE = 'RULE';
    These are the traces of the session in db1 and db2:
    The queries are created dynamically by the application.
    Is there a solution for this?
    thanks
    Message was edited by:
    user596611

    Here is a simple example of what can happen,
    @>alter session set optimizer_mode=all_rows;
    @>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
    PLAN_TABLE_OUTPUT
    | Id  | Operation        | Name | Rows  | Cost (%CPU)|
    |   0 | SELECT STATEMENT |      |     1 |     2   (0)|
    |   1 |  FAST DUAL       |      |     1 |     2   (0)|
    @>alter session set optimizer_mode=rule;
    @>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
    PLAN_TABLE_OUTPUT
    | Id  | Operation        | Name |
    |   0 | SELECT STATEMENT |      |
    |   1 |  FAST DUAL       |      |
    Note
          - rule based optimizer used (consider using cbo)As you can see incomplete explain plans. Therefore it is not advised.
    Adith

  • How to find out the aligning Data dictionary table for a structure.

    Hi
    As the table controls are associated with strucures, the data input goes to the data dictionary table aligned to that structure. Is there any way we can find out the table related to that particular structure ?
    Thanks,
    Dhareppa

    Hi,
    The structure and its fields may be associated with multiple database tables.
    You can try by where-used list of the structure/field and then you can look and determine the table by hit and try method.
    Also as suggested above you can try get the SQL trace and then ypu can look for table associated behind the structure/fields I believe this is the best way to find the DB table.
    Thanks,
    Ravi

  • How to run sql scripts using batch file for a web dynpro data dictionary

    Hi,
    I want to develop a sql script to be executed on the server alongwith the installation of a product to pre-populate web dynpro data dictionary tables required for the application.
    I further require to make the scripts independent of the database name,so that it can be run at any client environment.
    Your help will be appreciated and rewarded.

    See shoblock's answer
    call sql script from unix
    masterfile.sql:
    @file1 &1
    @file2 &2
    @file3 &3
    @file4 &4
    then just call the master script:
    sqlplus userid/password @masterfile <p1> <p2> <p3> <p4>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Tracking Changes for Single record in Data Dictionary

    Hi Experts,
    I encountered with this question in an interview. I was asked how to maintain/track changes for a particular single record in a Data Dictionary table. I knew that for an entire table we can do it using table maintenance events. But I was confused when the interviewer asked for one particular record in table. Kindly input your thoughts on this.
    Thanks.

    Hi Radhika,
    In case of record in a table we can use "log data changes" option (Table DBTABLOG) in Technical Settings > Log data changes. It enable writing of change documents in Tables CDHDR/CDPOS.
    Hope this helps.
    Regards,
    Naveen

  • 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

  • UCM Data Dictionary SQL Query for Determining IP Address

    Forum,
    I am trying to determine the IP address(es) of the UCM cluster servers.  Using the UCM Data Dictionary and tables such as 'processnode' will provide information such as
    procnodename                      description                isactive macaddr procnodeid systemnode typenodename typeprocessnode
    ================================= ========================== ======== ======= ========== ========== ============ ====================
    EnterpriseWideData                                           t                1          t          Subscriber   CUCM Voice/Video
    usa109-s4pub01                    UCM 10.0 Publisher         t                2          f          Publisher    CUCM Voice/Video
    usa109-s4sub01                    UCM 10.0 Subscriber        t                3          f          Subscriber   CUCM Voice/Video
    usa109-s4cup01.lab.shoregroup.com UC Presence 10.0 Publisher t                9          f          Publisher    CUCM IM and Presence
    usa109-s4cup02.lab.shoregroup.com UC Presence 10.0 Publisher t                11         f          Subscriber   CUCM IM and Presence
    'callmanager' table does not provide a field for IP...'processnode' only had 'ipv6name' field...
    If the node using DNS to resolve name-to-IP as shown above...I have not found a way to obtain the IP address of the UCM node itself.  I know I can go to the CLI of a node a issue a command to obtain...but I have not found a Data Dictionary table to obtain the results. 
    I am open for suggestions...thx.

    If, in CCMAdmin, you've got server hostnames rather than IP addresses, CallManager will use DNS to get the IP addresses of the other servers.
    GTG

  • Data Dictionary Info for Constraints

    Hi,
    I want to get Information from the data dictionary about foreign key constraints.
    I want to get information about all constraints which REFER to a certain table and column, so I want to get the table/colum which is the parent in a foreign_key realtionship.
    I can use ALL_CONS_COLUMNS, but I only get the parent table but not the child table.
    Example:
    Table A.COLUMN_1 is the parent, there are two foreign key relationships: table B.COLUMN_2 and table C.COLUMN_2, they refer to table A.COLUMN_1.
    I want a query which gives me table B and C when I specify table A.COLUMN_1.
    Thanks for your help.
    Bernhard

    -- Dictionary Queries to Determine FK Columns for Given PK
    --    note: uses the Ora9i example data in SH schema...
    -- Query for Forums user who wanted to query on table_name and column_name
    select all pk_cons.constraint_name   pk_constraint
              ,fk_cons.constraint_name   fk_constraint
              ,fk_cons_cols.table_name   fk_table
              ,fk_cons_cols.column_name   fk_columns
    from       all_cons_columns   pk_cons_cols
    inner join all_constraints   pk_cons
            on pk_cons_cols.owner = pk_cons.owner and
                 pk_cons_cols.constraint_name = pk_cons.constraint_name
    inner join all_constraints   fk_cons
            on fk_cons.r_owner = pk_cons.owner and
                 fk_cons.r_constraint_name = pk_cons.constraint_name
    inner join all_cons_columns   fk_cons_cols
            on fk_cons.owner = fk_cons_cols.owner and
                 fk_cons.constraint_name = fk_cons_cols.constraint_name
    where      pk_cons.owner = 'SH'
    and        pk_cons.table_name = 'PRODUCTS'
    and        pk_cons_cols.column_name = 'PROD_ID'
    -- A better query that uses only table name
    select all pk_cons.constraint_name   pk_constraint
              ,fk_cons.constraint_name   fk_constraint
              ,fk_cons_cols.table_name   fk_table
              ,fk_cons_cols.column_name   fk_columns
    from       all_constraints   pk_cons
    inner join all_constraints   fk_cons
            on fk_cons.r_owner = pk_cons.owner and
                 fk_cons.r_constraint_name = pk_cons.constraint_name
    inner join all_cons_columns   fk_cons_cols
            on fk_cons.owner = fk_cons_cols.owner and
                 fk_cons.constraint_name = fk_cons_cols.constraint_name
    where      pk_cons.owner = 'SH'
    and        pk_cons.table_name = 'PRODUCTS'
    and        pk_cons.constraint_type = 'P'
    /

Maybe you are looking for

  • How to get more features for Captivate 6

    Hi all, I've installed Captivate 6 on my laptop at work, I use it for creating training material for our project management system. I was just looking at some Adobe video tutorial and there are some features shown in the videos that I can't find on m

  • Kernel Panic problem - Please please help!!

    Hi there, I've been having issues with this for some time now - Macbook Pro crashing/black screening with the only option being to power off and reboot.  My last error Report came up as follows: Interval Since Last Panic Report:  1047 sec Panics Sinc

  • Unreported Exception java.lang.InstantiationException

    Dear Friends, I am developing javabean connectivty for inserting records to mysql database from jsp. when i try to compile java bean program. It gives an error like unreported Exception java.lang.InstantiationException: Must be caught or declared to

  • Urgent: Some Problem on using Oracle Developer and Oracle 8i

    I have download the Oracle Developer from this website. I follow the instruction and install the Oracle Developer. After I finished install the Developer, a error message shows: "user1.pin(20):OS_ERROR whilw spawing if srv60-install Forms60Server -Or

  • Loggon Application Failure - Blue screen

    Hope somebody can help. Basically I am unable to boot my iMac, It gets as far as the blue screen and then hangs. I rebooted in verbose mode and it goes all the way through to 'Loggon Application Window Started' and I get the nice blue screen and a cu