首页 > 数据库 > Oracle > 麒麟v10 sp3安装19c的几个问题
问题1:libnsl.so.1: cannot open shared object file: No such file or directory根据网上步骤安装一下:[root@siku-uat-db software] # yum install libnsl2Last metadata expiration check: 0: 13: 01 ago on Wed 17 Jul 2024 08: 37: 23 PM CST.Package libnsl2 -1.3 .0 -2.ky10.x86_64 is already installed.Dependencies resolved.Nothing to do.Complete!查询下so文件[root@siku-uat-db software] # find / -name "libnsl2.so.1" 2>/dev/null[root@siku-uat-db software] # find / -name "libnsl*" 2>/dev/null/usr/lib64/libnsl.so .2/usr/lib64/libnsl.so .2 .0 .1/usr/ share/licenses/libnsl2/ data/u02/app/ oracle/product/ 19.9 .0/db_1/lib/stubs/libnsl -2.17 .0-stub.so/ data/u02/app/ oracle/product/ 19.9 .0/db_1/lib/stubs/libnsl.so .1/ data/u02/app/ oracle/product/ 19.9 .0/db_1/lib/stubs/libnsl.so设置变量再次尝试[root@siku-uat-db software] # export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/lib64/[root@siku-uat-db software] #[root@siku-uat-db software] # su - oracleLast login: Wed Jul 17 20: 41: 45 CST 2024 on pts/ 0-bash: ulimit: open files: cannot modify limit: Operation not permitted-bash: ulimit: max user processes: cannot modify limit: Operation not permitted[ oracle@siku-uat-db ~]$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/lib64/:$LD_LIBRARY_PATH[ oracle@siku-uat-db ~]$[ oracle@siku-uat-db ~]$ $ORACLE_HOME/runInstaller -silent - force -noconfig -ignorePrereq -responseFile / data/u02/app/ oracle/product/ 19.9 .0/db_1/ install/response/db_install.rsp/ data/u02/app/ oracle/product/ 19.9 .0/db_1/perl/ bin/perl: error while loading shared libraries: libnsl.so .1: cannot open shared object file: No such file or directory[ oracle@siku-uat-db ~]$[ oracle@siku-uat-db ~]$[ oracle@siku-uat-db ~]$ cd $ORACLE_HOME[ oracle@siku-uat-db db_1]$ lsaddnode bin css data deinstall dmu env.ora install javavm jlib md nls OPatch ord oui plsql R relnotes root.sh.old .1 sdk sqlj srvm usm xdkapex clone ctx dbjava demo drdaas has instantclient jdbc ldap mgw odbc opmn ords owm precomp racg root.sh runInstaller slax sqlpatch suptools utlassistants crs cv dbs diagnostics dv hs inventory jdk lib network olap oracore oss perl QOpatch rdbms root.sh.old schagent.conf sqldeveloper sqlplus ucp wwg[ oracle@siku-uat-db db_1]$ ./runInstaller -silent - force -noconfig -ignorePrereq -responseFile / data/u02/app/ oracle/product/ 19.9 .0/db_1/ install/response/db_install.rsp/ data/u02/app/ oracle/product/ 19.9 .0/db_1/perl/ bin/perl: error while loading shared libraries: libnsl.so .1: cannot open shared object file: No such file or directory再次设置尝试[ oracle@siku-uat-db db_1]$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/ local/lib:/usr/lib64/:$ORACLE_HOME/lib/stubs:$LD_LIBRARY_PATH[ oracle@siku-uat-db db_1]$ ./runInstaller -silent - force -noconfig -ignorePrereq -responseFile / data/u02/app/ oracle/product/ 19.9 .0/db_1/ install/response/db_install.rspLaunching Oracle Database Setup Wizard...解决办法:export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/ local/lib:/usr/lib64/:$ORACLE_HOME/lib/stubs:$LD_LIBRARY_PATH实际上这里没有彻底解决使用下面的问题 3解决了该问题
问题2 failed to retrieve the operating system distribution IDoracle 不支持麒麟export CV_ASSUME_DISTID=RHEL7.6[oracle@siku-uat-db db_1]$ ./runInstaller -silent -force -noconfig -ignorePrereq -responseFile /data/u02/app/oracle/product/19.9.0/db_1/ install/response/db_install.rspLaunching Oracle Database Setup Wizard...[ WARNING] [INS -32047] The location (/ data/u02/app/oraInventory) specified for the central inventory is not empty.ACTION: It is recommended to provide an empty location for the inventory.[FATAL] An internal error occurred within cluster verification frameworkAn error occurred in creating a TaskFactory object or in generating a task listPRVG -0282 : failed to retrieve the operating system distribution IDMoved the install session logs to:/ data/u02/app/oraInventory/ logs/InstallActions2024 -07 -17_08 -59 -59PM[ oracle@siku-uat-db db_1]$解决办法:export CV_ASSUME_DISTID=RHEL7 .6
问题3:[oracle@siku-uat-db db_1]$ ./runInstaller -silent -force -noconfig -ignorePrereq -responseFile /home/oracle/db_install.rspLaunching Oracle Database Setup Wizard...[WARNING] [INS-13014] Target environment does not meet some optional requirements.CAUSE: Some of the optional prerequisites are not met. See logs for details. installActions2024-07-17_09-16-56PM.logACTION: Identify the list of failed prerequisite checks from the log: installActions2024-07-17_09-16-56PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.The response file for this session can be found at:/data/u02/app/oracle/product/19.9.0/db_1/ install/response/db_2024 -07 -17_09 -16 -56PM.rspYou can find the log of this install session at:/tmp/InstallActions2024 -07 -17_09 -16 -56PM/installActions2024 -07 -17_09 -16 -56PM.log[FATAL] [INS -32250] ADR setup (diagsetup) tool failed. Check the install log for more details.*ADDITIONAL INFORMATION:*- The java.library.path system variable is missing or invalid. Please set java.library.path with a correct value and retry the operation.- Exception in thread "main" java.lang.UnsatisfiedLinkError: no oraInstaller in java.library.path- at java.lang.ClassLoader.loadLibrary(ClassLoader.java: 1867)- at java.lang.Runtime.loadLibrary0(Runtime.java: 870)- at java.lang.System.loadLibrary(System.java: 1122)- at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java: 388)- at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java: 130)- at oracle.sysman.oii.oiip.oiipg.OiipgFileSystem.mkdirs(OiipgFileSystem.java: 1076)- at oracle.sysman.oii.oiix.OiixFileOps.mkdirs(OiixFileOps.java: 312)- at oracle.diagfw.adr.diagsetup.DiagSetup.createAdrDir(DiagSetup.java: 559)- at oracle.diagfw.adr.diagsetup.DiagSetup.createDirsLocal(DiagSetup.java: 418)- at oracle.diagfw.adr.diagsetup.DiagSetup.createDirs(DiagSetup.java: 329)- at oracle.diagfw.adr.diagsetup.DiagSetup.executeMain(DiagSetup.java: 297)- at oracle.diagfw.adr.diagsetup.DiagSetup.main(DiagSetup.java: 260)解决办法:ln -s /usr/lib64/libnsl.so .2 .0 .1 /usr/lib64/libnsl.so .1
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69924215/viewspace-3022695/ ,如需转载,请注明出处,否则将追究法律责任。