Re: Problema con monodevelop y oracle 10g xe

jonatan anauati <[email protected]>
Newsgroups gmane.comp.gnome.mono.hispano
Message-ID <1223217380.5984.21.camel@dino-thunder>
Buenos días (por lo menos acá en Argentina), para mi caso el 
archivo el archivo "libclntsh.so" no existe realmente, es un 
enlace hacia "libclntsh.so.11.1", no recuerdo si yo mismo lo cree, 
pero notarás lo mismo si hacés un listado del directorio de Oracle 
(ls /usr/lib/oracle/xe/app/oracle/product/10.2.0/server), en el 
caso que no aparesca el archivo "libclntsh.so" pero si aparesca 
"libclntsh.so.11.1" lo que podés hacer es:

Portatil:/home/rodrigo#
cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server

Portatil:/home/rodrigo# ln -s libclntsh.so.11.1 libclntsh.so

y luego esto te solucionaría (teóricamente) tus problemas.

Si todavía seguís con problemas:
Portatil:/home/rodrigo# find / -iname libclntsh.so*
como resultado debeías obtener la ruta completa de cada archivo
encontrado, por ejemplo en mi caso:

jaa@dino-thunder:~$ find / -iname libclntsh.so* 2> /dev/null 
/opt/instantclient_11_1/libclntsh.so
/opt/instantclient_11_1/libclntsh.so.11.1
...
luego:
jaa@dino-thunder:~$ export LD_LIBRARY_PATH="/opt/instantclient_11_1:
$LD_LIBRARY_PATH"
y seteas todas las demás variables).

Por último, verificá que estás ejecutando tu aplicación desde el mismo 
entorno de shell donde definís tus variables, ya que no sirve de nada hacer los 
exports, y luego ejecutar la aplicación desde otra lugar (por ejemplo si tenías 
monodevelop previamente abierto desde tu menú de gui.

Portatil:/home/rodrigo# export
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server

Portatil:/home/rodrigo# export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

y luego sobre la misma instancia de shell corres tu aplicación, para que
tome las variables de entorno (en especial la que necesitas que tome es
LD_LIBRARY_PATH que le indica al loader directorios adicionales para las
librerías):

Portatil:/home/rodrigo# mono TuAplicacion.exe

o en el caso que uses monodevelop:

Portatil:/home/rodrigo# monodevelop
y luego debería de tomarte las variables de entorno.


Buenos espero que te sirva de algo. 
un saludo a todos.


El dom, 05-10-2008 a las 04:26 -0400, Rodrigo Ledezma escribió:
> Tengo oracle en /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
> por lo que en la terminal hice esto
> Portatil:/home/rodrigo# export
> ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
> Portatil:/home/rodrigo# export LD_LIBRARY_PATH=$ORACLE_HOME/lib:
> $LD_LIBRARY_PATH
> Portatil:/home/rodrigo# export PATH=$ORACLE_HOME/bin:$PATH
> 
> Pero aun sigo con el mismo problema.
> 
> El vie, 03-10-2008 a las 15:42 -0400, Juan C. Olivares escribió:
> > Rodrigo:
> > 
> > Tienes que tener definido ORACLE_HOME y las bibliotecas en
> > LD_LIBRARY_PATH... generalmente es así:
> > 
> > export ORACLE_HOME=/tu/path/a/oracle
> > export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> > export PATH=$ORACLE_HOME/bin:$PATH
> > 
> > Atte,
> > JCO
> > 
> > 2008/10/3 Rodrigo <[email protected]>
> >         Esto es el problema
> >         System.DllNotFoundException: libclntsh.so
> >           at (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate (intptr&,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
> >         
> >         
> >           at System.Data.OracleClient.Oci.OciCalls.OCIEnvCreate (System.IntPtr& envhpp, OciEnvironmentMode mode, IntPtr ctxp, IntPtr malocfp, IntPtr ralocfp, IntPtr mfreep, Int32 xtramem_sz, IntPtr usrmempp) [0x00000] 
> >           at System.Data.OracleClient.Oci.OciEnvironmentHandle..ctor (OciEnvironmentMode mode) [0x00000] 
> >         
> >         
> >           at System.Data.OracleClient.Oci.OciGlue.CreateConnection (OracleConnectionInfo conInfo) [0x00000] 
> >           at System.Data.OracleClient.OracleConnectionPoolManager.CreateConnection (OracleConnectionInfo info) [0x00000] 
> >         
> >         
> >           at System.Data.OracleClient.OracleConnectionPool.CreateConnection () [0x00000] 
> >           at System.Data.OracleClient.OracleConnectionPool.GetConnection () [0x00000] 
> >           at System.Data.OracleClient.OracleConnection.Open () [0x00000] 
> >         
> >         
> >           at ASP.default_aspx.Page_Load (System.Object o, System.EventArgs e) [0x0000f] in /home/rodrigo/Aspnet/conexionBD/Default.aspx:23 
> >           at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000] 
> >           at System.Web.UI.Control.LoadRecursive () [0x00000] 
> >         
> >         
> >           at System.Web.UI.Page.ProcessLoad () [0x00000] 
> >           at System.Web.UI.Page.ProcessPostData () [0x00000] 
> >           at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
> >           at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
> >         
> >         
> >         
> >         Alguien sabe como solucionarlo???????????????
> >         
> >         
> >         -- 
> >         Rodrigo Ledezma Jaime
> >         Ing. Ejecución en computación e informática
> >         
> >         
> >         
> >         _______________________________________________
> >         Mono-hispano mailing list
> >         [email protected]
> >         https://listas.hispalinux.es/mailman/listinfo/mono-hispano
> > 
> > 
> 
> _______________________________________________
> Mono-hispano mailing list
> [email protected]
> https://listas.hispalinux.es/mailman/listinfo/mono-hispano
-- 
-
por favor evita el enviarme archivos adjuntos de MS Word. 
Ver: http://www.gnu.org/philosophy/no-word-attachments.es.html
printk("fent linux\n");

_______________________________________________
Mono-hispano mailing list
[email protected]
https://listas.hispalinux.es/mailman/listinfo/mono-hispano
smime.p7s (application/x-pkcs7-signature, 3.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.