Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unable to connect to oracle with "bool(false)" message

696154Aug 3 2011 — edited Aug 12 2011
Hi,
my php unable to connect to database with message "bool(false)"

connect string :
$c = oci_connect("userid", "pwd", "db");
if (!$c)
{echo "unable to connect: ". var_dump(oci_error());
die();}

os : Linux Centos 5.2
php version : php 5.1.6
apache version : 2.2.3
Oracle version : 10g Rel.2
Oracle + apache + php on the same machine.

i hv followed instruction from php.net/manuel/en/oci8.installation.php and my oci8 environment was set as my oracle bash_profile environment but still can't get connected.

is there any post similiar with this ?
any help would be appreciated.
tks.

Edited by: HeLmi on Aug 3, 2011 2:40 PM

Comments

EJP
http://forum.java.sun.com/thread.jspa?threadID=748677.

Also you must use the same ObjectOutputStream and ObjectInputStream for the life of the socket.
843790
but how come sometimes I have this error and sometimes it works perfectly fine ?
EJP
Because of the occasional network transmission problems I discussed in the thread I referred you to.
843790
Thanks for the thread link.. interesting description.. ;)
so is there any way to solve this issues..?
if you look at the code, basically what im trying to do is the following:
- a client connect to a server using sslsocket.
- server receive the connection and reply with the first part of the data and keep the connection open.
- then client receive the reply and request for another data using the same socket connection
- then server receive the next request and reply with the second part of the data and close the connection when the loop is finish.

what im trying to do is actually to chunk the download size. consider I need to download a 20MB of data from the server, using a single request is fine, but client have to wait for sometime until all the data is downloaded. so im trying to chunk the data into several part, and the server will send the chunk of data one by one. so the moment client receive the first part of the data, it will display it directly and at the same time will process the next data.

creating a new socket request for each chunk of data will be slow since it has to keep open and close the socket to server several times.

so in short, im trying to utilize one socket connection to do several data communication between client and server.
can you help point out what i did wrong in doing this..? or a link to any site providing example in doing this..?

Thanking you in advance for your help and sorry for the length of the post.. :)
EJP
Nothing wrong with what you're doing. There is a problem in the network somewhere.
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 9 2011
Added on Aug 3 2011
5 comments
661 views