I think you didn't startup your listner. Otherwise you when you started your sqlplus, you would have seen user name/password invalid those kind of messages. Try this:
Login as oracle owner, then:
"lsnrctl start"
then:
"svrmgrl"
"connect interal"
"startup"
"quit"
then try "sqlplus", if you can logon, you should be able to get the connection through the script.
GOOD LUCK!
Paul Rogers wrote:
Michael
Many thanks for your reply.
I checked tnsnames.ora and it exists and appears to point to the right server etc.
If I run sqlplus and enter thew user as "edm"
I get exactly the same error messages.
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory.
If, however I enter the user as "edm@edm" it works fine.
Also, on making your suggested changes to the oratest.php file the connection is made with no errors.
It appears that the database name (?) is not being sent to oracle unless it is specifically stated.
There is obviuosly some thing wrong with my client installation. I did manage to find the error messages on the oracle web site but they are not particularly helpful.
Do you have any more ideas?
Many thanks
Paul