运维联盟俱乐部

 找回密码
 立即注册
查看: 1326|回复: 0

[安装部署] client 19c 32 silent

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2022-8-15 13:41:41 | 显示全部楼层 |阅读模式
    在已经部署64位数据库服务器的环境中再安装一套32位的客户端,分为安装包安装和镜像包安装,安装完成后更新opatch 12.2.1.32,然后升级ru到19.16,再做成一个升级好RU的镜像包。

    需要在已经部署oracle server的64位服务器上安装32位客户端,客户端现在有两种方式,client.zip是安装包,client_home.zip是镜像包,安装包先解压再安装到ORACLE_HOME,镜像包直接解压到ORACLE_HOME
    1. sftp> lls -l
    2.            1134912540 Aug 10, 2022 16:19 LINUX.X64_193000_client.zip
    3.            987216967 Aug 10, 2022 16:15 LINUX.X64_193000_client_home.zip
    4.            1018382779 Aug 10, 2022 16:26 LINUX_193000_client.zip
    5.            917311326 Aug 10, 2022 16:42 LINUX_193000_client_home.zip
    复制代码
    1.需要的依赖包
    部分32位的包需要安装,装到如下情况下,已经没有报错了(可能再少点也行,懒得试了)
    1. [root@vm2 tmp]# rpm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" \
    2. > bc                     \
    3. > binutils               \
    4. > compat-libcap1         \
    5. > compat-libstdc++33     \
    6. > elfutils-libelf        \
    7. > elfutils-libelf-devel  \
    8. > fontconfig-devel       \
    9. > glibc                  \
    10. > glibc-devel            \
    11. > ksh                    \
    12. > libaio                 \
    13. > libaio-devel           \
    14. > libX11                 \
    15. > libXau                 \
    16. > libXi                  \
    17. > libXtst                \
    18. > libXrender             \
    19. > libXrender-devel       \
    20. > libgcc                 \
    21. > libstdc++              \
    22. > libstdc++-devel        \
    23. > libxcb                 \
    24. > make                   \
    25. > smartmontools          \
    26. > sysstat  
    27. bc-1.06.95-13.el7 (x86_64)
    28. binutils-2.27-44.base.el7 (x86_64)
    29. compat-libcap1-1.10-7.el7 (x86_64)
    30. compat-libcap1-1.10-7.el7 (i686)
    31. package compat-libstdc++33 is not installed
    32. elfutils-libelf-0.176-5.el7 (x86_64)
    33. elfutils-libelf-0.176-5.el7 (i686)
    34. elfutils-libelf-devel-0.176-5.el7 (x86_64)
    35. elfutils-libelf-devel-0.176-5.el7 (i686)
    36. fontconfig-devel-2.13.0-4.3.el7 (x86_64)
    37. fontconfig-devel-2.13.0-4.3.el7 (i686)
    38. glibc-2.17-326.el7_9 (x86_64)
    39. glibc-2.17-326.el7_9 (i686)
    40. glibc-devel-2.17-326.el7_9 (x86_64)
    41. glibc-devel-2.17-326.el7_9 (i686)
    42. ksh-20120801-142.el7 (x86_64)
    43. libaio-0.3.109-13.el7 (x86_64)
    44. libaio-0.3.109-13.el7 (i686)
    45. libaio-devel-0.3.109-13.el7 (i686)
    46. libaio-devel-0.3.109-13.el7 (x86_64)
    47. libX11-1.6.7-4.el7_9 (x86_64)
    48. libX11-1.6.7-4.el7_9 (i686)
    49. libXau-1.0.8-2.1.el7 (x86_64)
    50. libXau-1.0.8-2.1.el7 (i686)
    51. libXi-1.7.9-1.el7 (x86_64)
    52. libXi-1.7.9-1.el7 (i686)
    53. libXtst-1.2.3-1.el7 (x86_64)
    54. libXtst-1.2.3-1.el7 (i686)
    55. libXrender-0.9.10-1.el7 (x86_64)
    56. libXrender-0.9.10-1.el7 (i686)
    57. libXrender-devel-0.9.10-1.el7 (x86_64)
    58. libgcc-4.8.5-44.el7 (x86_64)
    59. libgcc-4.8.5-44.el7 (i686)
    60. libstdc++-4.8.5-44.el7 (x86_64)
    61. libstdc++-4.8.5-44.el7 (i686)
    62. libstdc++-devel-4.8.5-44.el7 (x86_64)
    63. libstdc++-devel-4.8.5-44.el7 (i686)
    64. libxcb-1.13-1.el7 (x86_64)
    65. libxcb-1.13-1.el7 (i686)
    66. make-3.82-24.el7 (x86_64)
    67. smartmontools-7.0-2.el7 (x86_64)
    68. sysstat-10.1.5-19.el7 (x86_64)
    复制代码
    2.响应文件
    1. [root@vm1 oracle]# cat c_g_32.rsp| grep -v ^#|grep -v ^$
    2. oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v19.0.0
    3. UNIX_GROUP_NAME=oracle
    4. INVENTORY_LOCATION=/app/oracle/oraInventory
    5. ORACLE_BASE=/app/oracle
    复制代码
    3.安装文件
    1. [oracle@vm2 tmp]$ ll LINUX_193000_client_home.zip
    2. -rw-r--r-- 1 oracle oinstall 917311326 Aug 10 16:42 LINUX_193000_client_home.zip
    3. [oracle@vm2 tmp]$ mkdir -p /app/oracle/db/client19
    4. [oracle@vm2 tmp]$ unzip -d /app/oracle/db/client19 LINUX_193000_client_home.zip
    5. [oracle@vm2 tmp]$ cd /app/oracle/db/client19
    复制代码
    4.开始安装
    1. [oracle@vm1 client19]$ ./runInstaller -silent -ignorePrereqFailure -responseFile /home/oracle/c_g_32.rsp
    2. Launching Oracle Database Client Setup Wizard...

    3. [WARNING] [INS-32056] The specified Oracle Base contains the existing Central Inventory location: /app/oracle/oraInventory.
    4.    ACTION: Oracle recommends that the Central Inventory location is outside the Oracle Base directory. Specify a different location for the Oracle Base.
    5. The response file for this session can be found at:
    6. /app/oracle/db/client19/install/response/client_2022-08-11_02-40-00PM.rsp

    7. You can find the log of this install session at:
    8. /app/oracle/oraInventory/logs/InstallActions2022-08-11_02-40-00PM/installActions2022-08-11_02-40-00PM.log
    9. Successfully Setup Software.
    复制代码
    以下是安装包安装过程
    5.响应文件
    1. [oracle@vm2 client32]$ cat /home/oracle/client32.rsp|grep -v ^#|grep -v ^$
    2. oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v19.0.0
    3. UNIX_GROUP_NAME=oracle
    4. INVENTORY_LOCATION=/app/oracle/oraInventory
    5. ORACLE_HOME=/app/oracle/db/client19
    6. ORACLE_BASE=/app/oracle/db
    7. oracle.install.client.installType=Administrator
    8. oracle.install.client.customComponents=
    9. oracle.install.client.schedulerAgentHostName=
    10. oracle.install.client.schedulerAgentPortNumber=
    复制代码

    6.解压文件
    1. [oracle@vm2 tmp]$ ls -l LINUX_193000_client.zip
    2. -rw-r--r-- 1 oracle oinstall 1018382779 Aug 10 16:26 LINUX_193000_client.zip
    3. [oracle@vm2 tmp]$ unzip LINUX_193000_client.zip
    4. [oracle@vm2 tmp]$ cd client32/
    5. [oracle@vm2 client32]$ ls
    6. install  response  runInstaller  stage  welcome.html
    复制代码

    7.开始安装
    1. [oracle@vm2 client32]$ ./runInstaller -silent -ignorePrereqFailure -showProgress -responseFile /home/oracle/client32.rsp
    2. Starting Oracle Universal Installer...

    3. Checking Temp space: must be greater than 415 MB.   Actual 6127 MB    Passed
    4. Checking swap space: must be greater than 150 MB.   Actual 8191 MB    Passed
    5. 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:
    6. /app/oracle/db/client19/install/response/client_2022-08-15_01-57-24PM.rsp

    7. ..........You can find the log of this install session at:
    8. /app/oracle/oraInventory/logs/installActions2022-08-15_01-57-24PM.log

    9. Prepare in progress.
    10. ..................................................   7% Done.

    11. Prepare successful.

    12. Copy files in progress.
    13. ..................................................   13% Done.
    14. ..................................................   18% Done.
    15. ..................................................   24% Done.
    16. ..................................................   29% Done.
    17. ..................................................   34% Done.
    18. ..................................................   39% Done.
    19. ..................................................   45% Done.
    20. ..................................................   50% Done.
    21. ..................................................   55% Done.
    22. ....................
    23. Copy files successful.

    24. Link binaries in progress.
    25. ....................
    26. Link binaries successful.

    27. Setup files in progress.
    28. ..................................................   60% Done.
    29. ..........
    30. Setup files successful.

    31. Setup Inventory in progress.

    32. Setup Inventory successful.

    33. Finish Setup in progress.
    34. ..........
    35. Finish Setup successful.
    36. The installation of Oracle Client 19c was successful.
    37. Please check '/app/oracle/oraInventory/logs/silentInstall2022-08-15_01-57-24PM.log' for more details.

    38. Setup Oracle Base in progress.

    39. Setup Oracle Base successful.
    40. ..................................................   69% Done.

    41. Prepare for configuration steps in progress.

    42. Prepare for configuration steps successful.
    43. ..................................................   85% Done.

    44. Oracle Client Configuration in progress.
    45. Successfully Setup Software.
    46. ..................................................   100% Done.

    47. Oracle Client Configuration successful.
    复制代码
    升级client 19.3到19.16
    1. [oracle@vm2 client19]$ OPatch/opatch -v
    2. Oracle Interim Patch Installer version 12.2.0.1.32
    3. Copyright (c) 2022, Oracle Corporation.  All rights reserved.

    4. Syntax Error... Unrecognized Command or Option (-v): 1st argument must be one of the following:
    5.    apply
    6.    napply
    7.    rollback
    8.    nrollback
    9.    lsinventory
    10.    lsinv
    11.    lspatches
    12.    compare
    13.    query
    14.    util
    15.    prereq
    16.    version
    17.    -help
    18.    -help -fmw

    19. Please use the option 'opatch  -help' to get correct syntax
    20. [oracle@vm2 34133642]$ $ORACLE_HOME/OPatch/opatch apply
    21. Oracle Interim Patch Installer version 12.2.0.1.32
    22. Copyright (c) 2022, Oracle Corporation.  All rights reserved.


    23. Oracle Home       : /app/oracle/db/client19
    24. Central Inventory : /app/oracle/oraInventory
    25.    from           : /app/oracle/db/client19/oraInst.loc
    26. OPatch version    : 12.2.0.1.32
    27. OUI version       : 12.2.0.7.0
    28. Log file location : /app/oracle/db/client19/cfgtoollogs/opatch/opatch2022-08-15_15-42-17PM_1.log

    29. Verifying environment and performing prerequisite checks...
    30. OPatch continues with these patches:   34133642  

    31. Do you want to proceed? [y|n]
    32. y
    33. User Responded with: Y
    34. All checks passed.

    35. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
    36. (Oracle Home = '/app/oracle/db/client19')


    37. Is the local system ready for patching? [y|n]
    38. y
    39. User Responded with: Y
    40. Backing up files...
    41. Applying interim patch '34133642' to OH '/app/oracle/db/client19'
    42. ApplySession: Optional component(s) [ oracle.jdk, 1.8.0.201.0 ]  not present in the Oracle Home or a higher version is found.

    43. Patching component oracle.rdbms.rsf, 19.0.0.0.0...

    44. Patching component oracle.rdbms.util, 19.0.0.0.0...

    45. Patching component oracle.assistants.acf, 19.0.0.0.0...

    46. Patching component oracle.assistants.deconfig, 19.0.0.0.0...

    47. Patching component oracle.buildtools.rsf, 19.0.0.0.0...

    48. Patching component oracle.dbdev, 19.0.0.0.0...

    49. Patching component oracle.dbjava.ic, 19.0.0.0.0...

    50. Patching component oracle.dbjava.jdbc, 19.0.0.0.0...

    51. Patching component oracle.dbjava.ucp, 19.0.0.0.0...

    52. Patching component oracle.duma, 19.0.0.0.0...

    53. Patching component oracle.javavm.client, 19.0.0.0.0...

    54. Patching component oracle.ldap.owm, 19.0.0.0.0...

    55. Patching component oracle.ldap.rsf, 19.0.0.0.0...

    56. Patching component oracle.ldap.security.osdt, 19.0.0.0.0...

    57. Patching component oracle.network.rsf, 19.0.0.0.0...

    58. Patching component oracle.odbc.ic, 19.0.0.0.0...

    59. Patching component oracle.oracore.rsf, 19.0.0.0.0...

    60. Patching component oracle.precomp.common.core, 19.0.0.0.0...

    61. Patching component oracle.rdbms.crs, 19.0.0.0.0...

    62. Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...

    63. Patching component oracle.rdbms.deconfig, 19.0.0.0.0...

    64. Patching component oracle.rdbms.ic, 19.0.0.0.0...

    65. Patching component oracle.rdbms.oci, 19.0.0.0.0...

    66. Patching component oracle.sqlplus, 19.0.0.0.0...

    67. Patching component oracle.sqlplus.ic, 19.0.0.0.0...

    68. Patching component oracle.wwg.plsql, 19.0.0.0.0...

    69. Patching component oracle.ons, 19.0.0.0.0...

    70. Patching component oracle.rdbms.rman, 19.0.0.0.0...

    71. Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...

    72. Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...

    73. Patching component oracle.rdbms.install.common, 19.0.0.0.0...

    74. Patching component oracle.ons.ic, 19.0.0.0.0...

    75. Patching component oracle.install.deinstalltool, 19.0.0.0.0...

    76. Patching component oracle.precomp.rsf, 19.0.0.0.0...

    77. Patching component oracle.xdk.rsf, 19.0.0.0.0...

    78. Patching component oracle.ldap.client, 19.0.0.0.0...

    79. Patching component oracle.odbc, 19.0.0.0.0...

    80. Patching component oracle.oraolap.api, 19.0.0.0.0...

    81. Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...

    82. Patching component oracle.xdk.xquery, 19.0.0.0.0...

    83. Patching component oracle.xdk.parser.java, 19.0.0.0.0...

    84. Patching component oracle.xdk, 19.0.0.0.0...

    85. Patching component oracle.network.client, 19.0.0.0.0...

    86. Patching component oracle.ldap.ssl, 19.0.0.0.0...

    87. Patching component oracle.rdbms.rsf.ic, 19.0.0.0.0...

    88. Patching component oracle.precomp.common, 19.0.0.0.0...

    89. Patching component oracle.precomp.lang, 19.0.0.0.0...

    90. Patching component oracle.jdk, 1.8.0.201.00...
    91. Patch 34133642 successfully applied.
    92. Log file location: /app/oracle/db/client19/cfgtoollogs/opatch/opatch2022-08-15_15-42-17PM_1.log

    93. OPatch succeeded.

    94. [oracle@vm2 client19]$ OPatch/opatch lspatches
    95. 34133642;Database Release Update : 19.16.0.0.220719 (34133642)

    96. OPatch succeeded.
    复制代码
    生成19.16的gold image

    1. [oracle@vm2 client19]$ ./runInstaller -createGoldImage -destinationLocation /tmp/19.16_client_32.zip
    2. ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.
    3. Launching Oracle Database Client Setup Wizard...

    4. [oracle@vm2 client19]$ ./runInstaller  -silent -createGoldImage -destinationLocation /tmp/19.16_client_32.zip
    5. Launching Oracle Database Client Setup Wizard...

    6. Successfully Setup Software.
    复制代码

    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-17 17:41 , Processed in 0.051905 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表