[quote]+------------------------------------------------+
| MySource Error |
|------------------------------------------------|
| DB Error: extension not found |
+------------------------------------------------+[/quote]
PHP info reports:
[attachment=205:phpoci.jpg]
So either something is wrong with php or we can't actually get to the database for one reason or another.
:blink: any help appreciated.
phpoci.jpg (15.5 KB)
Not really -- it doesn't look like a valid Oracle DSN to me, but I'm not an Oracle expert. Usually, you'd have something like oci8://user:password@SID where the SID is defined in a tnsnames.ora file. Or, you could create a complete DSN by embedding the full TNS reference. Your Oracle DBAs should be able to provide a proper DSN for you.
That example requires a tnsnames.ora configured correctly to support the dbserver.example.com identifier. Setting up Matrix with Oracle requires onsite Oracle DBA support, so that they can configure Oracle appropriately. It's far more complicated than a PostgreSQL configuration.
AVI is right....you need a current TNSNAMES.ORA file that contains the reference (sid) to the oracle database you wish to use. The TNSNAMES file is used by the oracle client (installed on your application server) to connect to oracle databases. The TNSNANES.ORA file is typically installed in <oracle_client_home>/network/ADMIN.
Here is an example of an entry in the TNSNAMES.ORA......
I would not recommend using an IP address to resolve an oracle database connection, you would only do this in a situation where an ORACLE client has not been installed (and you do not want to be in that situation)..... :lol: .....Avi is right, ORACLE installations are typically are complex and require a good working knowledge of ORACLE.....
You will also need to ensure that Apache has at least the following environment variables configured, or else you'll still get DB: Connect Failed errors:
If you're using the Instant Client (and remember to use the 32-bit version, regardless of OS, as PHP only works properly against the 32-bit Instant Client), you can point ORACLE_HOME and TNS_ADMIN to the Instant Client directory and put your tnsnames.ora file in there as well. The ORACLE_SID will obviously be whatever the SID of your Oracle instance is.
[quote]You will also need to ensure that Apache has at least the following environment variables configured, or else you'll still get DB: Connect Failed errors:
ORACLE_SID
ORACLE_HOME
TNS_ADMIN[/quote]
ummm, slightly confused where these go. I've added ORACLE_HOME and TNS_ADMIN paths to my bash_profile
If you've rolled your own Apache, you should have a /path/to/apache/bin/envvars script that Apache reads when it starts up. You can set them in there. If you're using a packaged version of Apache, you'll have to find the appropriate script. On RHEL/CentOS, that's usually in /etc/sysconfig/httpd (I think -- I'm not 100% sure and I don't have a RHEL box handy to check).
Double-posting to say that (and correct me if I'm wrong) it sounds like you don't have a lot of Oracle experience, which is going to make your life very difficult. All the scripts will need to be aware of these environment variables, including the cronjobs. You also need to tweak your Oracle instances to support Matrix properly. It's way more tedious than using PostgreSQL and we only recommend it in Oracle-only shops that have fulltime Oracle DBAs to babysit the database.
Thanks Avi, you are correct I have no experience of Oracle we took on a Oracle DBA the other week though
Problem I have now is my CentOS install now has a problem on reboot of 'No Inittab Found' :blink:' /> <img src='http://forums.matrix.squiz.net/public/style_emoticons/<#EMO_DIR#>/sad.gif' class='bbc_emoticon' alt=':(