How to build libphp4.so with oracle database library ?

Hi there ,
I am hoping to build a PHP+ORACLE enviroment to carry on performance testing,the configuration as belows:
Oracle Database 10.2.0.4 Release, Oracle Application Server 10.1.3.4, php 4.4.9.
Referring to http://www.oracle.com/technology/products/ias/ohs/htdocs/php_ohs.htm#4.2
1. tar xvf php-4.4.9.tar
2.Set the following environment variables ORACLE_HOME, OAS_HOME,PERL5LIB, LD_LIBRARY_PATH
export OAS_HOME=/home/oracle/ias1013
export ORACLE_HOME=/home/oracle/db1024
export PERL5LIB=$OAS_HOME/perl/lib/5.8.3:$OAS_HOME/perl/lib/site_perl/5.8.3
export LD_LIBRARY_PATH=/home/oracle/db1024/lib:$OAS_HOME/lib:$LD_LIBRARY_PATH
3.Edit the apxs file to modify the CFG_INCLUDE value in $OAS_HOME/Apache/Apache/bin/apxs
4.configure and install
cd /home/oracle/php-4.4.9
./configure with-apxs=$OAS_HOME/Apache/Apache/bin/apxs prefix=$OAS_HOME
with-config-file-path=$OAS_HOME/Apache/Apache/conf with-oci8=$ORACLE_HOME --disable-rpath
5.'configure' succeeded without any errors then issue "make install-sapi" at command prompt.
Once the make command is executed properly libphp4.so is generated at the /home/oracle/php-4.4.9/libs/ location and copied to $OAS_HOME/Apache/Apache/libexec/ location
6.Activates php4 module for http server by adding entry "LoadModule php4_module libexec/libphp4.so" in http server config file $OAS_HOME/Apache/Apache/conf/httpd.conf
7.Post install
cp /home/oracle/php-4.4.9/php.ini-dist $OAS_HOME/Apache/Apache/conf/php.ini
Navigate to the $OAS_HOME/Apache/Apache/conf. Edit the httpd.conf file as follows:
# And for PHP 4.x, use:
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps.
After i have done all above steps , i checked the dependency of share object file:libphp4.so
$ ldd libphp4.so
/usr/lib/libcwait.so (0x00e5f000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00aa5000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00979000)
libm.so.6 => /lib/tls/libm.so.6 (0x0041d000)
libdl.so.2 => /lib/libdl.so.2 (0x00f8b000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00b3e000)
libclntsh.so.10.1 => not found
libc.so.6 => /lib/tls/libc.so.6 (0x00458000)
/lib/ld-linux.so.2 (0x00930000)
"libclntsh.so.10.1 => not found" makes me very confused, i think it should be "libclntsh.so.10.1 =>/home/oracle/db1024/lib/libclntsh.so.10.1" as expected.
I am not sure the libraries uesed for building libphp4.so come from application server lib or database lib,
I will appreciate for your any helps!!
Regards,
Edward

Did the shell running ldd have LD_LIBRARY_PATH set?
Last time I tried this, I built PHP with the libraries from Instant Client, not $ORACLE_HOME. See the section on Installing OCI8 with Oracle Application Server on Linux in http://www.oracle.com/technology/tech/php/pdf/underground-php-oracle-manual.pdf
Perhaps try removing the --disable-rpath option?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to develop ADF Mobile with Oracle Database remotely

    As my company is using Oracle Database and using ADF to development many Web-based apps and We just begin to develop in ADF Mobile.
    We can't find any tutorial about to using Oracle Database with ADF, How we can using it in ADF Mobile ?
    Thanks for your help !

    Hi,
    ADF mobile supports SOAP and REST services for business services access. This means that for you to work against an Oracle database, you need to create a business services that can be exposed as a service for WS DC consumption as explained in the ADF Mobile documentation. Your options are
    1. EJB / JPA : Create entities from database table and then create a session facade on top. This then can be declaratively exposed as a WebService. Use the WSDL reference and start New --> WebService -> WS Data Control in your ADF Mobile project
    2. ADF BC can be exposed as a Service Interface and this to ADF Mobile. To create an ADF BC service you can read the product documentation or this: http://www.oracle.com/technetwork/issue-archive/2012/12-sep/o52adf-1735897.html
    See this video: https://blogs.oracle.com/shay/entry/developing_with_oracle_adf_mobile for how to integrate this in ADF Mobile
    Frank

  • How to integrate android application with oracle database using oracle mobile database server.

    Hi,
    I developed one web application using oracle database. I want to implement same web application in android. My problem is how to integrate android application with existing oracle database using oracle database mobile server. Can u please guide me how to install oracle database mobile server and how to integrate android app with existing oracle database..
    Thank you.

    In the Database Mobile Doc set there is an entire book that covers the Installation of Oracle Database Mobile Server.   Chap 4 of that book contains screen shots and all kinds of information that will help guide you through the installation.   We also have a doc on the different mobile clients.  Chap 2 of that guide covers installs and integration of an android app. 
    thanks
    mike

  • How to run local host web application in win 7 64 bit with oracle database?

    Hi all,
    Hope doing well,
    sir i am running my local host web application with oracle database in win 7 32 bit. it's working fine.
    but when i am running the same thing in win 7 64 bit. it's showing login error.
    not going to home page even i checked with this published file open in visual studio it's working fine.
    how to run it correctly?
    thanks in advance.

    The number of times you have been asked to post sufficient details for your questions, we would expect you to have got the message by now... but clearly not.
    952646 wrote:
    but when i am running the same thing in win 7 64 bit. it's showing login error.What error? You haven't posted an error. There are millions of possible errors in computing and you're expecting people to guess which one.
    not going to home page even i checked with this published file open in visual studio it's working fine.
    how to run it correctly?No code, no database version, no details...... = NO HELP.
    When are you going to learn.

  • How to Connect Forms or any version with Oracle Databases 8/6i/9i/10i/11i

    I want to know that how can i cannect Developer Forms / Reports with Oracle Databases with various versions and say developer 2000 to Oracel 6i/9i/10i/11i etc

    Using the appropriate setting in tnsnames.ora file located in your [Forms_Home]\network\admin directory.
    Sim

  • Does Oracle OLAP comes with Oracle Database 10g ?

    1.Does Oracle OLAP comes with Oracle Database 10g or do we need seperate software to have this ?.
    2.If I create a Cube with Analytic work space manager the cube is going to be stored in the Database ( meaning the in the table space where OLAP is Stored).
    3. What is the difference between Analtyic work space manager and discoverer For Olap.
    Help is higly appreciated ..
    Thanks, Prasad

    One thing to point out : The OLAP option is a costed database option, so while this is automatically installed and part of your database you do have to purchase additional licenses to use this feature. You will need to check with your Oracle account manager to see if you are actually licensed to use this feature.
    If you have existing 9i OLAP cubes these can be quickly and easily migrated to 10g OLAP and the documentation explains how to do this. However, there are many new features that are part of 10g OLAP that will improve the performance of your data model that will not be enabled as part of a migration process. Based on my experiences it would be quicker and easier (depending on the size of your existing 9i OLAP cubes) to consider rebuilding your data model using these new 10g features. You should be able to export all the dimensions to XML templates from 9i OLAP and import the templates into the 10g schema and reload your dimensions.
    For the cubes you will probably want to consider using partitioning, composites and compression to provide maximum flexibility and performance for your new data model. There is more information on these features within the OLAP documentation and in the many whitepapers and presentations on the OLAP home page on OTN.
    For moving data from SQL Server to 10g OLAP much depends on the nature of the data transfer. If it is a one-off bulk data load then you could consider using the normal MS command line tools to dump the data out and transfer it to Oracle. Alternatively, you could consider using Oracle Data Integrator to manage the extraction of the SQL Server data and the data load process into Oracle 10g relational tables. If you decide to use Data Integrator this will require additional licenses.
    If you can extract the data from SQL Server to flat files you can use Oracle Warehouse Builder (basic ETL is free as part of the 10g database license) to load that flat file data via external tables. Warehouse Builder can also be used to define your OLAP data model (think of Warehouse Builder as a more powerful version of Analytic Workspace Manager) and provides tools to load the data directly into your OLAP dimensions and cubes. You can get more information on managing OLAP data models with Warehouse Builder the Warehouse Builder home page on OTN.
    There are no facilities to modify Discoverer Viewer to add customisations. You can add company logos, modify certain colors and/or hide certain features but it is not possible to add additional features. You may want to consider using BI Beans to provide this type of environment. BI Beans is the development framework used to create Discoverer Viewer. You can create customised JSP pages that look identical to Discoverer Viewer pages with the added benefit of providing your own specific features. You can get more information on the BI Beans home page on OTN.
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Upload file in JSP with Oracle Database 10gR2

    How to upload file with oracle database 10gR2??
    i can't find how to upload..
    i've tried to create a procedure in oracle and execute in netbeans but the file save in directory and then from directory save to database.
    it means the file save in 2 location, in directory and database..
    does anybody know how to save file direct from the JSP file into database without save in directory?
    this is the procedure..
    create or replace PROCEDURE load_file (
    p_id number,
    p_photo_name in varchar2) IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := bfilename('DIR_TEMP', p_photo_name);
    -- insert a NULL record to lock
    INSERT INTO temp_photo
    *(id, photo_name, photo)*
    VALUES
    *(p_id , p_photo_name ,EMPTY_BLOB())*
    RETURNING photo INTO dst_file;
    -- lock record
    SELECT photo
    INTO dst_file
    FROM temp_photo
    WHERE id = p_id
    AND photo_name = p_photo_name
    FOR UPDATE;
    -- open the file
    dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
    -- determine length
    lgh_file := dbms_lob.getlength(src_file);
    -- read the file
    dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
    -- update the blob field
    UPDATE temp_photo
    SET photo = dst_file
    WHERE id = p_id
    AND photo_name = p_photo_name;
    -- close file
    dbms_lob.fileclose(src_file);
    END load_file;

    Well your Oracle procedure is designed to load a file, so that's what it does. If you want it to load from a data stream such as an upload, you need to rewrite it accordingly.
    So far this is not a Java question at all.

  • VB with Oracle Database as Backend

    Hi,
    I was trying to do some work in VB with Oracle Database as backend. i got the connection. but the arabic data in the database is not showing properly in VB form. the current values in the table is showing junk characters. if i'm updating a field in arabic from VB form and try to retrieve it after updation, it is returning question marks (?). can somebody tell me how can i get arabic data from Oracle database through VB forms.
    thanks.
    george

    Hi Sonal Patel,
    Yes it is possible. Check the below links for using oracle database in visual composer.
    http://help.sap.com/saphelp_nw04s/helpdata/en/21/58feb70e884bc68a474429ac26f448/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/84/5a8340d990ce62e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/e0/92583ab4da4b9cb524f61ba4267d25/frameset.htm
    Regards
    Basheer

  • Using tomcat with Oracle database?

    I am having some difficulty setting up Tomcat 6.0.16 with JDeveloper 10 and Oracle - I have with the kind help of people here found this:
    ADF-BC4J + MySQL 5 + Tomcat 6
    Which helps me some of the way, but it is for MySQL, not Oracle, and I don't know things well enough to change the XML in a meaningful way.
    I did try to install MySQL, but not extremely hard - I would prefer to use Oracle, anyway. Are there any instructions about how to do this for an Oracle database?

    Please refer
    http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat1p.html
    http://www.akadia.com/download/soug/tomcat/html/tomcat_apache.html#Deploying%20Servlets
    http://www.hansbergsten.com/contrib/solaris-oracle-howto.html

  • ASP application has problems working with oracle database 8.1.7

    ASP application has problems working with oracle database 8.1.7 through both oracle ODBC driver and Microsoft ODBC driver
    We have an ASP application running on Windows 2000 server, and with 8.1.7 Net8Client and MDAC 2.6 SP1.
    The application worked fine with an Oracle 8.0.5 database.
    After upgrading oracle database to 8.1.7.0.0, our ASP application works fine except when updating the same data record more than once. The application is not saving our updates.
    We tested our application using Oracles ODBC driver v8.1.7.5.0
    and experienced more problems. We had problems just bring up our data entry pages. In either case, we are returned with some 505 errors in our browser, problems with the ASP pages and IIS, the page is not displaying.
    If anyone has some suggestions on how to fix my problem, please advise. Thanks in advance.

    thanks...i saw one article with this approach..but the document did not present the detailed process...do you have one? i am still searching for a good procedure to follow...since it is an old database and focusing/studying old versions like this is a pain in the a**... :(

  • Manually register rman backup with oracle database 10g

    Dear All.
    I want to restore full backup of database.
    I have not configure flash_recovery_area.
    how i can manually register full rman backup of database with oracle database 10g.?
    Please help me.
    Thanks & Regards
    Ravi Kumar

    This is the 10gR2 documentation on the CATALOG command :
    http://docs.oracle.com/cd/B19306_01/backup.102/b14194/rcmsynta011.htm#sthref230
    You must be specific when stating the version you are running.  Commands may be limited or unavailable in older versions versus more recent versions of Oracle.
    Hemant K Chitale

  • How to change a connection with the database in Runtime?

    How to change a connection with the database in Runtime?
    My connection was made using ADF Business component (ApplicationModule).
    ADF Swing.
    JDeveloper Studio 11.1.1.4.0.

    When deploying ADF applications with database connection, you should be using JDBC data sources configured in the weblogic server.
    You could change the JDBC data sources to a different DB instance or location - by changing the JDBC data source and restarting the weblogic server.
    For more details, check
    http://techiecook.wordpress.com/2010/12/02/oracle-weblogic-adf-datasources/
    Thanks,
    Navaneeth

  • Bypass Login with Oracle Database

    hello,
    I am using Oracle forms 6i.
    i want to create an application that does not require any connection with Oracle database.
    My Application fetch all its data from an Excel file.
    I do not want Login with Database,so i want to byapass it.
    How can i do it..

    Akarsh wrote:
    hello,
    I am using Oracle forms 6i.
    i want to create an application that does not require any connection with Oracle database.
    My Application fetch all its data from an Excel file.
    I do not want Login with Database,so i want to byapass it.
    How can i do it..Hi Akarsh,
    Use ON-Logon trigger at form lebel
    and put your connection string. then when you run this , it will not ask for connection identifier.
    Hope this works..

  • SAP BO Installation with Oracle Database

    Hello all,
    My client uses SAP R/3 with Oracle database. Now we have to install Business Objects on another machine.
    I've read the documentation on Installing Procedures but there are some questions still not clarified.
    1. Do I have to install Oracle in the new machine?
    2. If not, can I connect BOBJ to the database of the SAP R/3 Server?
    3. If I want to have three systems (Like in R/3, Productive, Tests and Development) do I have to install BOBJ in different machines?
    Thanks in advance,
    Regards

    1. you dont have to insall Oracle database at the BO machine side, you just need any database to hold the BO repository.
    2. you cant connect directly using BO, only Crystal reports can connect directly to R3 database, you need to have a BW in between.
    extract your data into the BW, and let BO connect to BW using the BO integration kit for SAP solutions.
    3. no you dont have to have 3 different machines, using one BO machine you connect to them all, but you may need build a  BO environment, (Development, Production servers)
    good luck

  • SAP NetWeaver 7.2 (SDN-Edu) with Oracle Database

    Hi there,
    I have download the SAP NetWeaver 7.2 from SDN (Trial-Version). So far, the installation went good with MaxDB. But how I can connect to an Oracle Database (11g Release 2)? Do I need to configure JDBC Driver, then customizable DataSource with all the parameter (host, username, password, sid etc.)?
    Navigation in SAP NetWeaver Administration: Configuration Management --> infrastructure --> Application Resources
    The installation of Oracle with creation a database is done. Both, SAP NetWeaver and Oracle are running on the same machine (localhost).
    Many thanks for help,
    Cengiz

    hi spantaleoni, thanks for your anwer.
    you mean something like that (code se below), without to configure a datasource on sap netweaver administration (please see my navigation steps above)?
    public static Connection getOracleConnection() throws Exception {
        String driver = "oracle.jdbc.driver.OracleDriver";
        String url = "jdbc:oracle:thin:@localhost:1521:SID";
        String username = "username";
        String password = "password";
        Class.forName(driver); // load Oracle driver
        Connection conn = DriverManager.getConnection(url, username, password);
        return conn;
    thanks again,
    cengiz

Maybe you are looking for

  • Want to restrict out of 3 @prompts

    Hi Folks, I have one Webi report which has 3 @prompts for Purchase order number, Serial number and Sales order number, User is supposed to enter any one value as these prompts are on OR condition. For example, I enter Serial number and rest as '*'. T

  • Edge 3.1 Data Services connection to SAP ECC 5.0 on AIX server

    I've got a client who is trying to create a Data Services extract from an SAP ECC 5.0 system on an AIX server.  The Data Services is installed on a Windows box and is the Edge 3.1 version. He is able to connect to the SAP datastore, is able to import

  • Office 2013 and Windows 2008 R2 SP1 AD RMS

    Hi All, I have installed Windows 2008 R2 SP1 AD RMS service, and it works well with Office 2010/2007, does not however work with office 2013, below is the error I get: sorry, something went wrong opening information rights management protected conten

  • Flickr syncing going haywire

    I'm having a bunch of pretty severe issues with my synced iPhoto sets. In a nutshell, iPhoto seems to get completely confused and either uploads a huge number of duplicates, or more vexing, re-uploads existing photos and deletes the originally upload

  • How significant is the yellow hazard warning for pictures when creating an album using IPhoto?

    How significant is the yellow hazard warning message for pictures when creating an album using IPhoto?