Oracle 10g HTTP Server + PHP

Does anyone know how to enable PHP support on Oracle HTTP Server (from Oracle DB Companion CD)? I tried to compile PHP on it, bet I get the following error:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /u01/app/oracle/product/10.1.0/cp_1/Apache/Apache/bin/apxs follows
ld.so.1: /u01/app/oracle/product/10.1.0/cp_1/Apache/Apache/bin/httpd: fatal: libdms2.so: open failed: No such file
or directory
apxs:Error: Sorry, no DSO support for Apache available
apxs:Error: under your platform. Make sure the Apache
apxs:Error: module mod_so is compiled into your server
apxs:Error: binary `/u01/app/oracle/product/10.1.0/cp_1/Apache/Apache/bin/httpd'.
configure: error: Aborting
Oracle HTTP server does not have DSO support, is there some possibility to enable it? Or there exists another way to enable PHP support on Oracle HTTP server.

Your existing PHP already extracts as binary - that's what is causing
a problem.
The two functions I mentioned convert to ASCII using their respective
encodings. What format you want depends on what you want to do with
the string.
Here is some code that may be helpful.
<?php
// Fetch a RAW and convert to a hexidecimal representation similar to
// fetching it as a SQLT_STR
$c = oci_connect("hr", "hr", "XE");
// Create test table
$s = oci_parse($c, "create table rtable(rcol raw(2000))");
oci_execute($s);
// Load first 2000 bytes of the test.gif image into the RAW
$img = file_get_contents( dirname(__FILE__)."/test.gif");
$img = substr($img, 0, 2000);
$s = oci_parse ($c, "insert into rtable (rcol) values (:bv)");
oci_bind_by_name($s, ":bv", $img, -1, SQLT_BIN);
oci_execute($s);
// Query the RAW and convert to one form of ASCII representation
$stid = oci_parse($c, 'select rcol from rtable');
oci_execute($stid);
print '<table border="1">';
while ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) {
  echo "<tr><td>";
  echo bin2hex($row['RCOL']);
  echo "</td></tr>\n";
echo '</table>';
// Clean up
$stmt = oci_parse($c, "drop table rtable");
oci_execute($stmt);
?>-- cj

Similar Messages

  • Oracle 10g HTTP Web Server on Windows 2008 R2 (64-bit) server.

    I downloaded the Oracle 10g HTTP server for Windows 2008 R2 (64-bit) from the link below
    http://www.oracle.com/technetwork/database/10204-winx64-vista-win2k8-082253.html
    10204_vista_w2k8_x64_production_companion.zip (344,455,851 bytes)
    Did anyone have luck installing the 10g HTTP server on a Windows 2008 R2 (64-bit) server ?
    I could see the installation went fine, but I don't see any "Oracle_HTTP" windows service getting created.

    I have not installed on this OS but I'm betting the service is a different name.
    Check "log on as" under services to narrow your search

  • APEX Oracle 11g HTTP Server - Cannot get SSL working

    I have installed APEX on Oracle 11g with the Oracle HTTP Server on MS Windows server.
    Data base up and running, APEX up an running.
    All works as expected on port 7777
    When I try 4443 I get error message re self signed certificate by Oracle, but if I click through error message I get an https connection.
    I want to replace default cert with a locally signed cert, and get SSL working on 4443, then switch to port 443.
    I have used the Oracle Wallet manager, generated a CSR, had this signed by my corproate CA, and installed the corporate CA cert and the newly signed server cert into the wallet (with Auto Login Set) and saved it in:
    D:\orahttp\Oracle_WT1\instances\apex\config\OHS\ohs1\keystores\infosec2wallet
    This creates two files: ewallet.p12 and cwallet.sso
    I then manually add the group/users "SYSTEM" and "Administrators" to these two files to match the security tab on the default wallet.
    I T then go to the ssl.conf file located at:
    D:\orahttp\Oracle_WT\instances\apex\config\OHS\ohs1\ssl.conf
    and changed the entry:
    #SSLWallet "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/keystores/default"
    SSLWallet "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/keystores/infosec2wallet"
    I then stop and start the Oracle HTTP Server - ohs1 from the start menu.
    Then I try to connect from my desk top machine using the following URL:
    https://us-pghinfosec2.ariba.com:4443/pls/apex/f?p=101:1:
    I get the clasic MS IE Message:
    ==========
    Internet Explorer cannot display the webpage
    Most likely causes:
    You are not connected to the Internet.
    The website is encountering problems.
    There might be a typing error in the address.
    What you can try:
    Diagnose Connection Problems
    More information
    This problem can be caused by a variety of issues, including:
    Internet connectivity has been lost.
    The website is temporarily unavailable.
    The Domain Name Server (DNS) is not reachable.
    The Domain Name Server (DNS) does not have a listing for the website's domain.
    If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.
    For offline users
    You can still view subscribed feeds and some recently viewed webpages.
    To view subscribed feeds
    Click the Favorites Center button , click Feeds, and then click the feed you want to view.
    To view recently visited webpages (might not work on all pages)
    Click Tools , and then click Work Offline.
    Click the Favorites Center button , click History, and then click the page you want to view.
    ==========
    I am at a loss as to what to do. It acts like Oracle HTTP can not open my wallet.
    I suspect it needs the password to the wallet but I cannot find any place to specify the password, and Auto Login should have addressed that issue.
    Any insights welcome.
    Thanks - Elton Hay

    Hello Lakshmi,
    >
    I got your point but in our case HTTP Server and Oracle Database (APEX) running on different machines.
    Oracle HTTP Server running on a Windows 2003 server and Oracle Database running on Sun Solaris machine.
    So do i need to change Oracle 10g HTTP Server? do i need to install Oracle 11g HTTP SErver?
    Please let me know if my question is not clear.
    >
    <ul><li>
    I got your point but in our case HTTP Server and Oracle Database (APEX) running on different machines.Did I missed something?
    You should have mentioned this additional information in the original question itself.
    </li>
    <li>Oracle HTTP Server running on a Windows 2003 server and Oracle Database running on Sun Solaris machine.As long as [url http://docs.oracle.com/cd/E37097_01/doc/install.42/e35123/otn_install.htm#BHAFJJDA]dads.conf is configured correctly there should not be a problem with this.
    From Original question:
    We are having Oracle APEX 3.1 version on Oracle 10g Database and Oracle 10g HTTP Server as web server in our organization.How did this setup of APEX worked?(i.e. on different machines)
    If you still have doubt about this you can do the setup and find out before upgrading.
    </li>
    <li>So do i need to change Oracle 10g HTTP Server? do i need to install Oracle 11g HTTP SErver?This question is answered in the above post. As long as you fulfill the [url http://docs.oracle.com/cd/E37097_01/doc/install.42/e35123/pre_require.htm#CFHIIJBE]HTTP Server Requirements for APEX 4.2 (Also we are discussing this long about only Oracle 10g HTTP Server but which version?)
    </li></ul>
    Hope now I am more clear!
    Regards,
    Kiran

  • Deployment of class file in oracle 10g Application Server

    Hi,
    I have a class file
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorld extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    res.setContentType ("text/html");
    PrintWriter out = res.getWriter();
    out.println("<HTML>");
    out.println("<HEAD><TITLE>Hello World</TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<BIG>Hello World</BIG>");
    out.println("</BODY></HTML>");
    now I like to deploy(in oracle 10g Application Server) and run this file.
    please help me.

    Hi
    You have to deploy Servlet as a WAR File. I hope you already have web.xml file which u can get automatically in eclsipse during creation of servelet. I am not sure what ide u r using here. If u have created servlet in eclipse then I would suggest create a project dynamic webproject if u have not where IDE create all required files autmatiicaly and even you can deploy application from there itself.
    If you wanted to deploy manually then follow below steps (if u have war file)
    I am assuming you already created a Weblogic Domain and have admin username/password. Start your domain. Login into weblogic console like http://host:port/console and use admin username/password. Then from Deployments section, deploy the above WAR file. In Weblogic you can deploy JAR (EJBs, java files), WAR (web jsp, html, webservices, servlets) or EAR (JAR + WAR). In your case its just a WAR file.
    Thanks
    Sujit Singh

  • Win32 Oracle 10g Database Server Installation problems

    Hello,
    I have recently installed the Oracle 10g Database Server for Win32. The installation seemed to be successful. I used the Enterprise option and all the suggested defaults. Ihave the following services installed and started after the installation:
    o OracleDBConsoleORCL [started]
    o OracleOraDb10g_home1iSQL*Plus [started]
    o OracleOraDb10g_home1SNMPPeerEncapsulator [manual]
    o OracleOraDb10g_home1SNMPPeerMasterAgent [manual]
    o OracleOraDb10g_home1TNSListener [started]
    o OracleServiceORCL [started]
    I have created the following files:
    # LISTENER.ORA Network Configuration File: d:\oracle10gServer\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = asparuh)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = d:\oracle10gServer)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ORCL)
    (ORACLE_HOME = d:\oracle10gServer)
    (SID_NAME = ORCL)
    # TNSNAMES.ORA Network Configuration File: d:\oracle10gServer\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = asparuh)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = asparuh)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    I go to the DOS console and type:
    c:> sqlplus scott/tiger@ORCL
    and I get:
    ERROR: ORA-28000: the account is locked
    I did this right after I restarted my computer.
    When I use the Enterprise Manager at:
    http://localhost:5500/em/
    I get for ORCL:
    Status: Status Pending
    Status Pending Since: Unavailable
    Seems that I can never get the database started properly?! When I press the Startup/Shutdown button I get:
    Current Status: open
    This is the correct current database status, although it doesnot match the current status in the sitemap page
    What does this mean? Do you think this may contain the clue to the answer to this problem?
    When I restart the Database I get the same status: unavailable.
    I need your help to resolve this problem. The alternative is to revert back to Oracle 9i DB Server. Thank you in advance.
    gkk

    I can help you with the SCOTT account being locked. Try:
    sqlplus /nolog
    connect / as sysdba
    alter user scott identified by tiger account unlock;

  • Installation of Oracle 10g Application Server in custom port or 1522

    I want to install Oracle 10g Application Server in Port 1522 or some other port as in port 1521 Oracle 10g database server is already installed.
    But every time I try to install Oracle 10g Application Server it give the warning about 1521 port and then start installing on same 1521 port automatically.
    What should I do if I want to install in some other port ?
    Please help
    Thanx

    As a method, to install an OAS on a custom port,
    1) make a file called staticports.ini and define your components/ports there.
    2) on the Specify Port Configuration Options screen, select Manual and specify this file.
    Follow this link for details for 10g.
    http://download.oracle.com/docs/cd/B14099_19/win.1012/install.1012/install/reqs.htm#CHDJACIG
    However, there are ways to use the same port for OAS and DB depending upon the version of your listener. Check the version of your DB Listener, and if it is 10.1.0.2 or higher then you are just good to go with automatic port assignments.
    AMN

  • Deploying Oracle Retail Applications in Oracle 10g Application Server

    Hi All..
    Can anyone help me to know:
    How to Deploy Oracle Retail Applications(like RMS,ReIM,RIB) in Oracle 10g Application Server.
    Regards.

    Hi Ahmed,
    It sounds you have not yet had the chance to lay eyes on the installation guides - they are not perfect but should point you in the right direction.
    Please start at http://www.oracle.com/technetwork/documentation/oracle-retail-100266.html and check out the install guide per application module.
    Best regards,
    Erik

  • Setting of ICONS in Oracle 10G Application Server

    Hi...
    I'm facing a problem of Icons which are not displayed at run time.
    I'm using Oracle 10G Application Server.
    plz tell what setting should i do.
    its urgent.
    Thanks & Regards
    Sanjeev Kumar

    1 did u put the icon file in the forms folder in IAS?
    2 Are you able to access the icon if u directly enter the icon value ?
    http://www.Alexyscorp.com/myicon.gif
    if its not port 80 enter the port
    3 In the httpd.conf file whats the root directory ? Try putting the icon there
    Best Regards
    Rajesh Alex
    Message was edited by: Rajesh Alex
    Alex(AlexysCorp)

  • Anybody installed Oracle 10g application server on windows 2008 (64 bit) se

    Has anybody installed Oracle 10g application server on OS : windows 2008 (64 bit) server.
    which version of OAS we should use?l. we are using dell server .
    regds
    santosh
    Edited by: user5429538 on Feb 24, 2010 2:59 AM

    Hi Santosh,
    Has anybody installed Oracle 10g application server on OS : windows 2008 (64 bit) server.I dont think any version of Oracle Application Server is certified for windows 2008 yes.
    But, u can Install Oracle Application Server 10g Release 2 (10.1.2.0.2) on windows 2003 (64 bit) server
    Please refer below links for download and to check certification:
    http://www.oracle.com/technology/software/products/ias/htdocs/101202.html
    http://www.oracle.com/technology/software/products/ias/files/as_certification_r2_101202.html
    http://www.oracle.com/technology/software/products/ias/files/oracle_soa_certification_101310.html
    Hope helps
    Regards,
    X A H E E R

  • Just installed HTML DB on 9i, can I just use 10G HTTP server?

    I just installed html db from my 10G release 2 dvd (on a machine that only has 9.2.0.6 on it), and went thru the steps outlined on http://www.oracle.com/technology/products/database/htmldb/howtos/howto_use9ir2ohs.html
    I installed the schema SYSAUX in an existing 9i database.
    When I went to start the 9i http server it errors out and seems to not be working on this server, so rather than troubleshoot this can I not just use the 10G http server that was installed?
    If so, I am a complete newbie at this so where might I find a good howto on getting started with HTML DB, I just want to play with it for now, but my eventual goal is to start migrating our MSAccess apps into Oracle and using this as a front end.
    thanks in advance!

    Thanks Sergio, I think I will uninstall it and start again from the link you gave me, I am curious though, on why it has you download the htmldb and unzip/install it manually etc. when it is an option on the 10GR2 dvd shown?
    If I recall correctly, the HTML DB option included the http server already, or is it just the preferred method to install the apache server standalone and HTML DB manually?
    Glen

  • Is it possible to upgrade only apache in oracle 10g application server.

    Hi All,
    I have to upgrade only apache in oracle 10g application server with out upgrading oracle 10g as.
    Is it possibel to upgrade only apache version in oracle 10g application server. if yes.could you suggest the steps that i need to follow.
    This is very urgent.
    Thanks in advance.
    Regards,
    Sathya

    If your trying to upgrade just apache in that oracle home, then no. If your trying to upgrade to a real apache version, from apache.org, mod_oc4j won't work. You need to use Oracle's version of Apache or HTTP Server.
    Is there a reason you only want to upgrade Apache and not the whole oracle home?
    There are ways to do it, but it wouldn't be supported by Oracle and I wouldn't recommend that either.
    Edited by: user11993398 on Apr 13, 2011 3:04 PM

  • Oracle 10g Database Server or Oracle 10g Application Server

    Greetings and Salutations!
    I need to install APEX 3.01 for development purposes and I'm wondering if I need to do an Oracle 10g Database Server installation, an Oracle 10g Application Server installation, and then the APEX 3.01 installation, or is there another way such as an Oracle 10g Application Server installation and then the APEX 3.01 installation.
    I'm confused and I need advice.
    Thanks,
    Charles

    Apex software runs inside the database using the database's PL/SQL engine.
    Apex software is accessed via HTTP requests that may be sent to an HTTP server as included on the database 'companion CD' or in the Application Server.
    Apex installation is described in the APEX install manual at http://www.oracle.com/technology/products/database/application_express/index.html

  • Oracle 10g application server installation and configuration

    Dear All,
    i am going to install oracle 10g application server including forms & report services.
    what is the latest version for oracle 10g application server so that i download and install the correct one.
    please put URL to download the software .
    Thanks & regards,
    Sher khan

    hi,
    for forms and reports purpose you can download standalone oracle forms and reports (version 10.1.2.0.2) component.
    If you want to upgrade it you can upgrade it to 10.1.2.3.0.
    find url for the same :
    http://www.oracle.com/technetwork/middleware/ias/downloads/101202-095224.html
    i'll recommend you to use oracle fusion middleware 11g forms, reports,portal and discoverer component.
    regards,
    Ajinkya

  • Oracle 10G Application Server : Getting Servlet error

    Hi,
    When I am trying to execute the JSP after deploying the same as war file in Oracle 10G Application server, I am getting the following exception.
    I am not sure why this sample jsp is not compiling and giving this classnot found exception.
    Exception is:
    SampleJSP: Servlet error
    javax.servlet.ServletException: java.lang.ClassNotFoundException: Sample_Hello
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:323)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    This is working fine with Tomcat server when I tried to test from my Netbeans IDE.
    thanks

    Hi
    I could figure out the problem. For Oracle AS, we need to include the folloiwng in web.xml file. Now every thing is working fine for me.
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
    <init-param>
    <param-name>check_page_scope</param-name>
    <param-value>false</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
    </servlet>
    Thanks

  • Oracle 10g application server

    Dear All,
    we have implemented the oracle 10g application server 10.1.2.0.2 now we pland to apply patch 3.
    can you guys guide me how to apply patch.
    i am familiar with oracle database from 9i to 11g , and RAC also but not with application server.
    please guide me.
    thanks in advance.

    Hi Sherkhan
    It isn't that difficult but you will need to read its documentation a little bit and should be familiar with the OAS architecture, so that you would know which components are used and where, so that you could upgrade them.
    For latest patches and patch sets for OAS 10g R2, check the following article on MOS/Metalink.
    Oracle Application Server 10g Release 2 (10.1.2) Support Status and Alerts ID 329361.1
    you should start by reading the readme of Patch 5983622 which is Patch Set 3. if you are logged on to Metalink, then access this link:
    direct link to the patchset 3;
    http://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=5983622
    particularly, the first 5 sections. they
    a useful discussion: (probably)
    Re: Patching OID/ DB Upgrade Patch Set 10.1.0.5 before OAS Patch Set 2 or 3
    hope that helps!
    AMN

Maybe you are looking for

  • HT4623 I can't download or update anything on my phone

    How can I update my apps and download music from itunes? My phone stop doing both.

  • Can't find "structure" on drop-down menu on insert tab (CS6).

    One of your tutorials (http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt2.html) says " The Structure category contains all the grouping and structural elements necessary to build the framework for a web page. Click the first option, D

  • Nokia N97, can someone help me please

    Okay i've had my Nokia n97 for more than 6months now and its been working great except lately my facebook app wasn't working and i had to update it, so last night i backed up my files on my mobile and i connected it to the pc and updated it with the

  • OS9 Quicktime update 4.1.2 error-- Pro Tools 5.1.1

    I have a Pro Tools optimized OS9 G4 graphite (?) mac When I try to open Pro Tools LE, I get an error message:   can not be opened because "Soundlib--SoundConverterFillBuffer" could not be found. After googling this error message, on an Avid Forum, I

  • Make Vendor Field Editiable in PO after Adopting the PR

    Hi All, I am facing one problem. When User Creates and Purchase Order by Adopting the Purchase Requisition to it  Vendor field is coming in Display mode. this is not happening when he creates and  PO without Adopting the PR. in this case he can able