[Mono-aspnet-list] Could not allocate the Oracle environment

adler5 adler5 at wp.pl
Tue Oct 20 14:06:28 EDT 2009


I make the Oracle enviroment like this. In my httpd.conf file put line
Include conf/website.conf
My website.conf file contains
Alias /website /var/www/html/website
MonoApplicationsConfigFile website /var/www/mono/website.webapp
MonoServerPath website "/usr/local/bin/mod-mono-server2"
<Location /website>
        Allow from all
        Order allow,deny
        SetHandler mono
        MonoSetServerAlias website
</Location>
I set Oracle enviroments in script /usr/local/bin/mod-mono-server2
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/9.2
NLS_LANG=POLISH_POLAND.EE8MSWIN1250
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
LIBPATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32
PATH=$PATH:$ORACLE_HOME/bin
LD_ASSUME_KERNEL=2.4.19
LANG=pl_PL.iso88592
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_LIBRARY_PATH_32
PATH LD_ASSUME_KERNEL NLS_LANG LIBPATH
LANG
before line
exec /usr/local/bin/mono $MONO_OPTIONS
"/usr/local/lib/mono/2.0/mod-mono-server2.exe" "$@"
Now you can connect to Oracle database.
MK

-- 
View this message in context: http://www.nabble.com/Could-not-allocate-the-Oracle-environment-tp25853066p25979815.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.



More information about the Mono-aspnet-list mailing list