Can you anymore share the config.php for the oracle 11g database?
I was not able to install through the GUI.
I use Oracle driver type: Native/oci
Error: Database connection failed
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
( ! ) Warning: oci_new_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and LD_LIBRARY_PATH are set and point to the right directories in /var/www/html/moodle234oracle/lib/dml/oci_native_moodle_database.php on line 191 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0002 | 253416 | {main} | ../install.php:0 |
2 | 0.0183 | 2850440 | install_db_validate | ../install.php:265 |
3 | 0.0183 | 2850592 | oci_native_moodle_database->connect | ../installlib.php:184 |
4 | 0.0183 | 2868408 | oci_new_connect | ../oci_native_moodle_database.php:191 |
( ! ) Warning: oci_new_connect(): Error while trying to retrieve text for error ORA-01804 in /var/www/html/moodle234oracle/lib/dml/oci_native_moodle_database.php on line 191 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0002 | 253416 | {main} | ../install.php:0 |
2 | 0.0183 | 2850440 | install_db_validate | ../install.php:265 |
3 | 0.0183 | 2850592 | oci_native_moodle_database->connect | ../installlib.php:184 |
4 | 0.0183 | 2868408 | oci_new_connect | ../oci_native_moodle_database.php:191 |
I also read through the Solaris 10 wtih Oracle installation.
However, I was able to install through commandline and I can see tables were created as well, but I got error
Error: Database connection failed
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
Below is my config.php that I did though php install.php
<?php // Moodle configuration file
unset($CFG); global $CFG; $CFG = new stdClass();
$CFG->dbtype = 'oci'; $CFG->dblibrary = 'native'; $CFG->dbhost = 'oracle.db.com'; $CFG->dbname = 'moodle'; $CFG->dbuser = 'user'; $CFG->dbpass = '123456789'; $CFG->prefix = 'm_'; $CFG->dboptions = array ( 'dbpersist' => 0, 'dbport' => 1521, );
$CFG->wwwroot = 'https://test.com/moodle234oracle'; $CFG->dataroot = '/opt/moodledataoracle/'; $CFG->admin = 'admin';
$CFG->directorypermissions = 02777;
$CFG->passwordsaltmain = '13Bf47AH2KphH!L+zrubI+{)4G';
require_once(dirname(__FILE__) . '/lib/setup.php');
// There is no php closing tag in this file, // it is intentional because it prevents trailing whitespace problems!
?>
My apache is running apacher user and the oracle client was installed under oracle user.
/var/www/html/moodle
/opt/moodledata
owned by apache
I also set Environment Variable in /etc/profile
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/client_1; export ORACLE_HOME
ORACLE_SID=moodle; export ORACLE_SID
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export PATH
Please help!
Thanks