Creating PL/SQL packages

Hello,
The problem I am confronted with is reusing generated models.
In the process of DataMinig several steps are used: prepare data, Attribute selection (using AI), and building, testing and applying models.
If PL/SQL packages are used two problems occur:
First: Long, hand driven process of building:
Model generation in ODM,
PL/SQL package building in ODM and Export to SQL file,
importing package to DB, compiling and running.
I am sorry, but I don't understand why is it necessary to export PL/SQL packages in a file? As if these products aren't both Oracle products?
Second: If data (in time) changes and AI selects new attributes, then all next steps fail, since column names, and even some values, are hard coded! Therefore it is necessary to go trough the build and export process all over again. This really hurts.
Do you have a suggestion how to get around this problem?
I already considered using a SPSS Clementine, but since it is not an Oracle product I still believe, the original Oracle solution should give me some advantages.
Oh and another issue.
I tried using PL/SQL generator (Ver.: 10.1.3.0.17) in JDeveloper (ver.: 10.1.3.0.4), but it gave me an error:
java.lang.NoClassDefFoundError: oracle/dmt/dm4j/DM4JConnectionManager
     at oracle.dmt.dm4j.extension.CodeGenerator.invoke(Unknown Source)
     at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:310)
     at oracle.ide.wizard.WizardManager$2.run(WizardManager.java:358)
     at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1093)
     at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:366)
     at oracle.ide.util.IdeUtil$1$1.run(IdeUtil.java:1073)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Thanks for the reply,
Igor

Hi,
The code generation available in ODMr would allow you to deploy the build, apply or test process as generated code.
I am not sure what your application goal is, but if you simply want to deploy a model be used in an apply process that is rather straight forward.
You would build the model using ODMr. Then create an Apply Activity, again using ODMr.
The Apply Activity can then be used to generate code (pl/sql) using the JDev RTM release (10.1.3.2 or above). We will also have a version that will work with SQLDev shortly.
The generated code is immediately placed into the db for you.
If you want to score in a separate db you can either create a db link from that db or move both the model and the apply pl/sql code to the new db (using dba utilities).
If you want to rebuild a model, where you would add/remove attributes, change transformations etc. then you will have to regenerate the code.
If you simply want to rebuild the model without changing any transformations and settings you could also deploy the model build generated code.
As for the JDev failure, we are going to look into that. Have you tried the JDev 10.1.3.3 release available on the Oracle web site?
Thanks, Mark

Similar Messages

  • Creating PL/SQL package in SQL Developer 4.0.0.12

    Hi,
    I have built a model in SQL Developer 4.0.0.12 and I want to create it's PL/SQL package.
    In ODMiner 11.1.0.4 from "Tools" > "Create pl/sql package" I can get a script for creating package and every thing is OK.
    but in SQL Developer I select "Deploy" from every node's context menu and it generates a folder containing some scripts related to every node. I don't see any relevant script for creating any package.
    How can I create relevant PL/SQL package from my workflow?
    Thank you for any help you can provide in this situation.

    Please refer to this White paper for how to generate PL/SQL package for workflow deployment:
    Oracle Data Miner (Extension of SQL Developer 4.0)
    Generate a PL/SQL script for workflow deployment
    http://www.oracle.com/technetwork/database/options/advanced-analytics/odmrcodegenwhitepaper-2042206.pdf

  • Creating PL/SQL Package with all the types

    CREATE OR REPLACE
    TYPE rec_type AS OBJECT (
    first_name VARCHAR2(20),
    last_name VARCHAR2(20)
    CREATE OR REPLACE
    TYPE REC_TYPE_TAB AS TABLE OF rec_type
    I am able to create the above types in oracle and used in PL/SQL packages. And like this I have somany types. I would like to if I can create a package with the types to make the life easier. Could you please tell me how to do it.
    your help is greately appreciated..
    --Krish                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    sb92075 wrote:
    TYPE add only aggravation, complexity, & should be avoidedI disagree.
    When used correctly types can be the simplest solution.
    For example when passing multiple values to a stored procedure. Avoiding the type in the below example would lead to further complexity and aggravation not lessen it.
    SQL> create or replace procedure p
      2      (
      3      p_object_list in sys.odcivarchar2list,
      4      p_result out sys_refcursor
      5      ) as
      6  begin
      7      open p_result for
      8          select owner, object_name, object_type
      9          from all_objects
    10          where object_name in
    11              (
    12              select column_value from
    13              table(p_object_list)
    14              )
    15          order by
    16              owner, object_name, object_type;
    17  end;
    18  /
    Procedure created.
    SQL> exec p(sys.odcivarchar2list('DUAL','ALL_OBJECTS'),:c)
    PL/SQL procedure successfully completed.
    SQL> print c
    OWNER                          OBJECT_NAME                    OBJECT_TYPE
    PUBLIC                         ALL_OBJECTS                    SYNONYM
    PUBLIC                         DUAL                           SYNONYM
    SYS                            ALL_OBJECTS                    VIEW
    SYS                            DUAL                           TABLE

  • Generate PL/SQL packages to do baisc DML for tables

    Hi;
    I am trying to find a FREE script that will generate text file that when run create PL/SQL packages to perform basic DML on a table. Such as Insert, Update and Delete. I have been searching for one and have found the PVLGen stuff but it seems to be overkill for my basic needs. I do not want to reinvent the wheel if I do not have to. Does any one know of such a tool.

    You can use 'Execute Immediate' command within a procedure/package to perform basic DML. Please refer Oracle documentation for further information.

  • Creating a webservice from PL/SQL Package in JDev 11g

    Hi All...
    I have a PL/SQl package and I am using JDEv 11g. I want to create it as a webservice. I want to deploy it in a remote server. Can I deploy it from my client machine. In server Weblogic already started. What are the prerequisites, that we need to deploy a wbservice. I done the following steps.
    1. Create an application.
    2. Right click the package and select Generate Java option.
    3. It create a Java class in the Application sources.
    4. Double click the class and select Create Web Service. It created the web service.
    5. When I select the webservice and click Run it shows the following error. It going to the Default \server. Actually I need it in a remote server.
    [Running application NewWebService on Server Instance DefaultServer...]
    ---- Deployment started. ---- Apr 20, 2009 1:15:40 PM
    Target platform is (Weblogic 10.3).
    Running dependency analysis...
    2009-04-20 13:15:40.205: Writing WAR file to D:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee\drs\NewWebService\NewWebService-LastNoWebService-webapp
    2009-04-20 13:15:40.222: Wrote WAR file to D:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee\drs\NewWebService\NewWebService-LastNoWebService-webapp
    2009-04-20 13:15:40.357: Writing EAR file to D:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee\drs\NewWebService
    2009-04-20 13:15:40.374: Wrote EAR file to D:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee\drs\NewWebService
    Deploying Application...
    <Apr 20, 2009 1:15:40 PM IST> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application NewWebService is not versioned.>
    <Apr 20, 2009 1:15:40 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1240213540593' for task '3'. Error is: 'java.lang.ClassNotFoundException: sqlj.runtime.ref.DefaultContext'
    java.lang.ClassNotFoundException: sqlj.runtime.ref.DefaultContext
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: sqlj.runtime.ref.DefaultContext
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         Truncated. see log file for complete stacktrace
    >
    <Apr 20, 2009 1:15:40 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'NewWebService'.>
    <Apr 20, 2009 1:15:40 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    java.lang.ClassNotFoundException: sqlj.runtime.ref.DefaultContext
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: sqlj.runtime.ref.DefaultContext
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         Truncated. see log file for complete stacktrace
    >
    [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application NewWebService on DefaultServer.: sqlj.runtime.ref.DefaultContext.
    weblogic.application.WrappedDeploymentException: sqlj.runtime.ref.DefaultContext
    #### Deployment incomplete. #### Apr 20, 2009 1:15:40 PM
    oracle.jdeveloper.deploy.DeployException
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:247)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployImpl(Jsr88RemoteDeployer.java:157)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:436)
         at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:209)
         at oracle.jdevimpl.runner.adrs.AdrsStarter$5$1.run(AdrsStarter.java:1365)
    Caused by: oracle.jdeveloper.deploy.DeployException
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:413)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:238)
         ... 11 more
    Caused by: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:395)
         ... 12 more
    #### Cannot run application NewWebService due to error deploying to DefaultServer.
    [Application NewWebService stopped and undeployed from Server Instance DefaultServer]
    6. when i goto the consoleof weblogic server, already an instance created. But nothing displayed under WebServices.
    7. Select the instance and press 'Start'. While deploying an error came.
    java.lang.Exception: [DeploymentService:290049]Deploy failed for id '1,240,213,727,265' since no targets are reachable.
    Please help me..
    its very urgent...
    Regards,
    Resmi.

    Oh, no - another very urgent question. The world must be about to end ;)
    Resmi, Have a read of [url http://forums.oracle.com/forums/thread.jspa?threadID=883293]this - JDeveloper 11g, as of today, doesn't (at least is not supposed to) support publishing PL/SQL procedures/packages as a web service.
    John

  • Support for Creating Web Service from pl/sql package in JDeveloper 11

    We have been creating all of our web services from pl/sql packages in our Oracle database using JDeveloper 10.1.3.1. I understand that this capability is not supported in Jdev 11. We have been mandated to either move up to JDeveloper 11, or consider switching to eclipse, or even VS2008 and run .NET services from IIS. I have seen work-around solutions using TopLink and Jdev 11. Are there plans to revive this feature in the near future? We're now looking at switching to .NET since we could scrap our OAS instances and use IIS to publish web services. The only reason we were sticking with Oracle was the ease in converting all our existing package to web services with Jdev.
    Is anyone else in the same situation. If so, what solutions are you considering?

    Hi,
    there are a lot of option to make plsql web services .
    First you can stay with jdev 10.1.3
    Use the xmldb servlets
    use jdev 11g tp4 to create plsql ws and upgrade to jdev 11g production
    And I think in the next release of jdev it will be back , there are more options which disappeared like the adf bc sdo ws or jmx datacontrol etc.
    thanks Edwin

  • Error coming after using an ssis package to create an sql job

    Hi
    I have created an SSIS package and try to create a job on the same when i run the job it if failing an dgiving me the below error
    Executed as user: xxxxx\FESGSQLA. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.4000.0 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  12:33:03 AM  Error: 2014-03-19
    00:33:03.12     Code: 0xC0011007     Source: {DD3B52A8-850A-4328-94DC-CF51B4376BCB}      Description: Unable to load the package as XML because of package does not have a valid XML format. A
    specific XML parser error will be posted.  End Error  Error: 2014-03-19 00:33:03.12     Code: 0xC0011002     Source: {DD3B52A8-850A-4328-94DC-CF51B4376BCB}      Description: Failed
    to open package file "D:\Users\xxxxxx\Desktop\I11_Load_SAP_Recon_Data.dtsx" due to error 0x80070003 "The system cannot find the path specified.".  This happens when loading a package and the file cannot be opened or loaded correctly
    into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format.  End Error  Could not load package "D:\Users\H139933\Desktop\I11_Load_SAP_Recon_Data.dtsx"
    because of error 0xC0011002.  Description: Failed to open package file "D:\Users\xxxxxx\Desktop\I11_Load_SAP_Recon_Data.dtsx" due to error 0x80070003 "The system cannot find the path specified.".  This happens when loading a package
    and the file cannot be opened or loaded correctly into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format.  Source: {DD3B52A8-850A-4328-94DC-CF51B4376BCB} 
    Started:  12:33:03 AM  Finished: 12:33:03 AM  Elapsed:  0.046 seconds.  The package could not be found.  The step failed.
    Please throw some light on the issue and stpes to resolve.
    Thanks
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

    The package was created using a newer SSIS version than you have in the target (server).
    Arthur My Blog

  • Create or Replace Package syntax different in SQL Navigator?

    Hi,
    I compared the same piece of code in both toad and sql navigator.
    In toad, the syntax for Package was as follows:
    CREATE OR REPLACE package body name_of_package
    but in SQL Navigator, the same code is displayed as follows:
    package body name_of_package
    does SQL navigator hide the "Create or replace" keywords? or does it automatically know that they belong there?

    Is Sql navigator an Oracle product? IIRC Larry spent already all his pocket money on buying Sun.
    Kindly do not clutter up this forum with questions on products not developed by Oracle.
    Sybrand Bakker
    Senior Oracle DBA

  • SQL Package not getting created

    Hi,
    We are in process of migrating out application from wl5.1/solaris/jdk1.2.2 to wl6.1/solaris/jdk1.3.
    We are using SQL package due to performance reasons. The package definition was done
    in the weblogic.properties file for 5.1 and we tried to do the same in 6.1 config.xml
    file. We use AS400 as our DB. SQL packages are not created if I use wl6.1. Below
    is the definition we used in xml file
    WL5.1
    weblogic.jdbc.connectionPool.eracDS=\
    url=jdbc:as400:RARMS,\
    driver=com.ibm.as400.access.AS400JDBCDriver,\
    initialCapacity=30,\
    maxCapacity=50,\
    capacityIncrement=5,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    testTable=A4TEST,\
    props=libraries=A4LIB;user=INTERNETDB;password=DBFIRST;lob threshold=1048578;extended
    dynamic=true;package=WEBL51;package library=A4LIB
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.eracDS=everyone
    weblogic.jdbc.TXDataSource.eracDS=eracDS
    WL6.1
    <JDBCConnectionPool CapacityIncrement="5"
    DriverName="com.ibm.as400.access.AS400JDBCDriver"
    InitialCapacity="5" MaxCapacity="30" Name="eracDS"
    PreparedStatementCacheSize="0"
    Properties="libraries=ELARMS8;lobthreshold=1048578;user=INTERNETDB;password=DBFIRST;package
    library=ELARMS8;extended package=WEBL61" ShrinkingEnabled="false" Targets="server1dev"
    URL="jdbc:as400:DEV"/>
    <JDBCTxDataSource JNDIName="eracDS" Name="eracDS" PoolName="eracDS" Targets="server1dev"/>
    Please let me know if I am missing anything.
    Thanks
    Krish.

    Krish wrote:
    Hi,
    We are in process of migrating out application from wl5.1/solaris/jdk1.2.2 to wl6.1/solaris/jdk1.3.
    We are using SQL package due to performance reasons. The package definition was done
    in the weblogic.properties file for 5.1 and we tried to do the same in 6.1 config.xml
    file. We use AS400 as our DB. SQL packages are not created if I use wl6.1. Below
    is the definition we used in xml file
    WL5.1
    weblogic.jdbc.connectionPool.eracDS=\
    url=jdbc:as400:RARMS,\
    driver=com.ibm.as400.access.AS400JDBCDriver,\
    initialCapacity=30,\
    maxCapacity=50,\
    capacityIncrement=5,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    testTable=A4TEST,\
    props=libraries=A4LIB;user=INTERNETDB;password=DBFIRST;lob threshold=1048578;extended
    dynamic=true;package=WEBL51;package library=A4LIB
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.eracDS=everyone
    weblogic.jdbc.TXDataSource.eracDS=eracDS
    WL6.1
    <JDBCConnectionPool CapacityIncrement="5"
    DriverName="com.ibm.as400.access.AS400JDBCDriver"
    InitialCapacity="5" MaxCapacity="30" Name="eracDS"
    PreparedStatementCacheSize="0"
    Properties="libraries=ELARMS8;lobthreshold=1048578;user=INTERNETDB;password=DBFIRST;package
    library=ELARMS8;extended package=WEBL61" ShrinkingEnabled="false" Targets="server1dev"
    URL="jdbc:as400:DEV"/>
    <JDBCTxDataSource JNDIName="eracDS" Name="eracDS" PoolName="eracDS" Targets="server1dev"/>
    Please let me know if I am missing anything.
    Thanks
    Krish.Well, the URL is different, and the properties aren't the same (missing some blanks in 'lob threshold'
    etc.
    and there's no test table...
    Joe

  • Creating Web services using JDeveloper for Pl/SQL package having ref cursor

    Hi,
    I am trying to create web services for PL/SQL package in JDeveloper. When I am trying to create this web service, the functions in the package which is returning referential cursor or record cursor are not visible. When I highlight the function and click "Why Not?", it displays the message "The following types used by the program unit do not have an XML schema mapping and/or serializer Specified: REF CURSOR". Could you please let me know, how I can create this web service?
    I am getting similar error when I am trying to create web service for a package with overloaded functions also.
    Thanks,

    Ok so I played around with this some more. I created the same process in bpel using oracle bpel designer and here are the results.
    1. Against 10g database running a synch process data is retutned without error.
    2. Against 9i database running an asynch process data is retutned without error.
    3. Against 9i database running a synch process data is retutned with error.
    I'm definilty missing something.

  • Creating Data Mining PL/SQL Package in SQL Developer

    hi,
    i have built a model and want to create a PL/SQL package.
    in SQL developer, i launch a "New Gallery", select "All Items" from the drop-down menu, and click on "Database Objects". but in the right window pane, i am not able to see "Data Mining PL/SQL Package" in the options.
    can somebody please tell me how to fix this?
    thanks!

    To verify that Oracle Data Mining PL/SQL Package extension is properly installed, please do the following:
    Select Menu Help->About, click on "Extensions" tab. Look for "Oracle Data Mining PL/SQL Package" in the Name column ( you can sort it).
    If it is, please make a note of the version installed and post it here as well as the SQL Developer version.
    Just to clarify, you don't see "Data Mining PL/SQL Package" item in the "Database Objects" at all or is it grayed out?
    Thanks

  • Creating WS from a pl/sql package (return ref_cursor) on a 9i database

    Howdy,
    I can create and deploy a ws built from pl/sql package on a 9i database that returns a ref_cursor. When I test it via my app server it throws the following:
    ERROR>oracle.xml.sql.OracleXMLSQLException: Character '#' is not allowed in an XML tag name.</ERROR>
    If I run a similar ws built on a 10g database there is no error. What am I missing?
    Jdeveloper: 10.1.3.3
    9i Database: 9.2.0.6
    10g Database: 10.2.0.2.0
    Oracle AS Control: 10.1.3.1.0

    Ok so I played around with this some more. I created the same process in bpel using oracle bpel designer and here are the results.
    1. Against 10g database running a synch process data is retutned without error.
    2. Against 9i database running an asynch process data is retutned without error.
    3. Against 9i database running a synch process data is retutned with error.
    I'm definilty missing something.

  • Creating PL/SQL Report

    Hi
    I have several reports written in plsql procedures which work fine provided I place them in a plsql region. I now have a need to run a long running report which branches to a page which displays a animated gif and runs the long running job (3 Minutes) which I have acheived.
    What I want to do is return to the original page and display the results from the procedure ( I figure I could do this by changing the procedure to a function and return the results), what I would really like to know is how to have the procedure output the html (htp.p etc) for the tabs to keep a consistant web view or output the results from a pl/sql procedure to a particular region, at present it outputs to a blank page with the results but without the the tabs. A perfect solution would be to generate a popup window from a pl/sql procedure.
    Just to explain the full process briefly of what I am trying to achieve.
    1. A user selects from a select list what report they want to run (Working).
    2. If the selected report is long running, display animated gif (Working).
    3. Output the results consistant with the web interface (Tabs etc) ???,
    If anyones knows of a easier/better method it would be greatly appreciated.
    Thanks
    Wayne

    Chris:
    I'd like to try your suggestion for a similar problem I am having. Do you have some code snippets that I can review. I'm not familiar with how to kick off a backround pl/sql package.
    What I have is a user who selects a report, presses a button that starts a process that calls a pl/sql package. The web page is locked up and eventually times out. I've played with the timeout parms and not enough benefit. What I'd like to do is:
    1 User selects report and presses button
    2 a process runs a pl/sql package in backround
    3.pl/sql updates a status table
    4.app monitors and provides a status
    5 once pl/sql completes a report region shows a report created
    This is beyond current knowledge and would appreciate samples.
    Thanks,
    Jerry

  • Problem with XSU when trying to execute pl/sql package returning ref cursor

    Hi,
    I'm exploring xsu with 8i database.
    I tried running sample program which I took from oracle
    documentation. Here is the details of these.
    ------create package returning ref cursor---
    CREATE OR REPLACE package testRef is
         Type empRef IS REF CURSOR;
         function testRefCur return empRef;
    End;
    CREATE OR REPLACE package body testRef is
    function testRefCur RETURN empREF is
    a empREF;
    begin
    OPEN a FOR select * from emp;
    return a;
    end;
    end;
    ---------package successfully created-----
    Now I use java program to generate xml data from ref cursor
    ------------java program ----------
    import org.w3c.dom.*;
    import oracle.xml.parser.v2.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    import java.io.*;
    public class REFCURt
    public static void main(String[] argv)
    throws SQLException
    String str = null;
    Connection conn = getConnection("scott","tiger"); //
    create connection
    // Create a ResultSet object by calling the PL/SQL function
    CallableStatement stmt =
    conn.prepareCall("begin ? := testRef.testRefCur();
    end;");
    stmt.registerOutParameter(1,OracleTypes.CURSOR); // set
    the define type
    stmt.execute(); // Execute the statement.
    ResultSet rset = (ResultSet)stmt.getObject(1); // Get the
    ResultSet
    OracleXMLQuery qry = new OracleXMLQuery(conn,rset); //
    prepare Query class
         try
    qry.setRaiseNoRowsException(true);
    qry.setRaiseException(true);
    qry.keepCursorState(true); // set options (keep the
    cursor alive..
         System.out.println("..before printing...");
    while ((str = qry.getXMLString())!= null)
    System.out.println(str);
         catch(oracle.xml.sql.OracleXMLSQLNoRowsException ex)
    System.out.println(" END OF OUTPUT ");
    qry.close(); // close the query..!
    // qry.close(); // close the query..!
    // Note since we supplied the statement and resultset,
    closing the
    // OracleXMLquery instance will not close these. We would
    need to
    // explicitly close this ourselves..!
    stmt.close();
    conn.close();
    // Get the connection given the user name and password..!
    private static Connection getConnection(String user, String
    passwd)
    throws SQLException
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@xxxx:1521:yyyy",user,passwd);
    return conn;
    when I ran the program after successful compilation,I got the
    following error
    ==========
    Exception in thread "main" oracle.xml.sql.OracleXMLSQLException:
    1
    at oracle.xml.sql.core.OracleXMLConvert.getXML(Compiled
    Code)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLString
    (OracleXMLQuery.java:263)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLString
    (OracleXMLQuery.java:217)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLString
    (OracleXMLQuery.java:194)
    at REFCURt.main(Compiled Code)
    ============================
    Can anybody tell me why I'm getting this error.Am I missing any
    settings?
    thanks

    We are using 8.1.7 Oracle db with latest xdk loaded.
    am I missing any settings?

  • Creating PL/SQL webservices in Workshop

    Hi,
    I am very new to workshop. In jdeveloper we can able to create a PL/SQL webservice.
    Is it possible to create a PL/SQL webservice Workshop?
    If so, Please let me know the steps & documentation.
    Please help me.
    Regards,
    Latha

    Hallo again,
    Asking the question the other way round.
    Is it possible to use the "PL/SQL WebService Assistance" of JDeveloper as some kind of command line tool (like JPublisher)?
    Some background information:
    We work a lot with PL/SQL and Generation of PL/SQL code. The final product should be some WebServices that will be driven by the PL/SQL packages. To facilitate the creation of WebServices we search for some solution to generate such PL/SQL WebServices. JDeveloper in the Version 11 offers here a very cool and uptodate tool the "PL/SQL WebService Assistance" - but is it possible to use this assistent for "Generation" of WebServices? Could we use some JDeveloper APIs to "remote" controll this feature.
    Thx a lot for every hint,
    Willi

Maybe you are looking for

  • Laserjet 6P and Windows 8.1 Driver

    The Laserjet 6P is not in the Printer list in Windows 8.1 and I don't see it as a supported OS at HP.com.  Does anyone know a driver in Windows 8.1 that I can use for my old, but sturdy Laserjet 6P?

  • Alternate BOMs and Purchase Requisitions

    Hi The scenario is that the material M1 has two alternate BOMs. These two alternate BOMs(A1 & A2) are specific to two different vendors(V1 & V2). During the planned order conversion to a Purchase Requisition, the business needs to decide/assign the v

  • Using xsd:group in Report Data Structure

    Hi all, I am totally new to BI Publisher trying to create a report with a data structure specified by an XML schema. This schema makes heavy use of the XML schema construct 'group', e.g. like <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.o

  • How normally Supplier VAT (input tax) handled in Accounting point of view?

    Dear Experts, We have a scenario for one of our Group companies to handle Tax entries. The mateials imported have to be charged with VAT 10% and to be paid to Government not to vendors. Is it possible to handle it thru tax procedure? Thru PO pricing

  • Sneak Preview WAS & EP60_SP4 - Issue

    I installed the sneak preview of WAS server with EP60_SP4.The installation went thru successfully. After the installation i am able to login and i get the "Portal Content" page (path:: Content Administration->Portal Content) But when i try to access