Thursday, September 3, 2009

Possible issues during Oracle 8i installation on Solaris 9

Issue 1: JRE not found when invoking runInstaller

bash-2.05$ /oradata/stage/Disk1/runInstaller
bash-2.05$ The Java RunTime Environment was not found at bin/jre. Hence, the Oracle Universal Installer cannot be run.
Please visit and install JRE version 1.1.7 or higher and try again.
: No such file or directory

Solution: Use the runInstaller under Disk1/install/solaris folder

bash-2.05$ /oradata/stage/Disk1/install/solaris/runInstaller
Initializing Java Virtual Machine from /tmp/OraInstall/jre/bin/jre. Please wait...

Issue 2: Error in invoking target ntcontab.o of makefile /oradata/product/8.1.7/network/lib/ins_net_client_mk

/usr/ccs/bin/make -f ntcontab.o ORACLE_HOME=/oradata/product/8.1.7
(if [ "assemble" = "compile" ] ; then \
/oradata/product/8.1.7/bin/gennttab > ntcontab.c ;\
cc -c ntcontab.c ;\
rm -f /oradata/product/8.1.7/lib/ntcontab.o ;\
mv ntcontab.o /oradata/product/8.1.7/lib ;\
/usr/ccs/bin/ar rv /oradata/product/8.1.7/lib/libn8.a /oradata/product/8.1.7/lib/ntcontab.o ; fi)
(if [ "assemble" = "assemble" ] ; then \
/oradata/product/8.1.7/bin/gennttab > ntcontab.s ;\
/usr/ccs/bin/as -P -o ntcontab.o ntcontab.s ;\
rm -f /oradata/product/8.1.7/lib/ntcontab.o ;\
mv ntcontab.o /oradata/product/8.1.7/lib ;\
/usr/ccs/bin/ar rv /oradata/product/8.1.7/lib/libn8.a /oradata/product/8.1.7/lib/ntcontab.o ; fi)
Error in finding run directory. Using default /opt/SUNWspro/binerror: Unable to find current directory
make: Fatal error: Command failed for target `ntcontab.o'
*** Error code 1

Solution: change the underline folder for mount point ownership and permission

bash-2.05# umount /oradata
bash-2.05# ls -ld /oradata
drwxr-x--- 2 root other 512 Aug 24 17:52 /oradata
bash-2.05# chown oracle:oinstall /oradata
bash-2.05# chmod 755 /oradata
bash-2.05# mount /oradata

Btw, following banner shows installation completed succesfully.

SQL> select * from v$version;

Oracle8i Enterprise Edition Release - Production
PL/SQL Release - Production
CORE Production
TNS for Solaris: Version - Production
NLSRTL Version - Production