TA的每日心情 | 开心 2023-8-9 11:05 |
---|
|
在已经部署64位数据库服务器的环境中再安装一套32位的客户端,分为安装包安装和镜像包安装,安装完成后更新opatch 12.2.1.32,然后升级ru到19.16,再做成一个升级好RU的镜像包。
需要在已经部署oracle server的64位服务器上安装32位客户端,客户端现在有两种方式,client.zip是安装包,client_home.zip是镜像包,安装包先解压再安装到ORACLE_HOME,镜像包直接解压到ORACLE_HOME
- sftp> lls -l
- 1134912540 Aug 10, 2022 16:19 LINUX.X64_193000_client.zip
- 987216967 Aug 10, 2022 16:15 LINUX.X64_193000_client_home.zip
- 1018382779 Aug 10, 2022 16:26 LINUX_193000_client.zip
- 917311326 Aug 10, 2022 16:42 LINUX_193000_client_home.zip
复制代码 1.需要的依赖包
部分32位的包需要安装,装到如下情况下,已经没有报错了(可能再少点也行,懒得试了)
- [root@vm2 tmp]# rpm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" \
- > bc \
- > binutils \
- > compat-libcap1 \
- > compat-libstdc++33 \
- > elfutils-libelf \
- > elfutils-libelf-devel \
- > fontconfig-devel \
- > glibc \
- > glibc-devel \
- > ksh \
- > libaio \
- > libaio-devel \
- > libX11 \
- > libXau \
- > libXi \
- > libXtst \
- > libXrender \
- > libXrender-devel \
- > libgcc \
- > libstdc++ \
- > libstdc++-devel \
- > libxcb \
- > make \
- > smartmontools \
- > sysstat
- bc-1.06.95-13.el7 (x86_64)
- binutils-2.27-44.base.el7 (x86_64)
- compat-libcap1-1.10-7.el7 (x86_64)
- compat-libcap1-1.10-7.el7 (i686)
- package compat-libstdc++33 is not installed
- elfutils-libelf-0.176-5.el7 (x86_64)
- elfutils-libelf-0.176-5.el7 (i686)
- elfutils-libelf-devel-0.176-5.el7 (x86_64)
- elfutils-libelf-devel-0.176-5.el7 (i686)
- fontconfig-devel-2.13.0-4.3.el7 (x86_64)
- fontconfig-devel-2.13.0-4.3.el7 (i686)
- glibc-2.17-326.el7_9 (x86_64)
- glibc-2.17-326.el7_9 (i686)
- glibc-devel-2.17-326.el7_9 (x86_64)
- glibc-devel-2.17-326.el7_9 (i686)
- ksh-20120801-142.el7 (x86_64)
- libaio-0.3.109-13.el7 (x86_64)
- libaio-0.3.109-13.el7 (i686)
- libaio-devel-0.3.109-13.el7 (i686)
- libaio-devel-0.3.109-13.el7 (x86_64)
- libX11-1.6.7-4.el7_9 (x86_64)
- libX11-1.6.7-4.el7_9 (i686)
- libXau-1.0.8-2.1.el7 (x86_64)
- libXau-1.0.8-2.1.el7 (i686)
- libXi-1.7.9-1.el7 (x86_64)
- libXi-1.7.9-1.el7 (i686)
- libXtst-1.2.3-1.el7 (x86_64)
- libXtst-1.2.3-1.el7 (i686)
- libXrender-0.9.10-1.el7 (x86_64)
- libXrender-0.9.10-1.el7 (i686)
- libXrender-devel-0.9.10-1.el7 (x86_64)
- libgcc-4.8.5-44.el7 (x86_64)
- libgcc-4.8.5-44.el7 (i686)
- libstdc++-4.8.5-44.el7 (x86_64)
- libstdc++-4.8.5-44.el7 (i686)
- libstdc++-devel-4.8.5-44.el7 (x86_64)
- libstdc++-devel-4.8.5-44.el7 (i686)
- libxcb-1.13-1.el7 (x86_64)
- libxcb-1.13-1.el7 (i686)
- make-3.82-24.el7 (x86_64)
- smartmontools-7.0-2.el7 (x86_64)
- sysstat-10.1.5-19.el7 (x86_64)
复制代码 2.响应文件
- [root@vm1 oracle]# cat c_g_32.rsp| grep -v ^#|grep -v ^$
- oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v19.0.0
- UNIX_GROUP_NAME=oracle
- INVENTORY_LOCATION=/app/oracle/oraInventory
- ORACLE_BASE=/app/oracle
复制代码 3.安装文件
- [oracle@vm2 tmp]$ ll LINUX_193000_client_home.zip
- -rw-r--r-- 1 oracle oinstall 917311326 Aug 10 16:42 LINUX_193000_client_home.zip
- [oracle@vm2 tmp]$ mkdir -p /app/oracle/db/client19
- [oracle@vm2 tmp]$ unzip -d /app/oracle/db/client19 LINUX_193000_client_home.zip
- [oracle@vm2 tmp]$ cd /app/oracle/db/client19
复制代码 4.开始安装
- [oracle@vm1 client19]$ ./runInstaller -silent -ignorePrereqFailure -responseFile /home/oracle/c_g_32.rsp
- Launching Oracle Database Client Setup Wizard...
- [WARNING] [INS-32056] The specified Oracle Base contains the existing Central Inventory location: /app/oracle/oraInventory.
- ACTION: Oracle recommends that the Central Inventory location is outside the Oracle Base directory. Specify a different location for the Oracle Base.
- The response file for this session can be found at:
- /app/oracle/db/client19/install/response/client_2022-08-11_02-40-00PM.rsp
- You can find the log of this install session at:
- /app/oracle/oraInventory/logs/InstallActions2022-08-11_02-40-00PM/installActions2022-08-11_02-40-00PM.log
- Successfully Setup Software.
复制代码 以下是安装包安装过程
5.响应文件
- [oracle@vm2 client32]$ cat /home/oracle/client32.rsp|grep -v ^#|grep -v ^$
- oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v19.0.0
- UNIX_GROUP_NAME=oracle
- INVENTORY_LOCATION=/app/oracle/oraInventory
- ORACLE_HOME=/app/oracle/db/client19
- ORACLE_BASE=/app/oracle/db
- oracle.install.client.installType=Administrator
- oracle.install.client.customComponents=
- oracle.install.client.schedulerAgentHostName=
- oracle.install.client.schedulerAgentPortNumber=
复制代码
6.解压文件
- [oracle@vm2 tmp]$ ls -l LINUX_193000_client.zip
- -rw-r--r-- 1 oracle oinstall 1018382779 Aug 10 16:26 LINUX_193000_client.zip
- [oracle@vm2 tmp]$ unzip LINUX_193000_client.zip
- [oracle@vm2 tmp]$ cd client32/
- [oracle@vm2 client32]$ ls
- install response runInstaller stage welcome.html
复制代码
7.开始安装
- [oracle@vm2 client32]$ ./runInstaller -silent -ignorePrereqFailure -showProgress -responseFile /home/oracle/client32.rsp
- Starting Oracle Universal Installer...
- Checking Temp space: must be greater than 415 MB. Actual 6127 MB Passed
- Checking swap space: must be greater than 150 MB. Actual 8191 MB Passed
- Preparing to launch Oracle Universal Installer from /tmp/OraInstall2022-08-15_01-57-24PM. Please wait ...[oracle@vm2 client32]$ The response file for this session can be found at:
- /app/oracle/db/client19/install/response/client_2022-08-15_01-57-24PM.rsp
- ..........You can find the log of this install session at:
- /app/oracle/oraInventory/logs/installActions2022-08-15_01-57-24PM.log
- Prepare in progress.
- .................................................. 7% Done.
- Prepare successful.
- Copy files in progress.
- .................................................. 13% Done.
- .................................................. 18% Done.
- .................................................. 24% Done.
- .................................................. 29% Done.
- .................................................. 34% Done.
- .................................................. 39% Done.
- .................................................. 45% Done.
- .................................................. 50% Done.
- .................................................. 55% Done.
- ....................
- Copy files successful.
- Link binaries in progress.
- ....................
- Link binaries successful.
- Setup files in progress.
- .................................................. 60% Done.
- ..........
- Setup files successful.
- Setup Inventory in progress.
- Setup Inventory successful.
- Finish Setup in progress.
- ..........
- Finish Setup successful.
- The installation of Oracle Client 19c was successful.
- Please check '/app/oracle/oraInventory/logs/silentInstall2022-08-15_01-57-24PM.log' for more details.
- Setup Oracle Base in progress.
- Setup Oracle Base successful.
- .................................................. 69% Done.
- Prepare for configuration steps in progress.
- Prepare for configuration steps successful.
- .................................................. 85% Done.
- Oracle Client Configuration in progress.
- Successfully Setup Software.
- .................................................. 100% Done.
- Oracle Client Configuration successful.
复制代码 升级client 19.3到19.16
- [oracle@vm2 client19]$ OPatch/opatch -v
- Oracle Interim Patch Installer version 12.2.0.1.32
- Copyright (c) 2022, Oracle Corporation. All rights reserved.
- Syntax Error... Unrecognized Command or Option (-v): 1st argument must be one of the following:
- apply
- napply
- rollback
- nrollback
- lsinventory
- lsinv
- lspatches
- compare
- query
- util
- prereq
- version
- -help
- -help -fmw
- Please use the option 'opatch -help' to get correct syntax
- [oracle@vm2 34133642]$ $ORACLE_HOME/OPatch/opatch apply
- Oracle Interim Patch Installer version 12.2.0.1.32
- Copyright (c) 2022, Oracle Corporation. All rights reserved.
- Oracle Home : /app/oracle/db/client19
- Central Inventory : /app/oracle/oraInventory
- from : /app/oracle/db/client19/oraInst.loc
- OPatch version : 12.2.0.1.32
- OUI version : 12.2.0.7.0
- Log file location : /app/oracle/db/client19/cfgtoollogs/opatch/opatch2022-08-15_15-42-17PM_1.log
- Verifying environment and performing prerequisite checks...
- OPatch continues with these patches: 34133642
- Do you want to proceed? [y|n]
- y
- User Responded with: Y
- All checks passed.
- Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
- (Oracle Home = '/app/oracle/db/client19')
- Is the local system ready for patching? [y|n]
- y
- User Responded with: Y
- Backing up files...
- Applying interim patch '34133642' to OH '/app/oracle/db/client19'
- ApplySession: Optional component(s) [ oracle.jdk, 1.8.0.201.0 ] not present in the Oracle Home or a higher version is found.
- Patching component oracle.rdbms.rsf, 19.0.0.0.0...
- Patching component oracle.rdbms.util, 19.0.0.0.0...
- Patching component oracle.assistants.acf, 19.0.0.0.0...
- Patching component oracle.assistants.deconfig, 19.0.0.0.0...
- Patching component oracle.buildtools.rsf, 19.0.0.0.0...
- Patching component oracle.dbdev, 19.0.0.0.0...
- Patching component oracle.dbjava.ic, 19.0.0.0.0...
- Patching component oracle.dbjava.jdbc, 19.0.0.0.0...
- Patching component oracle.dbjava.ucp, 19.0.0.0.0...
- Patching component oracle.duma, 19.0.0.0.0...
- Patching component oracle.javavm.client, 19.0.0.0.0...
- Patching component oracle.ldap.owm, 19.0.0.0.0...
- Patching component oracle.ldap.rsf, 19.0.0.0.0...
- Patching component oracle.ldap.security.osdt, 19.0.0.0.0...
- Patching component oracle.network.rsf, 19.0.0.0.0...
- Patching component oracle.odbc.ic, 19.0.0.0.0...
- Patching component oracle.oracore.rsf, 19.0.0.0.0...
- Patching component oracle.precomp.common.core, 19.0.0.0.0...
- Patching component oracle.rdbms.crs, 19.0.0.0.0...
- Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...
- Patching component oracle.rdbms.deconfig, 19.0.0.0.0...
- Patching component oracle.rdbms.ic, 19.0.0.0.0...
- Patching component oracle.rdbms.oci, 19.0.0.0.0...
- Patching component oracle.sqlplus, 19.0.0.0.0...
- Patching component oracle.sqlplus.ic, 19.0.0.0.0...
- Patching component oracle.wwg.plsql, 19.0.0.0.0...
- Patching component oracle.ons, 19.0.0.0.0...
- Patching component oracle.rdbms.rman, 19.0.0.0.0...
- Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...
- Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...
- Patching component oracle.rdbms.install.common, 19.0.0.0.0...
- Patching component oracle.ons.ic, 19.0.0.0.0...
- Patching component oracle.install.deinstalltool, 19.0.0.0.0...
- Patching component oracle.precomp.rsf, 19.0.0.0.0...
- Patching component oracle.xdk.rsf, 19.0.0.0.0...
- Patching component oracle.ldap.client, 19.0.0.0.0...
- Patching component oracle.odbc, 19.0.0.0.0...
- Patching component oracle.oraolap.api, 19.0.0.0.0...
- Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...
- Patching component oracle.xdk.xquery, 19.0.0.0.0...
- Patching component oracle.xdk.parser.java, 19.0.0.0.0...
- Patching component oracle.xdk, 19.0.0.0.0...
- Patching component oracle.network.client, 19.0.0.0.0...
- Patching component oracle.ldap.ssl, 19.0.0.0.0...
- Patching component oracle.rdbms.rsf.ic, 19.0.0.0.0...
- Patching component oracle.precomp.common, 19.0.0.0.0...
- Patching component oracle.precomp.lang, 19.0.0.0.0...
- Patching component oracle.jdk, 1.8.0.201.00...
- Patch 34133642 successfully applied.
- Log file location: /app/oracle/db/client19/cfgtoollogs/opatch/opatch2022-08-15_15-42-17PM_1.log
- OPatch succeeded.
- [oracle@vm2 client19]$ OPatch/opatch lspatches
- 34133642;Database Release Update : 19.16.0.0.220719 (34133642)
- OPatch succeeded.
复制代码 生成19.16的gold image
- [oracle@vm2 client19]$ ./runInstaller -createGoldImage -destinationLocation /tmp/19.16_client_32.zip
- ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.
- Launching Oracle Database Client Setup Wizard...
- [oracle@vm2 client19]$ ./runInstaller -silent -createGoldImage -destinationLocation /tmp/19.16_client_32.zip
- Launching Oracle Database Client Setup Wizard...
- Successfully Setup Software.
复制代码
|
|