Doug McMahon (Oracle employee) has an excellent open source module for Apache. Apache PL / SQL Gateway Module (Mod_owa)
https://oss.oracle.com/projects/mod_owa/dist/documentation/modowa.htm
I use it in a production environment and I highly recommend it. It is really fast and great.
You need to compile, but it's worth it to use Apache 2.4 and mod_plsql.
Steps:
- download httpd 2.4.? from apache.org + extract
- If Centos 6 or less loads apr and apr-util
configure with enable-so, make and make install
./configure --enable-so --with-apr = / usr / local / apr --with-apr-util = / usr / local / apr
Download mod_owa + unzip
create an empty directory. Copy all files with "apache24" to the new folder. Copy all files from "src" to the new folder
enter a new folder and edit modowa.mk <- it is important to add $ ORACLE_HOME, edit APACHE_TOP
Copy mod_owa.so to apache modules
Add modowa.conf to apache conf / dir.
Example modowa.conf:
loadModule owa_module modules/mod_owa.so <Location /pls> Options None SetHandler owa_handler OwaUserid user/pass OwaNLS AMERICAN_AMERICA.AL32UTF8 OwaPool 100 OwaStart "package.procedure" OwaDocProc "wwv_flow_file_mgr.process_download" OwaDocTable photos_upload BLOB_CONTENT OwaUploadMax 50M OwaCharset "utf8" order deny,allow allow from all OwaReset LAZY OwaCharsize 4 OwaFlex package.procedure OwaHttp REST </Location>
Before running httpd ORACLE_HOME, you must set NLS_LANG (ORACLE_SID also, if local). He needs access to Oracle Home using libclntsh.so. (Oracle client will do).
I just added oracle.conf (one line the full path to oracle home / lib) in /etc/ld.so.conf.d(+ ldconfig)
Truly scalable and cleaner tuning than OHS.
source share