[Urgent] List the tables which are in a mapping using OMB ?

Hello,
Does anyone know how I can list the table names which are contained in a mapping by using the OMB language ?
After with this list I'll retrieve the properties of the extraction and loading hints (by using the OMBRETRIEVE command).
Thanks in advance for your help !
Regards,
Florent

Hi Florent
Something like the following will retrieve the table operators in a map:
set table_ops [OMBRETRIEVE MAPPING '$mapname' GET TABLE OPERATORS]
As an example of navigating the map using OMB the tcl below will traverse the map (change the mapname variable and run in the context of the module containing the map) - the results are written to a textfile in /tmp/map.txt. You can see how the operators are navigated and the connections queried, each operator is listed and the connected operators.
Cheers
David
set mapname EXAMPLE_17_21
set ops [OMBRETRIEVE MAPPING '$mapname' GET OPERATORS]
set fid [open "/tmp/map.txt" "w"]
foreach op $ops {
puts $fid ""
puts $fid "Operator: $op"
puts $fid "------------------------------------------------"
foreach top $ops {
set connected [OMBRETRIEVE MAPPING '$mapname' HAS CONNECTION FROM OPERATOR '$op' TO OPERATOR '$top']
if {$connected == 1} {
puts $fid " $op -> $top"
set grps [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$op' GET GROUPS CONNECTED TO OPERATOR '$top']
puts $fid " Attribute Mappings"
puts $fid " ------------------"
set tgrps [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$top' GET GROUPS]
foreach grp $grps {
set atts [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$op' GROUP '$grp' GET ATTRIBUTES]
foreach att $atts {
foreach tgrp $tgrps {
set tatts [OMBRETRIEVE MAPPING '$mapname' OPERATOR '$top' GROUP '$tgrp' GET ATTRIBUTES CONNECTED FROM ATTRIBUTE '$att' OF GROUP '$grp' OF OPERATOR '$op']
foreach tatt $tatts {
puts $fid " $grp.$att -> $tgrp.$tatt"
close $fid

Similar Messages

  • Dynamic SQL statement to select the tables which are updated today...

    Hi Guys,
    I need to find the names of all the tables which contain rows that are inserted/updated in a given time stamp...
    Below statement gives me the list of all the tables in the database...
    select t.table_name from all_tables t;All these tables in the database have a column called rowversion which gives the updated/inserted date of a record. I need to write a select statement (probably dynamic) which will give me the table names which contain the rowversion value 24-01-2013....
    Any help is very much appreciated...

    Napster wrote:
    Hi Karthick,
    Thanks for your reply...
    But when I execute your select statement I am getting an error saying table SYS.DBMS_XMLGEN does not exist.
    Probably something wrong in my environment?Yes you can, here is a quick untested code
    declare
      my_filter date := to_date('24-01-2013', 'dd-mm-yyyy');
      my_count integer;
    begin
      for i in (select table_name from user_tables)
      loop
         execute immediate q'[select count(*) from ]' || i.table_name || q'[ where rowversion = :1]'
         using my_filter
         into my_count;
         if my_count > 0 then
             dbms_output.put_line(i.table_name);
         end if;
      end loop;
    end; 
    /

  • Urgent-How to find the tables which are used in  DB02 transaction

    Hi,
    Can anybody help me in finding the tables  in Tablespaces tabstrip & Tables n Indexes tabstrip  in DB02 transaction??

    Hi,
    open the following link.
    http://books.google.co.in/books?id=jTTrZjucb_QC&pg=PA37&lpg=PA37&dq=dbo2%2Bsap&source=web&ots=FgA9pC3u24&sig=sOG3EJRm5HGW2aFpkVVH_oxBjjo&hl=en#PPP1,M1
    Master data load failure
    Reward if Helpful
    Jagadish

  • How to see the tables which are in the physical layer of SampleAppLite rpd

    Hi Everyone,
    I am new to OBIEE and I installed OBI Apps with Oracle 11g in my laptop. I tried to create reports using the OracleBIAnalyticsApps rpd. How can I know from which schema the tables are coming in the physical layer of the repository so that I can create a connection pool to the database. I got the default SampleAppLite rpd when I install the OBIEE but I am unable to see those tables in the database schema which are used in the SampleAppLite physical layer. Can anyone tell me how can I see the tables in the database which I see in the rpd. Actually my question may be wrong as I am new to this field, so please let me know if this is a wrong question. As I unable to express my question correctly. Thanks.

    For the OracleBIAnalyticsApps rpd - the tables are under "Catalog" then "dbo" in database "Oracle Data Warehouse" in the physical layer. The RPD comes out of the box with the required connection pools - you dont need to create any. The connection pools "Oracle Data Warehouse Repository Initblocks Connection Pool" and "Oracle Data Warehouse Connection Pool" in "Oracle Data Warehouse" read the data from the business analytics warehouse that you created in a schema name of your choosing with the DAC. All you need to do is edit the user name and password and the data source name with a connect string - which is the local net service name to your database for default call interface OCI 10g/11g assuming you used an Oracle database for your warehouse. One way to test the connection pool is to right click any table/alias then "Update Row Count".
    BTW Using the Admin Tool open the OracleBIAnalyticsApps rpd then do "Tools" then "Utilities" then "Repository Documentation" then "Execute". This will create a spreadsheet showing you all the mappings from the presentation to business to physical layers.

  • How to find the tables which are the candidates for gathering stats in 10g

    Hi,
    In 10g how can we find the tables, partitions which are the candidates for gathering the stats.
    I want to findo those tables, partitions and gather the stats on daily basis.
    Thanks,
    Mahi

    The probem you describe has been posted about before. There are known issues with the default dbms_stats parameter settings for some environements.
    What you can do is just go ahead an manually submit dbms_stats commands with appropriate parameters for tables that have not been analyzed or modify the maintenance window to give it more time.
    I would rather just generate the missing statistics myself then the job can continue to run in the normal maintenance window. Since the job should be looking only for tables that meet the stale requirements then once everything is analyzed it is likely the job can keep the statistics updated in the default time allowed.
    Be warned that the default parameter settings do not work well for some tables in some environments and if that proves true for your shop you can generate workable statistics on a table and then lock them so the nightly job ships regenerating the statistics for that table. You would then manually unlock, generate, and lock that statistics for that table as necessary.
    HTH -- Mark D Powell --

  • Docs&settings only shows bookmarks from Int Explorer used previously, not Moxilla. How can I save the bookmarks which are shown correctly when using MF?

    I want to save my bookmarks as I have done periodically since 2000 using Xp.
    For copying to F drive or USB, procedure is open C drive, Documents and settings, my name, Favorites
    I have hundreds of sorted bookmarks which I update fairly often.
    Changed to MF about five years ago.
    It looks like nothing has been added to the Favorites within Documents and Settings since then - all have the blue Int. Explorer logo, none in Moxilla colours.
    I was unaware of this as all bookmarks are shown correctly to left of desktop.

    There are three basic options
    #You can backup the bookmarks in a form that Firefox can use. And these include any tags with them.<br />See [[Restore bookmarks from backup or move them to another computer]]
    #Firefox stores History in the same database: '''places.sqlite'' the whole of that or even the whole of the profile may be backed up if necessary. <br /> See [[Back up and restore information in Firefox profiles]]
    #You may back them up by '''export / import''' as HTML. These are the same sort of files as is used for IE favourites / favorites. (These will append or tack on to existing bookmark collections) <br />See [[Export Firefox bookmarks to an HTML file to back up or transfer bookmarks]]
    CARE if you restore bookmarks from a backup it overwrites your existing bookmarks so always back them up manually before doing any restore.
    Firefox creates its own library of bookmarks. It is possible to add HTML files from IE to these. You will not be able to make sense of Firefox's .json or .sqlite files other than by allowing them to be used within Firefox. The HTML files may probably be opened directly by Firefox or some other programs such as Word Processors.
    * See [[Import Bookmarks from Internet Explorer]]
    * Also see<br />[[How to use bookmarks to save and organize your favorite websites]] <br /> [[Use bookmark folders to organize your bookmarks]]

  • DB Tool List Table: How to access tables which are in different SQL database ?

    Hi, All,
    I'm working on a database application (SQL server) and is evaluating the NI DB Tool kit for this project.
    One of the requirement is that I need to access tables which are in two different database
    (say Table A in DB 1 and Table B in DB 2).
    Our IT guys has linked Table A in DB1 to DB 2 and I verfied this when I use the SQL server managment studio.
    When DB 2 tables are populated, Table A from DB1 is also there. I can also do the same thing using MS Access.
    Table A in DB1 is avalaible to me enven though I only connect to DB 2.
    Here comes the problem.
    When I use DB Tool List Table.vi to access DB2, it does NOT list Table A in DB1. It only list the tables in
    the database (DB2) which I make connection to (using DB Tool Open Connection.vi with a file DSN)
    So my work around right now is to open two seperate connection to DB1 and DB2. However, this approach
    obviously creates a problem when I have to access seperate database constantly in my application.
    What would be a solution to this ? I've search the forum but only see one post that's somewhat related to
    my question. (And it was posted on 2004) Perhaps I need to alter the code in the orignial VI (DB Tool List Table.vi)??
    My IT guy told me he has not encountered this scenario since he writes codes in other enviroment such as
    VB and others, and he's always been successful by linking tables to different database. 
    I hope my question is sound and clear since I really don't know much about database terminology.
    Any comment/suggestion is much appreciated !!!
    Thanks
    Chad
    Solved!
    Go to Solution.

    To josborne:
    To answer your question:
    - Are the two databases contained on the same SQL Server instance? 
    Or are the databases on separate instances?  I assume they are on
    separate servers, otherwise this wouldn't really be an issue.  But its
    good to know because it will affect how you build your SQL statements.
    Yes they are on separate instances. 
    - Ask your IT people specifically how they "linked Table A in DB1 to
    DB 2".  I assume they used "linked servers". 
    Maybe I used the wrong terminology "linked." They created a "View of Table A (DB1)" in DB2 using the management studio.
    Here is a screen shot of that. As you can see, dbo.VISUAL_WORK_ORDER is seen under LABVIEW database in the management studio.
    I also see the same table when I make connection to database using MS Access.
    Could you elaborate on "configure your SQL statement correctly" =) ? The purpose of using LabView's took kit is so that I can do
    minimum SQL statements. Are you talking about modifying LabView's native VI (DB Tool List Table.vi) ?
    Thanks for the information. SQL is just something new to me.

  • How to know the List of Tables that are updated through a ABAP Program

    Hi,
    Is there a program or something that will help me to identify the List of Tables that are used in a ABAP program(ABAP Report, Transaction .... program) without debugging it or looking at the dictionary structure.
    I really need this urgently. Try to give me many methods as possible.
    Thkx
    Kishan

    Hi,
    I created a Z-transaction for my SE49 and debugged a little bit - it's not so fantastic any longer - just like the proposal of SE80 - DDIC list.
    SE49 (and I guess similiar functions, too) just scan the source code for a list of key words: tables, select, update, insert, modify, export, import.
    But very (very!) often updates are encapsulated into function modules - and here this technical cross reference (just like SE80 DDIC list) is of no help.
    So a SQL trace (or runtime analysis) is still the best option to get a complete list. Still these tools just analysis one process - if in other circumstances more tables are involved, can't be judged.
    E.g.:
    - creating one new entry: 1 table
    - changing existing entry: 2 accesses to 1 table + log table
    Regards,
    Christian

  • List of materials from the excel which are not posted

    I have written bdc,
    that ware house storage locations should not be allowed.
    All the storage locations in the table T320 are ware house storage locations.
    so i have written
    if not  it_data1 is initial.
    SELECT *  into table iT_320 FROM  T320
      for all entries in it_data1
    where WERKS = it_data1-werks and
               LGORT  = it_data1-lgort.
    endif.
    LOOP AT IT_DATA1 .
      read table iT_320 INTO wa_320 with key werks = it_data1-werks
                                              lgort = it_data1-lgort.
      IF sy-subrc = 0 .
        delete it_data1 index sy-tabix.
      ENDIF.
    endloop.
    So its working fine till then.
    but i wanted a list of materials from the excel wch are not posted,so tht the user is aware tht some items are not consumed.
    How to display that list in bdc.
    Please give the code for that.

    MY EXCEL DATA IS IN IT_DATA1.
    LOOP AT IT_DATA1 .
      read table iT_320 INTO wa_320 with key werks = it_data1-werks
                                              lgort = it_data1-lgort.
      IF sy-subrc = 0 .
        delete it_data1 index sy-tabix.
      ENDIF.
    endloop.
      LOOP AT IT_DATA1 .
        MOVE-CORRESPONDING IT_DATA1 TO IT_DATA_h.
        Collect it_data_h.
      ENDLOOP.
      Clear it_data_h.
    clear : it_data1.
    THEN MY BDC IS LIKE THIS.
    LOOP AT IT_DATA_H .
    perform bdc_dynpro      using 'SAPMM07M' '0400'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RM07M-WERKS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MKPF-BLDAT' LV_DATE  .
    perform bdc_field       using 'MKPF-BUDAT' LV_DATE.
    perform bdc_field       using 'RM07M-BWARTWA' '261'.
    perform bdc_field       using 'RM07M-WERKS' IT_DATA_H-WERKS.
    perform bdc_dynpro      using 'SAPMM07M' '0421'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSEG-WERKS(03)'.
    CLEAR : FLAG1, W_FLAG.
    LOOP AT IT_DATA1 WHERE aufnr = it_data_H-aufnr.
    W_FLAG = 1.
    CONCATENATE 'MSEG-MATNR' '(' W_FLAG ')' INTO W_MATNR_C.
    perform bdc_field       using  W_MATNR_C
                                   IT_DATA1-MATNR.
    CLEAR : QTY.
    QTY = IT_DATA1-ERFMG.
    SHIFT  QTY LEFT DELETING LEADING SPACE.
    END LOOP.
    NOW HOW TO COMPARE THE MATERIALS IN EXCEL AND  BDC POSTED.
    PLEASE PROVIDE THE CODE FOR THAT AND HOW TO DISPLAY.

  • How to identify the SQLs which are using the tables and new columns

    Hi
    I m using oracle 10G Database in windows. Developers have added some columns in some of the database tables and were asking to check whether there is some impact on performance or not. I have not done this performance tuning before. Kindly help me how to proceed further.
    How to obtain the sqls which are touching the tables and the new columns? It would be really great if you can help me with this.
    Thanks

    You can try to use DBA_DEPENDENCIES to get PL/SQL objects using tables: http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1041.htm#i1576452.
    However if SQL code is not stored in database in a trigger, a procedure, a function, a package or a view, it is impossible to retrieve all SQL code referencing some table from database dictionary: for this you would have to analyze application source code.

  • Can we get the list of Devices, which are connected to same Wifi?

    HI All,
    I am working with an iOS App which is related to Wifi-Network. I need to list out all the devices which are using same wifi connection, is there any way do. I have seen the Apples CaptiveNetwork, usinf that I can get the connected Wifi Info like SSID & BSSID, But I need fetch other devices info. I wanna connect to that device through wifi. Can anyone share with me please. Thanks in Advance.
    --Rajesh.

    You can't.  That information isn't available to an app.

  • Detect the fields which are primary/foreign keys for each schema's tables

    Hello everybody,
    I'd like to know if it's possible to select a field in one of the dictionary tables to identify the fields of a table which are PK or FK in this one. I'd like to do this to generate the fields that I need to put in a technical design.
    Actually I have this (if it can help you to understand what I'd like to do) :
    select table_name "Table name",
    column_name "Physical field name",
    case when data_type = 'NUMBER' then data_type || '(' || NVL(data_precision,0) || ',' || NVL(data_scale,0) || ')'
    when data_type = 'VARCHAR2' then data_type || '(' || data_length || ')'
    else data_type
    end "Datatype",
    case when nullable = 'Y' then 'FALSE'
    when nullable = 'N' then 'TRUE'
    end "Not null",
    /* Here I'd like to retrieve TRUE or FALSE if the field to display is a primary key or not and the same for foreign keys*/
    from all_tab_columns
    where table_name in (select table_name
    from all_tables
    where table_name like '%project_name%'
    and table_name not like '%TMP%');
    Thanks a lot for your help,
    Florent

    Please investigate all_constraints and all_cons_colums.
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm

  • Find out the SQLs which are using a full table scan

    Hello all , how can i to find out the queries which are using a full table scan ? Any idea ?

    In general, though, why would you want to tune SQL statements that aren't causing problems? Statspack will tell you what the most resource-intensive SQL statements on your system are. A SQL*Net trace of sessions that are performing poorly will indicate which statements are the most resource-intensive for that session. If a statement is incorrectly doing a full-table scan, but it is not causing a problem, why spend time tuning it? If you're not focusing your tuning attention on identifying statements that are causing problems, you'll also miss out on 90% of tuning opportunities which involve rewriting (or eliminating) code to make it more efficient. I can simulate a join on two tables with nested cursor loops, which won't generate a single full table scan, but replacing that code with a real join, while it will cause at least one full table scan, will be orders of magnitude faster.
    As an aside, full table scans aren't necessarily a bad thing. If a statement needs to retrieve more than a couple percent of the rows of a table, full table scans are the most efficient way to go.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Parameter field should pick the values which are there in the value table

    Hi Experts,
    I have a requ. where in a parameter field should pick only the values which are there in the value table for that particular field and should not allow the User to put in any other value.
    The value table is created in the program manually.
    EX:If the value table contains two sales organization VE03 and VE65 then the field shouldn´t allow anyother value other then those two.
    Thanks and Regards,
    Arun

    Try using a listbox.
    report  zrich_0001.
    type-pools: vrm.
    data: ivrm_values type vrm_values.
    data: xvrm_values like line of ivrm_values.
    data: name type vrm_id.
    parameters: p_vkorg(4) type c as listbox visible length 20.
    at selection-screen output.
      name = 'P_VKORG'.
      xvrm_values-key = 'VE03'.
      xvrm_values-text = 'VE03'..
      append xvrm_values to ivrm_values.
      xvrm_values-key = 'VE65'.
      xvrm_values-text = 'VE65'..
      append xvrm_values to ivrm_values.
      call function 'VRM_SET_VALUES'
           exporting
                id     = name
                values = ivrm_values.
    at selection-screen.
      if p_vkorg is initial.
        message e001(00) with 'Please enter a sales org'.
      endif.
    Regards,
    RIch Heilman

  • How to find the list of patches which are applicable to DS 5.2

    Hi;
    Is there any web page which lists the list of the patches which are released for Directory Server 5.2.
    I appreciate your assistance

    Read:
    http://docs.sun.com/source/817-7611/index.html#wp33336
    And also all the release notes.
    � SUN ONE Directory Server 5.2 release notes:
    http://docs.sun.com/source/816-6703-10/index.html
    � SUN Java System Directory Server 5.2 / 2005Q1 release notes:
    http://docs.sun.com/source/817-7611/index.html
    � SUN Java System/Directory Server 5.2 / 2005Q4 release notes
    http://docs.sun.com/source/819-2405/index.html
    � SUN Java System/Directory Server 5.2 / 2005Q1 release notes for Compressed Archive
    http://docs.sun.com/source/819-1815/index.html
    � SUN Java System/Directory Server 5.2 / 2005Q4 release notes for Patchzip
    http://docs.sun.com/source/819-4290/index.html
    You may find the following script useful.
    #! /bin/sh
    # chk_patches_sjes_ds52.sh
    # Gary Tay, 1-Apr-2005 written
    # Pls customize the patches you are checking, use blank to separate
    # multiple patch ids, eg: 5.9:112345 113456
    # Pls refer to:
    # http://docs.sun.com/source/817-7611/index.html#wp33336
    #114677-08 SunOS 5.9: International Components for Unicode Patch
    #117724-10 SunOS 5.8: NSPR 4.5.1 / NSS 3.9.5 / JSS 4.0
    #115342-01 SunOS 5.9: Simple Authentication and Security Layer (2.01)
    #115610-18 SunOS 5.9_sparc: Administration Server 5.2 patch
    #115614-20 SunOS 5.9: Directory Server 5.2 patch
    #117015-16 Patch for localized Solaris packages
    #116837-02 LDAP CSDK - SUNWldk, SUNWldkx
    # Solaris 8: (DS 5.2 Patch3 for the package version)
    #115610 SunOS 5.9 : Sun Java(TM) System Directory Server 5.2 patch 3 (Adminserv)
    #115614 SunOS 5.9 : Sun Java(TM) System Directory Server 5.2 patch 3 (DS)
    #117722 SunOS 5.8: NSPR 4.5.1 / NSS 3.9.5 / JSS 4.0...
    #118615 LDAP Java Development Kit 4.17 SunOS 5.8 5.9 _x86: genesis patch
    # Solaris 8: LDAP-Client
    #108993 LDAP-Client for Solaris 8 (phase II)
    #108808 LDAP-Client for Solaris 8 (man-pages)
    # And at your choice for for JES 114045
    cat >/tmp/chk_patches$$.tmp <<EOF
    5.8:108993 115610 115614 117722 118615 108808 114045
    5.9:114677 117724 115342 115610 115614 117015 116837
    EOF
    SOLARIS_VER=`uname -r`
    PATCH_IDS=`grep "$SOLARIS_VER" /tmp/chk_patches$$.tmp | cut -d: -f2`
    for i in `echo $PATCH_IDS`
    do
    RESULT=`showrev -p | grep "^Patch: $i-"`
    [ -n "$RESULT" ] && echo $RESULT
    [ -z "$RESULT" ] && echo PATCH $i not found...
    done
    /bin/rm -f /tmp/chk_patches$$.tmp
    Example of running chk_patches_sjes_ds52.sh:
    # ./chk_patches_sjes_ds52.sh
    Patch: 114677-08 Obsoletes: Requires: Incompatibles: Packages: SUNWicu, SUNWicux
    Patch: 117724-10 Obsoletes: 115926-10 Requires: Incompatibles: Packages: SUNWtls, SUNWtlsx, SUNWpr, SUNWjss, SUNWprx
    Patch: 115342-01 Obsoletes: Requires: Incompatibles: Packages: SUNWsasl, SUNWsaslx
    Patch: 115610-17 Obsoletes: Requires: Incompatibles: Packages: SUNWasvc, SUNWasvu, SUNWasvr, SUNWasvcp
    Patch: 115614-19 Obsoletes: 117907-02 Requires: 115610-17 Incompatibles: Packages: SUNWdsvr, SUNWdsvcp, SUNWdsvh, SUNWdsvhx, SUNWdsvu, SUNWdsvx, SUNWdsvpl
    PATCH 117015 not found...
    Patch: 116837-02 Obsoletes: Requires: Incompatibles: Packages: SUNWldk
    Gary

Maybe you are looking for