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

Similar Messages

  • Deploying Crystal Reports 2008 on a website other than the default website

    Hi,
    We have an ASP.NET 2003 web application using CR 2008 as reporting tool.
    To deploy the application, we are using the CR 2008 mergemodules.
    If the application is installed into the default website, this works fine, but if another website is selected, the mergemodule still installs CR 2008 to the default website.
    To overcome this problem, the crystalreportviewers12 virtual directory has to be created in the selected website.
    But if the application is installed directly into the website, and not into a virtual directory of the website, problems occur, like images not showing up.
    I would like to know if there exists documentation regarding deployment into websites, other than the default website and what configurations have to be done to make it work.
    Best regards,
    Ângelo Vilela

    See the following articles;
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a
    Also, the developer help files contain more info:
    https://boc.sdn.sap.com/developer/library
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • Export mappings through OMB plus

    Hi All,
    We have developed 125 mappings across 10 modules. I wanted all mappings .Mdl files separately (E.g : we have mapping names are abc and xyz… we need to mdl file abc.mdl and xyz.mdl).
    If I export mappings in Design Center mapping wise it will take alot of to complete/get individual scripts (.mdl)
    I heard for time consuming and security wise we should use OMB plus.
    Any one helps me to export mappings individually through OMB.
    Is there any way to pass mapping name should export the mapping with log file?
    Thanks and Regards
    Venkat

    OK, here is a script that you will be able to adapt get you to where you want to go. Bear in mind that it uses a config file to hold some variables, and library file which I shall also attach.
    This script isn't exaclty what you are asking, but it's pretty close. The reason I made this script was to be able to create a clone of an existing project through OMB+ becuase in our corporate dev environment I couldn't lock down the repository in exclusive mode to do this in a simple copy/paste. The script uses a bit of a work-around because the MDL files include full path names, meaning if you export from project A it will want to import into project A. So if I want to import them into project B I take the existing project A, rename it to the desired new name (B), do the export (on a per-unit basis as you want), then rename the existing project back to what it was (A), create the new empty project (B) and import the objects now that the naming structures will match. (whew - did you catch all that?)
    Anyway, here is the script. It uses standard TCL for a lot of the file stuff (glob etc), and for cycling through the modules and objects using the TCL foreach statement. Don't worry about the functions you don't recognize like exec_omb. They are in the library (coming up next), which just has to be colocated with the script for the script to reference at runtime:
    # PVCS Version Information
    #/* $Workfile:   create_deployment_mdl.tcl  $ $Revision:   2.1  $ */
    #/* $Author:   michael.broughton  $
    #/* $Date:   27 Nov 2008 10:00:04  $ */
    # To run this script, start OMB Plus.
    # Run this script providing the command (on Windows): source <path>/copy_owb_project.tcl
    # e.g. source c:/owb/script/copy_owb_project.tcl
    #  Get Current Directory and time
    set dtstmp     [ clock format [clock seconds] -format {%Y%m%d_%H%M}]
    set scrpt      [ file split [file root [info script]]]
    set scriptDir  [ file dirname [info script]]
    set scriptName [ lindex $scrpt [expr [llength $scrpt]-1]]
    set cnfg_lib "$scriptDir/ombplus_config.tcl"
    set owb_lib  "$scriptDir/omb_library.tcl"
    #  Import Lbraries
    #      Assumes that owb_config and omb_library are in the same directory as this
    #      script.
    #get config file
    source $cnfg_lib
    #get standard library
    source $owb_lib
    #  Set Logfile
    #    This will overwrite anything set in the config file.
    set    SPOOLFILE  ""
    append SPOOLFILE $scriptDir "/log_"  $scriptName "_" $dtstmp ".txt"
    # PROCEDURES SECTION
    proc owb_export_object {PROJECT_NAME MODULE_NAME MDL_PATH LOG_PATH TYPE TYPELIST} {
       set print [OMBCC '$MODULE_NAME']
       set objList [OMBLIST $TYPELIST]
       foreach objName $objList {
            set objExportStatus [OMBEXPORT MDL_FILE '$MDL_PATH/$objName.mdl' PROJECT '$PROJECT_NAME'\
                                   COMPONENTS ($TYPE '$MODULE_NAME/$objName')\
                                   OUTPUT LOG '$LOG_PATH/$objName.log']
            puts "$objExportStatus"
       set print [OMBCC '..']
       puts "$print"
    # MAIN SCRIPT SECTION
    log_msg LOG  "This script is used to copy a minor version project into a major version project and to create a full project mdl file suitable for deployment. "
    log_msg LOG  "WARNING: This will overwrite any existing metadata in the major version project. If you have metadata you wish to save, stop now and go take care of that first! "
    puts -nonewline "Do you want to continue?(Y/N) "
    set EXITEARLY [gets stdin]
    if [string match N $EXITEARLY] {
       log_msg LOG  "Exiting...."
       return 0
    } elseif [string match n $EXITEARLY] {
       log_msg LOG  "Exiting...."
       return 0
    } else {
       log_msg LOG  "Continuing...."
    puts -nonewline "Which project do you want to create a deployment file for? "
    set CUR_PROJECT_NAME [gets stdin]
    puts -nonewline "Under which final project name? "
    set NEW_PROJECT_NAME [gets stdin]
    puts -nonewline "Local temp directory to use for MDL generation: "
    set MDL_PATH [gets stdin]
    set LOG_PATH "$MDL_PATH/logs"
    #set up the temp directory structure
    if [catch { set retstr [file mkdir $MDL_PATH] } errmsg] {
        puts "Cannot create directory $MDL_PATH. due to error: $errmsg"
        puts "Exiting...."
        exit
    } else {      
       #make the subdirectories
       file mkdir $LOG_PATH
       file mkdir $MDL_PATH/mappings
       file mkdir $MDL_PATH/transforms
       file mkdir $MDL_PATH/tables
       file mkdir $MDL_PATH/views
       file mkdir $MDL_PATH/sequences
    #  Connect to repos
    set print [exec_omb OMBCONNECT $OWB_DEG_USER/$OWB_DEG_PASS@$OWB_DEG_HOST:$OWB_DEG_PORT:$OWB_DEG_SRVC USE REPOSITORY '$OWB_DEG_REPOS']
    if [omb_error $print] {
        exit_failure "Unable to connect to repository."
    } else {
        log_msg LOG "Connected to Repository"   
    #    Test given project names
    set print [exec_omb OMBCC '$CUR_PROJECT_NAME']
    if [omb_error $print] {
       exit_failure "Project $CUR_PROJECT_NAME does not exist. Nothing to copy...."
    exec_omb OMBCC '..'
    set print [exec_omb OMBCC '$NEW_PROJECT_NAME']
    if [omb_error $print] {
       log_msg LOG "Confirmed project $NEW_PROJECT_NAME does not exist..."
    } else {  
       log_msg LOG "Target project $NEW_PROJECT_NAME already exists. Dropping...."
       exec_omb OMBCC '..'
       set print [exec_omb OMBDROP PROJECT '$NEW_PROJECT_NAME']
       if [omb_error $print] {
           exit_failure "Unable to drop project $NEW_PROJECT_NAME. Exiting...."
       OMBSAVE
    #    Begin export.
    log_msg LOG "Temporarily renaming current project to new project name"
    set print [exec_omb OMBALTER PROJECT '$CUR_PROJECT_NAME' RENAME TO '$NEW_PROJECT_NAME']
    if [omb_error $print] {
       exit_failure "This account does not have alter privileges on this project"
    OMBSAVE
    OMBCC '$NEW_PROJECT_NAME'
    set moduleList [OMBLIST ORACLE_MODULES]
    foreach moduleName $moduleList {
       owb_export_object $NEW_PROJECT_NAME $moduleName $MDL_PATH/mappings $LOG_PATH MAPPING MAPPINGS
       owb_export_object $NEW_PROJECT_NAME $moduleName $MDL_PATH/transforms $LOG_PATH PROCEDURE PROCEDURES
       owb_export_object $NEW_PROJECT_NAME $moduleName $MDL_PATH/transforms $LOG_PATH FUNCTION FUNCTIONS
       owb_export_object $NEW_PROJECT_NAME $moduleName $MDL_PATH/tables $LOG_PATH TABLE TABLES
       owb_export_object $NEW_PROJECT_NAME $moduleName $MDL_PATH/views $LOG_PATH VIEW VIEWS
       owb_export_object $NEW_PROJECT_NAME $moduleName $MDL_PATH/sequences $LOG_PATH SEQUENCE SEQUENCES
    puts "BACKUP PROCESS has been Completed."
    OMBCC '..'
    log_msg LOG "Renaming back to original project name"
    set print [exec_omb OMBALTER PROJECT '$NEW_PROJECT_NAME' RENAME TO '$CUR_PROJECT_NAME']
    log_msg LOG "Creating new project..."
    set print [exec_omb OMBCREATE PROJECT '$NEW_PROJECT_NAME']
    if [omb_error $print] {
       exit_failure "Unable to create project '$NEW_PROJECT_NAME'"
    } else {
       log_msg LOG "Created Project '$NEW_PROJECT_NAME'"
       exec_omb OMBSAVE
       exec_omb OMBCC '$NEW_PROJECT_NAME'
    log_msg LOG "Creating modules..."
    foreach moduleName $moduleList {
        set print [exec_omb OMBCREATE ORACLE_MODULE '$moduleName']
    OMBSAVE
    log_msg LOG "Importing Tables..."
    set mdl_maps [glob $MDL_PATH/tables/*mdl]
    foreach mdl_map $mdl_maps {
         puts "importing TABLE module $mdl_map from MDL file"
         set print [OMBIMPORT MDL_FILE '$mdl_map' USE CREATE_MODE MATCH_BY NAMES]
         puts "$print"
    OMBSAVE
    log_msg LOG "Importing Sequences..."
    set mdl_maps [glob $MDL_PATH/sequences/*mdl]
    foreach mdl_map $mdl_maps {
         puts "importing SEQUENCE module $mdl_map from MDL file"
         set print [OMBIMPORT MDL_FILE '$mdl_map' USE CREATE_MODE MATCH_BY NAMES]
         puts "$print"
    OMBSAVE
    log_msg LOG "Importing Views..."
    set mdl_maps [glob $MDL_PATH/views/*mdl]
    foreach mdl_map $mdl_maps {
         puts "importing VIEW module $mdl_map from MDL file"
         set print [OMBIMPORT MDL_FILE '$mdl_map' USE CREATE_MODE MATCH_BY NAMES]
         puts "$print"
    OMBSAVE
    log_msg LOG "Importing PlSql..."
    set mdl_maps [glob $MDL_PATH/transforms/*mdl]
    foreach mdl_map $mdl_maps {
         puts "importing PLSql module $mdl_map from MDL file"
         set print [OMBIMPORT MDL_FILE '$mdl_map' USE CREATE_MODE MATCH_BY NAMES]
         puts "$print"
    OMBSAVE
    log_msg LOG "Importing Mappings..."
    # import mappings from directory of MDL files
    set mdl_maps [glob $MDL_PATH/mappings/*mdl]
    foreach mdl_map $mdl_maps {
         puts "importing MAPPING module $mdl_map from MDL file"
         set print [OMBIMPORT MDL_FILE '$mdl_map' USE CREATE_MODE MATCH_BY NAMES]
         puts "$print"
    OMBSAVE
    log_msg LOG "Completed Import..."
    log_msg LOG "Exporting complete project file...."
    set objExportStatus [OMBEXPORT MDL_FILE '$MDL_PATH/$NEW_PROJECT_NAME.mdl' PROJECT '$NEW_PROJECT_NAME' OUTPUT LOG '$LOG_PATH/$NEW_PROJECT_NAME.log']
    puts "$objExportStatus"
    log_msg LOG "Cleaning up temp directory..."
    file delete -force $MDL_PATH/mappings
    file delete -force $MDL_PATH/transforms
    file delete -force $MDL_PATH/tables
    file delete -force $MDL_PATH/views
    file delete -force $MDL_PATH/sequences
    file delete -force $LOG_PATH
    OMBDISCONNECT And here is my standard helper library:
    # PVCS Version Information
    #/* $Workfile:   omb_library.tcl  $ $Revision:   2.9  $ */
    #/* $Author:   michael.broughton  $
    #/* $Date:   10 Mar 2009 11:04:50  $ */
    # Default logging function.
    #  Accepts inputs: LOGMSG - a text string to output
    proc log_msg {LOGTYPE LOGMSG} {
       #logs to screen and file
       global SPOOLFILE
       if {![info exists SPOOLFILE]} {
           puts "LOGFILE UNDEFINED! :-> $LOGTYPE:-> $LOGMSG"
       } else {
           set fout [open "$SPOOLFILE" a+]     
           puts $fout "$LOGTYPE:-> $LOGMSG"
           puts "$LOGTYPE:-> $LOGMSG"
           close $fout
    proc log_msg_file_only {LOGTYPE LOGMSG} {
        #logs to file only
        global SPOOLFILE
        if {![info exists SPOOLFILE]} {
           puts "LOGFILE UNDEFINED! :-> $LOGTYPE:-> $LOGMSG"
        } else {
           set fout [open "$SPOOLFILE" a+]     
           puts $fout "$LOGTYPE:-> $LOGMSG"
           close $fout
    proc exit_failure { msg } {
       log_msg ERROR "$msg"
       log_msg ERROR "Rolling Back....."
       exec_omb OMBROLLBACK
       log_msg ERROR "Exiting....."
       # return and also bail from calling function
       return -code 2
    proc exec_omb { args } {
       log_msg_file_only OMBCMD "$args"
       # the point of this is simply to return errorMsg or return string, whichever is applicable,
       # to simplify error checking using omb_error{}
       if [catch { set retstr [eval $args] } errmsg] {
          log_msg OMB_ERROR "$errmsg"
          log_msg "" ""
          return $errmsg
       } else {
          log_msg OMB_SUCCESS "$retstr"
          log_msg "" ""
          return $retstr
    proc omb_error { retstr } {
       # OMB and Oracle errors may have caused a failure.
       if [string match OMB0* $retstr] {
          return 1
       } elseif [string match ORA-* $retstr] {
          return 1
       } elseif [string match java.* $retstr] {
          return 1
       } elseif [string match Error* $retstr] {
          return 1
       } else {
          return 0
    proc ers_omb_connect { OWB_USER OWB_PASS OWB_HOST OWB_PORT OWB_SRVC OWB_REPOS } {
       # Commit anything from previous work, otherwise OMBDISCONNECT will fail out.
       catch { set retstr [ OMBSAVE ] } errmsg
       log_msg LOG "Checking current connection status...."
       #Ensure that we are not already connected.
       if [catch { set discstr [ OMBDISCONNECT ] } errmsg ] {
          set discstr $errmsg
       # Test if message is "OMB01001: Not connected to repository." or "Disconnected."
       # any other message is a showstopper!
       if [string match Disconn* $discstr ]  {
          log_msg LOG "Success Disconnecting from previous repository...."
       } else {
          # We expect an OMB01001 error for trying to disconnect when not connected
          if [string match OMB01001* $discstr ] {
              log_msg LOG "Disconnect unneccessary. Not currently connected...."
          } else {
              log_msg ERROR "Error Disconnecting from previous repository....Exiting process."
              exit_failure "$discstr"
       set print [exec_omb OMBCONNECT $OWB_USER/$OWB_PASS@$OWB_HOST:$OWB_PORT:$OWB_SRVC USE REPOSITORY '$OWB_REPOS']
       if [string match *Connected* $print] {
          return $print
       } else {
          return "OMB0-Unknown Error connecting. Validate connection settings and try again"
    proc ers_omb_drop_mapping { MAPNAME } {
        set mplst [OMBLIST MAPPINGS]
        if {[string match *$MAPNAME* $mplst]} {
           log_msg LOG "Mapping $MAPNAME Exists."
           log_msg LOG "Un-Deploying: $MAPNAME"
           set print [ exec_omb OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN' ADD ACTION 'MAPPING_DEPLOY' SET PROPERTIES (OPERATION) VALUES ('DROP') SET REFERENCE MAPPING '$MAPNAME' ]
           if [omb_error $print] {
               exit_failure "Unable to create Deployment plan for '$MAPNAME'"
           set print [ exec_omb OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN' ]
           if [omb_error $print] {
               exit_failure "Error on execute of Deployment plan for '$MAPNAME'"
           exec_omb OMBDROP DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN'
           exec_omb OMBSAVE
           set print [exec_omb OMBDROP MAPPING '$MAPNAME']
           if [omb_error $print] {
               exit_failure "Failed attempt to drop existing version of this mapping. Exiting."
    proc ers_omb_refresh_object { OBJTYPE OBJNAME } {
       # prompts for refresh of object if exists, except for sequence which do not structurally change.
       # VALID FOR SEQUENCES, TABLES, AND VIEWS ONLY
        global ORA_MODULE_NAME
        set l_objtype [string tolower $OBJTYPE]
        set OBJTYPES $OBJTYPE
        append OBJTYPES "S"
        set tblst [OMBLIST $OBJTYPES]
        if {[string match *$OBJNAME* $tblst]} {
             log_msg LOG "$l_objtype $OBJNAME already exists."
             if [string match SEQUENCE $OBJTYPE] {
                 # Sequences don't need refreshing!
                log_msg LOG "No need to refresh sequence..."
                return
             puts -nonewline "Do you want to re-import the $l_objtype?(Y/N) "
             set EXITEARLY [gets stdin]
             log_msg_file_only LOG "Do you want to re-import the $l_objtype?(Y/N) $EXITEARLY"
             if {[string match Y $EXITEARLY] || [string match y $EXITEARLY]} {
                log_msg LOG  "Re-importing $OBJNAME...."
                exec_omb OMBDROP $OBJTYPE '$OBJNAME'
                exec_omb OMBSAVE
                exec_omb OMBCC '..'
                set print [exec_omb OMBCREATE TRANSIENT IMPORT_ACTION_PLAN 'IMPORT_PLAN' ADD ACTION 'IMPORT_ACTION' SET REF SOURCE $OBJTYPE '$OBJNAME' SET REF TARGET ORACLE_MODULE '$ORA_MODULE_NAME']
                if [omb_error $print] {
                    exit_failure "Failed attempt to create import plan this  $l_objtype. Exiting."
                set print [exec_omb OMBIMPORT FROM METADATA_LOCATION FOR IMPORT_ACTION_PLAN 'IMPORT_PLAN']
                exec_omb OMBDROP IMPORT_ACTION_PLAN 'IMPORT_PLAN'
                if [omb_error $print] {
                    exit_failure "Failed attempt to import this  $l_objtype. Exiting."
                } elseif [string match *Failure* $print] {
                    #A failure to create second-class objects will not be caught with omb_error()
                    log_msg ERROR "An error prevented proper import. I recommend re-trying import through the GUI, and "
                    log_msg ERROR "then re-running this script but answering 'N' to re-import for this  $l_objtype."
                    exit_failure "Failed attempt to import this  $l_objtype. Exiting."
                if [string match TABLE $OBJECTTYPE] {
                 if [string match I_APLCTN_DTL_DSB_ELGBL_CHLDRN $OBJNAME] {
                    set SHDWNAME I_APLCTN_DSB_ELGBL_CHLDRN
                 } elseif [string match F_RPTD_ENTLMNT_MNTHLY_SNPSHT $OBJNAME] {
                    set SHDWNAME F_RPTD_ENTLMNT_SNPSHT
                 } elseif [string match U_PROG_BNFT_PRVSN_ADMS_MAP $OBJNAME] {
                    set SHDWNAME U_PROG_BNFT_PRVSN_ADM_MAP
                 } elseif [string match U_PROG_BNFT_PRVSN_LGCY_MAP $OBJNAME] {
                    set SHDWNAME U_PROG_BNFT_PRVSN_LGC_MAP
                 } elseif [string match U_BNFCRY_CMBND_DBL_ENTLMNT $OBJNAME] {
                    set SHDWNAME U_BNFCRY_CMBND_DB_ENTLMNT
                 } else {
                    set SHDWNAME $OBJNAME
                    if [catch { set retstr [ OMBALTER TABLE '$OBJNAME' SET PROPERTIES (SHADOW_TABLE_NAME) VALUES ( 'ERR\$_$SHDWNAME')] } errmsg] {
                       log_msg ERROR "Unable to set shadow table name for table $OBJNAME"
                       log_msg ERROR "$errmsg"
                exec_omb OMBCC '$ORA_MODULE_NAME'
             } else {
               log_msg LOG  "Skipping  $l_objtype re-import...."
        } else {
             log_msg LOG " $l_objtype $OBJNAME Does not exist."
             log_msg LOG  "Importing $OBJNAME...."
             exec_omb OMBCC '..'
             set print [exec_omb OMBCREATE TRANSIENT IMPORT_ACTION_PLAN 'IMPORT_PLAN' ADD ACTION 'IMPORT_ACTION' SET REF SOURCE $OBJTYPE '$OBJNAME' SET REF TARGET ORACLE_MODULE '$ORA_MODULE_NAME']
             if [omb_error $print] {
                 exit_failure "Failed attempt to create import plan this  $l_objtype. Exiting."
             set print [exec_omb OMBIMPORT FROM METADATA_LOCATION FOR IMPORT_ACTION_PLAN 'IMPORT_PLAN']
             exec_omb OMBDROP IMPORT_ACTION_PLAN 'IMPORT_PLAN'
             if [omb_error $print] {
                 exit_failure "Failed attempt to import this  $l_objtype. Exiting."
             } elseif [string match *Failure* $print] {
                 #A failure to create second-class objects will not be caught with omb_error()
                 log_msg ERROR "An error prevented proper import. I recommend re-trying import through the GUI, and "
                 log_msg ERROR "then re-running this script but answering 'N' to re-import for this  $l_objtype."
                 exit_failure "Failed attempt to import this  $l_objtype. Exiting."
             exec_omb OMBCC '$ORA_MODULE_NAME'
    }    And the config file:
    # PVCS Version Information
    #/* $Workfile:   ombplus_config.tcl  $ $Revision:   2.0  $ */
    #/* $Author:   gerry.hunt  $
    #/* $Date:   28 Nov 2008 08:37:12  $ */
    # This version of the Config file differs from the standard owb_config.tcl
    # used by the deployment script. It requires TWO repository configurations
    # (Corporate Design Repository and Deployment location runtime repository)
    # and does not require some of the logging / file location info used by the
    # install script.
    # GLOBAL VARIABLE DECLARATION SECTION
    #CORPORATE DESIGN REPOSITORY  CONNECTION INFORMATION
    # Login info for the design repository owner
    set OWB_DEG_USER    michael_broughton
    set OWB_DEG_PASS    my_password
    set OWB_DEG_HOST    123.4.5.6
    set OWB_DEG_PORT    1628
    set OWB_DEG_SRVC     ORCL
    set OWB_DEG_REPOS   owb_mgr
    # RUNTIME CONTROL CENTER AND LOCATION DECLARATION SECTION
    set CONTROL_CENTER_NAME        ERS_CTL_DEVR1000_1T
    set CONTROL_CENTER_SCHEMA      owb_mgr
    set CONTROL_CENTER_PASS        owb_mgr_PWD
    #Connection info to ers_etl_app deployment schema
    set DATA_LOCATION_NAME         ERS_DEVR1000_1T
    set DATA_LOCATION_VERS         10.2
    set DATA_LOCATION_USER         ERS_ETL_APP1T
    set DATA_LOCATION_PASS         ERS_ETL_APP1T
    set DATA_LOCATION_HOST         host001
    set DATA_LOCATION_PORT         1554
    set DATA_LOCATION_SRVC         orcl
    # PROJECT,MUDULE AND DIRECTORY DECLARATION SECTION
    set PROJECT_NAME       ERS_DM_R7_0C6_02
    set ORA_MODULE_NAME    ERS_ETL_APPDang... that's a lot of stuff. But it should get you well on your way to what you need.
    Cheers,
    Mike

  • How to Deploy all mappings in a module using OMB+

    Hi,
    I am using OMB+ to deploy project from DEV to QA , i used a OMB+ script to do the export and one import script to do the import/deployment
    both Export and Import are working fine , the problem is in the Deploy part of Import script,
    in this script I am connecting to the Repository and importing the Project from DEV and then changed the Context to the module and then connected to the Control centre , when i tried to deploy the mapping i get the error saying the location is not registered to the module
    ususally if i use the GUI i double click the module and add the location to the module, howcan i do that in OMB+ ,
    Example script would help me a lot
    and for deploying the mappings i am using
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN' ADD ACTION 'MAP_DEPLOY' SET PROPERTIES (OPERATION) VALUES ('CREATE') SET REFERENCE MAPPING 'MAPPING NAME'
    but i don't want to pass mapping names like this i just want to deploy all mappings in a single step
    Please advice me
    Thanks in Advance
    Suresh
    Edited by: Suresh_G on Sep 9, 2008 3:30 PM

    Hi Mahesh,
    here is my script,
    # Connect to the repository
    OMBCONNECT datarepdb/[email protected]:1535:ukfndr USE REPOSITORY 'owb_rep'
    puts stdout {Connected to Repository }
    #Importing the OWB Project
    OMBIMPORT MDL_FILE 'C:/Temp/local/ORAFINDATAREPOSITORY.MDL' \
    USE MERGE_MODE \
    OUTPUT LOG 'C:/Temp/local//ORAFINDATAREPOSITORY_IMP.LOG'
    puts stdout {Import Finished }
    OMBCC '/ORAFINDATAREPOSITORY'
    # Assign the location to the oracle module
    OMBALTER ORACLE_MODULE 'DATAREPDB' SET REFERENCE LOCATION 'DATAREPDB_LOCATION'
    OMBALTER ORACLE_MODULE 'DATAREPDB' SET PROPERTIES (DB_LOCATION) VALUES ('DATAREPDB_LOCATION')
    puts stdout {location to the oracle module registered}
    # Connect to Control Centre for Deployment
    OMBCONNECT CONTROL_CENTER USE 'dugout'
    puts stdout {Connected to Controle Centre}
    OMBCC '/ORAFINDATAREPOSITORY/DATAREPDB'
    #Starting the Deployment
    puts stdout {Starting the Deployment}
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN' ADD ACTION 'MAP_DEPLOY' SET PROPERTIES (OPERATION) VALUES ('CREATE') SET REFERENCE MAPPING 'XXDR_GL_BALANCE'
    OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'DEPLOY_PLAN'
    OMBCOMMIT
    puts stdout {Deployed Mappings and Disconnecting }
    OMBDISCONNECT
    I embeded your script in mine but i was getting errors , i am still trying to resolve it, mine is a TCL script can u please suggest me where actually i should incorporate the ur code and to what level,
    in my case we have just one module and need to deploy all the mappings in that module , the above script working fine but i don't want to give all names of mappings hardcoded.
    Thanks in advance

  • Bpel deployment fails for all processes that have revision other than 1.0.

    Using: Release *10.1.3.3.1*
    Hello All,
    Bpel deployment fails for all processes that have revision other than *1.0*.
    We have been attempting to deploy several BPEL projects via ANT script to a target environment and are encountering failures to deploy for every project which isn’t a (revision 1.0). We are getting the following error whenever we try to deploy a process with a revision other than 1.0:
    D:\TJ_AutoDeploy\BPEL_AutoDeploy_BETA\build.xml:65: BPEL archive doesnt exist in directory "{0}"
         at com.collaxa.cube.ant.taskdefs.DeployRemote.getJarFile(DeployRemote.java:254)
         at com.collaxa.cube.ant.taskdefs.DeployRemote.deployProcess(DeployRemote.java:409)
         at com.collaxa.cube.ant.taskdefs.DeployRemote.execute(DeployRemote.java:211)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
         at org.apache.tools.ant.Main.runBuild(Main.java:668)
         at org.apache.tools.ant.Main.startAnt(Main.java:187)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    The structure of our automated deployment script is as follows:
    First, a batch script calls (Jdeveloper_BPEL_Prompt.bat) in order to set all necessary environment variables i.e. ORACLE_HOME, BPEL_HOME, ANT_HOME, etc for ant.
    Next, the script lists every .jar file within the directory to an .ini file called BPEL_List.ini. Furthermore, BPEL_DIR, ADMIN_USER and ADMIN_PSWD variables are set and initialized respectively to:
    -     “.” – point to directory where script is running from because all the BPEL processes are located here
    -     “oc4jadmin”
    -     “*********” (whatever the password for out environment is)
    We’ve developed a method to have the script prompt the user to select the target environment to deploy to. Once the user selects the appropriate environment, the script goes through the BPEL_List.ini files and a loop tells it that for every BPEL process listed:
    DO ant
    -Dprocess.name=%%b
    -Drev= !Rev!
    -Dpath=%BPEL_DIR%
    -Ddomain=default
    -Dadmin.user=%ADMIN_USER%
    -Dadmin.password=%ADMIN_PWD%
    -Dhttp.hostname=%HOST%
    -Dhttp.port=%PORT%
    -Dverbose=true
    (What’s happening is that the variables in the batch file are being passed on to the ANT script where *%%b* is the process name, !rev! is revision #, and so on…)
    The loop goes through each line in the BPEL_List.ini and tokenizes the BPEL process into 3 parts *(%%a, %%b, and %%c)* but we only extract 2 parts: *%%b* (process name) and *%%c* which becomes !Rev! (revision number).
    Example:
    Sample BPEL process:
    bpel_ThisIsProcess1_1.0.jar
    bpel_ThisIsProcess2_SOAv2.19.0.001B.jar
    After tokenizing:
    %%a     %%b     %%c
    bpel     ThisIsProcess1     1.0.jar
    bpel     ThisIsProcess2     SOAv2.19.0.001B.jar
    *!Rev!* and not *%%c* because *%%c* will return whatever the revision number is + the “.jar” file extension as illustrated above. So to circumvent this, we parse *%%c* so that the last 4 characters are stripped. Such is done like this:
    set RevN=%%c
    set RevN=!RevN:~0,-4!
    Hence, the usage of !Rev!.
    Below is a screenshot post of the ANT build.xml that goes with our script:
    <!--<?xml version="1.0"?>-->
    <!--BUILD.XML-->
    <project name="bpel.deploy" default="deployProcess" basedir=".">
         <!--
         This ant build file was generated by JDev to deploy the BPEL process.
         DONOT EDIT THIS JDEV GENERATED FILE. Any customization should be done
         in default target in user created pre-build.xml or post-build.xml
         -->
         <property name="process.dir" value="${basedir}" />
              <!-- Set BPEL process name -->
              <!--
              <xmlproperty file="${process.dir}/bpel/bpel.xml"/>
              <property name="process.name" value="${BPELSuitcase.BPELProcess(id)}"/>
              <property name="rev" value="${BPELSuitcase(rev)}"/>
              -->
         <property environment="env"/>
         <!-- Set bpel.home from developer prompt's environment variable BPEL_HOME -->
              <condition property="bpel.home" value="${env.BPEL_HOME}">
                   <available file="${env.BPEL_HOME}/utilities/ant-orabpel.xml" />
              </condition>
         <!-- show that both bpel and oracle.home are located (TESTING purposes ONLY) -->
         <!-- <echo>HERE:${env.BPEL_HOME} ${env.ORACLE_HOME}</echo> -->
         <!-- END TESTING -->
         <!--If bpel.home is not yet using env.BPEL_HOME, set it for JDev -->
         <property name="oracle.home" value="${env.ORACLE_HOME}" />
         <property name="bpel.home" value="${oracle.home}/bpel" />
         <!--First override from build.properties in process.dir, if available-->
         <property file="${process.dir}/build.properties"/>
         <!--import custom ant tasks for the BPEL PM-->
         <import file="${bpel.home}/utilities/ant-orabpel.xml" />
         <!--Use deployment related default properties-->
         <property file="${bpel.home}/utilities/ant-orabpel.properties" />
         <!-- *************************************************************************************** -->
         <target name="deployProcess">
              <tstamp>
                   <format property="timestamp" pattern="MM-dd-yyyy HH:mm:ss" />
              </tstamp>
              <!-- WRITE TO LOG FILE #tjas -->
              <record name="build_verbose.log" loglevel="verbose" append="true" />
              <record name="build_debug.log" loglevel="debug" append="true" />
              <echo></echo>
              <echo>####################################################################</echo>
              <echo>BPEL_AutoDeploy initiated @ ${timestamp}</echo>
              <echo>--------------------------------------------------------------------</echo>
              <echo>Deploying ${process.name} on ${http.hostname} port ${http.port} </echo>
              <echo>--------------------------------------------------------------------</echo>
              <deployProcess
                   user="${admin.user}"
                   password="${admin.password}"
                   domain="${domain}"
                   process="${process.name}"
                   rev="${rev}"
                   dir="${process.dir}/${path}"
                   hostname="${http.hostname}"
                   httpport="${http.port}"
                   verbose="${verbose}" />
              <sleep seconds="30" />
              <!--<echo message="${process.name} deployment logged to ${build_verbose.log}"/>
              <echo message="${process.name} deployment logged to ${build.log}"/> -->
         </target>
         <!-- *************************************************************************************** -->
    </project>
    SUMMARY OF ISSUE AT HAND:
    ~ Every bpel process w/ 1.0 revision deploys with no problems
    ~ At first I would get an invalid character error most likely due to the “!” preceding “Rev”, but then I decided to set rev=”false” in the build.xml file. That didn’t work quite well. In another attempt, I decided to leave the –Drev= attribute within the batch script blank. That still led to 1.0s going through. My next thought was deploying something other than a 1.0, such as 1.2 or 2.0 and that’s when I realized that if it wasn’t a 1.0, it refused to go through.
    QUESTIONS:
    1.     IS THERE A WAY TO HAVE ANT LOOK INTO THE BPEL PROCESS AND PULL THE REVISION ID?
    2.     WHAT ARE WE DOING WRONG? ARE WE MISSING ANYTHING?
    3.     DID WE GO TOO FAR? MEANING, IS THERE A MUCH EASIER WAY WE OVERLOOKED/FORGOT/OR DON’T KNOW ABOUT THAT EXISTS?
    Edited by: 793292 on Jul 28, 2011 12:38 PM

    Only thing i can think of is instead of using a MAC ACL , u cud jus use the default class
    Policy Map Test
    class class-default
    police 56000 8000 exceed-action drop
    Class Map match-any class-default (id 0)
    Match any
    You would be saving a MAC-ACL ;-).

  • Other than size is there any difference between iPhone 6 and iPhone 6 Plus?

    I'm thinking about getting a new phone.  Because I usually carry my phone in a pants pocket I'm concerned that the iPhone 6 Plus may be too large to carry comfortably.  That said, overall performance is my main concern and if the two phones are equal in their SmartPhone performance it makes the decision easier.  This would be my first iPhone.  Thank you for any thoughts or comments on this.
    jim

    Jim Anderson3 wrote:
    Thank you for the links.  I had looked for something like that but couldn't find anything as specific as the comparison link you gave me.  As best I can tell the only difference other than they come in large and larger, seems to be battery life related.  That helps somewhat except that is a performance item so I guess I'll just have to see hoe a 6 Plus will fit in the pocket of my jeans.
    Thanks again!
    jim
    Your welcome. There's not a lot of difference between the two. i think the most significant differences other than size is the 6+ can hold a larger battery and has optical image stabilization. I only carry my phones in my shirt or jacket pockets so I opted for the smaller one just because its lighter. My previous phone was the 5S and the 6 is noticeably lighter even though larger. I've had the phone for about a month now and I'm pleased with the battery performance and the way the phone operates. My only complaints about iPhones (my first was the 4) is I find them somewhat slippery to hang onto, but that's only a personal thing. To compensate I bought the Apple leather case for the 5S as it's thin and doesn't add much bulk. I really liked it so I ordered one for the 6 right away. But again, that is just my personal preference.

  • 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

  • OMB Plus Script for creating a project

    Hi,
    I am totally new to this OMB Plus.
    Ok. My concern over here is we have been working on some new Mappings. However now for the testing purpose these Maps would be deployed on some other schema with pure Deployment process.
    So i found that while importing the Maps it encountered me an error, the reason was that it was trying to find a project which doesnot exists as its new Source. Ideally importing the Mpas would have created the project automatically but it gave me error.
    Now, to overcome this i thought why not use the OMB Plus script in order to overcome this issue. So i want to creat a .tcl script which will run and will create a project and then once created i may able to import the maps or the complete project without any error.
    So could you please help me with some commands, because on the internet nowhere is mentioned how to create a project or to import a non-existing project.
    Please Help!!!!

    Hi Experts,
    I tried the above link it is really usefull.
    However, when i execute the below statement i m getting an error at the step 2.
    Step1:
    OMBCONNECT <USER_NAME>/<PASSWORD>@<HOST NAME>:<PORT NO>:<SERVICE NAME>
    Step2:
    OMBCREATE PROJECT 'CPP_CPEPLUS'
    Error: oracle.wh.repos.sdk.exceptions.WBException: OWB_NS_FATAL_ERROR100ORA-01403: no data found
    PS: I successfully connected the Step1.
    Please Help!!!!
    Regards,
    BB

  • Registering OWB-user without Designer and OMB Plus?

    Is there any way, to register an owb-user via sql or PL/SQL?
    Reason: The (customer-)dbas don´t allow to use an OMB Plus/TCL-script or the OWB Designer in the production environment :-(

    Do you want to register a location?
    If that's the case:
    What version of OWB are you on? If you're on versions lower than 10gR2, you could create an extra runtime connection to the production environment in your test or acceptance environment, register the production locations from the deployment manager and deploy the connectors.
    I don't know how to do this in 10gR2
    Good luck in fooling the DBA's ;-)

  • 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

  • Execute process flow with OMB*Plus

    Hello,
    somebody know how to execute a process flow designed with OWB 9.0.4.8.21 within OMB*Plus?
    Thanks,
    Pedro

    Currently it is not possible to execute Process Flows or Mappings from OMB. OMB is to be used mostly as a metadata manipulation and processing platform, not for run-time management.
    What you could do is to put OMB metadata operation commands and runtime execution commands one after the other in a shell script and then run everything from this shell script (if this is what you are trying to do).
    Regards:
    Igor

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

  • OMB Plus

    1)when I am going to import external table in schema(the cshema is source not target I am not able to import it.We can import the table in any target schema .But the problem arises when I am going to import the external table in source schema using ombplus.Please help me to let me know the ombplus command to import external table into the source schema.because normally the import command in ombplus work if u r importing table in target schema
    2)Is it possible to deploy maps using ombplus by removing its hint.Hint removal should be in ombplus not manual.

    Hi Andreas,
    I don't directly have an example for your specific questions, but take a look here:
    http://www.oracle.com/technology/products/warehouse/sdk/Scripting%20Pages/Scripting_home.htm
    This gives you at least something to start and get the basic stuff done using OMB Plus. Also google on tcl reference...
    Jean-Pierre

  • OMB Plus to set CDC properties of Oracle Module

    Hi,
    Does anybody know if it is possible to set the CDC properties of an Oracle Module using OMB Plus?
    I was thinking in the lines of
    OMBALTER ORACLE_MODULE 'MY_CDC_MODULE' SET PROPERTIES (CDC_CODE_TEMPLATE) VALUES ('PUBLIC_PROJECT/BUILT_IN_CT/JCT_10G_CONSISTENT_MINER')
    but this does not work, and I can't see any appropriate properties in the documentation.
    In addition to setting the CDC template I would like to be able to choose the tables to include in CDC using a script as well. Any help would be appreciated
    Roald
    Edited by: roheie on Oct 12, 2010 12:17 AM

    Hi Oleg,
    I think I may need to clarify my question. I am no trying to alter a template mapping, I am trying to alter the properties of the Oracle Module that is the source for the CDC template mappings
    What I am trying to do in the script is the same operation as you do in the Design Center when you expand Databases->Oracle and then double click your 'CDC_SOURCE_SYSTEM' (example name) module to get to the properties wizard. In there you can set 'Metadata Location', 'Data Location', 'CDC Code Template', and 'CDC tables'. The first two of these I am already setting in my script, what I am asking is how I can set the last two of these properties
    Regards,
    Roald

  • 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

Maybe you are looking for

  • How do i send a bookmark in an email

    I want to include a bookmark in an email. When I copy and paste, link doesn't work

  • MS VC++ runtime error - running nimxs.exe suring computer boot

    Somehow my labtop starts to fail to run MAX (nimxs.exe) during start up. Message is "Micrsoft Visual C++ runtime error. This application has requested the runtime to terminate it in an unusual way. Please contact the application's support team for mo

  • IPhoto Library Problem; Can't See Photos

    Hi guys. Looking for a little help here. I typically ran a desktop and my wife ran a laptop. We kept our files for iTunes and iPhoto separate. I had an account set up on her laptop just for basic browsing, email and iWork via iCloud documents. Howeve

  • Error in FROM clause (MS Access)

    I'm getting an 'error executing a database query.' The query is a simple <cfquery name="myquery" datasource="#application.dsn#"> SELECT * FROM #url.table# </cfquery> The debugging info i get is as follows: SELECT * FROM Order VENDORERRORCODE -3506 SQ

  • Trouble shooting list

    Hi After some days with hair graying fault searching I made a list for what's it's worth: Sound goes out of sync from the very beginning: - DON’T try as I did to have Mac OS and FCE on an external FW hard disk. This did only work with iMovie for me a