Error: Executing OWB Scripts Outside the OWB Tool

We aim to extract OWB scripts (ddls, pl/sql, etc) and run them outside of the OWB tool in Beta and Production.
Thus far, we’re able to execute ddls and compile OWB generated pl/sql procedures. We’re encountering errors on all attempts to execute the pl/sql code outside of OWB.
Package created.
Package body created.
SQL> execute RECORDED_MEDIA_MAP;
BEGIN RECORDED_MEDIA_MAP; END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00221: 'RECORDED_MEDIA_MAP' is not a procedure or is undefined
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Based on previous discussions with Oracle Sales Rep., we were under the impression that this could be done.
Can OWB generated pl/sql execute outside of the tool? If so, what are the steps?
Thanks,
Carol-Ann

OWB generates mapping as package of procedures. This package has the only external procedure/function (depend on OWB version: 9.2.0.4 - function, prev. releases - procedure).
So, mapping that you have deployed could be executed by the following code (as for 9.2.0.4 version of OWB):
DECLARE
l_res NUMBER;
l_env WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
BEGIN
l_res := MAP_PACKAGE.MAIN(l_env);
END;

Similar Messages

  • Can't execute cgi scripts outside the default

    I had this working fine on my old imac.
    On my new mac (Running Latest Lion)...
    I edited /etc/apache2/httpd.conf
    Updated
    User wtfuser
    Group staff
    Updated
    DocumentRoot "/Users/wtfuser/Sites"
    Updated:
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/Users/wtfuser/Sites">
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.2/mod/core.html#options
        # for more information.
        Options Indexes FollowSymLinks MultiViews ExecCGI
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        AllowOverride None
        # Controls who can get stuff from this server.
        Order allow,deny
        Allow from all
    </Directory>
    I can execute cgi scripts if they are placed in /Library/Webserver/CGI-Executables
    But if I put a test.cgi file inside /Users/wtfuser/Sites/test.cgi
    I get permission denied and errors:
    [Wed May 02 22:38:45 2012] [error] [client ::1] Options ExecCGI is off in this directory: /Users/wtfuser/Sites/sandbox/test.cgi
    [Wed May 02 22:38:45 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:07 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:14 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:24 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:25 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    [Wed May 02 22:40:25 2012] [error] [client ::1] File does not exist: /Users/lonewolf/Sites/favicon.ico
    Any help is appreciated

    I will send an update.
    I changed this line
    ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Users/wtfuser/Sites/$1"
    This allowed me to successfully change the location of cgi scripts to a more convenient location, or simply because I wanted to do it! Just because!
    It seems like the AddHandler, and the ExecCGI isn't working. This should allow me to run .cgi files from anywhere, regardless of the script alias.
    So I'm open to suggestions as to why this isn't working.  FYI. I copied my httpd.conf file from my old imac running lion onto my new imac, and it still didn't work. But it works as expected on my old imac.
    Confused. But at least I have a work-around and I know the httpd.conf file I'm modifying is the right one, etc...
    ANd what in gods name is that crap with the favicon.ico?
    This is a brand new out of the box imac, or so I thought. Is this normal??

  • HFM 933, error executing vb script %0 (for rules file)

    i have a HFM rules file that is error-free, but sometimes, when i run a consolidation via SmartView, it is aborted and the error is "Error Executing VB Script %0".
    Does anyone know why this occurs?
    Thanks in advance.

    The error message you shared may not have anything to do with HFM rules. There are a number of things that can generate a VBScript error: HFM rules, HFM custom member lists, or permissions problems/configuration problems with IIS. Smart View uses IIS, so maybe this is a configuration issue there. If you log out and log back in again, perform the very same activity successfully, it could mean you have load balance problem, or some other network related error. If it's a permission problem on the server, it will affect all users in the same way. An HFM member list problem would reveal itself any time the member list is called: whether through HFM's forms, grids, smart view, or Reports.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • What are the Cleansing steps we can perform outside the DMU tool?

    We need your advise on this
    According to DMU documentation, There are three possible reasons for a value to have invalid binary representation in the database and their respective fixes using DMU tool
    a) An application stores binary values,
    Fix: To cleanse the invalid binary representation issues for a column storing binary values, migrate the data type of the column to RAW or LONG RAW.
    b) An application stores character values in a pass-through configuration and the values are encoded in one or more character sets different from the database character set.
    Fix: To identify the actual character set of data in the column, select the column in the Cleansing Editor and repeatedly change the selected value in the Character Set drop-down list, until all values in the column are legible.
    c) An application stores values that have some character codes corrupted due to software defects or hardware failures
    Fix:To cleanse randomly corrupted values, edit and correct them in the Edit Data dialog box.
    What are fixes we can perfmon outside of DMU tool for above issues and how?

    Data cleansing is potentially one of the most time-consuming steps in the migration process depending on the data volume and the extent of data exceptions found. The DMU is designed to allow most of the cleansing actions to be performed prior to the conversion downtime window without impact to the production environment. You can choose to have the cleansing actions committed to the database immediately (immediate cleansing) or saved and executed later as part of the conversion phase (scheduled cleansing). Many of the cleansing actions may not be easy to accomplish outside of the DMU or could require significant manual workload otherwise. In your case, I think you have several options:
    1) Upgrade to a DMU-supported database release first and work on Unicode migration separately from the upgrade. This way you can leverage the DMU cleansing features to address most of the data issues beforehand and only deal with any incremental data issues in the migration downtime.
    If you must do the upgrade and Unicode migration in the same downtime window:
    2) Prepare scripts for operations like enlarging column sizes or migrating column data types based on the latest iteration to speed up the process. Keep in mind you may still need extra work as the incremental data changes since the last iteration could affect the cleansing requirements. For invalid data issues, if they are caused by all data being stored in a character set different from the database character set, then set the assumed database character set instead of setting assumed character sets for individual columns.
    3) Use DMU and Streams setup to achieve near-zero downtime migration, see the page below for details:
    http://www.oracle.com/technetwork/database/globalization/dmu/learnmore/nzd-migration-524223.html

  • Executing migration scripts outside of OMWB

    I'm getting an SP2-0027 error (input > 2499 characters) when trying to execute some of the migration script produced by OMWB. I'm using SQL*Plus Worksheet. OMWB will create the stored procedure or function in the Oracle DB, so the syntax is OK. Is there a different way to run the migration script outside of OMWB to get around the SQL*Plus line limit?
    Thanks.

    After a week with no replies, I'm considering three possibilities:
    1) I posted this question to the wrong forum
    2) Everybody (except me) already knows the answer, and is too busy laughing to respond
    3) Nobody knows the answer
    Will someone be kind enough to buy me a clue?
    Thanks.

  • I need a way to execute my progrm outside the ide (maybe without a batch?)

    im currently working on a server client based system, and my IDE(intellij idea) wont allow me to execute two projects at the same time. i did some search in this forum, and it seems the popular solution is to use a batch file. but im more comfortable with the idea of creating an exe file(as u can tell im a c++ programmer). anyhow, if batch file the best way to go, can u drop me a link of a good tutorial on writing batch scripts for this purpose. and by the way, i have some external libraries i need to include with my project. so it would be nice if the tutorial also shows me how to include those libraries
    also, one more question, is it a good idea to use ant for this purpose. cos i have no idea how to work with ant, i just read about it in the manual. and can u recommend a good deployment tool for my app.
    thanx in advance

    im sorry, just ignore this post. the server was a little slow when i was posting my message and i thought my first post was lost, so i posted again

  • 'No authorization' error for selection values outside the authorized range

    Hi All,
    We are currently trying to use the authorization analysis concept for 'Cost center reporting'.
    We have made 0COSTCENTER info-object as authorization relevant and have created a analysis authorization object for it through RSECADMIN and we have maintained a single value as '1875' . We have assigned this object to 1 of the test users.
    So now if the user runs the report for cost center '1875' , he is able to view the data/report. Now if he enters any other cost center apart from '1875' than he gets an authorization error (Everything works as per requirement till this point).
    But now if the user enters multiple cost centers like 1875, 1876, 1877 as multiple single values and runs the report, he gets an 'No authorization error'.
    So all the experts, please let me know if it's possible in anyway for the user to see the result/report for the value he is authorized to (in this case - 1875) and should give an information/warning/error message saying that he is not authorized to other cost center (in this case - 1876, 1877).
    Same thing is occuring if user enters a range. Suppose a user is authorized for cost center - 1875 to 1880. Now if he puts multiple single values or range in between the authorized range than he can see the result but if he enters even 1 single value outside the range he gets an error - what I mean by this is - if the user enter a range from 1875 to 1801, he does not get any data display but instead he recieves an error message saying 'No authorization' even though he is authorized for all the cost centers in that range except 1801.
    I would really appreciate your help regarding this. Any comments/suggestions are very welcome.
    Thanks & regards,
    Sunny

    Hi Sunny
    That is the way analysis authorizations work!!
    If you ask for a number of values i.e. cost centers and you don't have authorization to *all* of them you will get a system error as you say.
    There is no way of partially evaluating the query as you suggest (only for the authorized values).
    Try to be less restrictive when defining characteristic values in RSECADMIN.
    In queries use variables with
    Processing by Authorization and Input Ready.
    So the system will tell the user which are the allowed values. In your example the system suggests the range 1875-1880.
    Hope this helps, regards
    Germá

  • How to execute SAPGUI script from the command line?

    I have created a script and would like to execute it from the command line. There must be some flag that goes with SAPGUI.EXE. Any help appreciated.
    Thanks,
    Jeff

    Hi Jeff,
    the best way to do this is to run the script using the Windows Script Host, for example like this:
    cscript myscript.vbs
    This will execute the script which in turn can access SAP GUI. You may however have to make sure the script attaches to the correct session.
    Best regards,
    Christian

  • Smo.Server.ExecuteNonQuery throw an error executing a script with IF statement

    I am trying to executed this script (see below) using Smo libraries with powershell (this script works in SSMS)
    use master;
    GO
    use master;
    if (not exists(select * from sys.databases where name = 'dbname'))
        alter database [dbname] set offline with rollback immediate;
    GO
    however, I always got an
    Exception calling "ExecuteNonQuery" with "1" argument(s): "An exception occurred while executing a Transact-SQL statement or batch."
    if I delete the if statement, the script execute without erros... is there any problem to use if statements?  I would really appreciate any help
    regards.!

    Olaf
    Helper answer does make sense and you won't be able to modify database which doesn't exists. However, your syntax's are correct.
    However, if you are executing it via Powershell as mentioned by HoroChan then
    I recommend you to increase the statementTimeout to appropriate value. 
    There may be chances that alerting database got hanged and exceeded the timeout.  So instead of IMMEDIATE ROLLBACK you can use
    WITH NO WAIT
    From MSDN:
    Specifies that if the requested database state or option change cannot complete immediately without waiting for transactions to commit or roll back on their own, the request will fail.
    So your overall code will look like 
    USE MASTER;
    IF EXISTS(select * from sys.databases where name = 'dbname')
    ALTER DATABASE [dbname] SET OFFLINE WITH NO_WAIT
    GO
    Hope this will help.

  • Execute method from outside the view

    Hi,
    I have a method in view X that I would like to execute from view Y. what is the API for executing a methods from another view? (I know the API for executing a method in the controller, but now I refer to a method in the view).
    Thanks in advance,
    Aviad

    Hi Aviad,
    As far as I know, there is no direct way to access a view's method from another view. But you can achieve this functionality using events.
    1) Create an event and a method to fire this event in your component controller.
    2) Create a corresponding event handler in the second view, which will call the desired function.
    3) Now from the first view, you can call the event triggering function of the component controller. This will inturn execute the method in the second view.
    If you need to manipulate some data, you can either pass them as Event parameters or use data mapping.
    Hope this helps,
    Best Regards,
    Nibu.
    Message was edited by: Nibu Wilson

  • 8800 general error whilst trying to use the straighten tool following "Classroom in a Book" lesson

    So in lesson 2 of Classroom in a Book we learn to straighten a scanned image, except having followed the instructions precisely I got the following message. Hope someone can help please?
    Thanks
    PS, Brand new, out of the box CS5
    - <no additional information available>
    Line: 27
    ->  var g_StackScriptFolderPath = app.path + "/"+ localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts") + "/"

    IIRC, the CiaB files are MOV. Is that correct?
    Do you have Apple's QT Player installed on your PC, and if so, what version?
    Good luck,
    Hunt

  • Error in SQL script  generated from OWB 10.1.0.4.0 Metadata Export Bridge

    Hi... maybe i´m abusing this forum .. but .. when you have questions .. you have to look for answers
    I use OWB 10.1.0.4 to buid some dimensions and one cube. I validate and generate this object and the result was successful.
    I made the deployment and everithing goes OK !!!.
    The problem appears when i want to generate metadata over this objects. I use the option Project > Metadata > Export > Gridge and use the option "Oracle 9i OLAP" like the product where i want to transfer the metadata .. and i got the SQL script without any errors. I suppose that i take the sql script i run it into SQL*plus ... so i do it.. and i got this errors:
    declare
    ERROR at line 1:
    ORA-06501: PL/SQL: program error
    ORA-06512: at line 119
    ORA-06510: PL/SQL: unhandled user-defined exception
    The same error for any dimension in script..
    Any help .. will be fully valued for me ..
    best regards
    Lisandro.

    But how did you identify that there are no runtime records in all_rt_audit_executions for your PL/SQL procedure?
    I guess you tried to search by procedure name... (but what column you used for searching)
    In my case all_rt_audit_executions and wb_rtv_audit_executions contains the same number of records, so they should be always in sync.
    Oleg

  • How to execute OMB scripts from the command prompt of OS

    Hi
    I want to deploy the mapping from one environment to other environment using OMB script language. But I dont want to run the OMB scripts from OMB plus COmmand prompt?
    All I need is , is there any way/scripts to access OMB command prompt from the general command prompt of the OS Machine?
    or Can I call this OMB command from java program but not JDeveloper?
    It would be a great help for me by sharing your knowledge?
    Cheers
    Pradeep

    This way from MS-DOS:
    set ORACLE_HOME=c:\oracle\OWB10gR2 (change to your Oracle Home)
    call C:\oracle\OWB10gR2\owb\bin\win32\OMBPlus.bat C:\...\my_script.tcl > C:\...\my_log.log
    my_script.tcl contains something like this:
    set OMBLOG "c:\\...\\some_kind_of.log"
    # Disconn just in case you have called a previous script
    OMBDISC
    source C:\\...\\script_with_omb_procedures.tcl
    OMBCC my_project
    OMBCONNECT CONTROL_CENTER "USER/PASSWORD@HOST:PORT:SERVICE" USE REPOSITORY 'MY_REPOSITORY_OWNER'
    OMBDCC
    DEFAULT_CONTROL_CENTER MY_CONTROL_CENTER
    proc_from_script_with_omb_procedures
    exit
    Hope this helps you to begin.
    Instead of using script_with_omb_procedures.tcl you can have your procedures directly inside my_script.tcl, but I like using a script apart to reuse my procedures.

  • Error executing shell script using dbms_scheduler

    I have a job running which executes a shell script,which fails with following error :
    SQL> SELECT additional_info
    2 FROM user_scheduler_job_run_details
    3 WHERE log_date = (SELECT MAX (log_date)
    4 FROM user_scheduler_job_run_details);
    ADDITIONAL_INFO
    ORA-27369: job of type EXECUTABLE failed with exit code: No such file or directory
    STANDARD_ERROR="mkdir: Failed to make directory "/export/home/bwsolaris/abc"; Permission denied"
    This are contents of my shell script
    #!/bin/ksh
    /bin/mkdir /export/home/bwsolaris/abc
    Can anyone suggest me some way out of it?
    Thanks in advance!!!

    Does oracle still creates a user nobody"nobody" is a "standard" Unix/Linux lowly privileged user, which is used by DBMS_SCHEDULER by default.
    You should change permissions on /export/home/bwsolaris, e.g.
    $ chmod 777 /export/home/bwsolaris
    or use a different directory, where everyone has access, for example /tmp.
    Or take a look at Metalink Note:391820.1 - Scheduled Job Running Shell Script Fails With ORA-27369

  • Executing shell scripts before the war is loaded

    I want to execute some shell scripts before my web application starts. I am using struts. One way is to execute these shell scripts is by executing them in a startup servlet which is loaded before action servlet is loaded. Am I right? Is there some other way. I am using Tomcat 5.0. Is there some way by which i can execute these shell scripts before my war is loaded in the tomcat. Actually it is possible that tomorrow i might have more shell scripts than i have today. In that case i do not want to modify the code. Thats the reason I am wondering if there is a way i can do this with the help of tomcat.

    thats right. So out of two ways, one, being having a startup servlet and second being the tomcat shell script change, which is the preferred way? Is there any other third way to achieve this?

Maybe you are looking for