Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> HELP *** libnjni8.so exists on Linux ? configuring Net without netasst ?
Well, i have installed Oracle8i for Linux.
for GUI configuration programs, it uses jre (jdk1.1.6) that i have installed too.
runInstaller and dbassist work fine but netasst doesn't.
I have launch netasst with java (not jre) and it said to me :
libnjni8.so: cannot read file data: Aucun fichier ou répertoire de ce type (libnjni8.so)
Error loading native jni library.
java.lang.UnsatisfiedLinkError: getOracleHome
at oracle.net.asst.container.NetProperties.<init>(NetProperties.java:48) at oracle.net.asst.container.NetContainer.<init>(NetContainer.java:243) at oracle.net.asst.container.NetApplication.init(NetApplication.java:51) at oracle.sysman.emSDK.client.appContainer.WebApplication.main(WebApplication.java:2551)
so i took a look to libnjni8.so but it was an empty file. So the question is :
where could i find libnjni8.so for Linux ? (in ELF little-indian).
the goal is to install TCP/IP listener for my database. Perhaps you know a configuration "by hands" ?
you could take a look at my files :
in the following [hostname, dbname, machine_address, user and passwd are good because we test it on sqlplus] but are not given here because it is not necessary.
listener.ora :
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
(PROTOCOL_STACK =
(PRESENTATION = TTC) (SESSION = NS) )
(PRESENTATION = TTC) (SESSION = NS) )
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = db_name)
(ORACLE_HOME = /u01/app/oracle/product/8.1.5)
(SID_NAME = db_name)
)
)
tnsnames.ora :
db_name =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = db_name)
)
)
sqlnet.ora :
i have put in my /etc/services:
listener 1521/tcp # Net8 listener
and when i execute lsnrctl start :
$ lsnrctl start
LSNRCTL for Linux: Version 8.1.5.0.0 - Production on 01-SEP-99 18:39:28
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Starting /u01/app/oracle/product/8.1.5/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 8.1.5.0.0 - Production System parameter file is /u01/app/oracle/product/8.1.5/network/admin/listener.ora Log messages written to /u01/app/oracle/product/8.1.5/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS))) STATUS of the LISTENER
Alias LISTENER Version TNSLSNR for Linux: Version 8.1.5.0.0 - Production Start Date 01-SEP-99 18:39:28 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security OFF SNMP OFF Listener Parameter File /u01/app/oracle/product/8.1.5/network/admin/listener.ora Listener Log File /u01/app/oracle/product/8.1.5/network/log/listener.log Services Summary... db_name has 1 service handler(s)The command completed successfully
and last but not least :
$ lsnrctl status
LSNRCTL for Linux: Version 8.1.5.0.0 - Production on 01-SEP-99 18:41:28
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS))) STATUS of the LISTENER
Alias LISTENER Version TNSLSNR for Linux: Version 8.1.5.0.0 - Production Start Date 01-SEP-99 18:39:28 Uptime 0 days 0 hr. 1 min. 59 sec Trace Level off Security OFF SNMP OFF Listener Parameter File /u01/app/oracle/product/8.1.5/network/admin/listener.ora Listener Log File /u01/app/oracle/product/8.1.5/network/log/listener.log Services Summary... db_name has 3 service handler(s)The command completed successfully
but i could not at all make a connection with my database :
this instruction :
conn = DriverManager.getConnection("jdbc:oracle:thin:@(description=(address=(host=10.3.0.45)(protocol=tcp) (port=1521))(connect_data=(sid=db_name)) )",user,passwd);
or this one :
conn = DriverManager.getConnection("jdbc:oracle:thin:@machine_address:1521:db_name",user,passwd);
returns the same error message :
No more data to read from socket
Exception in thread "main" java.lang.NullPointerException
at Temp.main(Compiled Code)
Could someone help me ???
bruce.
email address : bruce.vinchon_at_travelprice.com Received on Wed Sep 01 1999 - 04:07:45 CDT
![]() |
![]() |