Note: forwarded message attached.
                
---------------------------------
Now you can have a huge leap forward in email: get the new Yahoo! Mail. 
--- Begin Message ---
Could you answer these for me please:

>How do you set the MONO_PATH and what do you set it to?
>How do you source the oraenv script?

thanks,


Mads Bondo Dydensborg <[EMAIL PROTECTED]> wrote: torsdag 12 juli 2007 09:00 
skrev Tolou Taherinia:
> Ive done all the tasks below and no results yet

Sorry to hear about that - you should take it back to the list then. 

Regards,

Mads

> 
> Mads Bondo Dydensborg  wrote: onsdag 11 juli 2007 15:24 skrev 
Tolou Taherinia:
> > Yes ive included both  libclntsh.so.10.1 and libclntsh.so in 
> the /usr/lib/apache2 directory. However, how do you set the LD_LIBRARY_PATH 
> of the 
> > webserver process and what link are you talking about?
> 
> Well, if you have done that, you may be OK - but it does not work, so 
probably 
> not.
> 
> About the paths:
> 
> Libraries (.dll's) that the applications must access when running, are most 
often placed in wellknown system directories, such as /lib and /usr/lib. 
Whenever a process wants to load a library, the libraryloader looks in these 
directories. This is configurable in /etc/ld.so.conf (or something similar). 
Additionally, the library loader also checks any paths in the environment 
variable "LD_LIBRARY_PATH". Finally, some applications know to look at other 
places - apache may - or may not - look in /usr/lib/apache2 for libraries. I 
do not know.
> 
> >Ive included both  libclntsh.so.10.1 and libclntsh.so in /lib as well 
as /usr/lib. Also I included the these paths in ld.so.conf file. Furthermore, 
I added the oracle environment variables inside the .bash_profile.
> 
>       
> export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1   # Path to 
oracle export ORACLE_SID=TCI                                        # Oracle 
DB Name (SID) export PATH=/usr/bin:/usr/sbin/:$ORACLE_HOME/bin             # 
Path to oracle binaries (sqlplus)  export LD_LIBRARY_PATH=$ORACLE_HOME/lib 
> 
> 
> 
> So, that would appear to leave you with at least two choices:
> - Add the lib files to one of the system dirs (/lib /usr/lib, possibly 
others)
> - make sure, that the apache server has a LD_LIBRARY_PATH that includes the 
path where you put the oracle .so files.
> 
> About linking: often you do not move the files around, but use symbolic 
links.You can read more about the dynamic linker in the man ld.so and man 
ldconfig man pages.
> 
> Finally: throwing mono into the mix could mean that Mono perhaps could 
resolve it for you too. There is also the MONO_PATH environment variable.
> >How do you set the MONO_PATH and what do you set it to?
> 
> Also, oracle used to have an "oraenv" script, that you should source?
> >How do you source the oraenv script?
> 
>  Do the webserver do that?
> 
> Hopes that clears it up a bit.
> 
> Regards,
> 
> Mads
> 
> 
> 
> > 
> > 
> > 
> > Mads Bondo Dydensborg  wrote: onsdag 11 juli 2007 11:35 skrev 
> Tolou Taherinia:
> > > Hi,
> > > 
> > > I have oracle 10gR2 installed on suse9.3  and I get the following error 
> when 
> > > I run a web page. Both oracle and mono work well on their own however 
when 
> > > accessing the database from a web page this error occurs.   
> > 
> > Are you sure the libclntsh.so file is in the library path of the web 
server?
> > 
> > Probably you need a link somewhere, or setting the LD_LIBRARY_PATH of the 
> > webserver process.
> > 
> > Regards,
> > 
> > Mads
> > 
> > 
> > >  
> > > Any help would be greatly appreciated.
> > > 
> > > Description: Error processing request.  Error Message: HTTP 500.  
> > >  Stack Trace:  
> > > System.DllNotFoundException: libclntsh.so.10.1
> > > in <0x0004a> (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate 
> > 
> 
(intptr&,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
> > > in <0x0001f> System.Data.OracleClient.Oci.OciCalls:OCIEnvCreate 
> > 
> 
(intptr&,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
> > > in <0x0003c> System.Data.OracleClient.Oci.OciEnvironmentHandle:.ctor 
> > (System.Data.OracleClient.Oci.OciEnvironmentMode)
> > > in <0x00037> System.Data.OracleClient.Oci.OciGlue:CreateConnection 
> > (System.Data.OracleClient.OracleConnectionInfo)
> > > in <0x00028> System.Data.OracleClient.OracleConnection:Open ()
> > > in <0x00038> (wrapper remoting-invoke-with-check) 
> > System.Data.OracleClient.OracleConnection:Open ()
> > > in <0x0007d> Oracle.WebForm1:Button1_Click (object,System.EventArgs)
> > > in <0x00045> (wrapper delegate-invoke) 
> > System.MulticastDelegate:invoke_void_object_EventArgs 
> > (object,System.EventArgs)
> > > in <0x00069> System.Web.UI.WebControls.Button:OnClick (System.EventArgs)
> > > in <0x00040> 
> > 
> 
System.Web.UI.WebControls.Button:System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
 
> > (string)
> > > in <0x00016> System.Web.UI.Page:RaisePostBackEvent 
> > (System.Web.UI.IPostBackEventHandler,string)
> > > in <0x00033> System.Web.UI.Page:RaisePostBackEvents ()
> > > in <0x00238> System.Web.UI.Page:InternalProcessRequest ()
> > > in <0x000a9> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
> > > in <0x00233> ExecuteHandlerState:Execute ()
> > > in <0x0007c> StateMachine:ExecuteState 
> > (System.Web.HttpApplication/IStateHandler,bool&)
> > > 
> > > 
> > >        
> > > ---------------------------------
> > > All new Yahoo! Mail  
> > > ---------------------------------
> > > Get news delivered. Enjoy RSS feeds right on your Mail page.
> > 
> > -- 
> > Med venlig hilsen/Regards
> > 
> > Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo 
> Dydensborg
> > Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 
77 
> 34
> > 
> > 
> >        
> > ---------------------------------
> > Be smarter than spam. See how smart SpamGuard is at giving junk email the 
> boot with the All-new Yahoo! Mail  
> 
> -- 
> Med venlig hilsen/Regards
> 
> Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo 
Dydensborg
> Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 77 
34
> 
> 
>        
> ---------------------------------
> Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail  

-- 
Med venlig hilsen/Regards

Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo Dydensborg
Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86 77 34


       
---------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot 
with the All-new Yahoo! Mail  

--- End Message ---
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to