Deploying mappings by changing Source/production system using OMB Scripting

Hi Mark,
I am now trying to deploy my mappings from DEVELOPMENT environment to PRODUCTION environment.
Now my mappings are point to DEVELOPMENT Source System and DEVELOPMENT target system. When I deploy these mappings should point to PRODUCTION Source System and PRODUCTION target System.
I could get some help from the forum for deploying the mappings point to PRODUCTION target system, but I couldnt find any help how to change the Source System Location. I have exported all my mappings (.xml files) in the C:\OWBDeploy directory.
How do we register and unregister a location using OMB Scripting?
How to write a batch deployment action without using deployment manager?
Provide a example to deploy the mappings using OMB script
for both source and target systems locations.
I am using Oracle 9.2, OWB 9.2.0.2.8, OWF 2.6 and OMB 9.2.0.2.8.
Regards,
Shreedhar

Below script will deploy all the mappings in a module. It can be used with filter condition like mappings which start with ‘M_D’ or ‘M_F’ also. Above script will deploy mappings very effectively comparing with GUI. Frequent problem in OWB mapping execution ‘ TASK not found’ error will not occur, if we deploy the mappings using above scripts.
Steps to Deploy All Mappings in a Module
Start the OMB PLUS from Command Prompt or Start Menu
Change the context to the respective Project
Connect to Design Repository
Register the Location Properties if the deployment is happening first time in the target schema.
Change the context to the respective Module
Use foreach and OWBCREATE command to create a Deployment Plan for Droping if any previous deployment for all mappings
Use foreach and OWBCREATE command to create a Deployment Plan for Newly Deploying the Mapping
Use foreach and OWBDEPLOY command to run the Drop Deployment Plan
Commit
Use for each and OWBDEPLOY command to run the Create Deployment Plan
Example
OMBCONNECT mis_owb904_rep/[email protected]:1521:ulyut03s
OMBCC '/IGMS_MIS_GEMNCAP_FOC'
OMBCONNECT RUNTIME 'ST_DWH_RUNTIME_FOC' USE PASSWORD ‘MIS_RT_OWNER’
OMBREGISTER LOCATION 'ST_LOC_CURRENTMISTARGET_FOC' SET PROPERTIES (Host, Port, Service, Schema, Password) \
VALUES ('10.202.148.176', 1521, 'ULYUT01M','MIS_OWNER', 'MANAGER')
OMBCC '/IGMS_MIS_GEMNCAP_FOC/CURRENTMISTARGET'
foreach mappingname [OMBLIST MAPPINGS] {
OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN '$mappingname.DROP' ADD ACTION '$mappingname.DROP' \
SET PROPERTIES (OPERATION) VALUES ('DROP') SET REFERENCE MAPPING \
'/IGMS_MIS_GEMNCAP_FOC/CURRENTMISTARGET/$mappingname';}
foreach mappingname [OMBLIST MAPPINGS] {
OMBDEPLOY DEPLOYMENT_ACTION_PLAN '$mappingname.DROP'
OMBCOMMIT;}
foreach mappingname [OMBLIST MAPPINGS] {
OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN '$mappingname.CREATE' ADD ACTION '$mappingname.CREATE' \
SET PROPERTIES (OPERATION) VALUES ('CREATE') SET REFERENCE MAPPING \
'/IGMS_MIS_GEMNCAP_FOC/CURRENTMISTARGET/$mappingname';}
foreach mappingname [OMBLIST MAPPINGS] {
OMBDEPLOY DEPLOYMENT_ACTION_PLAN '$mappingname.CREATE'
OMBCOMMIT;}

Similar Messages

  • TWO Changes In Production System

    Hi , there are two changes in Production system,
    one is there is a report i have to do some modification in PROD,for this have to do in DEV,QA,PROD Respectively , here whether i have to use old request to new one , is this is the right practice or not,
    second in  transfer rules there is a conversion routine , i have to do some modification , How can i do like once again DEV,QA,PROD
    Hope u understand the problem
    With Regards
    MAHI

    Hi,
    Normally we dont have any authorization for changing the objects directly in production.
    You need to make the required changes in Dev and then move to Quality and then to Production. Hence you need to create a new requrest for all the changes you made in Dev and move to Quality and then to Production.
    Hope this helps.
    Regards,
    K.Manikandan.

  • Code changes in Production system.

    Hi all,
    Due to the unavailability of the development and quality i want make code changes in production system.
    Please tell me is this possible and also i want know that does it effect or not?
    Regards,
    Ramprasd

    Hi,
    For editing in PRD system, u need to get authorization for editing. To get auth object, contact basis.
    But proper way to edit a code is modifying in DEV, then transport it to QAS & PRD.
    Regards,
    Prem

  • OSB - Deploying a java service on different servers using Ant script

    Hi All,
    My scenario is, I have two installations of OSB(with workshop), one on unix machine and other on windows machine...Now the problem is like, I have one java code exposed as a weblogic service ( this is created in workshop of windows machine), I need to deploy this service on my unix server using ANT script....
    Could any one pls let me know how to do this ( deploying services using Ant on different boxes).....
    Any help is appreciated....
    Thanks & Regards
    Feroz Tasha.

    Use the "targets" option to set the server where you want deploy your app.
    More info in [http://edocs.bea.com/wls/docs81/deployment/tools.html#1000477]

  • Deploying a java service on different servers using Ant script

    Hi All,
    My scenario is, I have two installations of OSB(with workshop), one on unix machine and other on windows machine...Now the problem is like, I have one java code exposed as a weblogic service ( this is created in workshop of windows machine), I need to deploy this service on my unix server using ANT script....
    Could any one pls let me know how to do this ( deploying services using Ant on different boxes).....
    Any help is appreciated....
    Thanks & Regards
    Feroz Tasha.

    Use the "targets" option to set the server where you want deploy your app.
    More info in [http://edocs.bea.com/wls/docs81/deployment/tools.html#1000477]

  • Creating Configuration in OWB 11gR2 using OMB+ Scripts

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

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

  • Setting PREFIX for DIMENSION_TABLE using OMB Scripting

    I'm trying all day to find a way to set PREFIX for DIMENSION_TABLE
    using OMB script without success and I'm a little confused now.
    First of all Scripting Reference does not mention about PREFIX
    property so maybe there is no way to achieve what I want. Consequently
    it would mean that GUI interface is "stronger" than OMB Scripting.
    Secondly I don't understand why when I issue following command in OMB
    Plus:
    OMBDESCRIBE CLASS_DEFINITION 'DIMENSION_TABLE' GET PROPERTY_DEFINITIONS
    I get nothing (empty output, no errors) and when I execute:
    OMBDESCRIBE CLASS_DEFINITION 'DIMENSION_TABLE' GET PROPERTIES
    (STEREOTYPE, IS_ABSTRACT, DESCRIPTION)
    I get:
    class false {}
    First result suggests that there are no properties for DIMENSION_TABLE
    and second proves that there are at least three.
    Is there some type/properties inheritance here?
    Can someone explain me this and tell how can I:
    1. find all valid types (I would like to set prefix for LEVEL,
    LEVEL_ATTRIBUTE, etc. too)
    2. find all properties for these types
    regards
    Tomasz Gajewski

    You misunderstood me. I don't want to rename DIMENSION_TABLE. When creating DIMENSION_TABLE with gui I set NAME and PREFIX for each DIMENSION_TABLE and LEVEL.
    PREFIX for level is used later during deploy to distinguish attributes from different levels.
    Example. If I have a level named LEVEL_NAME with prefix LN and an attribute of it named ID than table generated for this contains column LN_ID.
    When I create DIMENSION_TABLE using OMB Script prefix is set same as name (default behaviour that I can't change) and it is to long to use.
    Scripting Reference doesn't mention about PREFIX property. Should I assume that the only way to change these values are through OWB GUI?
    regards
    Tomasz Gajewski

  • BCS - master data change in productive system?

    Hi group,
    We are about to go live with our BCS system, but of course someone got the great idea of changing the company code currency for one of the "non-SAP" companies in the group since the sytem was set up.
    When I enter the consolidatin workbench in our production system, everything is considered customizing, so no changes are allowed - even to master data. I''ve searched the "Object changeability" settings of the BW system but couldn't find any settings regarding BCS. I also checked settings in se06 and found a namespace "/FINB/" which I suspect has something to do with BCS (currently set to "Not modifiable")?
    What are the correct system settings for the BCS system to function correctly, and what is the normal procedure for maintaining master data in SEM-BCS? - by transport requests or by changing directly in the productive system?
    Best regards
    Thomas
    P.S.: Are there any usefull resources for BCS on the Internet? The help in the system is very limited and I can't find anything on the SAP marketplace.
    Message was edited by:
            Thomas Ringe Pontoppidan

    Hi Dan,
    Example: you have a single selection containing a set (not range) of separate values. Then you decided to change the set (adding one more value, for example). Are you saying that this single selection change in DEV will be reflected automatically in PROD? 
    From my experience I know that while using single selections, the system replaces it by the set/range/node. And when a single selection was changed, nothing yet happened with elimination settings using SS. You have to go into each part of the settings in the method and refresh the SS. You'll see that only after that the set of values was changed. It's obvious for me that if I don't do this refreshing in DEV and then import the request into PROD, I'll have the old, not modified, version of my settings.

  • Logical System Change for Production System

    Hi experts
    We have new CRM and BI project.  Logical System name of our ERP production system is not in naming standart. So we want to change logical system name and run BDLS in production system.
    Is there any risk about this prosedure?
    Best Regards...

    Hi,
    It is not advisable to change the logical system in production client once its assigned.
    Regards,
    Nisit

  • Database change in production system

    Hi Experts
                I have created a ztable and transported to production system.
               Now i need to delete one column, or change the data element and domain, is it possible, will it create any problems.
            if data already exists for a particular field in production system, now can i change the data element and domain without losing the data.
               Pls help me on this, and give any notes about the database changes after transported to producion system.
    Regards
    Rajarm

    Hi..
    I tried this..
    If  u rename a field or changes occuring to a paricular field means..
    The corresponding field data will be deleted..
    Post me for furthur Queries regarding this.
    Regards
    Bala..

  • Profit center change in production system

    Dear Experts,
    We are currently on SAP R/3 4.7.
    We have a situation where we need to do a reorganization of profit centers in an already running production system.
    Could someone let me know what is the best approach to do this in the SD module. What is the impact with rference to Scheduling agreements/ sales orders, etc. Are there any existing programs in SAP R/3 to take care of this change?
    Are there SAP notes/ documents that I can go through that give an ideas of the Dos and DON'Ts while making this change.
    Sharing of past experiences/problems would also go  long way.
    In case someone has some existing documentation regarding this kind of issue, please share it with us .
    Best regards,
    Saraswathi

    Hi
    http://www.financialsexpertonline.com/article.cfm?session=&id=4782
    Regards

  • Cannot change to Production mode using WLST

    Is it possible or may be it is bug?
    Even <pre>configToScript()</pre> command throws an exception
    when i'm trying to convert a Domain with <i>Production mode</i> enabled (created with Configuration wizard)!

    Since DomainMBean.ProductionModeEnabled attribute is non-dynamic, you may want to restart your server immediately after you change that attribute using WLST.
    If you still get exeception for configToScript() command after server restart, please attach the exception stack trace.
    Jason Zheng
    BEA Systems

  • Error while listing tables using OMB script

    Hi All,
    I'm just trying to list certain tables in OWB that contain a specific column but the following script I wrote is not working:
    foreach tablename [OMBLIST TABLE TMP*] {
    set columnlist [OMBRETRIEVE TABLE '$tablename' GET COLUMNS];
    if {[lsearch $columnlist 'ID'] != -1} {
    puts "Table: $tablename";
    It returns the next error message:
    OMB01036: Object type must be plural.
    I've been searching for any documentation about this error but haven't found anything.
    Any help would be highly appreciated as I'm starting to learn about OMB scripts.
    Regards,
    Mauricio

    I tried that before and I got this error:
    OMB00001: Encountered TMP* at line:1 column:16. Was expecting one of: <EOF> <QUOTED_STRING>...
    It is strange because I wrote the code based on oracle documentation examples (Introduction to OMB Plus).
    I also tried removing the "TMP*" just to see if that worked, even though I only want to check for tables which name start with TMP, and at least it doesn't return any error but It doesn't list any table either (and I'm pretty sure there are tables that satisfy the conditions). The script right now is:
    foreach tablename [OMBLIST TABLES] {
    set columnlist [OMBRETRIEVE TABLE '$tablename' GET COLUMNS];
    if {[lsearch $columnlist 'ID'] != -1} {
    puts "Table: $tablename";
    I guess the solution must be simple but I can't see it. Any help?

  • Reversing changes from production !

    Dear Friends,
    I have done a successful transport of java change to production system using CMS.
    Can I revert it back?
    Can I revert it back to previous of previous?
    If possible, how can I do it?
    Documents and links prefered.
    Thanks in advance,
    Regards,
    Lakshmikantha

    Click on the History button, select time frame of the last correct import. Pickup the "previous" change and add it to the import queue (+ button on the right hand top corner). It will be in your import queue and you can re-import again. You have to make sure you to select all the components in the same build.
    -RK

  • Promoting Changes of Distrbution model to production system

    Hi Experts,
                    There is need for changing the distribution model in production system, if we promote the distribution model from development system, we have to run BDLS to change the sender and partner names. But this requires down time of production system, which we dont want to take. And we cant run BDLS when the transaction are carrying out by users. Please suggest the best way to promote the changes of distribution model to production system..
    Cheers,
    Prasanna

    The only other way I can think of is make BD64 related table directly maintainable in Production so it will allow changes in Production system.
    You can get the table names to update from your tranport request that you are planning to move to production.
    I think thats the way systems are generally configured because of the Issues you are facing.
    Regards
    Shital

Maybe you are looking for

  • How to read data from the PDF file

    Hi i need pdf related API details and sample program to retrive the data from the pdf.

  • Events in CL_GUI_ALV_GRID - PAI

    Hi All, I designed the screen like below I am using doc container with split one is for small ALV grid and next is for text editor. - Upper Portion of screen (Upper portion is splited vertically for alv grid and text editor) in the bottom of screen i

  • Condition type for Retension Money  and Down Payment in construction co.

    Dear Friends, In construction co they are using advance payment and retension money from the customer. what condition type I should use for Retension money and for Advance payemnt can I used AZWR (Down Payment condition type). Kindly help me Regards

  • Java code

    Hi...im creating an application in which i need to convert autocat file (dwg file) to pdf formate can anyone help me...

  • Defining substitutes in a multi SAP component system landscape

    Hi All, I need some help trying to understand and figure out how to best proceed with a recommendation/solution for defining workflow substitutes in a new SAP installation that includes the following components: Netweaver 2004S, EP6,  SRM5 and ERP 20