Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 47018

Moodle 234 installation with Oracle 11G

$
0
0
by Marin Sok.  

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
#TimeMemoryFunctionLocation
10.0002253416{main}egg../install.php:0
20.01832850440install_db_validateegg../install.php:265
30.01832850592oci_native_moodle_database->connectegg../installlib.php:184
40.01832868408oci_new_connect egg../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
#TimeMemoryFunctionLocation
10.0002253416{main}egg../install.php:0
20.01832850440install_db_validateegg../install.php:265
30.01832850592oci_native_moodle_database->connectegg../installlib.php:184
40.01832868408oci_new_connect egg../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

 

 


Viewing all articles
Browse latest Browse all 47018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>