Alternative to PLSQL Gateway

Hi !
I'm currently installing an Oracle Database to host our production website coded in PLSQL with HTP package. Currently for development, we are using PLSQL Gateway to publish our pages.
But in production, PLSQL Gateway might be too weak to use it with a lot of visitors. Is there a stronger alternative to expose PLSQL in web pages ?
Thank you !

>
I'm currently installing an Oracle Database to host our production website coded in PLSQL with HTP package. Currently for development, we are using PLSQL Gateway to publish our pages.
But in production, PLSQL Gateway might be too weak to use it with a lot of visitors. Is there a stronger alternative to expose PLSQL in web pages ? There are several options:
1. The Embedded PL/SQL Gateway (DBMS_EPG), which is a webserver built into the database itself
2. The Oracle HTTP Server (OHS), which is based on the Apache codebase, with mod_plsql
3. Java-based web servers (such as Tomcat, WebLogic, and others) with the open-source DBPrism plugin, or the upcoming, Oracle-supported Apex Listener
4. And Microsoft Internet Information Server (IIS) with the Thoth Gateway module, see http://code.google.com/p/thoth-gateway/
- Morten
http://ora-00001.blogspot.com

Similar Messages

  • Can wpg_docload work with the embedded plsql gateway?

    Hi,
    Looking at all the sample code with wpg_docload.download_file. Put the following in a plsql region, but it does not work. Is it due to my running with the embedded plsql gateway, rather than http server and mod_plsql?
    Here's the code. The file exists and is a small 213-byte file.
    declare lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.txt';
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    owa_util.mime_header('text/plain', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: attachment; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end;
    It returns:
    "HTTP/1.1 500 Internal Server Error Server: Oracle XML DB/Oracle Database Content-Type: text/html; charset=UTF-8 X-DB-Content-length: 213 Transfer-Encoding: chunked Transfer-Encoding: chunked"
    The filesize is correct and if I comment out the call to wpg_docload.download_file I see:
    "Content-type: text/plain; charset=UTF-8 Content-length: 213 Content-Disposition: attachment; filename="x.txt""
    Thanks.
    Susan

    Hi,
    Tried simply doing the grant, but it did not work. Aside from having a bit of trouble with the loadblobfromfile (had to enumerate all 5 parameters) and also having to specifically do a dbms_lob.open, it worked!
    Here's the final code that worked:
    declare
    lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.txt';
    l_blob blob;
    des_offset number := 1;
    src_offset number := 1;
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    DBMS_LOB.createtemporary(l_blob, FALSE);
    dbms_lob.open(lob_loc, dbms_lob.lob_readonly);
    DBMS_LOB.LOADBLOBFROMFILE(
    dest_lob=>l_blob,
    src_bfile=>lob_loc,
    amount=>v_length,
    dest_offset=>des_offset,
    src_offset=>src_offset);
    owa_util.mime_header('text/plain', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: attachment; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( l_blob );
    DBMS_LOB.freetemporary(l_blob);
    EXCEPTION WHEN OTHERS THEN
    DBMS_LOB.freetemporary(l_blob);
    RAISE;
    end;
    Thanks Udo.
    Susan

  • Procedure/package to change user password through plsql gateway

    I'm not sure is this the right place to ask, but I don't know anywhere better.
    I'm using Oracle 817 with the apache that bundled. I use the plsql gateway (mod_plsql). I want to create a page for user to change their password, however, I don't know how to verify the existing password of the user before changing to a new password. Also, how can I change the password, is there a standard procedure to do that?
    One more question, when I key in the following:
    http://myhost/pls/my_dad/my_schema.my_procedure
    the web server return a page with lots of cgi environment (assuming the my_procedure doesn't exist), how can I customise this page?
    thx.

    To ensure security of the Oracle database system and prevent unauthorized access to the Oracle database, it’s important for Oracle users to not only using strong and long Oracle passwords to avoid brute force or dictionary attacks, but also to change the Oracle user password regularly. Oracle users also have to change the password when the password has or going to expire, if database system administrator implements and enforces strict password control with PASSWORD_LIFE_TIME option for user profiles which limits the number of days the password can be used for authentication to login to the system.
    To change the Oracle password, users can use SQL*Plus or Oracle SQL and PL/SQL language interface administration tool such as Toad for Oracle. No matter what SQL apps you use, the commands and SQL query languages used to change the password are similar.
    There are two SQL command syntaxes that can be used to change Oracle database user password:
    ALTER USER user_name IDENTIFIED BY new_password;or (from Oracle8 and above):
    PASSWORD
    For above SQL query, if you need to change another user’s password, use the following command:
    PASSWORD user_name
    For PASSWORD command, after you press Enter, you will be prompted to input the old password and new password interactively. For example:
    SQL> password
    Changing password for DAVID
    Old password:
    New password:
    Retype new password: Note: You need to have enough privileges to change other Oracle user’s password.
    As the variable in italic implied by name, user_name is the user whose password wishes to be changed, and new_password is the new password to assign.
    As ALTER USER SQL syntax will send the new password to the Oracle database server unencrypted if use without Advanced Security Option, and thus expose to security risk, Oracle users should always use the PASSWORD command to change the Oracle user password.

  • Embadded PLSQL Gateway on APEX3.2

    Does APEX 3.2 allow usage of Embadded PLSQL Gateway instead of a separate HTTP server on 9i and 10g?
    Thanks,
    R

    Database 11gR1 is the first supported version of the embedded PL/SQL Gateway for Application Express.
    The embedded PL/SQL gateway is available in DB 10.2.0.3, but this is not a supported configuration for Application Express.
    Joel

  • Embeded PLSQL Gateway & 404 page not found issue

    Hi
    If I use APEX_ITEM.TEXTAREA with Embeded PL SQL Gateway and submit the page, it throws "HTTP 404-page not found" error.
    It doesn't happen when I use apache server instead of EPG.
    Our production APEX is down because of this issue.
    Any help/suggestions would be greately appreciated.
    Here are the simple steps to reproduce the same in a EPG environment.
    Note: It works fine in apex.oracle.com [http://apex.oracle.com/pls/otn/f?p=20193:6]
    Create a blank page with a report region for the following query. Add a self submit button to it. Run the page and hit the submit button and you will get 404-page not found error.
    SELECT APEX_ITEM.TEXTAREA(3, 'a' || lpad('z',1999),3,80) COMMENTS
    FROM dual
    CONNECT BY ROWNUM <=10
    Note:
    If you want to see this error in the same browser : exec
    dbms_epg.set_dad_attribute('APEX',
    *'error-style',*
    *'DebugStyle');*
    Ref: --blocked::[http://daust.blogspot.com/2008/04/troubleshooting-404-not-found-error-on.html]--
    To increase the loging level: SQL> execute dbms_epg.set_global_attribute('log-level', 7)
    Thanks
    Balaji Chellappa

    Hi Masa,
    I am also facing the same issue. After creating a Target Mapping tile for our custom application, when I save I get the below error :
    Configuration changes not saved for tile 'Target Mapping'
    Error (404, Not Found) in OData response for PUT "/sap/opu/odata/UI2/PAGE_BUILDER_CUST/PageChipInstances(pageId='X-SAP-UI2-CATALOGPAGE%3Aicch_report',instanceId='00O2THPMYBCTODLKRWF1EBX3F')": HTTP request failed Details: Resource PageChipInstance not found.
    I assigned a customizing transport as suggest in your response and saved again, but that did not help either.
    The surprising thing is, when our basis consultant (who has SAP_ALL) saves the tiles, he can save them. This tells me that all the necessary services to create/save the tiles are active.
    We have tried to trace my userid for missing authorizations - but none was found.
    Not sure what is causing the error when I save the tile..
    Regards
    Kalpana

  • WWW Location of the Novell Client for XP supporting IP Gateway Services

    When connecting Windows XP workstations to the SBS 6.0 server through the
    Novell Client 4.9SP1a for Windows XP, there are no services within 4.9
    for IP Gateway included. As many of you know, by using BorderManager as
    the Firewall/NAT/IP/IPX Gateway to access the Internet, all workstations
    accessing the Internet need the IP Gateway service installed with the
    client. The Novell Client CD-ROM shipped with the Novell SBS 6.0 media
    has clients for Windows NT/2000 (outdated) but none are compatible for
    Windows XP (it appears that Novell had not updated their Novell SBS 6.0
    media since they started shipping it). In addition, the online
    documentation included with the media is outdated (e.g. BorderManager 3.6
    docs for BorderManager 3.7 being shipped) and do not mention anything
    about configuring Windows XP clients for Novell IP Gateway services.
    I have thoroughly looked within Novell's Support site the past few weeks
    for:
    + The original Novell Client 4.9 (prior to support packs) to see if that
    version of the client has IP Gateway services included (file not found or
    listed).
    + Previous Novell Clients for Windows XP to see if those versions support
    IP Gateway services. (Support Pack versions only are listed, but no
    original versions, and do not contain Novell IP Gateway services).
    + Any instructions or tips for configuring the Novell IP Gateway services
    within the Novell Client 4.9 or earlier versions for Windows XP(documents
    are non-existent).
    All of the above leads the following question:
    Can someone please direct me to the location to where the proper
    Novell Client for Windows XP supporting Novell IP Gateway services?
    Since Windows XP has been around for a few years now, one would think
    Novell would have developed a client for it that possesses Novell IP
    Gateway services by now to be used with BorderManager. Correct? If so,
    where is it? In addition, one would think Novell would include the media
    supporting the current software they are shipping, not outdated ones.
    (Or at least, ensure their outsourced sales services are doing so.) In
    addition, one would also think Novell would at least provide the
    necessary tools/files necessary to at least to have the ability to
    install their products out of the box - instead of forcing their
    consumers to purchase unnecessary additional support services for
    something they should have included within their media package or website
    at the start.
    Nevertheless, I appreciate any input where to find the appropriate Novell
    Client for Windows XP supporting Novell IP Gateway services.
    Thanks,
    EricV

    In article <cb60c.5596$[email protected]>, wrote:
    > As many of you know, by using BorderManager as
    > the Firewall/NAT/IP/IPX Gateway to access the Internet, all workstations
    > accessing the Internet need the IP Gateway service installed with the
    > client.
    >
    This is simply not correct. Novell has not been providing IP gateway
    functionality within Client32 for a long time, because it is not needed,
    and it had serious limitations.
    I haven't had a client using IP Gateway for many years now, and I have a
    *lot* of BorderManager clients.
    The alternative to IP Gateways is a combination of proxies and NAT w/filter
    exceptions.
    Craig Johnson
    Novell Support Connection SysOp
    *** For a current patch list, tips, handy files and books on
    BorderManager, go to http://www.craigjconsulting.com ***

  • Gateway Sample

    Hey Martin,
    It wud be gr8 if U can give some example of enabling Alternative 2 for gateways (Exclusive).
    I am facing issue while evaluating condition for gateway...(Alternative2).
    Probably using a Scenario as given below would be of much help to me :
    A context attibute in webdynpro of type boolean,binded with Check box (stating rejected) on UI.
    A exclusive gateway in Process Composer Project,wherein a gateway is used with options as Accepted and Rejected.
    Accepted (Alternative 1 ) is my default gate.
    In condition evaluation for Alternative 2, how do I go ahead ?

    Hi Sheetal,
    The SDN provides several samples (including NWDS projects) that cover your question:
    https://www.sdn.sap.com/irj/sdn/nw-bpm?rid=/webcontent/uuid/006a16ad-a3ad-2b10-4e9a-af2ee5820848 [original link is broken]
    Simply give it a try.
    Cheers,
    Martin
    PS: I branched this into a new thread as the old one was about a completely different topic. Please start only one topic per thread. This allows others to follow better and the topics remain searchable in a better way.

  • SQL / PLSQL performance

    Hi expert,
    I just created PL/SQL code & work fine on running. But i worry coding structure &
    performance. Pls guide me how to adjust it. Coding as below : -
    CREATE OR REPLACE PROCEDURE ms_alert_start IS
    v_altcd msalthdr.ms_alt_cd%type;
    CURSOR c_althdr IS
    SELECT ms_alt_cd
    FROM msalthdr;
    BEGIN
    OPEN c_althdr;
    LOOP
    FETCH c_althdr INTO v_altcd;
    EXIT WHEN c_althdr%NOTFOUND;
    IF v_altcd = 'CUSTBR' THEN
    ms_alert_custbr(v_altcd);
    END IF;
    END LOOP;
    CLOSE c_althdr;
    END ms_alert_start ;
    CREATE OR REPLACE PROCEDURE ms_alert_custbr (p_altcd varchar2) IS
    v_altcomp msaltinval.ms_alt_comp%type;
    v_altinval msaltinval.ms_alt_inval%type;
    v_altstf msaltctc.ms_alt_stf%type;
    v_mailadd varchar2(100);
    v_emailadd varchar2(32767);
    v_smail1 varchar2(50) := '/usr/local/bin/sendEmail -f [email protected] -t ';
    v_smail2 varchar2(200) := ' -u "Customer BR Expire Alert" -s 202.134.95.226:25 -m "Customer BR Expire Alert" -a /u03/oradata/msdev/tempfile/';
    v_smcmd varchar2(32767) ;
    CURSOR c_altinval IS
    SELECT ms_alt_comp,ms_alt_inval
    FROM msaltinval
    WHERE ms_alt_cd = p_altcd ;
    CURSOR c_altctc IS
    SELECT ms_alt_stf
    FROM msaltctc
    WHERE ms_alt_cd = p_altcd and
    ms_alt_comp = v_altcomp ;
    BEGIN
    OPEN c_altinval;
    LOOP
    FETCH c_altinval INTO v_altcomp,v_altinval ;
    EXIT WHEN c_altinval%NOTFOUND;
    ms_alert_custbr_crexls(v_altcomp,v_altinval);
    v_emailadd := NULL;
    OPEN c_altctc ;
    LOOP
    FETCH c_altctc INTO v_altstf ;
    EXIT WHEN c_altctc%NOTFOUND;
    SELECT ms_email_add
    INTO v_mailadd
    FROM msstaff
    WHERE ms_staff_cd = v_altstf ;
    IF v_emailadd IS NULL THEN
    v_emailadd := v_mailadd ;
    ELSE
    v_emailadd := v_emailadd || ',' || v_mailadd ;
    END IF;
    END LOOP ;
    CLOSE c_altctc ;
    dbms_output.put_line(v_emailadd);
    v_smcmd := v_smail1 || v_emailadd || v_smail2 || v_altcomp || '_CUSTBR.xls' ;
    dbms_output.put_line(v_smcmd);
    Host_Command (p_command => v_smcmd) ;
    END LOOP;
    CLOSE c_altinval;
    END ms_alert_custbr ;
    CREATE OR REPLACE PROCEDURE ms_alert_custbr_crexls (p_altcomp IN VARCHAR2, p_altinval IN NUMBER) IS
    v_fileHandle utl_file.FILE_TYPE;
    t_tab_caption my_spreadsheet.t_tab_caption;
    v_cust_count NUMBER(8);
    v_mascd mscusthdr.ms_mas_cd%type;
    v_masname mscusthdr.ms_mas_enname%type;
    v_brno mscusthdr.ms_br_no%type;
    v_brexp mscusthdr.ms_br_exp%type;
    v_defname mscusthdr.ms_def_name%type;
    v_defposit mscusthdr.ms_def_posit%type;
    v_telno mscustdtl.ms_tel_no%type;
    v_faxno mscustdtl.ms_fax_no%type;
    v_email mscustdtl.ms_email_add%type;
    CURSOR c_cust IS
    SELECT a.ms_mas_cd,a.ms_mas_enname,a.ms_br_no,to_date(a.ms_br_exp + 4),a.ms_def_name,a.ms_def_posit,
    b.ms_tel_no,b.ms_fax_no,b.ms_email_add
    FROM mscusthdr a, mscustdtl b
    WHERE a.ms_comp_cd = p_altcomp AND
    a.ms_br_exp = to_date(sysdate + p_altinval) AND
    a.ms_mas_cd = b.ms_mas_cd AND
    a.ms_def_name = b.ms_staff_name
    ORDER BY ms_mas_enname;
    BEGIN
    SELECT COUNT(*)
    INTO v_cust_count
    FROM mscusthdr
    WHERE ms_comp_cd = p_altcomp AND
    ms_br_exp = to_date(sysdate + p_altinval);
    v_fileHandle := my_spreadsheet.createNewFile('TEMPFILE_DIR',p_altcomp||'_CUSTBR.xls',2);
    -- TITLE
    t_tab_caption(1).title := 'Customer Code';
    t_tab_caption(1).width := 5000;
    t_tab_caption(2).title := 'Customer Name';
    t_tab_caption(2).width := 10000;
    t_tab_caption(3).title := 'Customer BR No.';
    t_tab_caption(3).width := 10000;
    t_tab_caption(4).title := 'BR Expire Date';
    t_tab_caption(4).width := 4000;
    t_tab_caption(5).title := 'Default Contact';
    t_tab_caption(5).width := 5000;
    t_tab_caption(6).title := 'Position';
    t_tab_caption(6).width := 5000;
    t_tab_caption(7).title := 'Telephone No.';
    t_tab_caption(7).width := 5000;
    t_tab_caption(8).title := 'Fax No.';
    t_tab_caption(8).width := 5000;
    t_tab_caption(9).title := 'E-Mail Address';
    t_tab_caption(9).width := 10000;
    my_spreadsheet.writeCaption(v_fileHandle,t_tab_caption);
    -- Write a data Row
    my_spreadsheet.newDatarow(v_fileHandle);
    OPEN c_cust;
    FETCH c_cust
    INTO v_mascd, v_masname, v_brno, v_brexp, v_defname, v_defposit, v_telno, v_faxno, v_email ;
    WHILE c_cust%FOUND
    LOOP
    my_spreadsheet.writeData(v_fileHandle,v_mascd);
    my_spreadsheet.writeData(v_fileHandle,v_masname);
    my_spreadsheet.writeData(v_fileHandle,v_brno);
    my_spreadsheet.writeData(v_fileHandle,v_brexp,FALSE);
    my_spreadsheet.writeData(v_fileHandle,v_defname);
    my_spreadsheet.writeData(v_fileHandle,v_defposit);
    my_spreadsheet.writeData(v_fileHandle,v_telno);
    my_spreadsheet.writeData(v_fileHandle,v_faxno);
    my_spreadsheet.writeData(v_fileHandle,v_email);
    my_spreadsheet.newDatarow(v_fileHandle);
    FETCH c_cust
    INTO v_mascd, v_masname, v_brno, v_brexp, v_defname, v_defposit, v_telno, v_faxno, v_email ;
    END LOOP;
    CLOSE c_cust;
    my_spreadsheet.newDatarow(v_fileHandle);
    my_spreadsheet.writeData(v_fileHandle,'Customer Count :');
    my_spreadsheet.writeData(v_fileHandle,v_cust_count,my_spreadsheet.c_default,my_spreadsheet.c_fontRed);
    my_spreadsheet.newDatarow(v_fileHandle);
    my_spreadsheet.closeFile(v_fileHandle);
    END;
    tks a lot
    boris

    Thanks Earl, but I was interested in anything Oracle might have to say on the subject. I would have expected some basic benchmarking of a sample application to be provided,as XDB/PLSQL Gateway has been plugged at recent conferences as a way forward for APEX implementations.
    I've got the basic XDB/PLSQL gateway install setup on Linux, as per the notes at technology.amis.nl, and left the apache installation in place so I can perform a quick comparison.
    I've used Firebug 1.0b5 to give me timings, and it seems as though on SUSE Linux 8.1 Oracle 10.2.0.3 Apex 2.2.1 that the Apache server is 2wice as quick at serving up pages as XDB/PLSQL gateway. One particular point to note is that much of the delay seems to be in the handling of the f package.
    Has any-one any comment to make ?
    Cheers, Mark.
    PS the Apache install is pretty much out-of the box, and it's the version which ships on the Oracle Companion disk.

  • SSL encryption for Apex 4.1

    Hi Guys,
    I am trying to set up SSL encryption for my local install.
    I am running APEX 4.1 in Windows 7 (32 bit) , Oracle XE 11G with embedded plsql gateway setup.
    The APEX documentation I looked at that deals with SSL:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21678/adm_mg_service_set.htm#AEADM297
    instructs to turn HTTPS on in APEX_ADMIN (Internal schema) under security.
    It didn't work as APEX was visible still under http://localhost:8080/apex and using HTTPS gave page not found error. On top of that It locked out my Admin account for INTERNAL workspace. So I had to switch it back via SQL query in SQL plus.
    From limited experience in doing something similar in Tomcat, I believe one needs certificates etc before proceeding with this.
    Anyone who has done this before, can you please point to a any documenation/blog post, tutorial etc that shows how its done? Many thanks.

    Hi,
    http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#BABGCDJJ
    >
    HTTPS is not supported natively with the HTTP listener built into Oracle Database XE. If you want HTTPS support, use an alternative Web listener, such as Apache, that does provide HTTPS support, and provide proxies for the URLs provided by Oracle Database XE.
    >
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Edited by: jarola on Jan 25, 2012 9:42 AM
    That APEX instance admin parameter you have change do not enable HTTPS. It require that you use HTTPS on your web listener.
    Here is how reverse HTTPS Requirement for APEX instance admin
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21678/adm_mg_service_set.htm#autoId17

  • Pls help!Can Oracle v7 support WebSphere Application Server instead of Oracle 8i

    Hi,
    I am using WebSphere as my application server and NT4.0 as OS.
    I wish to connect to Oracle db which is located at another server.
    Currently what I have is Oracle Client Software v7.3.4. There is error when I want to start the service.
    So I suspect that it is not compatible and it might require Oracle 8i in web environmt and to support WebSphere Application Server as well.
    Can anybody help me? Thank you.

    Hello,
    I guess you could get that to work as somebody was able to use WebLogic as webserver: http://christopherbeck.wordpress.com/2008/09/15/weblogic-server-and-apex/
    Alternatively you could use the Embedded PLSQL Gateway if you don't want to install Apache (depending database version you are on).
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Can you help me solve my Leopard Server VPN madness?

    Hello all,
    I've been having a devil of a time getting Leopard Server's VPN service to work "properly". None of this is mission critical, as it's simply on a home system I'm using as a nat/dns/dhcp/firewall/mail/web server for my Comcast line (with a static IP). But, it is frustrating, because I currently have a 10.4.11 Server fulfilling the same roll. So it seems like Leopard should be able to be made to work. I'm gonna go step by step here with my install process in the hopes that if I'm doing something wrong someone will be kind enough to catch it. Thanks for bearing with me.
    I've installed Leopard Server 10.5 (Mirror door G4, FYI) with the built-in ethernet connected to my Comcast router (with a static external IP). Immediately after 10.5 installs I restart and update everything to 10.5.2, then I install a Sonnet Gigabit NIC, it's drivers, and assign it 192.168.3.1, where it will live as my internal router, server, etc. I turn on DNS and setup an internal ".lan" zone that resolves to 192.168.3.1. Pop into Terminal and confirm that rDNS is in fact working, it is. And check that "changeip -checkhostname" resolves itself correctly (to the external IP).
    Next, turn on the NAT service and run the gateway setup assistant. After a reboot I quickly check that my internal clients with static IPs (192.168.3.10, .20, etc) are working and pulling DNS OK, they are. Jump into the Firewall, and for the moment just open it wide up by accepting all connections. At various times during testing I've configured the firewall to exactly match my 10.4 Server firewall, but for the time being I can just leave it open. I create a Firewall group to cover my 192.168.3.x internal network, and another to handle 192.168.3.60/29 to handle the VPN service I'll setup in a sec. Jump over to the DHCP service where by default gateway setup creates a 192.168.1.x DHCP zone. I delete that and create a new 192.168.3.x zone covering .50-.59. Turn DHCP on and confirm it's working, good, it is.
    Now, here is where the VPN fun begins. The last service I turn on is the VPN service (I've alternatively tried letting Gateway Setup activate it, and just doing it myself, with this same result). I configure it to accept L2TP at 192.168.3.60 - .63. Like I said this is a home server, so I don't need a lot of VPN connections. Finally, when I test the VPN from a 10.5.2 Client (MacBook coming in off a neighbors open wireless network with a 10.0.0.x string) I am able to connect, and I can see/ping/mount/share screen on the server. I can also ping the attached VPN client at 192.168.3.60 from the server. However, I cannot ping or see (In ARD) any other machines on the internal network from the attached VPN client. Likewise from one of the internal systems, say my Mac mini at 192.168.3.10 I cannot ping the attached VPN client at 192.168.3.60. Out of curiosity I've tried doing a rDNS lookup while attached to the VPN and the client isn't able to resolve any of the internal DNS entries.
    So, what gives? As I've mentioned I have exactly this same setup working just fine with Tiger Server. Same NAT, same Firewall, same DNS, and same L2TP VPN setup. For the life of me though, I cannot get attached VPN clients to see the internal network when I put Leopard Server in place. Clearly the internal DNS isn't working for attached VPN clients, although I'm not certain if that is a cause or a symptom. I've setup a network routing definition for the internal private network, which didn't help. I also tried setting up PPTP instead of L2TP, and had the same problem.
    Is anyone having similar problems with Leopard Server's VPN service? If not, could someone hit me with the clue stick and set me right? As I said, in the grand scheme of things this isn't a big deal for me. But, it's just frustrating that I can get so close to updating my home server and just fall short.
    Thanks!

    Your post actually contains the Key to solve the problem and there is not really a big need for going all the way to use the Property List Editor to fork around /etc/ipfilter/ipaddressgroups.plist.
    There has been much written on this problem but basically you see that most is trial and error and this does include myself and my findings in this post, too, but I think I can further narrow down on what CAUSES this problem and how to fix it.
    First off, we are talking a combination of using NAT (Network Address Translation - bridging an Internet connection on an external network card over to an internal network card), Firewall (which is needed in OS X to be have NAT working because the Firewall "helps" NAT by doing its job, DHCP (for providing dynamic IP addresses to clients on the internal network, don't confuse, DHCP is not providing this service to the VPN clients, that is done by the VPN server), and - last but not least - VPN to provide access to not only to the server but to any machine on the internal network over the outside network card (aka, giving remote clients a chance to connect to the local network over the public Internet in a save and nice way).
    OK. The short story: you can do it ALL in Mac OS X 10.5's Server Admin tool. If it fails it is nearly always the Firewall!
    You can check if this is the case for your setup by temporarily opening the Firewall up to not block any traffic: in Server Admin, click on Firewall -> Settings -> Services -> Edit Service for: any and click "Allow all trafic from "any"", save it (and to be 100% sure, stop and restart the firewall. If your clients can NOW connect at least to the server, it was the firewall. Now don't forget to switch off allowing all traffic from any, or you will be left with an open doors server ready for anybody to explore
    Now what goes wrong in the first place? It appears that the GSA (Gateway Setup Assistant) that is "hidden away" in the NAT settings does something awfully wrong. It will set up all the address groups in the firewall: the any group will remain as it is usually, another one defining the internal network, and a one called VPN-net for VPN.
    What it DOES do wrong here (I am no firewall expert, this is purely trial and error, so please anybody do explain!) is to give the VPN-net exactly the same address range as the internal network. And here seems to be the overall problem.
    When Twintails wrote to add 192.168.3.60/27 as address range for VPN, I realized what he/she did. Writing 192.168.3.60/27 effectively narrows down the address range starting at 192.168.3.33 up to 192.168.3.62. There are millions of subnetmask calculators out on the net, give it a try e.g. here: http://www.subnet-calculator.com/
    So, I looked for what range of address will actually be given out by the VPN server to VPN clients upon connections. Of course you need to make sure that this address range is NOT given out by your DHCP server.
    In my setup, the server is 192.168.1.1, the DHCP server provides addresses from 192.168.1.10 up to 192.168.1.127 (I start with 10 because I have some static addresses for special purposes from 192.168.1.2 to 192.168.1.9. So, this means, anything above 192.168.1.127 is potentially "free" for my VPN connections.
    Next I used the subnetmask calculator to find a narrow address group that matched my purposes. I found 192.168.1.192/26 which effectively gives me a range from 192.168.1.192 to 192.168.1.255 (which is in fact more then I have clients connecting from externally!).
    I went to the Server Admin Tool, and clicked Firewall -> Settings -> Address Group and edited the VPN-net one. First I deleted what was in "Addresses in group" and entered from scratch 192.168.1.192/26. Next - just to make certain because basically this is what Twintails had in his/her post by saying to add a name String with exactly the same information - I overwrote VPN-net by 192.168.1.192/26 and saved. (I THINK that this last step might not really be needed, but I haven't tried).
    Next click Save (basically it should already work, but I always want to be extra sure, so I stoped and immediately thereafter started the firewall again to be 100% certain all new rules are now active.
    And now: it works! Clients can access the server AND the entire local network from remote using VPN.
    One last comment: I have the feeling that (although less safe and less advanced technologicall) PPTP works much better for us then L2TP. So I have switched off L2TP support altogether because it simply NEVER really worked. We are using Mac OS X 10.4 and 10.5 to connect to the 10.5 server using this setup.

  • Apex 3.1.2 installation on Oracle 10g Standard Edition (10gSE)

    Hi..We're trying to install apex 3.1.2 on 10gSE (No application server 10gAS is available but just the database).
    Can it be installed with the embedded plsql gateway (EPG) option?
    or
    Oracle HTTP Server mod_plsql option?
    Currently there's Apache webserver already running on the box with PHP applications running. Want to make sure that apex/http-server install will not corrupt the existing environment.
    Please provide any pointers/references. IF YOU CAN OFFER PHONE SUPPORT FOR 1-2 HOURS, YOUR TIME IS Sincerely APPRECIATED. PLEASE EMAIL: [email protected] For Direct contact. Also, I may need help to solve some apex screen issues.
    * Removing the tagging with $ compensation on the post..Apex Community as in the past has been extremely helpful in solving many great apex challenges. Thanks for the continued support. *
    Edited by: Shravanv on Feb 18, 2010 12:09 PM
    Edited by: Shravanv on Feb 18, 2010 4:11 PM

    1- Here is what I mean, the oracle website is showing Web Logic in the download page of oracle application server:
    http://www.oracle.com/technology/software/products/ias/index.html
    Is there a separate download link for Oracle Application Server, if it's different from the web logic server?
    2- I Installed HTML_DB which is found in the Oracle 10g companion CD, I think I installed the HTTP Server with it, but now I want to install APEX 3.1.2 which I downloaded separately, if I uninstalled the HTML_DB using Oracle Universal Installer, will it remove the HTTP Server as well? since it lists the HTML_DB only as being installed without listing the HTTP Server separetly.
    Thanks.

  • ORACLE JVM (8.1.5 - 9.0.1)를 수동으로 설치하기

    제품 : ORACLE SERVER
    작성날짜 : 2002-09-27
    Oracle JVM (8.1.5 - 9.0.1)를 수동으로 설치하기
    ==============================================
    Purpose
    v 8.1.5, 8.1.6, 8.1.7 and 9.0.1에서 Oracle JVM의 모든 구성 요소
    를 설치하기 위해 실행해야 하는 sql script들을 설명하고,
    JVM이 성공적으로 설치되었는지 test program으로 확인해 봅니다.
    주의 : 이 script들은 반드시
    SYS 또는 INTERNAL 로 실행되어야만 합니다.
    'initjvm.sql' script는 JVM을 설치하기위해 필요합니다.
    그리고 그 외에 추가되는 script들은 각각에 설명된 추가적인
    기능을위해 실행되어야 하는 script들입니다.
    ("--"표시로 주석 처리가 되어 있습니다.)
    설치에 앞서 점검해야 할 사항
    다음은 권장되는 사항입니다.
    SHARED_POOL_SIZE >= 65 MB
    JAVA_POOL_SIZE >= 50 MB
    SYSTEM tablespace내에 50 MB 이상의 free space
    250 MB 이상의 rollback segment space
    주의 : 위 사항이 만족되지 않거나 부족한 경우 다음 에러가 발생하거나
    script실행 도중 hang이 걸릴 수 있습니다.
    ORA-3113 : end-of-file on communication channel
    ORA-4030 : out of process memory when trying to allocate %s bytes
    ORA-4031 : unable to allocate bytes of shared memory
    Explanation
    Oracle JVM을 수동으로 설치하기
    JVM version 8.1.5를 위한 script
    initjvm.sql 만 실행해 주면 됩니다.
    -------- Script jvm_install_815.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool initjvm.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -------- Script jvm_install_815.sql end ------------------
    JVM version 8.1.6를 위한 script
    -------- Script jvm_install_816.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool initjvm.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -- Initializes Java library needed by PL/SQL
    spool initplsj.log
    start @$ORACLE_HOME/rdbms/admin/initplsj.sql
    spool off
    -- Load AQ/JMS jar files into the database
    spool initaqjms.log
    start @$ORACLE_HOME/rdbms/admin/initaqjms.sql
    spool off
    -- Load RepAPI server classes and publish 'repapi' obj
    spool initrepapi.log
    start @$ORACLE_HOME/rdbms/admin/initrepapi.sql
    spool off
    -------- Script jvm_install_816.sql end ------------------
    Scripts needed for JVM version 8.1.7
    8.1.7에는 새로운 Java API와 component들이 추가되어
    수행해야 하는 script들이 더 많습니다.
    -------- Script jvm_install_817.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool jvminst.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -- Loads xml components into the JServer
    spool initxml.log
    start @$ORACLE_HOME/oracore/admin/initxml.sql
    spool off
    -- loads the XMLSQL Utility (XSU) into the database
    spool catxsu.log
    start @$ORACLE_HOME/rdbms/admin/catxsu.sql
    spool off
    -- JIS (OSE) installation
    spool init_jis.log
    start @$ORACLE_HOME/javavm/install/init_jis.sql
    spool off
    -- Turn on JAccelerator (ncomp) for JIS
    spool jisja.log
    start @$ORACLE_HOME/javavm/install/jisja.sql
    spool off
    -- Adds the set of default end points to the server
    -- with hardcoded values for the admin service
    spool jisaephc.log
    start @$ORACLE_HOME/javavm/install/jisaephc.sql
    spool off
    -- Load PLSQL Gateway Servlet jar files into the database
    spool initplgs.log
    start @$ORACLE_HOME/rdbms/admin/initplgs.sql
    spool off
    -- Install Oracle JSP
    spool initjsp.log
    start @$ORACLE_HOME/jsp/install/initjsp.sql
    spool off
    -- Turn on JAccelerator for JSP libs
    spool jspja.log
    start @$ORACLE_HOME/jsp/install/jspja.sql
    spool off
    -- Initializes Java library needed by PL/SQL
    spool initplsj.log
    start @$ORACLE_HOME/rdbms/admin/initplsj.sql
    spool off
    -- Load AQ/JMS jar files into the database
    spool initjms.log
    start @$ORACLE_HOME/rdbms/admin/initjms.sql
    spool off
    -- Load RepAPI server classes and publish 'repapi' obj
    spool initrepapi.log
    start @$ORACLE_HOME/rdbms/admin/initrepapi.sql
    spool off
    -- loads sql, objects, extensibility and xml related java
    spool initsoxx.log
    start @$ORACLE_HOME/rdbms/admin/initsoxx.sql
    spool off
    -- Configure OSE defauls admin Web Service
    spool jisaep.log
    start @$ORACLE_HOME/javavm/install/jisaep admin 8080 9090
    spool off
    -------- Script jvm_install_817.sql end ------------------
    JVM version 9.0.1 을 설치하기 위한 script
    Using the database configuration assistant, follwoing scripts will be
    executed:
    -- Setup a database for running Java and the ORB
    SQL>@$ORACLE_HOME/javavm/install/initjvm.sql;
    -- INITialize (load) XML components in JServer
    SQL>@$ORACLE_HOME/xdk/admin/initxml.sql;
    -- Loads NCOMP'ed XML Parser
    SQL>@$ORACLE_HOME/xdk/admin/xmlja.sql;
    -- loads the XMLSQL Utility (XSU) into the database.
    SQL>@$ORACLE_HOME/rdbms/admin/catxsu.sql;
    -- install the Oracle Servlet Engine (OSE)
    SQL>@$ORACLE_HOME/javavm/install/init_jis.sql <$ORACLE_HOME>;
    -- Adds the set of default end points to the server
    -- with hardcoded values for the admin service
    SQL>@$ORACLE_HOME/javavm/install/jisaephc.sql <$ORACLE_HOME>;
    -- turn on J Accelerator
    SQL>@$ORACLE_HOME/javavm/install/jisja.sql <$ORACLE_HOME>;
    -- register EJB/Corba Dynamic Registration Endpoint
    SQL>@$ORACLE_HOME/javavm/install/jisdr.sql 2481 2482;
    -- init Java server pages @$ORACLE_HOME@$ORACLE_HOME@$ORACLE_HOME
    SQL>@$ORACLE_HOME/jsp/install/initjsp.sql;
    -- turn on J Accelerator for JSP libs
    SQL>@$ORACLE_HOME/jsp/install/jspja.sql;
    -- script used to load AQ/JMS jar files into the database
    SQL>@$ORACLE_HOME/rdbms/admin/initjms.sql;
    -- load RepAPI server classes and publish 'repapi' obj
    SQL>@$ORACLE_HOME/rdbms/admin/initrapi.sql;
    -- loads sql, objects, extensibility and xml related java
    SQL>@$ORACLE_HOME/rdbms/admin/initsoxx.sql;
    -- Loads appctxapi.jar for JavaVm enabled Database.Called by jcoreini.tsc
    SQL>@$ORACLE_HOME/rdbms/admin/initapcx.sql;
    -- script used to load CDC jar files into the database
    SQL>@$ORACLE_HOME/rdbms/admin/initcdc.sql;
    -- Loads the Java stored procedures as required by the
    -- Summary Advisor.
    SQL>@$ORACLE_HOME/rdbms/admin/initqsma.sql;
    --Initialize sqlj type feature in 9i db
    SQL>@$ORACLE_HOME/rdbms/admin/initsjty.sql;
    --load java componenets for AQ HTTP Propagation
    SQL>@$ORACLE_HOME/rdbms/admin/initaqhp.sql;
    Test program으로 JVM test해보기
    Java Stored Procedure 만들기
    다음과 같은 순서로 Java Stored Procedure를 만들어 봅니다.
    1. Java program을 만듭니다.
    2. program을 database로 loading합니다.
    3. Java program을 SQL (PL/SQL Wrapper)로 publish합니다.
    4. SQL 또는 PL/SQL에서 만든 Java program을 호출합니다.
    Step 1: Java program을 만듭니다.
    ======
    EchoInput.java
    public class EchoInput {
    public static void main (String[] args){
    for (int i=0; i<args.length;i++)
    System.out.println(args);}}
    Step 2: program을 database로 loading합니다.
    ======
    UNIX prompt상에서 다음을 실행합니다:
    % loadjava -u scott/tiger -v -r EchoInput.java
    또는 SQL*Plus에서는 다음과 같이 할 수도 있습니다:
    CREATE OR REPLACE JAVA SOURCE NAMED "EchoInput" AS
    public class EchoInput { public static void main (String[] args) {
    for (int i=0; i<args.length;i++) System.out.println(args[i]);}}
    Step 3: Java program을 SQL (PL/SQL Wrapper)로 publish합니다.
    ======
    SQL 또는 PL/SQL에서 만든 Java program을 호출하기 위해서는
    Java program을 SQL (PL/SQL Wrapper)로 publish해야 합니다.
    이과정을 PL/SQL Wrapper를 만든다고도 합니다.
    일단 published/wrapped가 되면 SQL 또는 PL/SQL을 통해 호출될 수
    있습니다.
    예제 :
    create or replace procedure echo_input (
    s1 varchar2, s2 varchar2, s3 varchar2)
    as language Java
    name 'EchoInput.main(java.lang.String[])';
    Step 4: SQL 또는 PL/SQL에서 만든 Java program을 호출합니다.
    ======
    call dbms_java.set_output(5000);
    call echo_input('It', 'works', 'now!');
    주의 : SQL*Plus에서 실행할 경우 먼저 'set serveroutput on'을
    해주시기 바랍니다.
    결과 화면
    SQL> set serveroutput on
    SQL> call dbms_java.set_output(5000);
    Call completed.
    SQL> call echo_input('It', 'works', 'now!');
    It
    works
    now!
    Call completed.
    SQL>
    Example
    Reference Documents

    제품 : ORACLE SERVER
    작성날짜 : 2002-09-27
    Oracle JVM (8.1.5 - 9.0.1)를 수동으로 설치하기
    ==============================================
    Purpose
    v 8.1.5, 8.1.6, 8.1.7 and 9.0.1에서 Oracle JVM의 모든 구성 요소
    를 설치하기 위해 실행해야 하는 sql script들을 설명하고,
    JVM이 성공적으로 설치되었는지 test program으로 확인해 봅니다.
    주의 : 이 script들은 반드시
    SYS 또는 INTERNAL 로 실행되어야만 합니다.
    'initjvm.sql' script는 JVM을 설치하기위해 필요합니다.
    그리고 그 외에 추가되는 script들은 각각에 설명된 추가적인
    기능을위해 실행되어야 하는 script들입니다.
    ("--"표시로 주석 처리가 되어 있습니다.)
    설치에 앞서 점검해야 할 사항
    다음은 권장되는 사항입니다.
    SHARED_POOL_SIZE >= 65 MB
    JAVA_POOL_SIZE >= 50 MB
    SYSTEM tablespace내에 50 MB 이상의 free space
    250 MB 이상의 rollback segment space
    주의 : 위 사항이 만족되지 않거나 부족한 경우 다음 에러가 발생하거나
    script실행 도중 hang이 걸릴 수 있습니다.
    ORA-3113 : end-of-file on communication channel
    ORA-4030 : out of process memory when trying to allocate %s bytes
    ORA-4031 : unable to allocate bytes of shared memory
    Explanation
    Oracle JVM을 수동으로 설치하기
    JVM version 8.1.5를 위한 script
    initjvm.sql 만 실행해 주면 됩니다.
    -------- Script jvm_install_815.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool initjvm.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -------- Script jvm_install_815.sql end ------------------
    JVM version 8.1.6를 위한 script
    -------- Script jvm_install_816.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool initjvm.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -- Initializes Java library needed by PL/SQL
    spool initplsj.log
    start @$ORACLE_HOME/rdbms/admin/initplsj.sql
    spool off
    -- Load AQ/JMS jar files into the database
    spool initaqjms.log
    start @$ORACLE_HOME/rdbms/admin/initaqjms.sql
    spool off
    -- Load RepAPI server classes and publish 'repapi' obj
    spool initrepapi.log
    start @$ORACLE_HOME/rdbms/admin/initrepapi.sql
    spool off
    -------- Script jvm_install_816.sql end ------------------
    Scripts needed for JVM version 8.1.7
    8.1.7에는 새로운 Java API와 component들이 추가되어
    수행해야 하는 script들이 더 많습니다.
    -------- Script jvm_install_817.sql start ------------------
    -- Setup a database for running Java and the ORB
    spool jvminst.log
    start @$ORACLE_HOME/javavm/install/initjvm.sql
    spool off
    -- Loads xml components into the JServer
    spool initxml.log
    start @$ORACLE_HOME/oracore/admin/initxml.sql
    spool off
    -- loads the XMLSQL Utility (XSU) into the database
    spool catxsu.log
    start @$ORACLE_HOME/rdbms/admin/catxsu.sql
    spool off
    -- JIS (OSE) installation
    spool init_jis.log
    start @$ORACLE_HOME/javavm/install/init_jis.sql
    spool off
    -- Turn on JAccelerator (ncomp) for JIS
    spool jisja.log
    start @$ORACLE_HOME/javavm/install/jisja.sql
    spool off
    -- Adds the set of default end points to the server
    -- with hardcoded values for the admin service
    spool jisaephc.log
    start @$ORACLE_HOME/javavm/install/jisaephc.sql
    spool off
    -- Load PLSQL Gateway Servlet jar files into the database
    spool initplgs.log
    start @$ORACLE_HOME/rdbms/admin/initplgs.sql
    spool off
    -- Install Oracle JSP
    spool initjsp.log
    start @$ORACLE_HOME/jsp/install/initjsp.sql
    spool off
    -- Turn on JAccelerator for JSP libs
    spool jspja.log
    start @$ORACLE_HOME/jsp/install/jspja.sql
    spool off
    -- Initializes Java library needed by PL/SQL
    spool initplsj.log
    start @$ORACLE_HOME/rdbms/admin/initplsj.sql
    spool off
    -- Load AQ/JMS jar files into the database
    spool initjms.log
    start @$ORACLE_HOME/rdbms/admin/initjms.sql
    spool off
    -- Load RepAPI server classes and publish 'repapi' obj
    spool initrepapi.log
    start @$ORACLE_HOME/rdbms/admin/initrepapi.sql
    spool off
    -- loads sql, objects, extensibility and xml related java
    spool initsoxx.log
    start @$ORACLE_HOME/rdbms/admin/initsoxx.sql
    spool off
    -- Configure OSE defauls admin Web Service
    spool jisaep.log
    start @$ORACLE_HOME/javavm/install/jisaep admin 8080 9090
    spool off
    -------- Script jvm_install_817.sql end ------------------
    JVM version 9.0.1 을 설치하기 위한 script
    Using the database configuration assistant, follwoing scripts will be
    executed:
    -- Setup a database for running Java and the ORB
    SQL>@$ORACLE_HOME/javavm/install/initjvm.sql;
    -- INITialize (load) XML components in JServer
    SQL>@$ORACLE_HOME/xdk/admin/initxml.sql;
    -- Loads NCOMP'ed XML Parser
    SQL>@$ORACLE_HOME/xdk/admin/xmlja.sql;
    -- loads the XMLSQL Utility (XSU) into the database.
    SQL>@$ORACLE_HOME/rdbms/admin/catxsu.sql;
    -- install the Oracle Servlet Engine (OSE)
    SQL>@$ORACLE_HOME/javavm/install/init_jis.sql <$ORACLE_HOME>;
    -- Adds the set of default end points to the server
    -- with hardcoded values for the admin service
    SQL>@$ORACLE_HOME/javavm/install/jisaephc.sql <$ORACLE_HOME>;
    -- turn on J Accelerator
    SQL>@$ORACLE_HOME/javavm/install/jisja.sql <$ORACLE_HOME>;
    -- register EJB/Corba Dynamic Registration Endpoint
    SQL>@$ORACLE_HOME/javavm/install/jisdr.sql 2481 2482;
    -- init Java server pages @$ORACLE_HOME@$ORACLE_HOME@$ORACLE_HOME
    SQL>@$ORACLE_HOME/jsp/install/initjsp.sql;
    -- turn on J Accelerator for JSP libs
    SQL>@$ORACLE_HOME/jsp/install/jspja.sql;
    -- script used to load AQ/JMS jar files into the database
    SQL>@$ORACLE_HOME/rdbms/admin/initjms.sql;
    -- load RepAPI server classes and publish 'repapi' obj
    SQL>@$ORACLE_HOME/rdbms/admin/initrapi.sql;
    -- loads sql, objects, extensibility and xml related java
    SQL>@$ORACLE_HOME/rdbms/admin/initsoxx.sql;
    -- Loads appctxapi.jar for JavaVm enabled Database.Called by jcoreini.tsc
    SQL>@$ORACLE_HOME/rdbms/admin/initapcx.sql;
    -- script used to load CDC jar files into the database
    SQL>@$ORACLE_HOME/rdbms/admin/initcdc.sql;
    -- Loads the Java stored procedures as required by the
    -- Summary Advisor.
    SQL>@$ORACLE_HOME/rdbms/admin/initqsma.sql;
    --Initialize sqlj type feature in 9i db
    SQL>@$ORACLE_HOME/rdbms/admin/initsjty.sql;
    --load java componenets for AQ HTTP Propagation
    SQL>@$ORACLE_HOME/rdbms/admin/initaqhp.sql;
    Test program으로 JVM test해보기
    Java Stored Procedure 만들기
    다음과 같은 순서로 Java Stored Procedure를 만들어 봅니다.
    1. Java program을 만듭니다.
    2. program을 database로 loading합니다.
    3. Java program을 SQL (PL/SQL Wrapper)로 publish합니다.
    4. SQL 또는 PL/SQL에서 만든 Java program을 호출합니다.
    Step 1: Java program을 만듭니다.
    ======
    EchoInput.java
    public class EchoInput {
    public static void main (String[] args){
    for (int i=0; i<args.length;i++)
    System.out.println(args);}}
    Step 2: program을 database로 loading합니다.
    ======
    UNIX prompt상에서 다음을 실행합니다:
    % loadjava -u scott/tiger -v -r EchoInput.java
    또는 SQL*Plus에서는 다음과 같이 할 수도 있습니다:
    CREATE OR REPLACE JAVA SOURCE NAMED "EchoInput" AS
    public class EchoInput { public static void main (String[] args) {
    for (int i=0; i<args.length;i++) System.out.println(args[i]);}}
    Step 3: Java program을 SQL (PL/SQL Wrapper)로 publish합니다.
    ======
    SQL 또는 PL/SQL에서 만든 Java program을 호출하기 위해서는
    Java program을 SQL (PL/SQL Wrapper)로 publish해야 합니다.
    이과정을 PL/SQL Wrapper를 만든다고도 합니다.
    일단 published/wrapped가 되면 SQL 또는 PL/SQL을 통해 호출될 수
    있습니다.
    예제 :
    create or replace procedure echo_input (
    s1 varchar2, s2 varchar2, s3 varchar2)
    as language Java
    name 'EchoInput.main(java.lang.String[])';
    Step 4: SQL 또는 PL/SQL에서 만든 Java program을 호출합니다.
    ======
    call dbms_java.set_output(5000);
    call echo_input('It', 'works', 'now!');
    주의 : SQL*Plus에서 실행할 경우 먼저 'set serveroutput on'을
    해주시기 바랍니다.
    결과 화면
    SQL> set serveroutput on
    SQL> call dbms_java.set_output(5000);
    Call completed.
    SQL> call echo_input('It', 'works', 'now!');
    It
    works
    now!
    Call completed.
    SQL>
    Example
    Reference Documents

  • Integrating Google Maps in Oracle Apex and 404 Not found error page

    Currently using APEX version 3.2.0.00.27 installed in OracleXE version 10.2.0.1.0. Have been attempting to recreate some examples of Google Maps within APEX. Found a nice set of examples here that build up to what I'm looking to ultimately do by incorporating google maps into APEX:
    http://blog.whitehorses.nl/2009/10/04/integrating-google-maps-in-oracle-apex/
    Unfortunatly, I'm getting the "404 Not Found, Not found, The requested URL /apex/wwv_flow.accept was not found on this server" page when I try to recreate the "Map with Search" example. I'd like to see if this really works using the html input and button tags in the body/region source versus creating APEX items to pass the address values to the javascript in the html header of the apex page. I'm thinking it's just an html thing within APEX that you have to do it a certain way, but I haven't managed to hit that magic combination. have gone to the google maps api v2 and looked at the html they use (it's what these examples with apex are based on) and tried that just to see. Same 404 result.
    I've seen suggestions at this forum and elsewhere that the 404 error is due to a bug. have been to metalink, and really haven't seen anything that spells out what the bug is and how to patch it or work around it. May be I just haven't found the right note/doc yet. have seen suggestions to change something associated with the Anonymous account that APEX uses. Have turned on authentication in the application to use an APEX user account with a logon page to the application. Still get the 404. Although, I have not adjusted anything elsewhere, like a DADS config file, because the apex/xe configuration is using the plsql gateway. Not sure of any procedure for changing settings on anonymous account when using plsql gateway.
    Open to suggestions. APEX 3.2 is customer version, so going to 4 may not be an option yet. XE, on the other hand, can certainly be swapped for an 11g version standard or enterprise edition if need be. I don't think this is a db version problem though. I think it's more on the APEX side of things.
    Anyway, any help or suggestions are appreciated.
    thanks
    rtp
    Edited by: RTP on Jun 24, 2011 10:30 AM

    Hi I have the same problem.... if you found the solution, please put it here to see it... I need a solution to this its urgent!!
    Thanks!!

  • Java Stored Procedure via Function Give 0RA 600 from SQL Workshop and App

    Hi,
    Anyone experienced stored procedures or functions failing when called from APEX app or SQL Workshop ( ora 600 ) yet they work fine when called from SQLPlus?
    Sqlplus connected as my apex workspace schema owner:
    select net_services.test_db_connection_via_ldap(
    'APEXPRD1', 'test1', 'test1', null ) as result from dual;
    RESULT
    The database connection attempt was SUCCESSFUL
    From Apex Sql Worshop:
    select net_services.test_db_connection_via_ldap(
    'APEXPRD1', 'test1', 'test1', null ) as result from dual;
    ORA-00600: internal error code, arguments: [16371], [0x434B08150], [0], [], [], [], [], [], [], [], [], []
    NOTE: Same result when run in response to button push on page in application.
    Apex Version: 3.2.1.00.10
    Oracle Version: 11.1.0.7.0
    NOTE: I am using the embedded plsql gateway; was going to try NOT using it to see if it was shared server related (seemed to be from trc files)
    Any ideas?
    Since the code works from sqlplus, I know that it's good: Here some snippets
    -- ========================================================================================
    public class NetServices extends Object {
    public static String doTestDbConnectionViaLdap
    String piDbConnUrl,
    String piUserName,
    String piUserPassword
         String vResult = null;
    try
         Connection conn = null;
         OracleDataSource ods = new OracleDataSource();
         ods.setUser( piUserName );
         ods.setPassword( piUserPassword );
         ods.setURL( piDbConnUrl );
         conn = ods.getConnection();
         conn.close();
         vResult = "The database connection attempt was SUCCESSFUL";
    } catch ( SQLException e )
         int vErrCode = e.getErrorCode();
         String vErrMsg = e.toString();
              if ( vErrCode == 1017 ) {
              vResult = "The database connection attempt FAILED! Incorrect Username or Password";
         } else if ( vErrCode == 17433 ) { // Null Username or Password
              vResult = "The database connection attempt FAILED! You must provide both a Username and a Password";
         } else if ( vErrCode == 17002 ) {
              vResult = "The database connection attempt FAILED! Net Service Name was Not Found";
         } else if ( vErrCode == 17067 ) { // NULL Net Service Name
              vResult = "The database connection attempt FAILED! You must provide a Net Service Name";
         } else {
              vResult = "The database connection attempt FAILED! Error " + vErrCode;
    return vResult;
    } // method: doTestDbConnectionViaLdap
    -- ========================================================================================
    function do_test_db_connection_via_ldap
    pi_db_conn_url IN VARCHAR2,
    pi_user_name IN VARCHAR2,
    pi_user_password IN VARCHAR2
    return VARCHAR2
    is -- PRIVATE to the net_services package
    language java -- NOTE: See cr_java_class_NetServices.sql for actual java implementation
    name 'NetServices.doTestDbConnectionViaLdap
    ( java.lang.String, java.lang.String, java.lang.String ) return java.lang.String ';
    -- ========================================================================================
    function test_db_connection_via_ldap
    pi_net_service_name IN VARCHAR2,
    pi_user_name IN VARCHAR2,
    pi_user_password IN VARCHAR2,
    pi_search_base IN VARCHAR2
    return VARCHAR2
    is -- PUBLIC procedure
    v_url      VARCHAR2(256);
    begin
    g_err_source := 'NET_SERVICES.test_db_connection_via_ldap';
    g_err_action := 'build_jdbc_conn_url_using_oid';
    /*     NOTE: We don't want to assert the parameters because we don't want to raise
    an exception;
    -- Get the jdbc connection url that uses oid info
    v_url := build_jdbc_conn_url_using_oid( pi_net_service_name, pi_search_base );
    return( do_test_db_connection_via_ldap( v_url, pi_user_name, pi_user_password ) );
    end test_db_connection_via_ldap;
    -- ========================================================================================
    Thanks in advance for your consideration.
    Troy

    Troy:
    You could be right in your guess that the error is related to MTS. Search Metalink for '16371'. Why not switch your APEX app to use OHS and test whether the error persists. ?
    varad

Maybe you are looking for

  • HT1766 How can I get a photo out of the iPhone camera roll to use in an email or another program

    I have photos of my car that I took with my iPhone. I'd like to use them for an advertisement to sell the car. How do I get them off the phone or out of the backup folder that iTunes produces when I back up my phone. I'm using a Windows 7 computer.

  • Do Apple stores in Madrid sell iPad 3G SIMS?

    Do either of the Apple stores in Madrid, Spain, sell and activate iPad 3G prepaid accounts on behalf of local mobile providers? If not, what is the recommended approach for a trouble-free purchase and activation? I've read accounts in this discussion

  • Best way to push change data from sql server to windows/web application

    i apologized that i do not know should i ask this question in this forum or not. i have win apps which will load all data initially from db and display through grid but from the next time when any data will change in db or any data will be inserted n

  • Can we run the Transfer rule activation in parllel ?

    HI All, As part of BI system refresh I need to activate the transfer rules for three of the source systems by tunning the report RS_TRANSTRU_ACTIVATE_ALL . I have many systems and each one taking around 1-2 hours and my doubt now whether I can go for

  • Compass / Location services questions??

    Will my compass be correct and work with the location services turned off? Also, how much of a battery saver is having the location services turned off? I have heard both sides, some saying it helps a lot and some not so much.