List of operators in OWB mapping using OMB Plus

Hi,
I got a situation where I need to find out the list of operators names and its type that I used in a mapping. I tried to search but could not find it. Can any body help me regarding this.
Thanks in advance
Yeswanth

Try this and similarly you can get all operator.
OMBRETRIEVE MAPPING 'MAP_NAME' GET TABLE OPERATORS
OMBRETRIEVE MAPPING 'MAP_NAME' GET VIEW OPERATORS
OMBRETRIEVE MAPPING 'MAP_NAME' GET TRANSFORMATION OPERATORS
OMBRETRIEVE MAPPING 'MAP_NAME' GET TABLE_FUNCTION OPERATORS
Cheers
Nawneet
Edited by: Nawneet_Aswal on Aug 30, 2010 8:43 AM

Similar Messages

  • Inserting sql scripts in OWB 10g using OMB PLUS

    Hey burleson, thanks for the reply..
    Infact i am new to OWB and my question can be very silly to you.
    Infact i have 1 source table in OWB named 'SALGRADE' which contains data and i have 1 target table named 'TARGET_SALGRADE' which has the same structure as the source table.
    The script i have run and tested is as such :
    INSERT INTO TARGET_SALGRADE
    (GRADE,
    LOSAL,
    HISAL)
    SELECT
    GRADE,
    LOSAL,
    HISAL
    FROM SCOTT.SALGRADE;
    I have tested it in sqlplus and the update has been done.
    Can you please tell me how do i proceed in OMB PLUS and how do i write the script there??
    Regards,
    Amrish

    You can run SQL scripts using the SQLPLus activity in a process flow.
    But the traditional mechanism to move data in OWB is using mappings. The post below might be interesting if you know SQL to understand how mappings are constructed;
    http://blogs.oracle.com/warehousebuilder/2007/08/sql_and_owb_accelerated_map_co.html
    Cheers
    David

  • How to reconcile procedure or function in a mapping using OMB Plus?

    HI,
    Could any one please explain, how to reconcile a procedure or function used in a mapping?
    Thank you,
    Regards,
    Gowtham Sen.

    Hi,
    You can only reconcile Inbound (from Procedure to the mapping) :
    OMBRECONCILE PROCEDURE \
    '/[Project_name]/[Module_name]/[Procedure_name]
    TO MAPPING '[Mapping_name]' \
    OPERATOR '[for example name of a Post-Mapping Process in the mapping]' \
    USE (RECONCILE_STRATEGY 'REPLACE', MATCHING_STRATEGY 'MATCH_BY_OBJECT_ID')
    Hope that will help.
    Best Regards
    Samy

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

  • Creating Configuration in OWB 11gR2 using OMB+ Scripts

    Hi All,
    Please help how to create a configuration pointing to another OWB Repository using OMB+ scripts.Also how to change the Active Deployment Location for a module using OMB+ Script.

    Hi
    Here is how you can add a new location to a module and set its configuration setting to this location (ADC);
    OMBALTER ORACLE_MODULE 'TGT_MOD' ADD REF LOCATION 'ADC'
    OMBALTER ORACLE_MODULE 'TGT_MOD' SET PROPERTIES (DB_LOCATION) VALUES ('ADC')
    http://download.oracle.com/docs/cd/E11882_01/owb.112/e14406/chap3015.htm#DADFHBGE
    Not sure if this is what you are after? To create a new configuration pointing to your own control center;
    OMBCREATE CONTROL_CENTER 'MYCC' SET PROPERTIES ( etc...
    OMBCREATE CONFIGURATION 'MYCONFIG'
    OMBCC 'MYCONFIG'
    OMBCREATE DEPLOYMENT 'MYCONFIGDEPLOY' SET REF CONTROL_CENTER 'MYCC'
    Cheers
    David

  • Problem using OMB*Plus

    Hello,
    I'm getting this error when trying to connect to design repository via OMB*Plus:
    "OMB01118: Could not connect to repository! PRS-00306: Internal Error: Could not undo reservation for client .
    Please contact Oracle Support with the stack trace and details on how to reproduce it."
    Here's the interesting part:\
    1) I CAN connect to the same repos. from OWB client AND
    2) I can connect to this repository from a different box using OMB*PLus.
    Further, OMB*PLus itself on the box in question is not screwed up, as I can connect to repos. on other boxes!
    What could the problem be?
    Thanks in advance,
    Alex.

    I went further with investigating my scripting problem:
    OMBCONNECT OWBRT92USER/[email protected]:1521:EDW USE REPOSITORY 'OWBRT92' USE MULTIPLE_USER_MODE
    OMB01118: Could not connect to repository! Database connection error!
    So I tried to alter pieces of my connect statement:
    OMBCONNECT OWBRT92USER/[email protected]:1521:wrong USE REPOSITORY 'OWBRT92' USE MULTIPLE_USER_MODE
    API0420: Error message: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNN
    UM=153092608)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514)(EMFI=4))))
    API0424: Please check if the the Oracle Service Name is correct.
    Obviously, connect string to database is OK !
    OMBCONNECT OWBRT92USER/[email protected]:1521:EDW USE REPOSITORY 'OWBRT92' USE MULTIPLE_USER_MODE
    API0420: Error message: ORA-01017: invalid username/password; logon denied
    And obviously, repository user is well identified !
    Since I tried using either 'SINGLE_USER_MODE', 'MULTIPLE_USER_MODE' and nothing and it brings the very laconic same OMB01118 message, I guess it has to deal with "use repository clause
    I tried to alter it to see what happens:
    OMBCONNECT OWBRT92USER/[email protected]:1521:EDW USE REPOSITORY 'WRONG' USE MULTIPLE_USER_MODE
    ...but it brings the very same OMB01118 message.
    Now I tried to connect to development repository:
    OMBCONNECT OWBDEV92/[email protected]:1521:EDW USE REPOSITORY 'OWBDEV92' USE MULTIPLE_USER_MODE
    Connected.
    Well, cool, 'means I can connect to devt. repository but I want to deploy to runtime and if I usE:
    OMBDEPLOY SPECIFICATION FROM C:\TEMP\deploytest.xml
    it yields:
    OMB05608: Connection to Runtime Platform has not been made.
    Well, what can I do ?
    Documentation B12187_02_Warehouse Builder Scripting Reference.pdf (chap. 2-12, page 48) mentions a OMBCONNECT_RUNTIME command that does not exist and the example is a strict copy of OMBCONNECT (even the example does not use OMBCONNECT_RUNTIME)
    OMB+> OWMBCONNECT_RUNTIME
    invalid command name "OWMBCONNECT_RUNTIME"
    I'm really stuck.
    Does anyone else connect to a runtime repository to deploy from a xml file ?
    Thanks

  • How to stop a scheduled job using OMB*Plus ?

    Hello everyone,
    I use a OMB*Plus script to deploy a project in various environments. This includes scheduled jobs.
    In this context, I need to stop the schedules of the previous versions to avoid a script crash.
    I found the OMBSTOP command thad could do, but I need to retrieve the job ID of the schedule I want to stop. And I don't know how to get the Job ID.
    I could get it from a previous launch and save it somewhere, but it wouldn't work if the schedule was manually stopped and restarted. Maybe is there a command that lists the running / scheduled jobs and their IDs? I didn't find it.
    Thanks in advance for your help.
    Cedric.

    Frankly, I cannot see where this is available via pure OMB+, however you could back-door it if if you can figure out how to get these values from the public views (I would guess from the "Scheduling Views" section at http://download-east.oracle.com/docs/cd/B31080_01/doc/owb.102/b28225/toc.htm).
    Then you could use my SQL library from OMB+ to get these values and stop the schedules before deploying. you can save this file as omb_sql_library.tcl and then just "source /path/to/omb_sql_library.tcl in your own script to make the functions available in your script.
    {code}
    package require java
    # PVCS Version Information
    #/* $Workfile: omb_sql_library.tcl $ $Revision: 1.0 $ */
    #/* $Author: $
    #/* $Date: 03 Apr 2008 13:43:34 $ */
    proc oracleConnect { serverName databaseName portNumber username password } {
    # import required classes
    java::import java.sql.Connection
    java::import java.sql.DriverManager
    java::import java.sql.ResultSet
    java::import java.sql.SQLWarning
    java::import java.sql.Statement
    java::import java.sql.CallableStatement
    java::import java.sql.ResultSetMetaData
    java::import java.sql.DatabaseMetaData
    java::import java.sql.Types
    java::import oracle.jdbc.OracleDatabaseMetaData
    # load database driver .
    java::call Class forName oracle.jdbc.OracleDriver
    # set the connection url.
    append url jdbc:oracle:thin
    append url :
    append url $username
    append url /
    append url $password
    append url "@"
    append url $serverName
    append url :
    append url $portNumber
    append url :
    append url $databaseName
    set oraConnection [ java::call DriverManager getConnection $url ]
    set oraDatabaseMetaData [ $oraConnection getMetaData ]
    set oraDatabaseVersion [ $oraDatabaseMetaData getDatabaseProductVersion ]
    puts "Connected to: $url"
    puts "$oraDatabaseVersion"
    return $oraConnection
    proc oracleDisconnect { oraConnect } {
    $oraConnect close
    proc oraJDBCType { oraType } {
    #translation of JDBC types as defined in XOPEN interface
    set rv "NUMBER"
    switch $oraType {
    "0" {set rv "NULL"}
    "1" {set rv "CHAR"}
    "2" {set rv "NUMBER"}
    "3" {set rv "DECIMAL"}
    "4" {set rv "INTEGER"}
    "5" {set rv "SMALLINT"}
    "6" {set rv "FLOAT"}
    "7" {set rv "REAL"}
    "8" {set rv "DOUBLE"}
    "12" {set rv "VARCHAR"}
    "16" {set rv "BOOLEAN"}
    "91" {set rv "DATE"}
    "92" {set rv "TIME"}
    "93" {set rv "TIMESTAMP"}
    default {set rv "OBJECT"}
    return $rv
    proc oracleQuery { oraConnect oraQuery } {
    set oraStatement [ $oraConnect createStatement ]
    set oraResults [ $oraStatement executeQuery $oraQuery ]
    # The following metadata dump is not required, but will be a helpfull sort of thing
    # if ever want to really build an abstraction layer
    set oraResultsMetaData [ $oraResults getMetaData ]
    set columnCount [ $oraResultsMetaData getColumnCount ]
    set i 1
    #puts "ResultSet Metadata:"
    while { $i <= $columnCount} {
    set fname [ $oraResultsMetaData getColumnName $i]
    set ftype [oraJDBCType [ $oraResultsMetaData getColumnType $i]]
    #puts "Output Field $i Name: $fname Type: $ftype"
    incr i
    # end of metadata dump
    return $oraResults
    # SAMPLE CODE to run a quick query and dump the results. #
    #set oraConn [ oracleConnect myserver orcl 1555 scott tiger ]
    #set oraRs [ oracleQuery $oraConn "select name, count(*) numlines from user_source group by name" ]
    #for each row in the result set
    #while {[$oraRs next]} {
    #grab the field values
    # set procName [$oraRs getString name]
    # set procCount [$oraRs getInt numlines]
    # puts "Program unit $procName comprises $procCount lines"
    #$oraRs close
    #oracleDisconnect $oraConn
    {code}
    So you would want to connect to the control center, query for scheduled jobs, stop them, and then continue on with your deployment. I assume that you also need to pause and check that an scheduled job in mid-run has time to exit before moving ahead. You could do a sleep loop querying against system tables looking for active sessions running mappings and waiting until they are all done or something if you really want to bulletproof the process.
    Hope this helps,
    Mike

  • How to properly create a calendar using OMB*Plus, to schedule a workflow ?

    Hello all,
    I want to schedule a workflow when deploying via OMB*Plus.
    It looks like I have a syntax error, but this happens even with the example given on
    [the OMBCREATE CALENDAR documentation|http://download-uk.oracle.com/docs/cd/B31080_01/doc/owb.102/b28225/omb_4create_1.htm#sthref1427]
    My code is:
    OMBCREATE CALENDAR 'SCH_DELTA_test2' ADD SCHEDULE \
    SET PROPERTIES (REPEAT_EXPRESSION)\
    VALUES ('FREQ=WEEKLY;INTERVAL=1;BYDAY=TUE WED THU FRID SAT;BYHOUR=12;BYMINUTE=0;BYSECOND=0') ]
    If I copy-paste an example from the doc, the last line becomes :
    VALUES ('FREQ=MINUTELY;INTERVAL=20') ]
    The result is:
    OMB00001: Encountered \' at line: 1, column: 95. Was expecting one of: <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <QUOTED_STRING> ...
    The position line: 1, column: 95 is the opening quote of the last line, just before FREQ=
    I can't find any way to get this working. If anyone see something wrong or missing, please advise. Thanks in advance.
    Cedric.

    Hello Oleg,
    I followed your advice, but OMB*Plus doesn't like it, as it seems :
    the code:
    OMBCREATE CALENDAR 'CAl_SCH_DELTA' ADD SCHEDULE 'SCH_DELTA' SET PROPERTIES (REPEAT_EXPRESSION) VALUES ('FREQ=MINUTELY;INTERVAL=20')
    the error:
    OMB00001: Encountered SCH_DELTA at line: 1, column: 49. Was expecting one of: <E
    OF>
    "SET" ...
    Regards
    Cedric.

  • Schedule OWB mapping using OEM

    Hi,
    I am trying to call OWB mappings from the OEM (using the GUI).
    I have mappings which have input parameters. So calling the mapping as a PL/SQL block is not going to work.
    using the .MAIN method as these parameters will change for every run.
    I am seeing if there is another way to add these mappings as programs and then add them to a chain. Having the mapping input parameters as program attributes.
    Please share if you know of a way to get this done.
    Thanks,
    AM

    Hi,
    There is no need to detect..if there are any pictures stored in the column which is possible in LONG u cannot even detect the length. You will just ahve to write a procedure which will move the data to col1 ig the data in the LONG column is less than 4000 and it will automatically move it to col2 when the data length in the LONG column is greater than 4000.
    first declate 2 variables with varchar2(4000) and a temp cursor for long column. Open a cursor and and equate the variables with a substring function w.r.t the v_temp.
    ex:
    v_notes1 :=substr(v_temp,1,4000)
    v_notes2 :=substr(v_temp,4001,4000)
    insert the other records as it is. This will work.
    Regards
    Bharath

  • How to bind mapping input parameter in process flow using OMB Plus

    Hi
    I have created a process flow with a mapping.
    This mapping has a input parameter, that I want to bind to a variable using OMBPlus
    OMBALTER PROCESS_FLOW '$process' MODIFY PARAMETER 'P_EOD_DATE_IN' SET PROPERTIES (BINDING) VALUES ('V_EOD_DATE') does not work as P_EOD_DATE is NOT a process parameter
    neither does
    OMBALTER PROCESS_FLOW '$process' MODIFY PARAMETER '$mapname/P_EOD_DATE_IN' SET PROPERTIES (BINDING) VALUES ('V_EOD_DATE') as the reference '$mapname/P_EOD_DATE_IN' is not valid.
    Any suggestions ?
    Best Regards
    Klaus

    Hi Klaus,
    look here {thread:id=640397}
    Regards,
    oleg

  • Automation using OWB OMB Plus Scipt

    Hi Everyone,
    I am trying to automate the configuration of Maps using OMB Script. However the below TCL script runs however I am trying to add some more Validation like while it should trim spaces while accepting the map names, i should be able to match the test like it was possible using substr() trim(), concatenate any text. I searched everywhere how was unable to do so. Please help.
    #=====================================================================
    # Developers Name     : Ravindra Remje
    # Script Name          : owb_auto_review.tcl
    # Purpose of Scripts     : Displays the current configured properties on OWB Maps
    # Scripting Language     : OMB scripts
    # Date          : 17th September 2010
    #=====================================================================
    puts " Connecting to repository... "
    OMBCONNECT OWB_ABC_123/OWB_ABC_123@localhost:1521:HOME
    puts " Connecting to project..."
    OMBCC '/ABC_ABC'
    puts " Connecting to target module..."
    OMBCC 'ABC_TGT_MOD'
    puts "Current Context [OMBDCC] "
    puts "**********YOUR CURRENT CONTEXT IS AN ORACLE TARGET MODULE*************"
    puts ""
    set i 1
    set OMBCONTINUE_ON_ERRORR TRUE
    # create the log file and display OMB commands and its results in file.
    # set OMBLOG D:/review.log
    # create the file and writes the output of screen into the file.
    set fname [ open "d:/review_file.log" w]
    foreach map [OMBLIST MAPPINGS] {
         if { $i > 0 } {
         if {$map == "ABC_W_ADDRESS_D" ||
              $map == "ABC_USER_D"} {
    puts $fname "REVIEW ON MAP $i : $map"
         puts $fname ""
         # HINTS
         foreach tab [OMBRETRIEVE MAPPING '$map' GET TABLE OPERATORS] {
         puts $fname "TABLE: $tab "
         set var21 [OMBRETRIEVE MAPPING '$map' OPERATOR '$tab' GET PROPERTIES(LOADING_HINT)];
         puts $fname " Loading hint                :     $var21 "
         set var22 [OMBRETRIEVE MAPPING '$map' OPERATOR '$tab' GET PROPERTIES(EXTRACTION_HINT)];
         puts $fname " Extraction hint          :     $var22 "
         # puts $fname "====================================================================="
         puts $fname ""
                                            # foreach tab ends
         # MAIN PROPERTIES
         set var1 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(DEPLOYABLE)];
         puts $fname " Deployable               :     $var1 "
         set var2 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(STEP_TYPE)];
         puts $fname " Step Type               :     $var2 "
         # RUNTIME PARAMETERS
         set var3 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(DEFAULT_OPERATING_MODE)];
         puts $fname " Default Operating Mode          :     $var3 "
         set var4 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(BULK_SIZE)];
         puts $fname " Bulk Size                    :     $var4 "
         set var5 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(DEFAULT_AUDIT_LEVEL)];
         puts $fname " Default Audit Level          :     $var5 "
         set var6 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(MAXIMUM_NUMBER_OF_ERRORS)];
         puts $fname " Maximum number of errors          :     $var6 "
         set var7 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(COMMIT_FREQUENCY)];
         puts $fname " Commit Frequency               :     $var7 "
         set var8 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(DEFAULT_PURGE_GROUP)];
         puts $fname " Default Purge Group          :     $var8 "
         set var9 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(ANALYZE_TABLE_SAMPLE_PERCENTAGE)];
         puts $fname " Analyze table sample percentage     :     $var9 "
         set var10 [OMBRETRIEVE MAPPING '$map' GET PROPERTIES(MAXIMUM_NUMBER_OF_ERRORS)];
         puts $fname " Maximum number of errors          :     $var10 "
         # CODE GENERATION OPTION
         set var11 [OMBRETRIEVE MAPPING 'ABC_USER_D' GET PROPERTIES(BULK_PROCESSING_CODE)];
         puts $fname " Bulk processing code          :     $var11 "
         set var12 [OMBRETRIEVE MAPPING 'ABC_USER_D' GET PROPERTIES(PARALLEL_ROW_CODE)];
         puts $fname " Parallel row code               :     $var12 "
         set var13 [OMBRETRIEVE MAPPING 'ABC_USER_D' GET PROPERTIES(ANALYZE_TABLE_STATEMENTS)];
         puts $fname " Analyze table statements          :     $var13 "
         set var14 [OMBRETRIEVE MAPPING 'ABC_USER_D' GET PROPERTIES(OPTIMIZED_CODE)];
         puts $fname " Optimized code               :     $var14 "
         set var15 [OMBRETRIEVE MAPPING 'ABC_USER_D' GET PROPERTIES(CORRELATED_COMMIT)];
         puts $fname " Correlated commit               :     $var15 "
         set var16 [OMBRETRIEVE MAPPING 'ABC_USER_D' GET PROPERTIES(NO_COMMIT)];
         puts $fname " No commit                    :     $var16 "
         # set var17 [OMBRETRIEVE MAPPING 'ABC_USER_D' GET PROPERTIES(ERROR_TRIGGER)]; (Property ERROR_TRIGGER of ABC_USER_D does not exist)
         # puts $fname " Error trigger               :     $var17 "
         puts $fname ""
         puts $fname "====================================================================="
                             # if {$map...} ends
                   # if { $i > 0 } ends
         incr i
         # foreach map ends
    close $fname
    puts "Disconnecting from the repository..."
    OMBDISC

    Thank you Oleg for your reply.
    Well this thing did work, however there are some special characters being entered. For example if there are few spaces in my output it will replace it with some special character in my output file in place of that spaces; like it will create a small box like icon.
    Now what i am trying to get the output in an .xls or .csv. If you look into the code i am appending everything i require line by line in my output file. So my question is that is it possible to put everything in the same format which is possible in .txt file output.
    Regards,
    Ravi

  • Error while exporting using OMB+ in unix

    Hi we are trying to export the OWB project using OMB+ ,
    i wrote a shell script which contains this
    /oradir/dkfndr/owb/owb/bin/unix/OMBPlus.sh /finapps/dkfndr/owb/owb_export.tcl
    the tcl script does the export stuff , we got the following error,
    srxgpor11dv01:/finapps/dkfndr/owb(1058)$ /finapps/dkfndr/owb/owb_export.sh
    cat: cannot open setowbenv.sh
    /oradir/dkfndr/owb/owb/bin/unix/OMBPlus.sh: ../admin: does not exist
    any clues ,
    Thanks in advance
    Suresh

    I've had issues with paths in UNIX on several occassions, so I now just ensure that my shell scripts 'cd' to the owb/bin/unix directory first
    cd /oradir/dkfndr/owb/owb/bin/unix/
    ./OMBPlus.sh /finapps/dkfndr/owb/owb_export.tcl
    I have also had cases in UNIX where the install left me with at least on of the JDK directories with improperly set permissions.

  • Executing an OWB mapping from sqlplus

    Hi
    I am trying to run an OWB mapping using the OWB provided script sqlplus_exec_template.sql. Here is the syntax I use:
    @Script\sql\sqlplus_exec_template.sql OWB_RUN_OWNER CODE_LOC PLSQL MAPPING_TI "," ","
    I am able to successfully execute my task when I use the above script. However, when the account pertaining to 'CODE_LOC' is locked, the script fails and gives me an error message that the account is locked.
    Our security standards expect the CODE_LOC account to be locked. Is there a way around it ? When the mapping is executed, does the Runtime repository owner lookup the task from the Code location or attempts to connect to the account ?
    Can someone advise me on whether I can successfully execute a mapping that is deployed to a locked account ?
    Thanks

    Hi
    The only way I can think of is when the account X is locked, to have granted execute on the packages for the map to schema Y which is unlocked and execute the package MAIN procedure/function from schema Y.
    Cheers
    David

  • OMB plus Creating Locations Modules And Importing the Metadata?

    Hi All,
    First of all I would like to thank you all of you in advance for all your time and concern. I have serious of questions and I will ask them in 3 different portions as they are slightly different.
    How can I implement the steps below using OMB plus? If you could provided sample script and notation it will be highly appreciated.
    -- Creating an Oracle Location for a Schema and Registering it
    -- Creating an Module and relating it to the location that was created.
    -- Importing the metadata for all the objects in this Schema in to this module.
    For example,
    You have a schema called ORACLE_SRC. I need to create the location and module for this schema and tie them each other. Then I need to import all the metadata for all the objects in this ORACLE_SRC schema. During this import all the preserve statements should be unchecked. And I need to accomplish all these using OMB plus and TCL scripting.
    -- Creating an Non Oracle (SQL server 2005) Location for a database and Registering it
    -- Creating an Module and relating it to the location that was created.
    -- Importing the metadata for all the objects in this Schema in to this module.
    For example,
    You have a schema called SQLSERVER_SRC. I need to create the location and module for this schema and tie them each other. Then I need to import all the metadata for all the objects in this SQLSERVER_SRC schema. During this import all the preserve statements should be unchecked. And I need to accomplish all these using OMB plus and TCL scripting.
    -- Creating an Flat File Location for a folder structure and Registering it
    -- Creating an Module and relating it to the location that was created.
    For example,
    You have a schema called FLATFILE_SRC. I need to create the location and module for this schema and tie them each other.
    Thanks again for all your help and concern!
    Kind Regards,
    Mike

    In addition to the performance issue above I have faced an extremely more important problem. When I have used the same logic for importing Materialized views I am getting an error at the last step of the script. It is exactly the same case also for EXTERNAL_TABLE objects. TABLE and VIEW objects are fine. OMBIMPORT command throw the error message below.
    PUB04201: Encountered an internal fatal error during processing of oracle module XXX_DMY_DWPROD_TST: unsupported obj type.
    I would like to mention that MATERIALIZED_VIEW is the object name I took from OWB scripting Reference guide. I have tried couple other naming conventions too but it didn't work.
    Strange thing is If I were to change MATERIALIZED_VIEW to TABLE it works but the materialized view gets imported into 'Tables' folder under the module.
    Please help?
         #IMPORT FOR MATERIALIZED VIEWS STARTS
    #pull the names of the object inthe schema
         set MVIEWLIST {}
         set sqlStr "select distinct Mview_Name from all_mviews where owner = upper('$DbNm') order by Mview_Name"
         #execute the query
         set oraRs [oracleQuery $oraConn $sqlStr]
         #Loop through the list of objects
         while {[$oraRs next]} {
              set mvwName [$oraRs getString Mview_Name]
              lappend MVIEWLIST $mvwName
         #and close the query
         $oraRs close
         set listCntr 0
         set listTotal [llength $MVIEWLIST]
         set mviewName [lindex $MVIEWLIST $listCntr]
         #First object
         OMBALTER IMPORT_ACTION_PLAN 'IMPORT_ALL' ADD ACTION 'MAT_VIEWS' SET REF SOURCE MATERIALIZED_VIEW '$mviewName' SET REF TARGET ORACLE_MODULE '$ModNm'
         OMBCOMMIT
         puts "$mviewName is being imported"
         incr listCntr
         while {$listCntr<$listTotal} {     
              #Rest of the objects
              set mviewName [lindex $MVIEWLIST $listCntr]
              incr listCntr
              OMBALTER IMPORT_ACTION_PLAN 'IMPORT_ALL' MODIFY ACTION 'MAT_VIEWS' SET REF SOURCE MATERIALIZED_VIEW '$mviewName' SET REF TARGET ORACLE_MODULE '$ModNm'
              OMBCOMMIT
              puts "$mviewName is being imported"
         set listCntr 0
         set listTotal 0     
         #IMPORT FOR MATERIALIZED VIEWS ENDS
              OMBIMPORT FROM METADATA_LOCATION FOR IMPORT_ACTION_PLAN 'IMPORT_ALL'
              OMBDROP IMPORT_ACTION_PLAN 'IMPORT_ALL'

  • Deployment of mappings other than OMB Plus

    I have a question regarding deployment of mappings via OMB Plus. The deployment staff is facing problem in using OMB Plus. I want to ask is there anyother way to deploy mappings other than deploying them via OMB plus. I tried to generate the pl/sql of the mapping and run this sql script in the same schema of other enivornment, but it gave me following error.
    ORA-01403: no data found
    ORA-06512: at "REPOSITORY_SCHEMA.WB_RT_MAPAUDIT_UTIL", line 1027
    ORA-06512: at "STAGING_SCHEMA.MAPPING_01", line 2664
    ORA-06512: at line 4
    I believe that by deploying it from OMB Plus, some audit entries are logged in Repository schema which can not be done by executing the package script simply in sqlplus.
    Can anyone suggest me any other way for deployment of mappings ?

    IMHO, the answer is no. The problem is OWB runtime needs in repository information about installed runnable objects,
    but there is no any public information about structure of OWB repository or public API for deploying except OMBPlus and OWB Client.
    Look at this threads
    Problem Running Process Flow When Database Objects Deployed Outside of OWB
    Deploying without Deploy
    As you can see from second link Jwvandij (Jaap) user explored method of deployment with direct modification of OWB repository for old OWB release.
    Regards,
    Oleg

Maybe you are looking for

  • WD external hard drive seems to crash my Mac just by being connected to it

    Is this even possible? I apologize in advance if the question is too obviously n00b, or if it's been answered (I did search before posting), or if it's in the wrong forum. I have a brand-new MBP, late 2008, and I was going to use a WD Elements 1.5 TB

  • Abap api error

    Hi All I am trying to use abap api to fetch data from MDM and I am using the provider class for SP06 for MDM 5.5 SP05 installation . I get the below dumpĀ  when I execute my program. " Protocol header 0108000000010000 has invalid signature" on debuggi

  • Problem in master data loading in BI 7.0

    Hi Experts, I m loading master data in BI 7.0 server. It is getting failed due to invalid record. But when i load the same data in 3.5; it is successful. Can anybody tell me what may be the problem.. Thanks in advance.. Regards, Ashwin

  • I installed Lion and now photo booth does not work

    It says I have to reinstall it again. How do I do that?

  • I don't have something about Proof of eligibility (Adobe CC Student)

    I'm student in University at Thailand(South East Asia) I'm seriously about Proof of eligibility because 1.I'm don't have something(Transcript and Tuition Bill). 2.Am I send proof or upload on internet? 3.How much Adobe CC for student (19$ or 26$) Stu