[Mono-aspnet-list] Could not allocate the Oracle environment
ibrahimsteed
ibrahim.steed at gmail.com
Tue Oct 13 23:14:06 EDT 2009
Thanks for your instant reply.
I did as you said, and update my httpd.conf as follow, then restart apache2.
but the same error occurs again. I don't know what cause this
happen.:confused:
#some default settings
MonoSetEnv ORACLE_BASE=/opt/oracle/oradb
MonoSetEnv ORACLE_HOME=/opt/oracle/oradb/home
MonoSetEnv ORACLE_SID=imapdb
Include /etc/apache2/conf.d/mod_mono.conf
Alias /cmdgen "/home/ibrahim/cmd"
AddMonoApplications default "/cmdgen:/home/ibrahim/cmd"
<Location /cmdgen>
SetHandler mono
Order allow,deny
Allow from all
</Location>
nzsaint wrote:
>
>
> ibrahimsteed wrote:
>>
>> So could you please tell me how to set the env vars above with
>> MonoSetEnv?
>>
>
> As in the example Robert linked to I had the same problem with a Windows
> Service. I added the required environment variables using 'export' in my
> service init script. My understanding according to the documentation is
> that you can do the same with 'MonoSetEnv' for mod_mono e.g
>
> From the shell/script it would be:
>
> export ORACLE_BASE=/usr/lib/oracle/xe/app/oracle
>
> Equivalent for mod_mono would be to add the following to your httpd.conf
> (based on the example you gave):
>
> MonoSetEnv ORACLE_BASE=/usr/lib/oracle/xe/app/oracle
>
> So probably something like (actual values may differ on your system):
>
> MonoSetEnv ORACLE_SID=XE
> MonoSetEnv ORACLE_BASE=/usr/lib/oracle/xe/app/oracle
> MonoSetEnv ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
>
> These were the three values I required to resolve this error on my system.
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Could-not-allocate-the-Oracle-environment-tp25853066p25884705.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list
mailing list