OMB script to remove DBLink and Schema configuration from mapping

In OWB903 we have used prefixes for most of our tables used in mappings. (By right clicking on the mapping, choosing configure and then setting the Schema/DB Link for each table under "Sources and Targets")
We are now in the process of upgrading to OWB 904, and because of the way OWB 904 handles locations we would like to remove the prefixes from the mapping configurations. Our project consists of 100+ mappings, so it would be nice if it was possible to do this by runing a OMB script.
I would appreciate it very much if anybody can come up with an example of how to do this.

Roald,
Here is an example of a OMB script that renames all the tables in a project (to run a script, you have to open the OMBPlus application and enter 'source <filename>' on the prompt, where filename is the name of the file containing the script):
# rename.tcl
# Renames the names of tables, mappings, cubes and dimension for a project.
# Prefixes the names with 'WH_'
# Please update the connection information here.
# The connect string format is repository_user/repository_pwd@hostname:port:service_name
# Connecting to the repository:
OMBCONNECT owb904/owb904@localhost:1521:ora9201
puts "Connected to repository."
# Setting the project and prefix variables (set project name here):
set MProject MY_PROJECT
set wh WH_
#Open the project
# Entering into the Project (CC = Changing Context):
OMBCC '$MProject'
set module_list [OMBLIST ORACLE_MODULES]
# Loop to enter into each project module:
     foreach i in {$module_list}{
          puts "Working on module: $module_list ."
          OMBCC '$module_list'
          set table_list [OMBLIST TABLES]
# Loop to prefix the name of each table in the current module:
               foreach j in {$table_list}{
                    puts "     Working on table: $table_list ."
                    OMBALTER TABLE '$j'
                         RENAME TO '$wh$j'
puts "Done."
# Saving the changes:
OMBCOMMIT
# Disconnecting from the repository:
OMBDISCONNECT
As you know, OMBPlus is based on the TCL scripting language. For more info on TCL, take a look at:
http://www.scriptics.com
Also, for more info on the OWB specific commands, take a look at the Users guide.
Regards:
Igor

Similar Messages

  • How do I remove locations and/or pins from maps on iphone 5

    How can I remove locations and/or pins from MAPS?

    A purple pin is a dropped pin. You access that from the "back" of the map, but touching the lower right corner of the map. It is a pin that is dropped in the center of the map you happen to be looking at at the time. If there is no description of the pin, touch the pin and it should show a label, and on the right side of the label there is a blue arrowhead. Touch that and it will provide an address/description of the pin's location and there should be other options, such as directions to here, from here, etc., and then one to remove the pin. Touch that and it should disappear.

  • If I remove itunes and its drivers from my computer, as recommended by someone at the Apple store for a problem I'm having, I know my music will come back, but will my playlists still be there as they are now?

    If I remove itunes and its drivers from my computer, as recommended by someone at the Apple store for a problem I'm having, I know my music will come back, but will my playlists still be there as they are now? I forgot to ask.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • HT201210 How do I remove itune and charger icon from my iphone screen and allow access

    How can I remove itune and charger icon from my iphone 4s screen and allow access. While downloading the lastest version of iune my iphone was being charged. The phone do not allow access anymore.

    Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
    Miss Bspace wrote:
    How can I remove itune and charger icon from my iphone 4s screen and allow access. 
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Then see Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • Removing leading and trailing delimiters from a String

    I need to remove leading and trailing delimiters from a String like if my string is 111,112, then it should get changed to 111,112.Any idea how to do this??

    for my suggestion:String s = "111,112,";
    int begin = 0;
    while (!Character.isLetterOrDigit(s.charAt(begin)))
         begin++;
    int end = s.length() - 1;
    while (!Character.isLetterOrDigit(s.charAt(end)))
         end--;
    String news = s.substring(begin, end + 1);Of course, you'll have to clean it up a bit.

  • Need to remove photshop and elements 8 from this old win xp computer and install it on new computer. I have the hard copy of the program, howeve registration here may prevent me from re-installing

    how can I remove photoshop and elements 8 from this older computer and install on new computer when it arrives

    You uninstall using the Windows control panel, and you install the same way you did on your old computer... put the disc in the drive and follow the onscreen instructions
    Also, unless you are asking about CLOUD programs, you will do better in the specific program forums
    Photoshop General Discussion
    Community: Premiere Elements | Adobe Community
    Photoshop Elements Forum http://forums.adobe.com/community/photoshop_elements

  • How to find the tablespace name and schema name from a dump file

    Good day to all,
    I recived a dump file from a client with oracle 11g, and I need do get the tablespace and schema name from the dump file. How can I do that?
    Thanks.
    Flávio Melo
    Edited by: 933141 on 09/05/2012 07:41

    user12038066 wrote:
    Use imp utility, it generates DDL for both tables and indexes. So you will get tablespace info for both.
    Use impdp utility, it generates DDL for indexes only. So you will miss tablesapce info for tables.
    Haven't found a workaround for impdp utility. Anyone knows?Are you sure you are using the impdp utility correctly? Because if you do, then sqlfile should have all gory details.

  • [svn:osmf:] 14178: PARB changes: Remove unload and query methods from PluginManager.

    Revision: 14178
    Revision: 14178
    Author:   [email protected]
    Date:     2010-02-15 21:35:12 -0800 (Mon, 15 Feb 2010)
    Log Message:
    PARB changes: Remove unload and query methods from PluginManager.  We lack compelling use cases for those methods, but can easily re-add them later if we come across some.
    Modified Paths:
        osmf/trunk/apps/samples/framework/DynamicStreamingSample/src/DynamicStreamingSample.mxml
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.mxml
        osmf/trunk/apps/samples/plugins/CaptioningSample/src/CaptioningSample.mxml
        osmf/trunk/framework/OSMF/org/osmf/events/PluginManagerEvent.as
        osmf/trunk/framework/OSMF/org/osmf/plugin/PluginManager.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/plugin/TestPluginManagerIntegration.as
        osmf/trunk/framework/OSMFTest/org/osmf/plugin/TestPluginManager.as
        osmf/trunk/plugins/CaptioningPluginTest/src/CaptioningPluginTest.mxml

  • Remove spaces and special characters from a form field

    Hi,
    I am tragically new to all of this, but am trying to create a form in Adobe Acrobat 9.  I am trying to use a Custom Format script to take inputs in a form field and automatically remove spaces and special characters (hyphens specifically).  For example, if a user inputs "RAN-99 06" I would like it to change to "RAN9906."  I found this script that will not let users input special characters
    if (!event.willCommit) {
        event.change = event.change.replace(/[\$#~%\*\*\^\-\(\)\+=\[\]\{\};\"\<\>\?\|\\\!]/g, "");
    And that's okay, but I can't figure out how to disallow spaces.  Also, the perference would be for a script to allow users to input the data as they like, but to clean it up after they leave the text field.
    Thanks in advance!

    From the description, I assume that the script is currently in the Keystroke event. In fact, that would be a most logical way to have it; simply ignore anything unwanted when entered.
    If you want to allow the user to enter anything, but "clean it up" when done, you would place your code in the Validate event. You will have to adjust your Regular Expression so that it works globally, but that's the whole difference. This will change the value.
    Note that you can also enter the code into the Format event. However, that would only change the visual representation of the value, but internally, the value would remain as entered.
    Hope this can help.
    Max Wyss.

  • Remove collapse and expand icons from tray header

    Hi all
    Is it possible in any way to remove the collapse and expand icons from the tray header, and have the menu icon aligned with the end of the underline?
    Uploading a transparent gif does'n help, because the collaps and expand icon has the same width and heigh as the menu icon. Thus if I upload a transparent gif, and the width of the icons is set to 14px, the menu icon is not aligned with the line which underlines the whole header. There is 14px of blank / transparent.
    Removing the menu icon is easy, all I have to do is deselect all the 'show xxx' options in the iView editor.
    It should be possible to remove the collaps and expand icons, and still be able make it look good.
    Has anyone else had this problem??

    Amit,
    Thank you for replying twice, much appreciated.
    I am sorry for my late response. Thank you for the tip, but as far as I can see this is related to SP 15. We are currently on SP13. I should have of course have mentioned which SP in my problemdescription, and had we been on SP 15 I would have tried this solution.
    Anyway, points rewarded for being helpful.
    Markus,
    I did not find a solution for our problem. However during this summer our customers have decided that it was not very important to remove this icon, so I have left it. I hope the suggestions from Amit and Prem can give you some tips if you have a similar problem.
    Prem,
    as far as I understand you are suggesting to override the jsp for the iViews-trays, like you suggested for the detailed navigation? Anyway, it sounds like a good idea, and worth a try. But, as I mentioned above, we have deceided not to remove the icon. However, it sounds interesting, and I would like to investigate these possibilities when I have the time. points rewarded for being helpful
    Kind regards,
    Reidun
    Message was edited by: Reidun Mongstad

  • How do I remove spaces and special characters from the file name during rendering?

    I understand that I can set LR_renamingTokensOn to true, but I would like to replace all spaces in the file name with an underscore and remove characters not in the range A-Z and 0-9. What's the easiest way to achieve this?

    local photo = catalog:getTargetPhoto()
    local sesn = LrExportSession {
        photosToExport = { photo },
        exportSettings = {
            -- ... (determine from export preset) - whatev you want, just be sure you set export directory: LR_export_destinationPathPrefix
            LR_tokens = "{{custom_token}}",
            LR_tokenCustomString = LrPathUtils.removeExtension( photo:getFormattedMetadata( 'fileName' ) ):gsub( "[ %c]", "" ) -- remove spaces and control characters
    sesn:doExportOnNewTask()

  • How can I remove red and green lines from a footage?

    I cannot remove red and green lines without removing the title graphics that I have in my footage. How can I solve the problem and keep the graphic there?

    @Ann Benns
    I will try to do that. Thank you!
    @Bill Hunt
    Well, the raw footage is an avi filmed with a handycam. This error occurred
    the next day after I finished the editing in Adobe Premiere cs5. It might
    be something wrong with the title graphics that I use, but still if there's
    a solution I would like to find it out as this error occurred before.
    Cristina

  • Removing address and other functionalities from a window

    Hi,
    I want to remove the address bar and other functionalities from the browser of an external window called from webdynpro. Could you tell me how to do this.
    Regards,
    Jayant.

    Hi,
       Something like this:
    //Do this before opening the window.
    IWDWindow win = wdComponentAPI.getWindowManager().
    createNonModalExternalWindow("url","title");
    win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    //Check out the WDWindowFeature class for more features.
    Regards,
    Satyajit.

  • Remove "Clear" and "Delete" Softkeys from Directories?

    Is there any way to remove the "Clear" and "Delete" softkeys from "Missed Calls" and "Recieved Calls" directories?
    I'm trying to do this on a 7965G with CUCM 8.6.2.
    So far it just looks like you can set softkeys based on "call state".
    Thanks in advance.

    Unfortunately not, the pages are not editable as they are hard coded on the appliance CUCM server. You would need develop your own directory using Cisco's API.
    HTH, please rate all useful posts!
    Chris

  • Undo removed Microphone and Speakers devices from ...

    I had my audio skype options set to chose from the list of devices in order of the priority I've set. Recently I had some problems with my microphone (sorted out as it was a hardware problem) and I wanted to have a look at the options again. I noticed that no matter what I was dooing (eg plugging or unplugging my headphones from the IO jacks) the same options was chosen by skype : 
    -Microphone (Raltek High Definition Audio)
    -Speakers (Raltek High Definition Audio)
    And all the rest was shaded gray. 
    I thought I can remove them and the next time I open skype it will detect again the devices. But this was not the case ! How can I have all the devices back there ?.
    Now, the input and output is sorted by raltek I guess, but I cannot figure out exactly how can I controll these. When I plug the headphones, it is taken as IO and when I unplug them the build in IO are taken. 
    I want the ability to have my headphones plugged (and other devices, eg third party webcam), and choose whenever I want to take the microphone input from my build in laptop or from headphones or from my third party web cam and so on. How can I achieve this?

    Hi Amanda,
    Try the following.
    Download the IDT Audio installer on the link below and save it to your Downloads folder.
    http://ftp.hp.com/pub/softpaq/sp52501-53000/sp52658.exe
    When done, open windows Control Panel, open Device Manager and open up Sound, Video and Game Controllers.  Right click the IDT device and select Uninstall - you should also get a prompt to remove the current driver, tick the box to allow this and then proceed with the uninstall.
    When complete, shut down the notebook, unplug the AC Adapter and then remove the battery.  Hold down the Power button for 30 seconds.  Re-insert the battery and plug in the AC Adapter.
    Tap away at the esc key as you start the notebook to launch the Start-up Menu and then select f10 to enter the bios menu.  Press f5 to load the defaults ( this is sometimes f9, but the menu at the bottom will show the correct key ), use the arrow keys to select 'Yes' and hit enter.  Press f10 to save the setting and again use the arrow keys to select 'Yes' and hit enter.
    Let Windows fully load - it will automatically load an audio driver, but just let this complete.  Then open your Downloads folder, right click on the IDT installer and select 'Run as Administrator' to start the installation.  When this has completed, right click the speaker icon in the Taskbar and select Playback Devices.  Left click 'Speakers and Headphones' once to highlight it and then click the Set Default button - check if you now have audio.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

Maybe you are looking for

  • IPhone 3G Wi-fi Problem

    Hi. I have a problem connecting the iPhone 3G with my router. I does not connect when I have the WPA 2 encryption on but with my iPod Touch it works perfectly. I have the 2.0.2 software on both. When I remove the encryption it works but I don't wanna

  • HT201263 my ipod is asking for passcode and its disabled now I cant access it as my computer in which I had synced it is crashed

    I have ipod touch for the last two years.  I had not used it for long time now, since my computer has been changed I can not synce it as its asking for passcode and its disabled now. I had not saved the password.  I also can not format it. Pl help me

  • Attach receipt soft copy against each receipt created in Travel Expense Report

    Hi, I want to attach each receipt to each expense line in Travel Expense Report. I created one OSS message, for which SAP replied, that GUID is the key for the receipts and the attachment will be linked to it. It is possible to attach because the per

  • Hot Keys Not Working With Yosemite

    I recently updated to Yosemite from Snow Leopard and have been having some issues with my hot keys. I'm working in CS6 and have updated the latest version of Photoshop from the Adobe Manager. The hot keys do work sometimes, but then they stop. Is any

  • Help with focus on Canon 5d mark iii

    the answer to my question is probably pitifully obvious so i acknowledge my limits I'm having a terrible time focusing with my canon 5d mark iii.  i primarily use a 35mm 1.4L and an 85mm 1.2L, and use back button focus with ai servo mode.  i also usu