Mod_plsql module

Hi,
Portal contains a mod_plsql module for Apache. I would like to know if this mod_plsql module is also (or will become) available as a standalone module? This way I can use the mod_plsql functionality on my own apache webserver.
Regards, Peter

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Peter Manten ([email protected]):
Hi,
Portal contains a mod_plsql module for Apache. I would like to know if this mod_plsql module is also (or will become) available as a standalone module? This way I can use the mod_plsql functionality on my own apache webserver.
Regards, Peter<HR></BLOCKQUOTE>
null

Similar Messages

  • Apache2 with mod_plsql

    Hello there!
    Is it possible to get the mod_plsql Module only for Apache as for test purposes I don't need the full iAS suite, only the mod_plsql feature...
    best regards
    christian

    its an Oracle extension module and has not been open sourced by Oracle. Try to use mod_owa - Open source Apache PL/SQL Gateway Module
    http://www.sharemation.com/~dmcmahon/modowa.htm

  • Remote JPDA interactive debugging of mod_plsql application with JDeveloper

    We have an existing application running on Oracle DB v10.1.0.4 which we want to debug insitu in order to analyse its operation and functions. The application is best described as a 3-tier Oracle PL/SQL Web–Enabled Application implemented using the specialised mod_plsql module of the Oracle HTTP Server [Apache 1.3].
    We want to be able to interactively debug the pls/sql code whilst a user is
    using the live application [from the web browser] using the JPDA remote
    listening facilities of JDeveloper 10.1.2. How can this be done ?
    After extensive research , I have found only two online resource that briefly
    indicate this can be done: viz
    1. http://www.oracle.com/technology/tech/pl_sql/pdf/Paper_30720_Ppt.pdf
    - The debugging user sets a cookie via the browser UI –specifying JDWP host and
    port Causes mod_plsql to call Connect_Tcp before its normal calls and
    disconnect after these.
    2. http://web51-01.oracle.com/oowsf2004/1401.pdf
    Web mod_plsql applications
    – Create a UI form to set a cookie in the browser
    – Pass the hostname and port to the owa_debug package
    – owa_debug transparently calls the server-side PL/SQL to connect with the
    debugger listener for each subsequent page requested by that browser
    This information is not enough for me to actually be able to do this. I need
    more details/ example etc. I also have not been able to find ANY additional
    info on the owa_debug package- which is critical to the whole solution. Any help appreciated.

    These are the steps to set up the database and JDeveloper for debugging your mod_plsql Web applications.
    --- Database setup ---
    1. Load additional PL/SQL gateway debug packages:
    cd $ORACLE_HOME/wwg/admin/owa
    sqlplus "sys/... as sysdba"SQL> @pubowad.sql
    SQL> @privowad.plb
    SQL> @pubjdwp.sql
    2. Grant debug connect session privilege to DAD database user:
    sqlplus "sys/... as sysdba"SQL> grant debug connect session to <DAD-database-user>;
    3. Create the Web HTML interface to initiate debugging in the DAD database user's schema:
    cd $ORACLE_HOME/wwg/admin/owa
    sqlplus DAD-database-user/...SQL> @owaddemo.sql
    4. Recompile your application procedures with debug information:
    sqlplus DAD-database-user/...SQL> alter session set plsql_debug=true;
    SQL> create or replace procedure XXXX ...;
    5. Sets DAD attributes for debugging:
    In the DAD setting inside dads.conf, add
    PlsqlOWADebugEnable On
    PlsqlMaxRequestsPerSession 1
    PlsqlExclusionList \#None\#
    and restart your Oracle HTTP (Apache) listener.
    --- JDeveloper setup ---
    6. For remote debugging (e.g. debugging a PL/SQL Web application executed by mod_plsql), choose "remote debugging" as follows:
    * Choose Tools -> Default Project Properties... menu.
    * Select Profiles -> Development -> Debugger -> Remote tree node.
    * Check Remote Debugging option.
    * Select Listen for JDWP option.
    * For Database Connection for Locating PL/SQL Source:, select the database connection just created.
    7. Set a breakpoint in your application procedure:
    * In Connections tree, expand Database node. Expand the new database connection node. Expand the database user node. Expand Procedures, Functions, or Packages node. Double-click the library unit you want to set a breakpoint in.
    * In the program source of the library unit, single-click at the left-margin of the source line you want to break.
    8. Start remote debugging:
    * Start the debugger listener from Debug -> Debug Project menu. Specify the TCP/IP port number the debugger should listen for JDWP (debug) connection.
    --- Invoke Web application in debug mode ---
    9. In your browser, go to the URL http://<host>:<port>/<DAD-virtual-path>/owa_debug_demo.main_form. Check the "Enable JDWP Debugging" box, enter the "JWDP Debugger Host" as the host of your JDeveloper machine, enter the "JDWP Debugger Port" as the TCP/IP port that JDeveloper is set up to listen for JDWP (debug) connection. Then hit "Create Debug Session". This will create a cookie for you which will be used to track your "Debug Session" preferences.
    10. In your browser, invoke your Web application's URL. You should your application session being connected to your JDeveloper for you to debug.

  • Execute procedure on oracle apex online

    Hi All
    CREATE OR REPLACE PROCEDURE TEST_PROC
    AS
    V_FNAME EMPLOYEES.FIRST_NAME%TYPE;
    BEGIN
    SELECT FIRST_NAME INTO V_FNAME FROM EMPLOYEES
    WHERE FIRST_NAME = 'JOHN';
    DBMS_OUT.PUT_LINE(V_FNAME);
    END;
    I have made this procedure on sql worksheet of http://apex.oracle.com/ on my account.
    when i gave EXECUTE TEST_PROC; and CALL TEST_PROC; command to exeute this procedure I'm getting following error ORA-00900: invalid SQL statement.
    please tell how can i run this procedure.
    thanks in advance.
    regards
    Neeraj

    Some basic concepts first. Apex is a suite of PL/SQL procedures and functions and packages and database tables. Apex runs totally inside the database as stored procedural code.
    What makes it unique and different is that the procedures are called by a web browser URL. This is received by Apache and passed to a module called mod_psql. This module processes the URL from the web browser, determines what database to connect to and what stored procedure call to make.
    Inside the PL/SQL environment there is a set of web packages - and a buffer area that can be used to create dynamic web pages. Apex PL/SQL code executes and creates a dynamic web page/web content in this buffer. The code terminates.
    The mod_plsql module in Apache then reads this buffer from the Oracle session and it streams the content to the web browser.
    DBMS_OUTPUT is not specifically supported by mod_plsql as it is another buffer area (quite primitive in use and interface). It supports a basic console output display for PL/SQL code - and is typically use by session-based clients like TOAD, SQL*Plus and SQL-Developer.
    So if you want a web-enabled PL/SQL procedure to display data on the web browser, your code needs to write to the web buffer in PL/SQL and not the DBMS_OUTPUT buffer. Writing to the web buffer can be done using the HTP.prn() call.
    Here's a very basic example of outputting data to a web browser using custom PL/SQL code. Create a Apex page. On this page create a text item called something like P1_FIRSTNAME. This enables the web user to supply a parameter value to your PL/SQL procedure.
    Create a dynamic PL/SQL region on the page, that calls your procedure:
    begin
      --// if the user supplied a firstname, we call the procedure to process the data
      if :P1_FIRSTNAME is not null then
        MyTestProc( firstName => :P1_FIRSTNAME );
      end if;
    end;The user procedure that receives and processes the data, and supplied web output, will look something like the following:
    create or replace procedure MyTestProc( firstName varchar2 ) is
      cnt integer;
    begin
      htp.prn( 'You have entered the search criteria: '||firstName||'<br> ');
      select count(*) into cnt from emp where first_name like firstName;
      htp.prn( 'Number of matching employees: '||to_char(cnt)||' row(s)<br> ');
    end;

  • Urgent help needed -- how to submit a web page from a PL/SQL api

    Hi,
    Could anyone tell me how to submit a remote web page through pl/sql
    Thanks,
    Rachna

    I am not sure what you mean by this question.
    You can submit from PL/SQL to an external webpage/website using the UTL_HTTP package.
    You can submit from an external webpage to a PL/SQL package if that package is invoked by you webserver. The most direct way is using the MOD_PLSQL module for Apache that Oracle ships as HttpServer and that is the foundation for Oracle Portal and HTML DB. Alternatively your webpage can submit to a JSP that invokes your PLSQL package through JDBC.
    best regards,
    Lucas

  • What are the right names for the 2 OHS?

    Hi,
    Currently we have 2 options for an HTTP Web Server for APEX:
    - An Oracle HTTP Server (OHS) from the database companion CD.
    - An Oracle HTTP Server (OHS) from the Oracle Application Server.
    The first OHS is based on Apache 1.3.x and the second on Apache 2.0.x.
    What are the right way to reference them so people know what your are talking about? In the manuals they are just called OHS but since they are not the same I would like to distinguish them some way. What do you call them?
    Regards Pete

    OK now I think got it:
    OHS from the database companion CD and from the Application Server are both based on an Apache 1.3.x HTTP server.
    On the Oracle Application Server companion CD is an OHS based on an Apache 2.0.x HTTP server. This release does not contain the mod_plsql module an can therefor not be used for APEX.
    Regards Pete

  • Real challenge. dynamic ssi not possible? Help!

    I'm trying to reference static html pages from my pl/sql generated web pages without using frames. I can't seem to come up with any way to do this. Here's what I'm trying to essentially to do.
    filename below is a static html page being referenced.
    PROCEDURE onDemand
    (filename in varchar2) IS
    BEGIN
    PageStart;
    PageHeadbar;
    PageNavbar;
    htp.p('<table>');
    htp.p('<tr><td>');
    htp.p('<p>When This is working, the contents of the file <b>'||filename || '</b> will be included.</p>');
    htp.p('</td></tr>');
    htp.p('</table>');
    PageEnd;
    END onDemand;
    The options I CAN'T use are:
    1. Using utl_file to grab the contents of the file from that directory.
    2. XML url referencing.
    I thought maybe I could use the server side include option, but I don't see how I can integrate ssi with the mod_plsql output. I know I can compile a static html file as part of a psp compilation, but then it's completely embedded in the resulting procedure and I won't have any dynamic options.
    One solution that may work but we're trying to avoid, is to load all the existing html files into tables and just pull them out at the time of the procedure is called. Still, we'd like to avoid this and use the existing html files in the directories that they are in.
    Here's one possible option I was considering but am not sure how to make it work.
    I was thinking I could make my procedure that I'm calling part of a package and name the procedure .shtml. When I call the procedure it produces the web page which will have a server side include command in it that would reference the file I need. If I can get the apache server to then run the results of the mod_plsql through the mod_include module, it would hopefully then pull in the file I was trying to include. Is there any way that this might work? Here's the package body of what I'm trying with this option.
    create or replace package body ssi as
    procedure shtml (filename in varchar2)
    is
    begin
    PageStart;
    PageHeadbar;
    PageNavbar;
    htp.p('<table>');
    htp.p('<tr><td>');
    htp.p('<p>When This is working, the contents of the file <b>'||filename || '</b> will be included.</p>');
    htp.p('<!--#include virtual="../html/en/'||filename||'" -->');
    htp.p('</td></tr>');
    htp.p('</table>');
    PageEnd;
    end shtml;
    end ssi;
    If it would work, I'd call ssi.shtml?filename=example.html, the procedure creates the web page to be generated via the mod_plsql module, but then the mod_include module parses the page and pulls in the example.html.... is this possible? What would be the necessary configuration of the apache server to do this?
    There has to be a better way. Any ideas would be much appreciated.
    Kurt
    [email protected]

    This is a big reason to make the move to dynamic development. There are many sites that use PHP or CF and never connect to a database. The ability to have your menus, headers, footers added to your pages with one simple line of code such as:
    <cfinclude template="FooterContent.cfm">
    for ColdFusion or
    <?php
    include("FooterContent.php"); 
    ?>
    for php
    Makes it well worth moving from static HTML pages to using  CF or php.
    Even if your host did support SSI's  you'll find true dynamic development to be a much more reliable solution - and this isn't even mentioning how to handle form submissions and so many other non database related functions... for example  this line of code
    Copyright 2002 - <cfoutput>#DateFormat(Now(), "yyyy")#</cfoutput>
    Will automatically show the current year at the end of your copyright statement in your footer - sweet, right?
    Hope this encourages toy to make the move.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver and code developers.
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • Installing oracle application express

    hi,
    My administrators have installed oracle app server 10g and oracle http server is up and running on the linux server..
    Do i have to download and install oracle application express on the client machine(where i have to develop the applications) or download it to the server??
    Thanks

    The Apex installation is essentially two things -
    1) Installation of the Oracle HTTP Server (essentially Apache with the mod_plsql module installed, plus some other custom things)
    2) Installation of the packages/procedures/functions into the database (you do this by connecting to the DB and running a script).
    So, unless you are running the database on your laptop, you wouldn't be installing Apex on your laptop, you would be installing it from your laptop.
    You can install from your laptop if you can connect to the DB from it, personally I usually prefer to install from the actual server itself, for two reasons -
    1) It's generally faster since you don't need to send things across the network
    2) It minimizes the chance of any networking errors part way through the install (such as someone pulling the wrong network cable out of the patchbox for example).
    That's just a personal view however, you should be able to install from your laptop just fine.

  • Calling PLSQL Stored Procedure From HTML Form Submit Button

    Hi there,
    I am having a little difficulty with calling a stored procedure using an html form button. Here is the code I have right now...
    HTP.PRINT('<form action=ZWGKERCF.P_confdelete>');
    HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>');
    HTP.PRINT('</form></div>');Here is the issue - I need to find a way to pass variables to this stored procedure so it know what data to operate on. This stored procedure will delete data for a specific database record and I must pass three variables to this procedure to make it work.
    Lets call them class_number, term, conf These three variables will be passed and the data will be deleted and the person will see a confirmation screen once the delete query has been executed.
    So ideally I would want: ZWGKERCF.P_confdelete(class_number, term, conf) and then the stored procedure would handle the rest!
    Seems pretty simple but I am not sure how to make this happen... My thoughts were:
    Pass the data to this html form (the three fields I need) in hidden variables. Then somehow pass these using POST method to the procedure and read using GET?
    Can someone clarify what the best way to do this is? I have a feeling its something small I am missing - but I would really like some expert insight :-)
    Thanks so much in advance!
    - Jeff

    795018 wrote:
    I am having a little difficulty with calling a stored procedure using an html form button. Here is the code I have right now...
    HTP.PRINT('<form action=ZWGKERCF.P_confdelete>');
    HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>');
    HTP.PRINT('</form></div>');Here is the issue - I need to find a way to pass variables to this stored procedure so it know what data to operate on. This stored procedure will delete data for a specific database record and I must pass three variables to this procedure to make it work. The browser generates a POST or a GET for that form action, that includes all the fields defined in that form. Let's say you define HTML text input fields name and surname for the form. The URL generated for that form's submission will be:
    http://../ZWGKERCF.P_confdelete?name=value1&surname=value2The browser therefore submits the values of the form as part of the URL.
    The web server receives this. It sees that the base URL (aka location) is serviced by Oracle's mod_plsql. It passes the URL to this module. This module builds a PL/SQL block and makes the call to Oracle. If we ignore the additional calls it makes (setting up an OWA environment for that Oracle session), this is how the call to Oracle basically looks like:
    begin
      ZWGKERCF.P_confdelete( name=> :value1, surname =>  :value2 );
    end;Thus the PL/SQL web enabled procedure gets all the input fields from the HTML form, via its parameter signature. As you can define parameter values with defaults, you can support variable parameter calls. For example, let's say our procedure also have a birthDate parameter that is default null. The above call will still work (from a HTML form that does not have a date field). And so will the following URL and call that includes a birth date:
    URL:
    http://../ZWGKERCF.P_confdelete?name=value1&surname=value2&birthdate=2000/01/01
    PL/SQL call:
    begin
      ZWGKERCF.P_confdelete( name=> :value1, surname =>  :value2, birthdate => :value3 );
    end;There is also another call method you can use - the flexible 2 parameter interface. In this case the PL/SQL procedure name in the URL is suffixed with an exclamation mark. This instructs the mod_plsql module to put all input field names it received from the web browser into a string array. And put all the values for those fields in another string array. Then it calls your procedure with these arrays as input.
    Your procedure therefore has a fixed parameter signature. Two parameters only. Both are string arrays.
    The advantage of this method is that your procedure can dynamically deal with the web browser's input - any number of fields. The procedure's signature no longer needs to match the HTML form's signature.
    You can also defined RESTful mod_plsql calls to PL/SQL. In which case the call format from the web browser looks different and is handled differently by mod_plsql.
    All this (and more) is detailed in the Oracle manuals dealing with mod_plsql - have a search via http://tahiti.oracle.com (Oracle Documentation Portal) for the relevant manuals for the Oracle version you are using.
    Alternatively, simply download and install Oracle Apex (Application Express). This is a web development and run-time framework and do all the complexities for you - including web state management, optimistic locking, security and so on.

  • Create web service in oracle 10g r2

    Hi guys, I am trying to expose a package function as a web service in the database (10g r2) for outside clients to call on. I saw a good example on the following url in 11g http://www.oracle-base.com/articles/11g/NativeOracleXmlDbWebServices_11gR1.php in which you use the dbms_xdb package to configure a port and servlet for accessing the function in the db. However, the 10g r2 version of the dbms_xdb package does not have some of the functions in the 11g version. Eg. dbms_xdb.addservlet, deleteservlet, etc.
    How can i go about doing this (without using Jdeveloper)? Jdeveloper creates the web service but the uses your localhost and web logic port in the generated wsdl. I would like something similar to the example above. Can somebody provide an example that works in 10g or point me towards some article that explains how to accomplish this?
    Any help is appreciated!
    Thanks

    If the intention is merely to web enable that procedure, allowing it to be called directly via http, then it can be done 10g using XDB.
    XDB supports WebDAV and has a mod_plsql (PL/SQL module interface for web servers) servlet. You configure the Oracle Listener to accept http connections on port 8080 for example and hand it over to this mod_plsql module in XDB. In XDB you configure the behaviour of (and URL signatures supported by) this module.
    Note that this deals merely with the connectivity and interface (http to PL/SQL) side - whether that procedure exposes a web services (and returns XML) or whether it returns images or html or text is immaterial from a connectivity viewpoint.

  • Web Pl/Sql with Jdeveloper(903)

    hi all
    i am using jdeveloper to develop some pages build with web pl/sql but when i try to run it from jdeveloper it fails (the database is 9.0.1)and gives the error
    Executing PL/SQL: CALL SCOTT."JDEV_TMP_PROC_1"()
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 323
    ORA-06512: at "SYS.HTP", line 860
    ORA-06512: at "SYS.HTP", line 975
    ORA-06512: at "SYS.HTP", line 993
    ORA-06512: at "SYS.HTP", line 40
    ORA-06512: at "SCOTT.MARINA_DATE", line 6
    ORA-06512: at "SCOTT.JDEV_TMP_PROC_1", line 3
    Process exited.
    Disconnecting from the database oracle9
    my question is how i can run and deploy web/plsql procedure from jdeveloper9i

    This is because when you run your SCOTT.MARINA_DATE procedure from JDeveloper like this, it is not exactly the same as when the MOD_PLSQL invokes it.
    The key difference lies in the invocation of the OWA.INIT_CGI_ENV() procedure.
    The MOD_PLSQL gateway is doing this prior to invoking your SCOTT.MARINA_DATE routine, and here when you're invoking it from JDeveloper, likely you're not initializing the OWA package with this call.
    Assuming your PLSQL code is not depending on any of the CGI environment variables that the normal MOD_PLSQL module passes to the PLSQL environment via this call, you can simulate the initialization of the web CGI environment with no arguments using code like this:
    declare
      args owa.vc_arr; -- An empty table of records
    begin
      owa.init_cgi_env(args);
    end;

  • Web Service Procedure

    I have been extensively researching web services but I still can not find out how to return a set of data like there is in this example.. the most i can get it to return is one field of data by just returning a variable http://www.oracle.com/technology/obe/obe_as_10g/portal/bld_portlet_decl/portlet_decl.html#webService
    would anyone be able to show me some sample code about returning multiple values, the only way i can think of is declaring a type and then returning a ref cursor but web services dont let you use ref cursors!!!!
    The only thing i wanted to see on that example is the code for that method but they don't show it! I am at my wit's end, any help would be greatly appreciated (sorry in advance if this has been posted before but I couldn't find anything about it)

    Ah.. now it seems to make sense. Unfortunately this may seem quite technical, but this deals with APEX/XML/web processes on their most basic technically level.
    Whatever does the graphing (e.g. like an AnyChart or Fusion swf program), expects XML as input.
    This XML contains the data required to determine the type of chart, legends, titles, colours and so on - including the serie and data points to plot.
    It obviously cannot handle a ref cursor, just as it cannot handle anything else, but XML data in the very specific format that it expects. I.e. you cannot pass just any old XML to it.
    In Oracle terms, a web-enabled PL/SQL procedure must return a XML MIME stream to the web browser via the web server's mod_plsql module.
    In APEX terms, if the standard APEX Anychart XML generator does not do the trick, you need to write your own and define that as an APEX process so that it is called within the APEX context (allowing you access to APEX state variables applicable to the caller).

  • Database Session hangs around for 20 minutes after logout

    We used HTML DB 1.6.0.00.87 to create a custom data warehouse reporting application. For some reason once you log out of HMTL_DB, the database session does not go away until 20 minutes later. I have tested it several times and it is consistent at 20 minutes. Does anyone know what controls this and how I can adjust it?

    Hi Randy,
    What you're probably seeing is the connection pooling done by the mod_plsql module. They 'hang around' because connecting to the database can be an 'expensive' overhead, if you run a query that take 0.5 seconds but your connection takes 0.25 seconds, then obviously a great way to reduce the overall time is to not recreate that connection each time, so a connection pool is used.
    Are these sessions causing you a problem?

  • Portal upgrade without iAS upgrade

    I have upgraded my Portal instance from 3.0.6 to 3.0.6.
    But I didn't upgrade my iAS instance, and I got this message at login:
    "Call to WPG_SESSION API Failed.Error-Code:6550"
    I read somewhere that the problem might be, that I didn't upgrade iAS 1.0.2.0-> 1.0.2.2
    Is it possible to use only the mod_plsql module of the iAS 1.0.2.2 with the upgraded Portal 3.0.8?
    Will it work, or I must upgrade my whole iAS to 1.0.2.1 and to 1.0.2.2. Then why give Oracle the Portal upgrade script?
    Thanks.
    Paszty

    Thank you for your quick answer.
    I've got another question.
    Where can I find the iAS upgrade scripts?
    We have got iAS 1.0.2.1 and 1.0.2.2 install CDs, but we didn't find any upgrade options.
    We have got now an upgraded Portal 3.0.8. Which iAs upgrade must we use? 1.0.2.1 or 1.0.2.2 or both?
    Thank you.

  • HTTP server licensing

    Can the oracle http server included with the companion cd be used without specifically licensing the product?
    We would like to run the oracle http server with the mod_plsql module on a dedicated server but I'm unable to find licensing info on that individual product.

    You would require proper license to even use standalone OHS from companion CD. Depending on the version of standalone OHS, you might need at least either Oracle Application Server Java Edition (which I believe isn't offered anymore) or WLS SE (as per new licensing terms).
    I would suggest you to get in touch with you Oracle sales rep to get it cleared.
    Thanks
    Shail

Maybe you are looking for