Compiling Apache 1.3.9 & PHP 3.0.12 to use Oracle 8.1.5 on SuSe 6.2

Hi!
I am trying to compile the above packets but am running into massive problems.
PHP3 compiles well, if i try to use the "normal" static module for Apache, but the Apache configure script says that it needs an ANSI C compiler and stops.
I am using GCC 2.7.2.3 with the bugfixes from SuSe.
Since that did not work I tried the configuration as a Dynamic Module. The Apache "Readme.config" explains two ways to do so, but the first has the same problem with GCC and the second (via APXS) compiles Apache without problems, but PHP3 wont compile since it does not find a library. The exact error is: "/usr/i486-linux/bin/ld: cannot open -lclntsh: No such file or directory"
I found a libclntsh.so.8.0 in the oracle/lib directory, but since i fumbled around with this library (i tried ln -s libclntsh.so.8.0 libclntsh.so) sqlplus says libclntsh.so.8.0: cannot find file data: no such file or directory (even now that the link is deleted again).
And PHP still wont compile. Any ideas would be welcome.
P.S.: Is it normal that Oracle has to be told NOT to create a database during install, TO create a database???
We worked for 3 days on the Oracle installation and that was the only way to install Oracle without errors.
thx
Uwe Schurig

Lee Bennett (guest) wrote:
:Hi
:I have successfully installed Oracle 8.1.5 Enterprise edition
on
:Suse 6.2 and applied the 8.1.5.0.1 patch set,
NO!
SuSe 6.2 have a patch file for Oracle made from their developers.
Never use Oracle 8.1.5.0.1 patch file that doesn't work because
us bugged.
Use SuSe 6.2 Oracle patch set.
(don't remember the web page where you can download it but a
search with word "oracle" from SuSe homepage will lead you to
it)
-Stefano
null

Similar Messages

  • Compiling Apache 2.2 and php 5.2 from source on Arch

    Hi there
    Wanting to compile Apache 2 with PHP 5 on my Arch server. I figure this must be frequently done by people out there wanting more control over how their servers are setup, and was wondering if anyone had some good documentation for this? If none exists I'm keen to work on putting it up on the Arch Wiki.
    I've compiled apache httpd-2.2.16 from source already, and have it running nicely.
    Apache compile options were:
    ./configure --prefix=/usr/local/apache \
    --enable-rewrite --enable-ssl --enable-so \
    --enable-mime-magic --enable-suexec \
    --enable-static-rotatelogs \
    --disable-imap --disable-userdir --enable-cgi \
    --disable-dav \
    --disable-proxy-connect --disable-proxy-ftp --disable-proxy-http --disable-proxy \
    --disable-authnz-ldap
    $ /usr/local/apache/bin/httpd -Vvv
    Server version: Apache/2.2.16 (Unix)
    Server built: Sep 6 2010 06:10:41
    Server's Module Magic Number: 20051115:24
    Server loaded: APR 1.4.2, APR-Util 1.3.9
    Compiled using: APR 1.4.2, APR-Util 1.3.9
    Architecture: 32-bit
    Server MPM: Prefork
    threaded: no
    forked: yes (variable process count)
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D APR_USE_SYSVSEM_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D DYNAMIC_MODULE_LIMIT=128
    -D HTTPD_ROOT="/usr/local/apache"
    -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
    -D DEFAULT_PIDLOG="logs/httpd.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="logs/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="conf/mime.types"
    -D SERVER_CONFIG_FILE="conf/httpd.conf"
    Now installing PHP from source is proving to not work out so easily.
    root@server: ~/source-programs/apache/httpd-2.2.16/php-5.2.14
    $ ./configure with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php
    configure: warning: with-apxs2=/usr/local/apache/bin/apxs: invalid host type
    loading cache ./config.cache
    checking for Cygwin environment... (cached) no
    checking for mingw32 environment... (cached) no
    checking for egrep... (cached) grep -E
    checking for a sed that does not truncate output... (cached) /bin/sed
    checking host system type... with-apxs2=/usr/local/apache/bin/apxs
    checking target system type... with-apxs2=/usr/local/apache/bin/apxs
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc ) works... yes
    checking whether the C compiler (gcc ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking how to run the C preprocessor... (cached) gcc -E
    checking for icc... no
    checking for suncc... no
    checking whether gcc and cc understand -c and -o together... (cached) yes
    checking how to run the C preprocessor... gcc -E
    checking for AIX... no
    checking whether ln -s works... (cached) yes
    checking for system library directory... lib
    checking whether to enable runpaths... yes
    checking if compiler supports -R... (cached) no
    checking if compiler supports -Wl,-rpath,... (cached) yes
    checking for gawk... (cached) gawk
    checking for bison... (cached) bison -y
    checking for bison version... (cached) invalid
    configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).
    checking for flex... (cached) flex
    checking for yywrap in -lfl... (cached) yes
    checking lex output file root... (cached) lex.yy
    checking whether yytext is a pointer... (cached) yes
    checking for working const... (cached) yes
    checking for flex version... (cached) invalid
    configure: warning: flex versions supported for regeneration of the Zend/PHP parsers: 2.5.4 (found: )
    checking for re2c... no
    configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking whether to force non-PIC code in shared modules... no
    checking whether /dev/urandom exists... yes
    checking for pthreads_cflags... (cached) -pthread
    checking for pthreads_lib... (cached)
    Configuring SAPI modules
    checking for AOLserver support... no
    checking for Apache 1.x module support via DSO through APXS... no
    checking for Apache 1.x module support... no
    checking whether to enable Apache charset compatibility option... no
    checking for Apache 2.0 filter-module support via DSO through APXS... no
    checking for Apache 2.0 handler-module support via DSO through APXS... no
    checking for Apache 1.x (hooks) module support via DSO through APXS... no
    checking for Apache 1.x (hooks) module support... no
    checking whether to enable Apache charset compatibility option... no
    I end up with the PHP bin files, but just can't get the module to compile.
    $ /usr/local/apache/php/bin/php -v     
    PHP 5.2.14 (cli) (built: Sep  6 2010 05:37:45)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    Have tried to make Apache execute php bin via CGI without any luck, but I think I'd rather work on compiling PHP into a module properly.
    Any help or pointers in the right direction would be greatly appreciated.
    Thanks
    Last edited by craig_nz (2010-09-08 08:07:13)

    Thanks for this!
    Using:
    ./configure \
    --with-apxs2=/usr/local/apache/bin/apxs \
    --prefix=/usr/local/apache/php \
    --disable-cgi
    --enable-so \
    --enable-rewrite \
    make
    libtool --finish /root/source-programs/apache/httpd-2.2.16/php-5.2.14/libs
    In /usr/local/apache/modules I get:
    libphp5.a  libphp5.la
    No libphp5.so yet but closer.. Also looking at how I can use ABS just to compile php.

  • Oracle 8i + Apache 1.3.9 + PHP 3.0.14

    I have installed oracle 8.1.5 with patch 2 on my redhat 6.1, it seems to work fine ( sqlplus svrmgrl, etc. ). So I recompiled my PHP 3.0.14 to use OCI8. But something must be wrong. When I restarted Apache to load php module, it died immediately. In redhat 6.1, nothing output in error.log, and in mandrake 7.0, it said that "caught SIGTERM". I don't know why, then I had to restart the computer, it worked, but could not use oci functions to connect dbserver ( error code -12545 ). And when I restarted httpd, the same error as above happened. Does anybody encounter this error? Who can help me?

    I've been able to get Apache_1.3.(9|11|12)+PHP-(3.0.1[45]|4.0b4pl1)+Oracle-8.1.5.0.2 to work (OCI8 API calls) but with much difficulty.
    Compiling was pretty straightforward. I used APXS to load the PHP module. However, when I start Apache with the PHP modules loaded and added, Apache would die (no hints, etc.) What I did was start Apache without PHP loaded, reconfigure in PHP once Apache started and THEN restart apache. This works for me. Kinda tedious, though. And the time when Apache is running without support for PHP would allow anyone to see my PHP code with my database password.
    (Incidentally, how should I configure Apache so it doesn't serve files which end in .php[3] unless it was through the PHP module?)
    I've emailed the Apache OCI8 module developers about it (Stig and Thies) so I hope it'll be resolved soon.

  • How to install Apache Web Server with PHP on Sun Solaris Sparc machine

    Hi,
    We are trying to install the Apache Web Server and the PHP package on a Sun Solaris Sparc machine running on SunOS 5.8. We are having compilation problems with the source code of both these packages.
    Does anybody know if there are ready solaris packages for Apache and PHP available from where we can download and install instead of source code compilation?
    Or any instructions / things to watch for when installing Apache with PHP (if anybody has tried installing Apache with PHP on Sun Solaris earlier) is most welcome.
    Thanks,
    Harish

    Apache should be bundled along with Solaris check in "/var/apache" in Solaris 8 and Solaris 9
    php is available at www.php.net
    I found an old document for installing PHP maybe this will help.
    Cheers
    -Dhruva
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++Installing PHP 3.x for Apache 1.x.x on Solaris
    Introduction
    This document describes how to install PHP for Apache on Solaris.
    You should have Apache installed before trying to install PHP.
    If you want to use PHP with MySQL then you must install MySQL first.
    Before we Begin
    1. These instructions assume that you have Apache installed according to instructions.
    Getting PHP
    1. You must be logged in as root to perform this installation.
    su root
    2. I save all my downloads in:
    /usr/local/dist
    If you don't already have one, you may need to create that directory now:
    mkdir /usr/local/dist
    3. You can get PHP 3.0.14 from here(www.php.net).
    cd /usr/local/dist
    ftp ftp.php.net
    cd pub/distributions
    bin
    get php-3.0.14.tar.gz
    bye
    Installing PHP
    1. We will install PHP in /usr/local/build, but use a tricky tar command
    to do it in on hit from the download directory:
    cd /usr/local/dist
    tar xvfz php-3.0.12.tar.gz -C ../build
    Compiling PHP
    1. First let's get where the action is:
    cd /usr/local/build/php-3.0.14
    2. You now have 3 options:
    * Simple PHP install without MySQL - goto step 3
    * Simple PHP install with MySQL - goto step 4
    * Custom PHP install - goto step 5
    3. Simple PHP install without MySQL. Next, jump to step 6.
    ./configure --with-apache=../apache_1.3.12
    4. Simple PHP install with MySQL. MySQL must be installed before you can configure PHP to use it. I recommend that MySQL should always be reachable with /usr/local/mysql. Even if you install it else where you
    should create a symbolic link from /usr/local/mysql. Otherwise the compiler can have problems finding the mysqlclient library. The command
    should look like this:
    ./configure with-mysql=/usr/local/mysql with-apache=../apache_1.3.12
    Next, jump to step 6.
    5. Custom PHP install. Take a look at the available configuration directives by using this command:
    ./configure --help
    6. Now we can make the PHP executable. This may take a while.
    make
    7. Now we install the PHP module with:
    make install
    Adding the PHP Module to Apache
    1. Now we have to setup Apache to include the PHP module:
    cd ../apache_1.3.12
    2. Re-configure Apache to use the PHP module. You should use your previous Apache configure command along with the PHP activate module directive.
    You can see your previous Apache configure command by doing:
    cat config.status
    You can configure Apache using the previous command with the added PHP module by doing:
    ./config.status --activate-module=src/modules/php3/libphp3.a
    If you used the simple Apache install from instructions the command will look like this:
    ./configure prefix=/usr/local/apache activate-module=src/modules/php3/libphp3.a
    3. Make and install Apache with PHP enabled:
    make
    4. We need to stop the server before installing the files:
    /usr/local/apache/bin/apachectl stop
    5. Now we can install the new binaries:
    make install
    6. Start apache again (now running the new php enabled version):
    /usr/local/apache/bin/apachectl start
    Setting Up PHP
    1. We have to tell Apache to pass certain file extensions to PHP. We do this in Apache's httpd.conf file.
    cd /usr/local/apache/conf
    2. Edit the httpd.conf file. If you do a search for php you will find a couple of commented out lines telling Apache to use the PHP module. You should uncomment them to look like this.
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    3. I prefer to use the extension .phtml, you can use whatever extension you like (even .html) by adding lines to httpd.conf like this:
    AddType application/x-httpd-php3 .phtml
    Check that it Works
    1. We have to restart Apache to make these changes take effect on the running server.
    cd /usr/local/apache/bin
    ./apachectl restart
    2. Apache should now be running with PHP enabled. The server version should include PHP/3.0b2.
    ./apachectl status
    Apache Server Status for dev.synop.com
    Server Version: Apache/1.3.9 (Unix) PHP/3.0.12
    Server Built: Oct 25 1999 00:37:07
    3. Now it is time to test PHP with a page. The simplest thing to do is create a page called test.php3. My file is here. This file contains the
    following text:
    <?php phpinfo(); ?>
    4. Point your browser at this file on the virtual host which you used:
    http://localhost/test.php3

  • Linux CentOS 4.4 + Oracle Database 10.2.0.1 + Apache 2.0.59 + PHP 5.2.0

    Hi.
    I get this error:
    Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in /usr/local/apache/htdocs/oci8test.php on line 3
    Can you help me?

    Marcello, i've already read that documentation:
    "[...] Note: If you are using Oracle 10.2 but not the Express Edition, you must give the "nobody" user access to the Oracle directory. With Oracle 10.2.0.2 there is a script $ORACLE_HOME/install/changePerm.sh to do this."
    With Oracle 10.2.0.2... but with 10.2.0.1?
    I made "nobody" user member of the "oinstall" group (bad idea, i know), but still it doesn't works...

  • Error compiling Apache 2.0.55

    Hello
    I've been trying to compile Apache 2.0.55 with Sun Studio 11 running on Solaris 9 and I get the following error:
    ld: fatal: file /usr/local/ssl/lib/libssl.so: wrong ELF class: ELFCLASS64
    ld: fatal: file /usr/local/ssl/lib/libcrypto.so: wrong ELF class: ELFCLASS64
    ld: fatal: File processing errors. No output written to dftables
    *** Error code 1
    make: Fatal error: Command failed for target `dftables'
    Current working directory /opt/src/httpd-2.0.55/srclib/pcre
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive'
    Current working directory /opt/src/httpd-2.0.55/srclib/pcre
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive'
    Current working directory /opt/src/httpd-2.0.55/srclib
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive'
    These are my compile options:
    ./configure prefix=/usr/local/apache2 with-port=80 with-server-uid=www with-server-gid=www enable-mods-shared=all with-mpm=worker enable-ssl enable-proxy enable-proxy-connect enable-proxy-http enable-cache target=sparc64-sun-solaris2.9
    Any ideas what this means please?
    Thanks.
    J

    You are not showing ocmpiler options, you are showing Apache configuration options.
    The actual compiler options appearing on the cc (or CC) command lines are not consistent. It appears you are compiling for 64 bits and linking for 32 bits.
    All the object files must be 32-bit or all 64-bit, and all the compile and link commands must specify the same architecture.

  • For David Powers - Apache 2.2 and php 5.2. Virtual hosts

    Hi David,
    I have updated to the latest Apache and PHP
    Apache 2.2 and php 5.2. Must easier instal,
    But now I'm setting up Virtual hosts to make it easier to use
    php
    includes and DW templates.
    I have followed instructions on page 86 of above book, but I
    can't
    find the section NameVirtual Host on Apache's httpd.conf and
    it is
    much shorter than 950 lines.
    Malcolm N_
    ~Malcolm N....
    ~

    On Sun, 21 Jan 2007 11:49:47 -0000, "Dave Buchholz"
    <[email protected]> wrote:
    >Malcolm,
    >
    >a different David I know but you will find an updated
    tutorial on the "real"
    >David's site here
    http://foundationphp.com/tutorials/apache22_vhosts.php
    Many thanks David - I had found his revised tutorial on
    installing
    Apache - but I must have missed the bit on virtual hosts.
    That's great - I've not got all my sites working as virtual
    hosts (:-)
    Now to play with relative links / links to php include files
    in
    templates. !!!
    I'm going to try to get headers, footers and nav panels etc
    out of the
    main template(s), and do what Murray has been nagging
    everyone to do
    for ages.....
    I wasn't getting on well with that with before !! - standby
    for more
    questions.
    I had to read two of David's excellent books about three
    times - eh !.
    Malcolm
    ~Malcolm N....
    ~

  • Compiling apache 2.2.11

    Hey guys I am trying to compile apache from source on 10.4.11 and i am getting the following error when trying to run make.
    Snowflake:/usr/local/src/httpd-2.2.11 stewart$ make
    Making all in srclib
    Making all in pcre
    /opt/subversion/build-1/libtool --silent --mode=compile gcc -DDARWIN -DSIGPROCMASKSETS_THREADMASK -no-cpp-precomp -I/usr/local/src/httpd-2.2.11/srclib/pcre -I. -I/usr/local/src/httpd-2.2.11/os/unix -I/usr/local/src/httpd-2.2.11/server/mpm/prefork -I/usr/local/src/httpd-2.2.11/modules/http -I/usr/local/src/httpd-2.2.11/modules/filters -I/usr/local/src/httpd-2.2.11/modules/proxy -I/usr/local/src/httpd-2.2.11/include -I/usr/local/src/httpd-2.2.11/modules/generators -I/usr/local/src/httpd-2.2.11/modules/mappers -I/usr/local/src/httpd-2.2.11/modules/database -I/opt/subversion/include/apr-1 -I/opt/subversion/include -I/usr/local/src/httpd-2.2.11/modules/proxy/../generators -I/usr/local/src/httpd-2.2.11/modules/ssl -I/usr/local/src/httpd-2.2.11/modules/dav/main -c maketables.c && touch maketables.lo
    /bin/sh: line 1: /opt/subversion/build-1/libtool: No such file or directory
    make[3]: * [maketables.lo] Error 127
    make[2]: * [all-recursive] Error 1
    make[1]: * [all-recursive] Error 1
    make: * [all-recursive] Error 1
    I have xcode 2.5 installed

    Did you run configure before you ran make?
    Is it possible you have a MacPorts directory in your search path (I'm suspicious of /opt/subversion).
    Did you know OS X already has Apache?
    Eric

  • Apache 2.0 and PHP 5

    Hello,
    I have a Customer who wants to develop an application with IAS 9.0.4. There should be an Integration of PHP 5 as Apache module mod_php (using the following PEAR packages)
    - DB
    - DB_LDAP
    - Auth
    - Config
    - File
    - Log
    - XML_Serializer
    and additional Apache modules mod_ssl and mod_dav should also be used.
    Has somebody done something similar.
    I know that this is not official supported, but I just wan t to know if there are technical traps or bugs which could be show stopper.
    thanks in advance for your help
    Martin

    Recent traffic on php.internals makes me think the note in
    http://www.php.net/manual/en/install.apache2.php
    "Do not use Apache 2.0 and PHP in a production environment
    neither on Unix nor on Windows." is still valid.
    -- CJ

  • Compile Apache plug-in for WL7.1 SP4

    Hi all,
    Several advisories of Apache have been published. We would like to acquire the latest Apache version. According to the information of BEA. Apache plug-in of WL71SP4 is only provided for Apache 2.0.42-2.0.49. As a result, a new plug-in is needed: we would like to compile one.
    We only have compiled Apache plug-in (with WL71SP4). We cannot find the source in WL71SP4.
    Does anyone know how can I compile a Apache plug-in for the latest Apache version? Preferably, we would like to use APXS for the compilation.
    Does anyone know if we can use the existing plug-in in latest Apache version? We have encountered problems before -- the plug-in refuses to start and complains about incorrect magic string of the Apache version.
    Thank you very much.
    Regards.

    I'm using the mod_wl_ssl.so for Apache on Linux from service pack 5. I
              understand that the communication from Apache to WLS will be via http...
              that's not the issue.
              I think what would solve the issue would be if someone from BEA could post
              an httpd.conf file that was configured correctly to use the ssl proxy for
              Apach on Linux. Also, I can't seem to get clarification if openssl is or is
              not supported.
              Can you post a correctly configured httpd.conf file that was used in testing
              the ssl proxy as well as confirm whether or not openssl is supported???
              Steve...
              Vinod Mehra wrote:
              > Also note that currently we do not support https between the plugins and
              >
              > WebLogic. https requests will be degraded to http. So the WebLogicPort
              > parameter in the plugins should point to the http port of WebLogic.
              >
              > https between plug-ins and WebLogic will be available in near future.
              >
              > --Vinod.
              >
              > Vinod Mehra wrote:
              >
              > > > Are there any known issues with the Apache SSL proxy???
              > >
              > > No
              > >
              > > > I've setup the ssl
              > > > proxy but can't access any WL content via https... http works ok
              > > > though. Also,
              > > > does BEA support openssl or just Stronghold and Raven???
              > >
              > > Yes. Try using mod_wl_ssl.so from 510 SP4 or later.
              > >
              > > --Vinod.
              

  • Apache doen't load php module

    I've tried to get php running on the apache server on leopard. I've modified the httpd.conf to load the php5 module (removed the #) but when i open a php file, the screen is blank, and the source shows the php code.
    I tried to stop and restart the webserver but it didn't help
    Does anyone know what the problem could be? It could be the httpd.conf file, does anyone have a working version of this file? Thanks.

    I solved the problem,
    Apache did load the php module, it just didn't see that the files were php. There was a problem with the extensions. The original phpinfo file was saved as .rtf and then changed to .php. Apparently apache didn't recognize the file as php.
    I made a new file and saved it as .php from the beginning. Problem solved.

  • Dumb PHP ? How do I use PHP in .html files.[solved]

    I've googled but I just seem to be missing it.
    Could someone please point me to documentation or tell me what/how do I enable the Apache server to process inline php in .html files?
    Last edited by FeatherMonkey (2008-03-25 16:51:21)

    http://www.desilva.biz/php/phpinhtml.html
    Instead of using htaccess, you can just change httpd.conf.
    Last edited by lucke (2008-03-25 16:02:56)

  • Exception:org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection

    Hi All,
    i am using jdev version 11.1.1.5.0
    and deployed my Adf application on Apache Tomcat 6.0.
    in my use case i have created simple adf application using adf business component. create a vo based on eo and drag-drop on jspx page.
    i have created JNDI data source in Apache server using edit context.xml file and add following line-
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"  accessToUnderlyingConnectionAllowed="true" />
    3.using same data source in my adf applicatioin as -
      right click on AM --> Configuration-->edit-->select connection type jdbc datasource  -->java:/comp/env/jdbc/TestDB  
    4. after that i have deployed my application on apace server but when i have running application i have got following error-
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
    i have goggling and find  following solution-
    oracle.jdbc.driver.OracleConnection delConn = (oracle.jdbc.driver.OracleConnection) ((org.apache.tomcat.dbcp.dbcp.DelegatingConnection)c_stmt.getConnection()).getDelegate();
    but my problem is that i'm using Adf Business Component so where i set following type casting.
    Is there any method on ADF BC which handle JNDI Data source setting or any other way to do this.
    thanks in Advance
    Manish

    Hi dvohra21,
    thanks for reply.
    i don't understand where i go to set accessToUnderlyingConnectionAllowed =true
    i have already set this property on context.xml file
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"  accessToUnderlyingConnectionAllowed="true" />
    any other place where i set this propery
    please elaborate this steps how to Configuree DBCP

  • Can we use oracle reports with php

    hello
    any body know about that oracle reports can use in php or not if not any reason if can use any example oracle report and php ill very thankful to all for this help bye
    from farooq

    It depends on what you mean by 'use oracle reports within php'. If you generate reports as urls (don't know if oracle reports supports this but I think it does), you can just link to them or catch them in an iframe.
    If you are talking about generating a report from inside a php script, you can use a system() call to execute oracle reports tools such as 'rwrun'. If you do this, make sure your php server has proper oracle environment variables (such as ORACLE_HOME)

  • Oracle Database 10.2.0.1 + Apache 2.0.59 + PHP 5.2.0

    Hi all.
    Where can i find the changePerm.sh script for Oracle Database 10.2.0.1?
    I get the error:
    Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in /usr/local/apache/htdocs/oci8test.php on line 3
    Help me, please!
    Giovanni D'Ascola

    in Apache dir write short file: something.php
    <? phpinfo() ?>
    and access it via browser to see if there is oci defined.
    BTW. when you start apache you should se oracle (oci) variables to get access :-)

Maybe you are looking for

  • CLOB datatype question

    Hi, I have a question regarding CLOB datatypes. The scenario is as follows: In our existing oracle 8i database, we have a tables say "inquiry" and another table "inq_details". The details table has a LONG field where we create a new record every time

  • How to refer to MainPage?

    Hi, been using VB 2010, and now using 2013 to write a phone app, getting the hang of it. How do I refer to the MainPage? Previously, my main page was a FORM object, so I could call a function like Form1.Beep () or refer to a control with Form1.ListBo

  • How to migrate DB from single node 10gR2 to RAC 11gR2 on diff platform?

    How to migrate DB from single node 10gR2 to RAC 11gR2 on different platform with possible minimum downtime? We have a situation of upgrade/migrate oracle 10gR2 single instance DB to 2-node RAC 11gR. The source OS is Solaris 10 on SPARC and the target

  • Installment based payment terms

    SAP Gurus, Can you please tell me how to create installment based payment terms in sap. With any situable scenario...... Regards.

  • Query in Web Interface

    Hello all, as described in the "How to integrate BEX Web application into BPS WEB Interface" i've implemented the below listed coding. In the query we ask for a from and to date. Depending on the users setting i have to build the filter value for the