OMB Plus Scripts

Hi all,
I am a newbie to OWB.I have some trouble in doing OMBCC MAPPING_NAME command.
This is the exact thing which i got.
OMB*Plus: Release 11.1.0.6.0
Copyright (c) 2000, 2007, Oracle. All rights reserved.
OMB+> OMBCONNECT rep_owner/[email protected]:1521:erepos USE WORKSPACE 'DE
V_WORKSPACE'
Connected.
OMB+> OMBLIST PROJECTS
DWH_EREPOS EREPOS MARC_EREPOS MY_PROJECT PUBLIC_PROJECT STG_TO_PROSPECT_CONTACT
OMB+> OMBCC 'DWH_EREPOS'
Context changed.
OMB+> OMBLIST ORACLE_MODULES
DWH_PROSPECT DWH_PROSPECT_STG STG_TO_PROSPECT
OMB+> OMBCC 'DWH_PROSPECT_STG'
Context changed.
OMB+> OMBLIST MAPPINGS
M_API M_BTCUSTPREFERRED_STG M_DNCHANGE_REQUEST M_INPUT_FEEDFILE_NAD M_SRC_MOVE_F
ILE_BAT M_STG_CONSENT_CRF M_STG_CONTACT_CRF_V2 M_STG_CONTACT_CRF_V_SHOW_TELL
OMB+> OMBCC 'M_API'
OMB01051: Path M_API must include a folder as the last step.
Could anyone tell me where i went wrong....
Thank you...

Hi
OMBCC is only for folder objects (such ad projects and modules), mappings are not folders. If you want to get mapping details you can use OMBRETRIEVE MAPPING command.
For example;
OMBRETRIEVE MAPPING 'M_API' GET TABLE OPERATORS
See doc for more details;
http://download.oracle.com/docs/cd/E11882_01/owb.112/e14406/chap19015.htm#FFHHAEHC
Cheers
David

Similar Messages

  • 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

  • OWB OMB Plus scripting

    Hi all
    Can You help me , I'm finding some documentation about scripting in OWB Plus.
    Thank You Brano

    http://www.oracle.com/technology/products/warehouse/index.html
    Please use the OWB forum for future questions on OWB.
    Warehouse Builder

  • Oracle warehouse builder 10g r2 .  omb plus scripting

    Hi all,
    im new to this forum,can anybody help me how to learn omb scripting n also expert in owb. help me. will be available 24/7.

    Oracle Warehouse Builder Training
    http://www.oracle.com/technology/products/warehouse/htdocs/OTN_Training.html
    OWB10g R1 tutorial:
    http://www.oracle.com/technology/obe/obe_bi/Lesson14_Extending_OWB_through_Scripting/Extending_OWB_through_Scripting.htm
    OWB10g R2 tutorial (developing Experts):
    http://www.oracle.com/technology/obe/10gr2_owb/10gr2_owb_extend/extensibility/extensibility.htm
    OWB11g R1 tutorial (developing Experts):
    http://www.oracle.com/technology/obe/11gr1_owb/owb11g_update_extend_knowledge/less6_experts/less6_experts.htm
    TCL Tutorial:
    http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html
    http://en.wikipedia.org/wiki/Tcl
    OWB documentation:
    OWB9i (Scripting guide):
    http://download.oracle.com/docs/html/B12187_02/toc.htm
    OWB10g R1 (Scripting reference):
    http://download.oracle.com/docs/cd/E10926_01/doc/owb.101/b12152/toc.htm
    OWB10g R2 (Scripting reference):
    http://download.oracle.com/docs/cd/B31080_01/doc/owb.102/b28225/toc.htm

  • 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

  • OMS Plus script needed to change target table load hint

    Greetings
    Environment:
    Metadata Repository - 10.1.0.4 currently but going to 10.2.0.3 soon running client on Windows XP Pro and repository on AIX 5.3
    I need an OMB Plus script to find all the maps where the target table(s) have a Loading Type of either INSERT/UPDATE or UPDATE/INSERT and I want to remove the APPEND loading hint.
    I have suffered with attempts at using OMB Plus long enough.
    Also, is there a way in either 10.1 or 10.2 to set the default action of that attribute to NOT include the APPEND hint?
    Thanks very much in advance.
    -gary

    Hi Gary,
    you can get loading type with command
    OMBRETRIEVE MAPPING 'MAP_NAME' OPERATOR 'TABLE_OP' GET PROPERTIES (LOADING_TYPE)
    and loading hint with command
    OMBRETRIEVE MAPPING 'MAP_NAME' OPERATOR 'TABLE_OP' GET PROPERTIES (LOADING_HINT)
    In this thread you can find tcl script for identifying target or source tables/views in mapping
    Re: Q : OMBPLUS, find TARGET TABLE
    Regards,
    Oleg

  • Oerr facility for OMB Plus errors

    oerr facility for OMB scirpting errors
    Hello,
    is there a facility to troubleshoot errors encountered running OWB scripts ?
    My below command failed with MMM1034 error :
    OMBCREATE ORACLE_MODULE 'SRAV_MODULE' \
    SET PROPERTIES (DESCRIPTION, BUSINESS_PROPERTIES) VALUES \
    ('Target Module for testing relational objects' , 'Rel_Objects')
    MMM1034: Property BUSINESS_PROPERTIES does not exist.
    ===========
    Now, how do I troubleshoot this error? Is there a document with all the errors listing of MMM.
    I tried 'oerr MMM 1034' but it complained with "unknown facility" error.
    I did not find anything in the OWB scripting doc. What other documents can I refer to learn more about OMB plus scripting ?

    Patrick,
    thanks for your response.
    Yes, that fixed it. Is there any kind of reference book for all error listings and their fixes ? The scripting reference do not mention anything about error messages.
    Now, this is my new problem. The 1st script is fine, creates the table with 1 column. When I extend the script to create 2 columns, it complains.
    =====
    OMBCREATE TABLE 'SRAV_TBL_CHILD' \
    SET PROPERTIES (DESCRIPTION) VALUES \
    ('This table connects to TBL_PARENT') \
    ADD COLUMN 'ID1' \
    SET PROPERTIES (DATATYPE) VALUES ('NUMBER')
    =====
    OMBCREATE TABLE 'SRAV_TBL_CHILD' \
    SET PROPERTIES (DESCRIPTION) VALUES \
    ('This table connects to TBL_PARENT') \
    ADD COLUMN 'ID1' \
    SET PROPERTIES (DATATYPE) VALUES ('NUMBER') \
    ADD COLUMN 'COL2' \
    SET PROPERTIES (DATATYPE , NOT_NULL, DESCRIPTION) VALUES \
    ('NUMBER',1,'COL2 is the second col of PK')
    ======
    OMB00001: Encountered <EOF> at line: 1, column: 250. Was expecting one of: "("
    What am I missing ? When it says, column 250 - is it the 250th character of the complete script, as it seems there is no 2nd line in the scripting - everything in the sccript is in 1 line. Is there a way we can break the line into many, so debugging becomes easy. Instead of saying Line 1 column 250 - it would be better if it says line 4 column 10.
    Please advice.
    Thanks
    Sravan

  • Update the TCL-version used by OWB Scripting OMB Plus

    While implementing scripts under OMB Plus, I need to use/import some already existing TCL-libraries. This libraries need a TCL-version 8.2 or higher. But the TCL-version installed with the OracleWarehouseBuilder is 8.0.
    How can I update the TCL-version used by OWB Scripting (OMB Plus)?
    thanks

    Hi
    I would also like to know how to do this as on certain platforms some basic TCL commands don't work when run in scripts so upgrading the TCL version should hopefully fix this.
    Thanks In Advance
    Ian

  • 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

  • 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

  • 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 ;-)

  • Auto Bind in OMB*Plus

    Hello,
    Can I use the "auto bind" feature to bind a dimension to a table from OMB*plus? How? Or do I need to map it all manually if I want to script it?
    rergards,

    You can use autobind from scripting also, so construct your dimension definition and then using something like;
    OMBALTER DIMENSION 'YOURDIMENSION' IMPLEMENTED BY SYSTEM STAR
    Cheers
    David

  • 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

Maybe you are looking for

  • Opinions: averatec 3220H1

    * AMD Athlon XP-M 2000+ Processor * 256MB PC2700 DDR Memory * 40GB Hard Drive * 24x CD-RW Combo Optical Drive * 12.1" XGA Display and S3 UniChrome Graphics * AC'97 Audio * v.90 56Kbps Modem, 10/100 Ethernet and 802.11g Wireless * Three USB 2.0 Ports

  • Blank Table in Webdynpro

    Hello, I have developed a simple Webdynpro for java application which gets the Employee data based on the Employee Id but when I enter an id and click on the search button nothing displays in the table I have included on the screen. I have placed rel

  • Chinese installer for ECC 6.0

    Hello SAP Gurus, I'm going to install Chinese (Simplified and Traditional) language in our ECC system. I can't find in the Market Place the needed .SAR file for the Chinese language. Can anyone help me where can I find the .SAR for the below packages

  • How to make firefox 20 look like 3.6

    Everytime I upgrade Firefox I hate the user interface and I keep downgrading to version 3.6.28. Can Mozilla either make a version of the latest version with the 3.6 interface, a 3.6 interface option or go back to updating 3.6. For me the user interfa

  • Ora-12541

    Hi, I am trying to connect to a database in the enterprise manager console and the error shown is this:ora-12541 TNS no listener. I am able to connect to the database thru sqlplus. I am on a win2k machine. please help? --sajitha