2007. 12. 12. 22:43 오라클
genclntsh: Could not locate $ORACLE_HOME/network/admin/shrept.lst
Symptoms
Installation of an Oracle9i/10g patchset may fail with the following error:e.g
/usr/ccs/bin/make -f ins_net_client.mk mkldflags client_sharedlib install
ORACLE_HOME=/u01/app/oracle/product/9.2.0 /u01/app/oracle/product/9.2.0/bin/genclntsh
genclntsh: Could not locate /u01/app/oracle/product/9.2.0/network/admin/shrept.lst
genclntsh: exiting ...
make: Fatal error:
INFO: genclntsh: genclntsh: Could not locate
/app/oracle/product/10.2.0/network/admin/shrept.lst
INFO: *** Error exit code 1
INFO: ld: Can't find library or mismatched ABI for -lclntsh
Fatal error.
INFO: ld: I/O error, file "/app/oracle/product/10.2.0/lib/libclntsh.so":
Invalid argument
Fatal error.
Changes
Installing an Oracle9i/10g patchsetCause
Either the $ORACLE_HOME/network/admin/shrept.lst is missing or it has the wrong file permissionsSolution
Please ensure the $ORACLE_HOME is set:
env | grep ORACLE_HOME
If it is not set, set it and then follow one of the following options:
Option 1:
======
If the file is missing, create $ORACLE_HOME/network/admin/shrept.lst with a text editor and put the following lines into it.
network : snaumihi_inithostinfo network : snaumbg_gmt network : naedpwd_encrypt network : naumbsb_bld_singlebyte network : ztapis
Using the 'ls -al' command, check that the file has 644 permissions:
-rw-r--r-- $ORACLE_HOME/network/admin/shrept.lst
If necessary, change the permissions using the command:
chmod 644 $ORACLE_HOME/network/admin/shrept.lst
Now manually relink using the command 'relink all'
Option 2:
======
If the file is missing, for Oracle9i extract it from the first 9.2.0.1.0 CD as follows:
cd $ORACLE_HOME/network/admin
jar xvf /cdrom/cdrom0/stage/Components/oracle.rsf.net_rsf/9.2.0.1.0/1/DataFiles/admin.1.1.jar shrept.lst
For Oracle10g extract the missing file from the first 10.2.0.1.0 CD as follows:
cd $ORACLE_HOME/network/admin
jar xvf <10.2.0.1staging_area>/stage/Components/oracle.network.rsf/10.2.0.1.
0/1/DataFiles/filegroup8.jar
Using the 'ls -al' command, check that the file has 644 permissions:
-rw-r--r-- $ORACLE_HOME/network/admin/shrept.lst
If necessary, change the permissions using the command:
chmod 644 $ORACLE_HOME/network/admin/shrept.lst
Now manually relink using the command 'relink all'
Option 3:
======
Manually copy the file from another Oracle9i/10g installation
Using the 'ls -al' command, check that the file has 644 permissions:
-rw-r--r-- $ORACLE_HOME/network/admin/shrept.lst
If necessary, change the permissions using the command:
chmod 644 $ORACLE_HOME/network/admin/shrept.lst
Now manually relink using the command 'relink all'