To Generate Oracle Package from OWB *.mdl file

Hi,
I want to generate an Oracle Package from OWB *.mdl file. I know this can be done using the OWB GUI. But is there a way to automate this using a script for a given set of mappings?
Such a thing is required because I have a large number of mappings and i need to create the Oracle package scripts for the same.

Hi borkur,
As you told I tried the same in OMBPlus. I created a file called "comp_src.txt" with the following code:
proc compile_mappings {} {
OMBCONNECT owbrepos/owbrepos@blrkec20974d:1521:FDMD1B
OMBCC 'FDM/BOE'
OMBCOMPILE MAPPING 'BOE_EXPN_POPULATE_IU_1' OUTPUT VALIDATION_RESULT TO '/nav' WRITE
SUCCESS
OUTPUT GENERATION_SCRIPTS TO '/nav'.
OMBCOMPILE TABLE 'T1' OUTPUT GENERATION_SCRIPTS TO '/nav'
But i am getting an error message as below:
OMB+> source C:/oracle/ora93/owb/bin/win32/comp_src.txt
OMB+> compile_mappings
Cannot establish connection in single-user mode!
OMB+>
I am new to OMBPlus and i came to know that Multi-user mode is default. Then why i am getting this error (Cannot establish connection in single-user mode!)
Regards,
Naveen

Similar Messages

  • Save an oracle package to a flat file

    Hallo,
    how can I save an oracle package to a flat file?
    Best Regards
    Werner

    Here is a script you can use. You may need to change the references to dba_source to user_source or all_source depending on your access privileges.
    set termout off
    store set sqlplus.cfg replace
    column pkg_spec new_value pkg_spec noprint
    column pkg_body new_value pkg_body noprint
    set pagesize 0
    set linesize 10000
    set trimspool on
    set echo off
    set verify off
    set feedback off
    set timing off
    set recsep off
    set termout on
    accept pkg prompt   'Package name:  '
    accept owner prompt 'Owner:         '
    set termout off
    select lower('&&pkg') || '_spec.sql' pkg_spec,
      lower('&&pkg') || '_body.sql' pkg_body from dual;
    spool &pkg_spec
    select 'create or replace' from dual;
    select text from dba_source
      where owner = upper('&&owner')
      and name = upper('&&pkg')
      and type = 'PACKAGE'
      order by line;
    select '/' || chr(10) || 'sho err' from dual;
    spool off
    spool &pkg_body
    select 'create or replace' from dual;
    select text from dba_source
      where owner = upper('&&owner')
      and name = upper('&&pkg')
      and type = 'PACKAGE BODY'
      order by line;
    select '/' || chr(10) || 'sho err' from dual;
    spool off
    @sqlplus.cfg
    set termout on

  • [solved] remove packages from a txt file list

    as the subject header says, I want to run "pacman -R" and have it read a list of packages from a text file.
    Is this possible????
    text file is formatted as such....
    file1
    file2
    file3
    Last edited by orphius (2013-07-09 08:11:53)

    Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.

  • OWB - Importing a specific mapping from a MDL file

    Hello,
    I have a requirement to import a mapping into OWB design repository.
    I have a MDL file which contains the export of around 100 mappings and all I need is only one mapping out of the MDL file.
    I don't want to import the MDL file as a whole bcoz it will replace all the other mappings too..
    Pls suggest any solutions for this,.
    Thanks in Advance!!

    Hi Parthy,
    We are using the version - 10.1.0.4.0 . As you said the option is available only in 10gR2 or later versions, any other alternate solutions are there??Alternative is to use [url http://download.oracle.com/docs/html/B12146_01/importexport.htm#g1122273]import command line utility or OMBIMPORT MDL_FILE command from OMBPlus
    Regrads,
    Oleg

  • OWB mdl file not importing

    Hi All,
    I am getting the following error while importing the mdl file.All the mappings are imported except one mapping.
    I am using OWB 10.2.0.4.0
    java.lang.NullPointerException
         at oracle.wh.service.impl.mapping.component.entity.EntityKey.loadKeys(EntityKey.java:64)
         at oracle.wh.service.impl.mapping.component.entity.Entity.afterLoadOperator(Entity.java:117)
         at oracle.wh.service.impl.mapping.component.entity.EntityBusinessRule.afterLoadOperator(EntityBusinessRule.java:144)
         at oracle.wh.repos.impl.mapping.CMPMapOperator.internalAfterLoadHook(CMPMapOperator.java:1415)
         at oracle.wh.repos.impl.mapping.CMPMapOperatorOwnerImpl.internalAfterLoadHook(CMPMapOperatorOwnerImpl.java:455)
         at oracle.wh.repos.impl.mapping.CMPBaseMap.afterLoadFCOHook(CMPBaseMap.java:742)
         at oracle.wh.repos.impl.mapping.CMPMap.afterLoadFCOHook(CMPMap.java:968)
         at oracle.wh.repos.pdl.metadataloader.Import.GetMDLImportTokens.endElement(GetMDLImportTokens.java:1108)
         at oracle.wh.repos.pdl.metadataloader.Import.GetMDLImportTokens.run(GetMDLImportTokens.java:1180)
         at oracle.wh.repos.pdl.metadataloader.converter.foundation.ConverterStateMachine.runAll(ConverterStateMachine.java:70)
         at oracle.wh.repos.pdl.metadataloader.converter.foundation.ProcessXML$ConvertHandlerBase.endElement(ProcessXML.java:226)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1309)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:326)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:293)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:295)
         at oracle.wh.repos.pdl.metadataloader.converter.util.WBXMLSourceReader.parse(WBXMLSourceReader.java:59)
         at oracle.wh.repos.pdl.metadataloader.converter.foundation.ProcessXML.runConversion(ProcessXML.java:356)
         at oracle.wh.repos.pdl.metadataloader.converter.foundation.ProcessXML.run(ProcessXML.java:290)
         at oracle.wh.repos.pdl.metadataloader.converter.foundation.StateMachine.runAll(StateMachine.java:50)
         at oracle.wh.repos.pdl.metadataloader.converter.WBConverter.ConvertXML(WBConverter.java:568)
         at oracle.wh.repos.pdl.metadataloader.Import.MDLImport.process(MDLImport.java:1859)
         at oracle.wh.repos.pdl.metadataloader.Import.MDLRunImport.internalRunImport(MDLRunImport.java:431)
         at oracle.wh.repos.pdl.metadataloader.Import.MDLRunImport.runImport(MDLRunImport.java:503)
         at oracle.wh.ui.metadataloader.Import.MDLUpgradeImportTransaction.internalRunImport(MDLUpgradeImportTransaction.java:218)
         at oracle.wh.ui.metadataloader.Import.MDLUpgradeImportTransaction.run(MDLUpgradeImportTransaction.java:319)
    Can any one please help me in this regard? Its Urgent.

    It might also be the MDL file you are trying to import. How was it exported with dependencies, or not? This might be the problem depending on the environment it is exported from and imported into.
    Give this a try;
    Create a dummy mapping, any will do.
    Save your changes.
    Export only this mapping and ensure export dependencies is not checked.
    Delete the mapping
    Save your changes.
    Try importing this mapping back in to the same environment share with us the results.
    Regards,
    Emrah
    Edited by: cakire82 on Sep 16, 2009 5:13 AM

  • How to generate GUI code from parsed XML file?

    hai,
    I have to generate GUI code after parsing any configuration XML file as input.Now i have parsed my XML file and got its attributed and i want to get some idea of how to map the parsed XML attributes to the java code to build GUI code.

    Hello,
    1. I like to create data type from a XML file structure, which contains the data structure ?
    XML fields will need to be taken note of to see which is repeating or not. You can also load the XML into a third-party tool such as Altova XML Spy and then generate an XSD from there. You will need to import the XSDs into PI under external definitions. However, this does not guarantee business interoperability, as such, it is always best to ask the provider for the XSDs or WSDL. It will also save you a lot of time from guessing which fields are needed or not.
    2. How to create custom node function in graphical mapping editor ?
    In your graphical mapping editor, on the lowest left corner, there is an icon there that says Create New Function. You must take into account their return types:
    1. Single Values = String
    2. Queue/Context (no return type) thus resultList is used.
    Hope this helps,
    Mark

  • Reinstall packages from a list file

    Hi
    I have figured a way for a fast installtion of Arch. I backup the list of packages using the following command:
    pacman -Qq > pkglist
    The problem is I don't know how to tell pacman to install the packages in the listed file in the fresh installation. Any ideas?

    You are probably better to use
    pacman -Qqe
    to list only packages that were explicitly installed.  That way the packages installed as dependencies, stay installed as dependencies. Then you can just
    pacman -S $(cat pkglist)

  • How to open new window and generate oracle report from apex

    Hi,
    I had created an application that generates PDF files using Oracle Reports, following this Guide.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
    But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
    So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
    javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
    But if the button is pressed, I get this error.
    ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
    Does anyone know how to open new window from the Branch in this case?

    G'day Shohei,
    Try putting your javascript into your plsql process using the htp.p(); procedure.
    For example, something along these lines should do it:
    BEGIN
    -- Your other process code goes here...
    htp.p('<script type="javascript/text">');
    htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
    htp.p('</script>');
    END;
    What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
    HTH
    Cheers,
    Mike

  • Workshop 10.0.1 - Generating service control from a WSDL file

    Hi!
    I've been familiarising myself with Workshop (version 10.0.1).
    There is a feature that allows the generation of a web service control by right-clicking a WSDL file (Web Services > Generate Service Control).
    This process creates a jar file containing the WSDL's complex type.
    My only problem with this is that the jar uses the namespaces as package names (for example: www.openuri.org will be converted into an org.openuri package).
    I've been searching for a way to customize the package names, but I've been unable to find it. We previously used Axis to generate a web service client, and we ran an Ant task that could map namespaces to packages.
    Would there be a way to achieve this in Workshop?
    Thank you!

    Hi
    This is a known issue and a limitation. Service controls doesn't honor xsdconfig files when generated from wsdl file.
    We have an enhancement request CR307698 pending to address this issue. It looks like it's a big change in code to get this working so it is being looked at in the next release.
    Also, you can call BEA support / create a case in future and request status on this CR anytime.
    Vimala-

  • Populating Oracle DB from a CSV file

    Hi All,
    We are having a CSV file located in a remote machine, which can be accessed by doing SFTP.
    The data in the CSV file has to be loaded into an Oracle 9i DB. All the columns are direct mappings except one. For that one column(Date field), we need to
    do some processing and store it in data field.
    I tried this using SQL loader. I've very little knowledge of SQL Loader, and i'm not sure whether it can read the file from remote machine(through SFTP) and do the processing before loading into Oracle DB.
    I just thought to take inputs from you guys before going further - Can I achieve this using SQL Loader? Or any other tools will help?
    Pls suggest.
    thanks
    Hanu
    Edited by: user11365763 on Jul 9, 2009 10:36 PM

    thanks for the reply. :)
    Yes, I guess I should write a windows script to download it to local machine and use sqlldr to populate it.
    Having seen Saving column mapping in file loads, I believe this sqlldr is a good way of doing this. But lemme also explore it and check whether it does the processing(date processing - conversion of format) of a field before loading the data in Oracle DB.
    thank you,
    Hanu
    Edited by: user11365763 on Jul 9, 2009 11:01 PM

  • Generated Code different from OWB Client and Deployment Manager....

    Hi,
    I developed the mappings using OWB9.2 and generated the code.
    But when same mapping is used to generated code from deployment manager it is having extra code like WB_RT% procedures/functions.
    Why this is happening, does any body have idea on this.
    Please let me know.
    With Regards,
    Kranthi..

    When you generate code from within your mapping, you'll get clean sql. But when you deploy your mapping and create package the code will contain more than just sql used for loading your tables, like control procedures etc. based on your mapping configuration, table loading options etc.
    If you create mapping that will load table using TRUNCATE/INSERT option and generate code you will see only INERT INTO code, but when you deploy your mapping the code will include TRUNCATE TABLE code.

  • Generating debug symbols from a source file in assembly

    Hi,
    I have a file written in the SPARC assembly language, which I can successfully assemble using the "as" command and produce an object file. However, the object file that it being produced does not have any debugging information in it. So when I link that object file into my program, I cannot debug that assembly code. (I don't need to be able to do full-fledged debugging, I would just like to know which lines in that assembly language file are being executed).
    My question is: how can I get the assembler to produce the object file with enough debugging information to do this. A MIPS assembler that I used before accepts a combination of options "ahls", which allows you to know the lines that are being executed in the assembly source file when you debug the program. The SPARC assembler does not appear to have such options.
    Do I need to extend the source file itself with additional information manually? Is there a manual that tells you how to do this?
    Any help would be appreciated.
    Thanks!

    Are you using dbx to debug your assembly code? dbx allows you to step through and view assembly instructions with the stepi, stopi, nexti, and listi commands.
    (dbx) listi
        2         print *, "Hello World"
    0x00011390: MAIN       :        save    %sp, -0x78, %sp
    0x00011394: MAIN+0x0004:        mov     0x8, %l0
    0x00011398: MAIN+0x0008:        st      %l0, [%fp - 0x18]
    0x0001139c: MAIN+0x000c:        sethi   %hi(0x21400), %l0
    0x000113a0: MAIN+0x0010:        or      %l0, 0x270, %l0
    0x000113a4: MAIN+0x0014:        st      %l0, [%fp - 0x14]
    0x000113a8: MAIN+0x0018:        add     %fp, -0x18, %l0
    0x000113ac: MAIN+0x001c:        call    __f90_sslw [PLT]
    0x000113b0: MAIN+0x0020:        mov     %l0, %o0
    0x000113b4: MAIN+0x0024:        add     %fp, -0x18, %l0
    0x000113b8: MAIN+0x0028:        sethi   %hi(0x11400), %l1
    0x000113bc: MAIN+0x002c:        or      %l1, 0x140, %l1
    0x000113c0: MAIN+0x0030:        mov     0xb, %l2
    0x000113c4: MAIN+0x0034:        mov     %l0, %o0
    0x000113c8: MAIN+0x0038:        mov     %l1, %o1
    0x000113cc: MAIN+0x003c:        call    __f90_slw_ch [PLT]
    0x000113d0: MAIN+0x0040:        mov     %l2, %o2
    0x000113d4: MAIN+0x0044:        add     %fp, -0x18, %l0
    0x000113d8: MAIN+0x0048:        call    __f90_eslw [PLT]
    0x000113dc: MAIN+0x004c:        mov     %l0, %o0
    0x000113e0: MAIN+0x0050:        ret    
    0x000113e4: MAIN+0x0054:        restore
        3         end(dbx) stopi at MAIN+0x001c
    (2) stopi at &MAIN+0x1c
    (dbx) run
    Running: main
    (process id 28657)
    stopped in MAIN at 0x113ac
    0x0001113ac: MAIN+0x001c: call __f90_sslw [PLT]
    (dbx) examine $fp
    0xffbfee48: 0x00000001
    (dbx) examine $l0
    0xffbfee30: 0x00000008
    Is this the sort of thing for which you are looking? If not, could you describe the specific capabilities you need?

  • How to import OWB 10.0.2 mdl file to 11g

    Hi ,
    I have a OWB MDL file in 10.0.2.I want to import same MDL file in 11g.is it possible to import,if yes please guide what steps i have to follow.
    any related documents or links would be appreciate
    Thanks in Advance
    Reagrds
    Kumar

    Dan wrote:
    Hi all,
    DB 11G,
    Oracle software 11g on 2 server (same version)
    I exported using expdp and now i want to import to server with only oracle database software installed (no db yet)
    can i do that?
    ThanksFirst you need to have DB created at target only then you would able to import the dump taken from source. You can create similar tablespace as were is source to avoid errors(if directory structure is different at target).
    You can create database by dbca or manually.
    http://docs.oracle.com/cd/E11882_01/server.112/e10595/create003.htm
    http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnEnterpriseLinux5.php
    For importing database
    http://docs.oracle.com/cd/E11882_01/server.112/e23633/expimp.htm
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_import.htm

  • Why are url and email addresses not fully viewable in a PDF when generated from a Word file?

    I have a question?
    A colleague in our Copenhagen office wanted to generate a pdf from a Word file.  She is working on a Windows 2007 operating system and is running Acrobat Pro 9.  When she generated the PDF only part of a url and an email address was visible when the PDF was viewed.  She was wofking from Standard settings.  I am running the same software on the same Windows platform and using the same computer equipment with the same settings yet I was able to generate a PDF where the full url and email address was visible.
    Can anyone out in Adobe Acrobat land provide me with an answer?
    Patrick Lennon

    That's probably because the Mac people are opening or viewing the PDFs within the Mac's "Mail" program or with the "Preview" program and not with Acrobat.
    Since the Windows people aren't using these programs and most likely just Acrobat or Adobe Reader, the layers are kept hidden.
    I'm afraid the only way to truly keep those layers hidden is to delete them before saving your file as a PDF. (Of course, do a "Save As" and keep your original .ai file intact.

  • Extracting class files of a certain package from a jar.

    Hi,
    I want to extract all the class files belonging to a certain package from a JAR file containing class files belonging to a different packages.
    Can I do this using the jar tool, or use some other unzipping tool?
    If it is best to use an unzipping tool which one can I use for windows?
    Thanks,
    Niranjan.

    jar xf file.jar path/to/dir
    For more info see http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/jar.html.

Maybe you are looking for

  • How do I go to a previous version of Adobe before 11.0.07, I can't print

    How do I go to a previous version of Adobe prior to 11.0.07.  Since installed I can't print .pdf.  I have Adobe XI 11.0.07 and Windows 7 - 64.

  • Saving PDFs

    As of this morning Adobe Acrobat XI v 11.0.01 no longer gives me an option to save or save as. This makes the program a complete waste. Help please!

  • Final Cut not recognizing transparency

    For some reason all of a sudden Final Cut stopped recognizing transparency in images I import. It doesn't matter if they are PNG, TIF or PSD they all import with either a white or a black background. Here is the strange thing: if I import the same im

  • Flash doesn't work in safari

    When I try to play a video, a box appears saying the latest version of Flash needs to be installed. I installed it repeatedly, but the same message keeps coming up. The same video works fine in Firefox. Anyone know what might be wrong? Thanks for you

  • Losing HD space when emptying trash

    I've searched the discussions a bit and found several posts dealing with similar problems, but none seem to offer a real explanation or good solution. For some time the available space on my HD seems to be disappearing, sometimes going from 3GB to 70