OMB commands tutorial

Hi all,
Could anyone give me any url or info that where can I get OMB commands and related info and some examples..
Thanks in advance.

Have a look here:
Oracle Warehouse Builder 10g
Scripting Language - Home Page
http://www.oracle.com/technology/products/warehouse/sdk/Scripting%20Pages/Scripting_home.htm

Similar Messages

  • What is the diffrence between OMB plus command and OMB command

    what is the diffrence between OMB plus command and OMB command?
    are they both TCL command?

    Hi Alena,
    Welcome to SDN.
    Check this
    EXIT in Loops and Modularization Units
    Basic form
    EXIT.
    Effect
    Within a loop structure:
    Terminates looop processing (DO, WHILE, LOOP, SELECT).
    Within subroutines and other modularization units (but not in a loop structure):
    Leaves the subroutine or modularization unit (FORM, MODULE, FUNCTION, TOP-OF-PAGE, END-OF-PAGE).
    Outside loop structures and modularization units (report processing):
    Terminates report processing and triggers list display.
    But not sure about
    atexit() .. ,may use in Object Oriented Programming.
    (C++)
    "At exit-command in module pool."
    Mohinder
    Edited by: Mohinder Singh Chauhan on Aug 1, 2008 8:06 AM

  • OMB command to set the location of an ODBC module

    I am writing OMB scripts to deploy an OWB project to a production environment.
    In the deployment script, I set the location of an Oracle module using the OMB commands :
    OMBALTER ORACLE_MODULE '<modulename>' ADD REFERENCE LOCATION '<locationname>' SET AS DEFAULT
    OMBALTER ORACLE_MODULE '<modulename>' SET PROPERTIES (DB_LOCATION) VALUES ('<locationname>')
    I also have an ODBC module for which I need to assign a location in the same way
    What is the OMB syntax to achieve this?
    OWB version 10.2.0.4

    You can use GATEWAY_MODULE for these. For example ...
    OMBALTER GATEWAY_MODULE '<modulename>' SET PROPERTIES (DB_LOCATION) VALUES ('<locationname>')
    Cheers
    David

  • OMB+ command to generate mapping code

    Hi,
    I want to generate pl/sql code for an OWN mapping. How can i do it using OMB+ command.
    Thansk in advance

    Hi
    The OMB is used in this expert below mentioned in this blog post;
    http://blogs.oracle.com/warehousebuilder/entry/headless_operation_owb_code_generation_going_it_alone
    Commands such as....
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN' \
    ADD ACTION '$object_action' SET PROPERTIES (OPERATION) \
    VALUES ('CREATE') SET REFERENCE $object_ref \
    '$mapname'
    OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN' AS SCRIPT TO '$folder'
    Cheers
    David

  • OMB command to modify Table Index

    Hi All,
    I am trying to add a new columnname to index of the table by using omb command but failing out .. Can anybody help me ?
    OMBALTER TABLE 'TABLENAME' \
    MODIFY INDEX 'INDEXNAME' \
    ADD INDEX_COLUMN 'COL1'
    Thanks,
    Samurai.

    I got it thanks.
    OMBALTER TABLE 'TABLENAME'\
    ADD INDEX_COLUMN 'COLUMNNAME' OF INDEX 'INDEXNAME'
    Thanks,
    Samurai.

  • OMB Commands - Time comparision with OWB

    Hi
    1.
    I wrote a TCL script with OMB commands to Deploy the objects from my OWB to a destination environment.
    The script is working fine but it is taking a bit more time than when deployed through OWB.
    From OWB one module is taking 3.4 minutes but from the script it is taking 5.2 mins.
    I am just trying to understand the reason why this script is taking more time.
    I can think of the following reasons for this delay in the script.
    a. Connect to the repository
    b. Start the control center
    My script is as follows.
    if { [ catch {
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'TREX_DEPLOY_PLAN' ADD ACTION 'TREX_DEPLOY_PLAN' \
    SET PROPERTIES (OPERATION) VALUES ('REPLACE') SET REFERENCE SEQUENCE '$seqName'
    OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'TREX_DEPLOY_PLAN'
    OMBDROP DEPLOYMENT_ACTION_PLAN 'TREX_DEPLOY_PLAN'
    OMBCOMMIT } errmsg ] } {
    Is there any other reason for this delay ? Or am I missing something ?
    2.
    Is there any difference between executing OMBCOMMIT 'once' in the script and executing it for each OMBDEPLOY ?
    Which method is recommended ?
    3.
    We are planning to run the script in parallel for more than one module at a time.
    Is there any way we can do this in TCL by getting the same connection and control center instead of initiating them for each thread ?
    (Something like pooling of the connections and control centers ?)
    I appreciate any help regarding the above doubts.
    Thanks and Regards
    Sameer

    Hi Sameer,
    1. There's no obvious reason why an OMB command should take any longer than the equivalent operation in the UI. The initial connection to the repository and the connection to the control center will take some time as you've mentioned, but probably not that long.
    OMB*Plus doesn't support deploying a whole module in one go like the UI does, so i guess you have a TCL script that deploys the contents of the module as separate deployment plans? If this is the case, then this will introduce some overhard as each deployment will need to perform the same location checks and create the controller mechanisms for the deployment. If you haven't already done so, you could try adding all the objects from the module to a single deployment plan as this would reduce the overhead.
    2. There shouldn't be any difference between doing commits per statement, or one big one at the end. I would just use one at the end.
    3. OMB*Plus does have some support for parallel activities through the OMBDEPLOY ASYNCHRONOUS keyword. This will start the deployment and return to the command line so that you can continue with other tasks. Unfortunately though, you can't perform two deployments this way as only one generation can be performed at a time in each session.
    In order to perform parallel modules, you'd need to use multiple TCL sessions, each of which would create their own distinct connections to the repos/ control center (there's no connection sharing across threads). Hopefully this shouldn't be a big overhead though.
    Nigel.

  • AT commands tutorial

    plz suggess me tutorial or documentation for java telephony
    AT commands API.
    Thanx

    pri wrote:
    ya i search for it but could not found API for that ..can u give me any idea....for it? i m at starting level so from where i should start?Well, why did you expect an API? You asked for documentation on AT commands. You realise that AT commands are not tied to any platform or language, right? They're just some mnemonics
    first hit on Google:
    http://www.cellular.co.za/hayesat.htm
    Why is that not acceptable?

  • Exception on OMB command: OMBRETRIEVE

    Hi All,
    I need to get bound object for OWB "External Table Operator". To get it done by OMB+ I use command:
    OMB+> OMBRETRIEVE MAPPING 'MAP_1' OPERATOR 'EXTTABLE_2' GROUP 'OUTGRP1' ATTRIBUTE 'C_1' GET BOUND_OBJECT
    but the command fails with message:
    oracle.owb.foundation.OWBException: Constructor oracle.owb.relational.ExternalTableColumnImpl(WBElement elem) not found.
    If I use the same command for "Table Operator" it does work well:
    OMB+> OMBRETRIEVE MAPPING 'MAP_1' OPERATOR 'TABLE_1' GROUP 'INOUTGRP1' ATTRIBUTE 'C_1' GET BOUND_OBJECT
    Seems like there is a bug in OWB classes related to "External Table Operator".
    Does anybody know some workaround for the problem ?
    Thanks,
    Sergiy

    Hi Nawneet,
    Thanks for replay. But the command:
    OMBRETRIEVE MAPPING 'MAP_1' OPERATOR 'EXTTABLE_2' GET BOUND_OBJECT
    just returns the external table name. Like:
    EXTERNAL_TABLE /EXTTABLE_1/MOD_1/EXTTABLE_2
    I need to get external table column name which is bounded to operator's column.
    That is whay I have to use full specification:
    OMBRETRIEVE MAPPING 'MAP_1' OPERATOR 'EXTTABLE_2' GROUP 'OUTGRP1' ATTRIBUTE 'C_1' GET BOUND_OBJECT
    I expect to get:
    EXTCOL_1
    Thanks,
    Sergiy

  • OMB+ Commands

    Hi
    I need to develope scripts in OMB+ for automation,
    can any one tell me the command for going one level up in context change.

    I'm not a OMB+ expert, I've learnt using manuals and reading this forum, some threads have useful scripts. This is basically what I have used:
    - OMB+ especific commands: http://download-east.oracle.com/docs/cd/B31080_01/doc/owb.102/b28225/toc.htm
    - TCL commands (there are a lot on the web): http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.4/tcl/tcl_contents.htm
    - Some example scripts: http://www.oracle.com/technology/products/warehouse/htdocs/OWBexchange.html
    You can ask specific questions in this forum, but you'll have to work yourself a lot.
    Regards
    ANA GH

  • OMB command help: list object dependencies

    Hi,
    Is there any way in which we can get a list of all object dependencies of OWB mapping using OMB+ or otherwise.
    Thanks in advance

    Yeah, I could sense that I could make SQL query using OWB views. Could you help me making one?
    Thanks,

  • How to execute OMB scripts from the command prompt of OS

    Hi
    I want to deploy the mapping from one environment to other environment using OMB script language. But I dont want to run the OMB scripts from OMB plus COmmand prompt?
    All I need is , is there any way/scripts to access OMB command prompt from the general command prompt of the OS Machine?
    or Can I call this OMB command from java program but not JDeveloper?
    It would be a great help for me by sharing your knowledge?
    Cheers
    Pradeep

    This way from MS-DOS:
    set ORACLE_HOME=c:\oracle\OWB10gR2 (change to your Oracle Home)
    call C:\oracle\OWB10gR2\owb\bin\win32\OMBPlus.bat C:\...\my_script.tcl > C:\...\my_log.log
    my_script.tcl contains something like this:
    set OMBLOG "c:\\...\\some_kind_of.log"
    # Disconn just in case you have called a previous script
    OMBDISC
    source C:\\...\\script_with_omb_procedures.tcl
    OMBCC my_project
    OMBCONNECT CONTROL_CENTER "USER/PASSWORD@HOST:PORT:SERVICE" USE REPOSITORY 'MY_REPOSITORY_OWNER'
    OMBDCC
    DEFAULT_CONTROL_CENTER MY_CONTROL_CENTER
    proc_from_script_with_omb_procedures
    exit
    Hope this helps you to begin.
    Instead of using script_with_omb_procedures.tcl you can have your procedures directly inside my_script.tcl, but I like using a script apart to reuse my procedures.

  • OMB*Plus Command for Maintain/Add/Remove Experts in Context and Tools Menue

    Hi there,
    does anybody know how to maintain Experts in the Context- and Tools-Menue by OMB-Commands?
    The problem ist, that I transfer Experts into another workspace via OMBEXPORT/OMBIMPORT,
    and I would like to maintain the menues in my batch-script.
    Can't find anything in the docu about this.
    Thanks in advance.
    Andreas

    Hi David,
    thank you very much for the quick and correct answer.
    Just a few more questions about this.
    Now, as I know the answer, I found it in the documentation as well.
    But I allways find it very hard to find anything in the OMB*Plus Command Reference . And also with the description of the OMBMENU command: Why is there no description about the parameters in the reference? Where is the list of valid object types, and where is the description of the "QUOTED_STRING" (NEW, OPEN)?
    This command is just an example for the, in my opinion, really poor quality of the OWB*Plus Command Reference.
    Is there any underlaying reason for this that I do not understand, or is there a special strategy to work with this document, or do I just need more practice?
    The answers to this questions would be very helpfull for me, but also for my customer, where we start to implement a quite big DWH on OWB basis.
    Thanks again.
    Andreas

  • Command line parameters for OMBPlus?

    Hi,
    Is it possible to pass command line parameters to TCL scripts running in OMBPlus.sh, and if so, can someone provide an example?
    I'm able to use the argv0 variable to get the script name itself but not sure how to get any other additional parms...
    Thanks,
    Jim

    Jim,
    If you are building command-line scripts to automate OMB+ commands, there is another factor you should be aware of. If your script errors out cleanly, the OMBPlus.sh does NOT pass this back to the shell. The return code is evaluated within OMBPlus as the return from a "source" command and then OMBPlus exits normally.
    For example:
    #file test.tcl
    return -code error
    Unix/shell> OMBPlus.sh test.tcl
    Unix/shell> echo $?
    0What I do to pass an error state back to the shell is to create a flag file in my script if exiting due to error. My shell script deletes this file prior to running the script and then tests for it after the run as part of the conditional logic
    Function in tcl file:
    #Get location where this script installed
    #This variable is set at the top of the script.
    set theScriptDir  [ file dirname [info script]]
    #If we want to bail in the script at any point we call exit_failure with an appropriate error message
    proc exit_failure { msg } {
       global theScriptDir 
       set ERRFLAGFILE "$theScriptDir/ers_owb_import.error"
    #rollback any uncommitted work
       OMBROLLBACK
    #Log the error and exit
       set fout [open "$ERRFLAGFILE" a+]     
       puts $fout "Error:-> $msg"
       close $fout
       # return and also bail from calling function
       return -code error
    }And my shell script does something like:
    cd ${JOB_DIR}
    rm -f ers_owb_import.error 2>/dev/null
    echo \\nBegining Uninstall of OWB Project
    ./OMBPlus.sh ${JOB_DIR}/my_tcl_Script.tcl
    if [ -f ${JOB_DIR}/ers_owb_import.error ] ; then
          echo \\nERROR - SCRIPT FAILED
    else
         echo \\nScript Succeeded.
         # script logic continues....
    fiCheers,
    Mike

  • Setting Activity parameter property "literal" with OMB Plus

    Does anybody know how the property "literal" can be set to "false" with an OMB command?
    To change e.g. the value, the following command works:
    OMBALTER PROCESS_FLOW 'LOAD_STAGE' \
    MODIFY ACTIVITY 'STG_POS_MAP' MODIFY PARAMETER 'P_AUDITID' SET PROPERTIES (VALUE) VALUES ('parent_audit_id')
    This works for all other properties like DIRECTION, DATA_TYPE, BINDING, etc. but not for LITERAL. The following command doesn't work:
    OMBALTER PROCESS_FLOW 'LOAD_STAGE' \
    MODIFY ACTIVITY 'STG_POS_MAP' MODIFY PARAMETER 'P_AUDITID' SET PROPERTIES (LITERAL) VALUES ('false')
    In the OWB API and Scripting Reference there is no information about this property. It seems that Oracle forgot to implement it...

    Hi
    For a while I though the same...the property is ISLITERALVALUE see the blog post for an example;
    http://blogs.oracle.com/warehousebuilder/newsItems/viewFullItem$183
    Cheers
    David

  • In Linux, how do we cancel current OMB+ cmd without quiting the OMB+ mode?

    Hi
    I work on Linux platform,
    when I run OMB+ command and if I want to cancel the statement by hitting ctrl+c, it always quit the OMB+ mode and I then have to run OMBPlus.sh again to enter the mode.
    Does anyone know how to cancel it and still stay in OMB+ mode?
    So

    Hi
    This is not possible as far as I know.
    Cheers
    David

Maybe you are looking for

  • Problem of hierarchy in bex analyzer

    Dear all, I met a problem when I using Bex analyzer to run a query, there is a characteristic 0CS_PLEVEL (posting level) with a hierarchy. If the characteristic is displayed in the row or column, i can filter with the hierarchy node, everything seems

  • Acrobat XI pro stops working

    Hi, I am a paying user of Acrobat XI Pro. It stopped working a few days ago though. By stopped working I mean everything: when I open na archive, it stops working. When I try to create a new pdf, it stops working. When I try to merge a new pdf, it st

  • Suppressing warning messages

    Hi there I'm working on an FAPI client at the moment, and the client needs to be scriptable. Unfortunately, problems arise if FrameMaker has to display certain modal error or dialog boxes like "This file was created with an earlier version of FrameMa

  • Transfer posting from Non-WM manage plant to WM manage plant

    Hi Guru, I want to trasfer FG from storage location of Non-WM manage plant to storage bin of WM manage Plant. I did this posting with Movt type 301 , in destination section WM tab is activated for WM manage plant but after posting , its not generatin

  • How to improve DELETE statement that remove millions of rows?

    The following query take lot of time when exectued, even after I drop the indexes, is there a better way to write the following query? DELETE from pwr_part where ft_src_ref_id in (select ft_src_ref_id from pwr_purge_ft); --Table:pwr_part --UIP10371 f