1 ███████ ██ ████████ ██ ██ ██ ██ ██ ██ ██
2 ██░░░░░██ ░██ ██░░░░░░ ░██ ░██ ░██░██ ░██ ░██ ░██
3 ██ ░░██ ██████ ██████ █████ ░██ █████ ░██ ░██ █████ ░██ ░██░██ ███████ ██████ ██████ ██████ ░██ ░██
4░██ ░██░░██░░█ ░░░░░░██ ██░░░██ ░██ ██░░░██░█████████░██████ ██░░░██ ░██ ░██░██░░██░░░██ ██░░░░ ░░░██░ ░░░░░░██ ░██ ░██
5░██ ░██ ░██ ░ ███████ ░██ ░░ ░██░███████░░░░░░░░██░██░░░██░███████ ░██ ░██░██ ░██ ░██░░█████ ░██ ███████ ░██ ░██
6░░██ ██ ░██ ██░░░░██ ░██ ██ ░██░██░░░░ ░██░██ ░██░██░░░░ ░██ ░██░██ ░██ ░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██
7 ░░███████ ░███ ░░████████░░█████ ███░░██████ ████████ ░██ ░██░░██████ ███ ███░██ ███ ░██ ██████ ░░██ ░░████████ ███ ███
8 ░░░░░░░ ░░░ ░░░░░░░░ ░░░░░ ░░░ ░░░░░░ ░░░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░ ░░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░░
9
10
11请选择安装模式 [单机(si)/单机ASM(sa)/集群(rac)] : si
12
13数据库安装模式: single
14
15请选择数据库版本 [11/12/19/21] : 11
16
17数据库版本: 11
18
19#==============================================================#
20配置本地 YUM 源
21#==============================================================#
22
23[server]
24name=server
25baseurl=file:///mnt
26enabled=1
27gpgcheck=0
28
29#==============================================================#
30禁用防火墙
31#==============================================================#
32
33● firewalld.service - firewalld - dynamic firewall daemon
34 Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
35 Active: inactive (dead)
36 Docs: man:firewalld(1)
37
382月 26 13:11:07 kylin systemd[1]: Starting firewalld - dynamic firewall daemon...
392月 26 13:11:09 kylin systemd[1]: Started firewalld - dynamic firewall daemon.
402月 26 13:37:29 kylin systemd[1]: Stopping firewalld - dynamic firewall daemon...
412月 26 13:37:30 kylin systemd[1]: firewalld.service: Succeeded.
422月 26 13:37:30 kylin systemd[1]: Stopped firewalld - dynamic firewall daemon.
43
44#==============================================================#
45禁用 SELinux
46#==============================================================#
47
48SELinux status: disabled
49
50#==============================================================#
51YUM 静默安装依赖包
52#==============================================================#
53
54bc-1.07.1-11.ky10.x86_64
55binutils-2.34-19.p01.ky10.x86_64
56未安装软件包 compat-libcap1
57gcc-7.3.0-20220207.45.ky10.x86_64
58gcc-c++-7.3.0-20220207.45.ky10.x86_64
59未安装软件包 elfutils-libelf
60未安装软件包 elfutils-libelf-devel
61glibc-2.28-88.p06.ky10.x86_64
62glibc-devel-2.28-88.p06.ky10.x86_64
63libaio-0.3.112-1.p01.ky10.x86_64
64libaio-devel-0.3.112-1.p01.ky10.x86_64
65libgcc-7.3.0-20220207.45.ky10.x86_64
66libstdc++-7.3.0-20220207.45.ky10.x86_64
67libstdc++-devel-7.3.0-20220207.45.ky10.x86_64
68libxcb-1.14-1.ky10.x86_64
69libX11-1.6.9-5.ky10.x86_64
70libXau-1.0.9-2.ky10.x86_64
71libXi-1.7.10-1.ky10.x86_64
72libXrender-0.9.10-10.ky10.x86_64
73make-4.3-1.ky10.x86_64
74net-tools-2.0-0.54.ky10.x86_64
75smartmontools-7.1-1.ky10.x86_64
76sysstat-12.2.1-1.p00.ky10.x86_64
77e2fsprogs-1.45.6-8.ky10.x86_64
78未安装软件包 e2fsprogs-libs
79unzip-6.0-47.ky10.x86_64
80openssh-clients-8.2p1-16.p04.ky10.x86_64
81readline-8.0-3.ky10.x86_64
82readline-devel-8.0-3.ky10.x86_64
83psmisc-23.3-2.ky10.x86_64
84ksh-2020.0.0-4.ky10.x86_64
85nfs-utils-2.5.1-5.ky10.x86_64
86tar-1.32-2.ky10.x86_64
87未安装软件包 device-mapper-multipath
88avahi-0.8-8.ky10.x86_64
89ntp-4.2.8p14-5.ky10.x86_64
90chrony-3.5-3.p01.ky10.x86_64
91libXtst-1.2.3-10.ky10.x86_64
92libXrender-devel-0.9.10-10.ky10.x86_64
93fontconfig-devel-2.13.92-1.ky10.x86_64
94policycoreutils-3.1-7.p01.ky10.x86_64
95未安装软件包 policycoreutils-python
96未安装软件包 librdmacm
97未安装软件包 libnsl*
98未安装软件包 libibverbs
99未安装软件包 compat-openssl10
100policycoreutils-python-utils-3.1-7.p01.ky10.noarch
101
102#==============================================================#
103配置主机名
104#==============================================================#
105
106kylin
107
108#==============================================================#
109配置 /etc/hosts 文件
110#==============================================================#
111
112127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
113::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
114
115## OracleBegin
116## Public IP
117192.168.6.222 kylin
118
119#==============================================================#
120创建用户和组
121#==============================================================#
122
123oracle 用户:
124
125用户id=54321(oracle) 组id=54321(oinstall) 组=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)
126
127
128#==============================================================#
129配置 Avahi-daemon 服务
130#==============================================================#
131
132● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
133 Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)
134 Active: inactive (dead)
135
136#==============================================================#
137配置透明大页 && NUMA && 磁盘 IO 调度器
138#==============================================================#
139
140args="ro resume=/dev/mapper/klas-swap rd.lvm.lv=klas/root rd.lvm.lv=klas/swap rhgb quiet crashkernel=1024M,high audit=0 numa=off transparent_hugepage=never elevator=deadline"
141-resume=/dev/mapper/klas-swap
142-args="ro
143args="ro resume=/dev/mapper/klas-swap rd.lvm.lv=klas/root rd.lvm.lv=klas/swap rhgb quiet crashkernel=1024M,high audit=0 numa=off transparent_hugepage=never elevator=deadline"
144-audit=0
145-crashkernel=1024M,high
146
147#==============================================================#
148配置 sysctl.conf
149#==============================================================#
150
151kernel.sysrq = 0
152net.ipv4.ip_forward = 0
153net.ipv4.conf.all.send_redirects = 0
154net.ipv4.conf.default.send_redirects = 0
155net.ipv4.conf.all.accept_source_route = 0
156net.ipv4.conf.default.accept_source_route = 0
157net.ipv4.conf.all.accept_redirects = 0
158net.ipv4.conf.default.accept_redirects = 0
159net.ipv4.conf.all.secure_redirects = 0
160net.ipv4.conf.default.secure_redirects = 0
161net.ipv4.icmp_echo_ignore_broadcasts = 1
162net.ipv4.icmp_ignore_bogus_error_responses = 1
163net.ipv4.conf.all.rp_filter = 1
164net.ipv4.conf.default.rp_filter = 1
165net.ipv4.tcp_syncookies = 1
166kernel.dmesg_restrict = 1
167net.ipv6.conf.all.accept_redirects = 0
168net.ipv6.conf.default.accept_redirects = 0
169fs.aio-max-nr = 1048576
170fs.file-max = 6815744
171kernel.shmall = 2097152
172kernel.shmmax = 7010422783
173kernel.shmmni = 4096
174kernel.sem = 250 32000 100 128
175net.ipv4.ip_local_port_range = 9000 65500
176net.core.rmem_default = 262144
177net.core.rmem_max = 4194304
178net.core.wmem_default = 262144
179net.core.wmem_max = 1048576
180vm.min_free_kbytes = 27384
181net.ipv4.conf.ens33.rp_filter = 1
182vm.swappiness = 10
183kernel.panic_on_oops = 1
184kernel.randomize_va_space = 2
185kernel.numa_balancing = 0
186
187#==============================================================#
188配置 nsysctl.conf
189#==============================================================#
190
191NOZEROCONF=yes
192
193#==============================================================#
194配置 RemoveIPC
195#==============================================================#
196
197[Login]
198RemoveIPC=no
199
200#==============================================================#
201配置 /etc/security/limits.conf 和 /etc/pam.d/login
202#==============================================================#
203
204查看 /etc/security/limits.conf:
205
206oracle soft nofile 1024
207oracle hard nofile 65536
208oracle soft stack 10240
209oracle hard stack 32768
210oracle soft nproc 2047
211oracle hard nproc 16384
212oracle hard memlock unlimited
213oracle soft memlock unlimited
214
215查看 /etc/pam.d/login 文件:
216
217auth substack system-auth
218auth include postlogin
219account required pam_nologin.so
220account include system-auth
221password include system-auth
222session required pam_selinux.so close
223session required pam_loginuid.so
224session required pam_selinux.so open
225session required pam_namespace.so
226session optional pam_keyinit.so force revoke
227session include system-auth
228session include postlogin
229-session optional pam_ck_connector.so
230session required pam_limits.so
231session required /lib64/security/pam_limits.so
232
233#==============================================================#
234配置 /dev/shm
235#==============================================================#
236
237/dev/mapper/klas-root / xfs defaults 0 0
238UUID=c8e47a65-11c4-4e4e-84ce-95f9f618be7e /boot xfs defaults 0 0
239/dev/mapper/klas-swap none swap defaults 0 0
240tmpfs /dev/shm tmpfs size=6846116k 0 0
241
242#==============================================================#
243安装 rlwrap 插件
244#==============================================================#
245
246成功安装 rlwrap: rlwrap 0.44
247
248#==============================================================#
249Root 用户环境变量
250#==============================================================#
251
252if [ -f ~/.bashrc ]; then
253 . ~/.bashrc
254fi
255PATH=$PATH:$HOME/bin
256export PATH
257alias so='su - oracle'
258export PS1="[`whoami`@`hostname`:"'$PWD]$ '
259
260#==============================================================#
261Oracle 用户环境变量
262#==============================================================#
263
264[ -f ~/.bashrc ] && . ~/.bashrc
265umask 022
266export TMP=/tmp
267export TMPDIR=$TMP
268export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
269export ORACLE_BASE=/u01/app/oracle
270export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
271export ORACLE_TERM=xterm
272export TNS_ADMIN=$ORACLE_HOME/network/admin
273export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
274export ORACLE_SID=lucifer
275export PATH=/usr/sbin:$PATH
276export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/perl/bin:$PATH
277export PERL5LIB=$ORACLE_HOME/perl/lib
278alias sas='sqlplus / as sysdba'
279alias awr='sqlplus / as sysdba @?/rdbms/admin/awrrpt'
280alias ash='sqlplus / as sysdba @?/rdbms/admin/ashrpt'
281alias alert='vi $ORACLE_BASE/diag/rdbms/*/$ORACLE_SID/trace/alert_$ORACLE_SID.log'
282export PS1="[`whoami`@`hostname`:"'$PWD]$ '
283export CV_ASSUME_DISTID=OL7
284alias sqlplus='rlwrap sqlplus'
285alias rman='rlwrap rman'
286alias adrci='rlwrap adrci'
287
288#==============================================================#
289静默解压 Oracle 软件包
290#==============================================================#
291
292正在静默解压缩 Oracle 软件包,请稍等:
293
294.---- -. -. . . . .
295( .',----- - - ' ' ' __
296 \_/ ;--:- __--------------------___ ____=========_||___
297__U__n_^_''__[. ooo___ | |_!_||_!_||_!_||_!_| | |..|_i_|..|_i_|..|
298c(_ ..(_ ..(_ ..( /,,,,,,] | |___||___||___||___| | | |
299,_\___________'_|,L______],|______________________|_i,!________________!_i
300/;_(@)(@)==(@)(@) (o)(o) (o)^(o)--(o)^(o) (o)(o)-(o)(o)
301""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"""~"'""
302
303静默解压 Oracle 软件安装包: /soft/p13390677_112040_Linux-x86-64_1of7.zip,/soft/p13390677_112040_Linux-x86-64_2of7.zip
304
305静默解压 Oracle 软件补丁包: /soft/p35574075*.zip
306
307静默解压 Oracle 软件补丁包:/soft/p33991024_11204220118_Generic.zip
308
309静默解压 OJVM 软件补丁包: /soft/p35685663*.zip
310
311#==============================================================#
312Oracle 安装静默文件
313#==============================================================#
314
315oracle.install.option=INSTALL_DB_SWONLY
316UNIX_GROUP_NAME=oinstall
317INVENTORY_LOCATION=/u01/app/oraInventory
318ORACLE_BASE=/u01/app/oracle
319oracle.install.db.InstallEdition=EE
320oracle.install.db.DBA_GROUP=dba
321oracle.install.db.OPER_GROUP=oper
322oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
323SELECTED_LANGUAGES=en,zh_CN
324ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
325DECLINE_SECURITY_UPDATES=true
326oracle.installer.autoupdates.option=SKIP_UPDATES
327
328#==============================================================#
329静默安装数据库软件
330#==============================================================#
331
332Starting Oracle Universal Installer...
333
334Checking Temp space: must be greater than 120 MB. Actual 3342 MB Passed
335Checking swap space: must be greater than 150 MB. Actual 8180 MB Passed
336Preparing to launch Oracle Universal Installer from /tmp/OraInstall2024-02-26_01-38-53PM. Please wait ...You can find the log of this install session at:
337 /u01/app/oraInventory/logs/installActions2024-02-26_01-38-53PM.log
338
339Prepare in progress.
340.................................................. 9% Done.
341
342Prepare successful.
343
344Copy files in progress.
345.................................................. 14% Done.
346.................................................. 20% Done.
347.................................................. 26% Done.
348.................................................. 31% Done.
349.................................................. 36% Done.
350.................................................. 41% Done.
351.................................................. 47% Done.
352.................................................. 52% Done.
353.................................................. 57% Done.
354.................................................. 63% Done.
355.................................................. 68% Done.
356.................................................. 73% Done.
357.................................................. 78% Done.
358.................................................. 83% Done.
359..............................
360Copy files successful.
361
362Link binaries in progress.
363..........
364Link binaries successful.
365
366Setup files in progress.
367.................................................. 88% Done.
368.................................................. 94% Done.
369
370Setup files successful.
371The installation of Oracle Database 11g was successful.
372Please check '/u01/app/oraInventory/logs/silentInstall2024-02-26_01-38-53PM.log' for more details.
373
374Execute Root Scripts in progress.
375
376As a root user, execute the following script(s):
377 1. /u01/app/oraInventory/orainstRoot.sh
378 2. /u01/app/oracle/product/11.2.0/db/root.sh
379
380
381.................................................. 100% Done.
382
383Execute Root Scripts successful.
384Successfully Setup Software.
385
386#==============================================================#
387执行 root 脚本
388#==============================================================#
389
390Changing permissions of /u01/app/oraInventory.
391Adding read,write permissions for group.
392Removing read,write,execute permissions for world.
393
394Changing groupname of /u01/app/oraInventory to oinstall.
395The execution of the script is complete.
396Check /u01/app/oracle/product/11.2.0/db/install/root_kylin_2024-02-26_13-41-18.log for the output of root script
397
398#==============================================================#
399Oracle 软件安装补丁
400#==============================================================#
401
402Oracle Interim Patch Installer version 11.2.0.3.44
403Copyright (c) 2024, Oracle Corporation. All rights reserved.
404
405PREREQ session
406
407Oracle Home : /u01/app/oracle/product/11.2.0/db
408Central Inventory : /u01/app/oraInventory
409 from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
410OPatch version : 11.2.0.3.44
411OUI version : 11.2.0.4.0
412Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-02-26_13-41-22PM_1.log
413
414Invoking prereq "checkconflictagainstohwithdetail"
415
416Prereq "checkConflictAgainstOHWithDetail" passed.
417
418OPatch succeeded.
419Oracle Interim Patch Installer version 11.2.0.3.44
420Copyright (c) 2024, Oracle Corporation. All rights reserved.
421
422
423Oracle Home : /u01/app/oracle/product/11.2.0/db
424Central Inventory : /u01/app/oraInventory
425 from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
426OPatch version : 11.2.0.3.44
427OUI version : 11.2.0.4.0
428Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-02-26_13-41-26PM_1.log
429
430Verifying environment and performing prerequisite checks...
431OPatch continues with these patches: 17478514 18031668 18522509 19121551 19769489 20299013 20760982 21352635 21948347 22502456 23054359 24006111 24732075 25869727 26609445 26392168 26925576 27338049 27734982 28204707 28729262 29141056 29497421 29913194 30298532 30670774 31103343 31537677 31983472 32328626 32758711 33128584 33477185 33711103 34057724 34386237 34677698 34998337 35269283 35574075
432
433Do you want to proceed? [y|n]
434Y (auto-answered by -silent)
435User Responded with: Y
436All checks passed.
437
438Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
439(Oracle Home = '/u01/app/oracle/product/11.2.0/db')
440
441
442Is the local system ready for patching? [y|n]
443Y (auto-answered by -silent)
444User Responded with: Y
445Backing up files...
446Applying sub-patch '17478514' to OH '/u01/app/oracle/product/11.2.0/db'
447
448Patching component oracle.rdbms, 11.2.0.4.0...
449
450Patching component oracle.rdbms.rsf, 11.2.0.4.0...
451
452Patching component oracle.sdo, 11.2.0.4.0...
453
454Patching component oracle.sysman.agent, 10.2.0.4.5...
455
456Patching component oracle.xdk, 11.2.0.4.0...
457
458Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
459
460Patching component oracle.sdo.locator, 11.2.0.4.0...
461
462Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...
463
464Patching component oracle.xdk.rsf, 11.2.0.4.0...
465
466Patching component oracle.rdbms.rman, 11.2.0.4.0...
467Applying sub-patch '18031668' to OH '/u01/app/oracle/product/11.2.0/db'
468
469Patching component oracle.rdbms, 11.2.0.4.0...
470
471Patching component oracle.rdbms.rsf, 11.2.0.4.0...
472
473Patching component oracle.ldap.rsf, 11.2.0.4.0...
474
475Patching component oracle.rdbms.crs, 11.2.0.4.0...
476
477Patching component oracle.precomp.common, 11.2.0.4.0...
478
479Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
480
481Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
482
483Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
484
485Patching component oracle.rdbms.rman, 11.2.0.4.0...
486Applying sub-patch '18522509' to OH '/u01/app/oracle/product/11.2.0/db'
487
488Patching component oracle.rdbms.rsf, 11.2.0.4.0...
489
490Patching component oracle.rdbms, 11.2.0.4.0...
491
492Patching component oracle.precomp.common, 11.2.0.4.0...
493
494Patching component oracle.rdbms.rman, 11.2.0.4.0...
495
496Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
497
498Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
499Applying sub-patch '19121551' to OH '/u01/app/oracle/product/11.2.0/db'
500
501Patching component oracle.precomp.common, 11.2.0.4.0...
502
503Patching component oracle.sysman.console.db, 11.2.0.4.0...
504
505Patching component oracle.rdbms.rsf, 11.2.0.4.0...
506
507Patching component oracle.rdbms.rman, 11.2.0.4.0...
508
509Patching component oracle.rdbms, 11.2.0.4.0...
510
511Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
512
513Patching component oracle.ordim.client, 11.2.0.4.0...
514
515Patching component oracle.ordim.jai, 11.2.0.4.0...
516Applying sub-patch '19769489' to OH '/u01/app/oracle/product/11.2.0/db'
517ApplySession: Optional component(s) [ oracle.sysman.agent, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
518
519Patching component oracle.precomp.common, 11.2.0.4.0...
520
521Patching component oracle.ovm, 11.2.0.4.0...
522
523Patching component oracle.xdk, 11.2.0.4.0...
524
525Patching component oracle.rdbms.util, 11.2.0.4.0...
526
527Patching component oracle.rdbms, 11.2.0.4.0...
528
529Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
530
531Patching component oracle.xdk.parser.java, 11.2.0.4.0...
532
533Patching component oracle.oraolap, 11.2.0.4.0...
534
535Patching component oracle.rdbms.rsf, 11.2.0.4.0...
536
537Patching component oracle.xdk.rsf, 11.2.0.4.0...
538
539Patching component oracle.rdbms.rman, 11.2.0.4.0...
540
541Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
542Applying sub-patch '20299013' to OH '/u01/app/oracle/product/11.2.0/db'
543
544Patching component oracle.rdbms.dv, 11.2.0.4.0...
545
546Patching component oracle.rdbms.oci, 11.2.0.4.0...
547
548Patching component oracle.precomp.common, 11.2.0.4.0...
549
550Patching component oracle.sysman.agent, 10.2.0.4.5...
551
552Patching component oracle.xdk, 11.2.0.4.0...
553
554Patching component oracle.sysman.common, 10.2.0.4.5...
555
556Patching component oracle.rdbms, 11.2.0.4.0...
557
558Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
559
560Patching component oracle.xdk.parser.java, 11.2.0.4.0...
561
562Patching component oracle.sysman.console.db, 11.2.0.4.0...
563
564Patching component oracle.xdk.rsf, 11.2.0.4.0...
565
566Patching component oracle.rdbms.rsf, 11.2.0.4.0...
567
568Patching component oracle.sysman.common.core, 10.2.0.4.5...
569
570Patching component oracle.rdbms.rman, 11.2.0.4.0...
571
572Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
573Applying sub-patch '20760982' to OH '/u01/app/oracle/product/11.2.0/db'
574
575Patching component oracle.sysman.console.db, 11.2.0.4.0...
576
577Patching component oracle.rdbms, 11.2.0.4.0...
578
579Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
580
581Patching component oracle.rdbms.rsf, 11.2.0.4.0...
582Applying sub-patch '21352635' to OH '/u01/app/oracle/product/11.2.0/db'
583
584Patching component oracle.sysman.agent, 10.2.0.4.5...
585
586Patching component oracle.rdbms.rsf, 11.2.0.4.0...
587
588Patching component oracle.rdbms.rman, 11.2.0.4.0...
589
590Patching component oracle.rdbms, 11.2.0.4.0...
591Applying sub-patch '21948347' to OH '/u01/app/oracle/product/11.2.0/db'
592ApplySession: Optional component(s) [ oracle.tfa, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
593
594Patching component oracle.sysman.agent, 10.2.0.4.5...
595
596Patching component oracle.ovm, 11.2.0.4.0...
597
598Patching component oracle.xdk, 11.2.0.4.0...
599
600Patching component oracle.rdbms, 11.2.0.4.0...
601
602Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...
603
604Patching component oracle.xdk.parser.java, 11.2.0.4.0...
605
606Patching component oracle.sysman.console.db, 11.2.0.4.0...
607
608Patching component oracle.xdk.rsf, 11.2.0.4.0...
609
610Patching component oracle.rdbms.rsf, 11.2.0.4.0...
611
612Patching component oracle.sysman.oms.core, 10.2.0.4.5...
613Applying sub-patch '22502456' to OH '/u01/app/oracle/product/11.2.0/db'
614ApplySession: Optional component(s) [ oracle.tfa, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
615
616Patching component oracle.precomp.common, 11.2.0.4.0...
617
618Patching component oracle.oraolap.dbscripts, 11.2.0.4.0...
619
620Patching component oracle.rdbms.olap, 11.2.0.4.0...
621
622Patching component oracle.oraolap, 11.2.0.4.0...
623
624Patching component oracle.rdbms.rsf, 11.2.0.4.0...
625
626Patching component oracle.rdbms.rman, 11.2.0.4.0...
627
628Patching component oracle.rdbms, 11.2.0.4.0...
629
630Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
631Applying sub-patch '23054359' to OH '/u01/app/oracle/product/11.2.0/db'
632
633Patching component oracle.rdbms.dv, 11.2.0.4.0...
634
635Patching component oracle.rdbms, 11.2.0.4.0...
636
637Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
638
639Patching component oracle.rdbms.rsf, 11.2.0.4.0...
640Applying sub-patch '24006111' to OH '/u01/app/oracle/product/11.2.0/db'
641
642Patching component oracle.sqlplus.ic, 11.2.0.4.0...
643
644Patching component oracle.sqlplus, 11.2.0.4.0...
645
646Patching component oracle.rdbms.rsf, 11.2.0.4.0...
647
648Patching component oracle.rdbms, 11.2.0.4.0...
649
650Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
651Applying sub-patch '24732075' to OH '/u01/app/oracle/product/11.2.0/db'
652
653Patching component oracle.precomp.common, 11.2.0.4.0...
654
655Patching component oracle.sysman.plugin.db.main.agent, 11.2.0.4.0...
656
657Patching component oracle.sqlplus.ic, 11.2.0.4.0...
658
659Patching component oracle.sqlplus, 11.2.0.4.0...
660
661Patching component oracle.rdbms.rsf, 11.2.0.4.0...
662
663Patching component oracle.rdbms, 11.2.0.4.0...
664
665Patching component oracle.rdbms.util, 11.2.0.4.0...
666
667Patching component oracle.ordim.client, 11.2.0.4.0...
668
669Patching component oracle.ordim.jai, 11.2.0.4.0...
670
671Patching component oracle.ordim.server, 11.2.0.4.0...
672Applying sub-patch '25869727' to OH '/u01/app/oracle/product/11.2.0/db'
673ApplySession: Optional component(s) [ oracle.oid.client, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
674
675Patching component oracle.ldap.rsf, 11.2.0.4.0...
676
677Patching component oracle.oracore.rsf, 11.2.0.4.0...
678
679Patching component oracle.rdbms, 11.2.0.4.0...
680
681Patching component oracle.rdbms.rsf, 11.2.0.4.0...
682
683Patching component oracle.rdbms.rman, 11.2.0.4.0...
684Applying sub-patch '26609445' to OH '/u01/app/oracle/product/11.2.0/db'
685
686Patching component oracle.oracore.rsf, 11.2.0.4.0...
687
688Patching component oracle.rdbms, 11.2.0.4.0...
689Applying sub-patch '26392168' to OH '/u01/app/oracle/product/11.2.0/db'
690ApplySession: Optional component(s) [ oracle.oid.client, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
691
692Patching component oracle.network.rsf, 11.2.0.4.0...
693
694Patching component oracle.ldap.client, 11.2.0.4.0...
695
696Patching component oracle.sysman.agent, 10.2.0.4.5...
697
698Patching component oracle.xdk, 11.2.0.4.0...
699
700Patching component oracle.rdbms, 11.2.0.4.0...
701
702Patching component oracle.network.listener, 11.2.0.4.0...
703
704Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
705
706Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...
707
708Patching component oracle.xdk.parser.java, 11.2.0.4.0...
709
710Patching component oracle.xdk.rsf, 11.2.0.4.0...
711
712Patching component oracle.rdbms.rsf, 11.2.0.4.0...
713
714Patching component oracle.rdbms.rman, 11.2.0.4.0...
715Applying sub-patch '26925576' to OH '/u01/app/oracle/product/11.2.0/db'
716
717Patching component oracle.rdbms, 11.2.0.4.0...
718
719Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
720
721Patching component oracle.rdbms.rman, 11.2.0.4.0...
722
723Patching component oracle.rdbms.rsf, 11.2.0.4.0...
724Applying sub-patch '27338049' to OH '/u01/app/oracle/product/11.2.0/db'
725
726Patching component oracle.assistants.server, 11.2.0.4.0...
727
728Patching component oracle.rdbms.rsf, 11.2.0.4.0...
729
730Patching component oracle.rdbms, 11.2.0.4.0...
731
732Patching component oracle.rdbms.rman, 11.2.0.4.0...
733
734Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
735Applying sub-patch '27734982' to OH '/u01/app/oracle/product/11.2.0/db'
736
737Patching component oracle.ctx, 11.2.0.4.0...
738
739Patching component oracle.rdbms.rsf, 11.2.0.4.0...
740
741Patching component oracle.ctx.rsf, 11.2.0.4.0...
742
743Patching component oracle.rdbms, 11.2.0.4.0...
744
745Patching component oracle.rdbms.rman, 11.2.0.4.0...
746Applying sub-patch '28204707' to OH '/u01/app/oracle/product/11.2.0/db'
747Applying changes to emctl script on the home: /u01/app/oracle/product/11.2.0/db ...
748
749Patching component oracle.rdbms, 11.2.0.4.0...
750
751Patching component oracle.oracore.rsf, 11.2.0.4.0...
752
753Patching component oracle.rdbms.rsf, 11.2.0.4.0...
754
755Patching component oracle.ldap.rsf, 11.2.0.4.0...
756
757Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
758
759Patching component oracle.network.rsf, 11.2.0.4.0...
760
761Patching component oracle.sysman.agent, 10.2.0.4.5...
762
763Patching component oracle.sysman.console.db, 11.2.0.4.0...
764
765Patching component oracle.ldap.security.osdt, 11.2.0.4.0...
766
767Patching component oracle.ldap.owm, 11.2.0.4.0...
768
769Patching component oracle.sqlplus.rsf, 11.2.0.4.0...
770
771Patching component oracle.ctx, 11.2.0.4.0...
772Applying sub-patch '28729262' to OH '/u01/app/oracle/product/11.2.0/db'
773INFO: Script isn't applicable to this port!
774
775Patching component oracle.rdbms, 11.2.0.4.0...
776
777Patching component oracle.rdbms.rsf, 11.2.0.4.0...
778
779Patching component oracle.rdbms.util, 11.2.0.4.0...
780
781Patching component oracle.ldap.rsf, 11.2.0.4.0...
782
783Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
784
785Patching component oracle.network.rsf, 11.2.0.4.0...
786
787Patching component oracle.rdbms.rman, 11.2.0.4.0...
788
789Patching component oracle.ctx, 11.2.0.4.0...
790Applying sub-patch '29141056' to OH '/u01/app/oracle/product/11.2.0/db'
791
792Patching component oracle.rdbms, 11.2.0.4.0...
793
794Patching component oracle.rdbms.rman, 11.2.0.4.0...
795
796Patching component oracle.oracore.rsf, 11.2.0.4.0...
797
798Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
799
800Patching component oracle.rdbms.rsf, 11.2.0.4.0...
801Applying sub-patch '29497421' to OH '/u01/app/oracle/product/11.2.0/db'
802
803Patching component oracle.rdbms, 11.2.0.4.0...
804
805Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
806
807Patching component oracle.rdbms.rman, 11.2.0.4.0...
808
809Patching component oracle.rdbms.rsf, 11.2.0.4.0...
810
811Patching component oracle.ldap.rsf, 11.2.0.4.0...
812
813Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
814
815Patching component oracle.oracore.rsf, 11.2.0.4.0...
816
817Patching component oracle.ctx, 11.2.0.4.0...
818Applying sub-patch '29913194' to OH '/u01/app/oracle/product/11.2.0/db'
819
820Patching component oracle.rdbms, 11.2.0.4.0...
821
822Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
823
824Patching component oracle.rdbms.rsf, 11.2.0.4.0...
825
826Patching component oracle.network.rsf, 11.2.0.4.0...
827
828Patching component oracle.ldap.rsf, 11.2.0.4.0...
829
830Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
831
832Patching component oracle.rdbms.util, 11.2.0.4.0...
833Applying sub-patch '30298532' to OH '/u01/app/oracle/product/11.2.0/db'
834ApplySession: Optional component(s) [ oracle.rdbms.tg4tera, 11.2.0.4.0 ] , [ oracle.rdbms.tg4sybs, 11.2.0.4.0 ] , [ oracle.rdbms.tg4ifmx, 11.2.0.4.0 ] , [ oracle.rdbms.tg4db2, 11.2.0.4.0 ] , [ oracle.rdbms.tg4msql, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
835
836Patching component oracle.rdbms.rsf, 11.2.0.4.0...
837
838Patching component oracle.rdbms, 11.2.0.4.0...
839
840Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
841
842Patching component oracle.rdbms.hsodbc, 11.2.0.4.0...
843
844Patching component oracle.ldap.rsf, 11.2.0.4.0...
845
846Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
847Applying sub-patch '30670774' to OH '/u01/app/oracle/product/11.2.0/db'
848
849Patching component oracle.rdbms.rsf, 11.2.0.4.0...
850
851Patching component oracle.rdbms, 11.2.0.4.0...
852
853Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
854
855Patching component oracle.network.rsf, 11.2.0.4.0...
856
857Patching component oracle.ldap.rsf, 11.2.0.4.0...
858
859Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
860
861Patching component oracle.swd.oui, 11.2.0.4.0...
862
863Patching component oracle.ctx, 11.2.0.4.0...
864Applying sub-patch '31103343' to OH '/u01/app/oracle/product/11.2.0/db'
865
866Patching component oracle.rdbms, 11.2.0.4.0...
867
868Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
869
870Patching component oracle.rdbms.rsf, 11.2.0.4.0...
871Applying sub-patch '31537677' to OH '/u01/app/oracle/product/11.2.0/db'
872
873Patching component oracle.rdbms, 11.2.0.4.0...
874
875Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
876
877Patching component oracle.rdbms.rsf, 11.2.0.4.0...
878
879Patching component oracle.rdbms.dv, 11.2.0.4.0...
880
881Patching component oracle.rdbms.rman, 11.2.0.4.0...
882
883Patching component oracle.ldap.rsf, 11.2.0.4.0...
884
885Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
886
887Patching component oracle.oracore.rsf, 11.2.0.4.0...
888
889Patching component oracle.rdbms.util, 11.2.0.4.0...
890
891Patching component oracle.dbdev, 11.2.0.4.0...
892
893Patching component oracle.ctx, 11.2.0.4.0...
894
895Patching component oracle.buildtools.rsf, 11.2.0.4.0...
896Applying sub-patch '31983472' to OH '/u01/app/oracle/product/11.2.0/db'
897
898Patching component oracle.rdbms.rsf, 11.2.0.4.0...
899
900Patching component oracle.rdbms, 11.2.0.4.0...
901
902Patching component oracle.ctx, 11.2.0.4.0...
903Applying sub-patch '32328626' to OH '/u01/app/oracle/product/11.2.0/db'
904
905Patching component oracle.rdbms, 11.2.0.4.0...
906
907Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
908
909Patching component oracle.rdbms.rsf, 11.2.0.4.0...
910
911Patching component oracle.rdbms.dv, 11.2.0.4.0...
912
913Patching component oracle.rdbms.rman, 11.2.0.4.0...
914
915Patching component oracle.ldap.rsf, 11.2.0.4.0...
916
917Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
918Applying sub-patch '32758711' to OH '/u01/app/oracle/product/11.2.0/db'
919
920Patching component oracle.rdbms, 11.2.0.4.0...
921
922Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
923
924Patching component oracle.ctx, 11.2.0.4.0...
925
926Patching component oracle.network.rsf, 11.2.0.4.0...
927Applying sub-patch '33128584' to OH '/u01/app/oracle/product/11.2.0/db'
928
929Patching component oracle.rdbms, 11.2.0.4.0...
930
931Patching component oracle.rdbms.rsf, 11.2.0.4.0...
932
933Patching component oracle.ctx, 11.2.0.4.0...
934Applying sub-patch '33477185' to OH '/u01/app/oracle/product/11.2.0/db'
935
936Patching component oracle.rdbms, 11.2.0.4.0...
937
938Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
939
940Patching component oracle.rdbms.rsf, 11.2.0.4.0...
941
942Patching component oracle.network.rsf, 11.2.0.4.0...
943
944Patching component oracle.rdbms.dv, 11.2.0.4.0...
945Applying sub-patch '33711103' to OH '/u01/app/oracle/product/11.2.0/db'
946ApplySession: Optional component(s) [ oracle.rdbms.tg4tera, 11.2.0.4.0 ] , [ oracle.rdbms.tg4sybs, 11.2.0.4.0 ] , [ oracle.rdbms.tg4msql, 11.2.0.4.0 ] , [ oracle.rdbms.tg4ifmx, 11.2.0.4.0 ] , [ oracle.rdbms.tg4db2, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
947
948Patching component oracle.rdbms.rsf, 11.2.0.4.0...
949
950Patching component oracle.rdbms, 11.2.0.4.0...
951
952Patching component oracle.rdbms.rsf, 11.2.0.4.0...
953
954Patching component oracle.network.rsf, 11.2.0.4.0...
955
956Patching component oracle.rdbms.hsodbc, 11.2.0.4.0...
957
958Patching component oracle.rdbms.hs_common, 11.2.0.4.0...
959
960Patching component oracle.buildtools.rsf, 11.2.0.4.0...
961
962Patching component oracle.buildtools.rsf, 11.2.0.4.0...
963Applying sub-patch '34057724' to OH '/u01/app/oracle/product/11.2.0/db'
964ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
965
966Patching component oracle.rdbms, 11.2.0.4.0...
967
968Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
969
970Patching component oracle.rdbms.rsf, 11.2.0.4.0...
971
972Patching component oracle.network.rsf, 11.2.0.4.0...
973
974Patching component oracle.ldap.rsf, 11.2.0.4.0...
975
976Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
977
978Patching component oracle.swd.oui.core, 11.2.0.4.0...
979Applying sub-patch '34386237' to OH '/u01/app/oracle/product/11.2.0/db'
980ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
981
982Patching component oracle.rdbms, 11.2.0.4.0...
983
984Patching component oracle.rdbms.rsf, 11.2.0.4.0...
985
986Patching component oracle.network.rsf, 11.2.0.4.0...
987
988Patching component oracle.swd.oui.core, 11.2.0.4.0...
989
990Patching component oracle.ctx, 11.2.0.4.0...
991Applying sub-patch '34677698' to OH '/u01/app/oracle/product/11.2.0/db'
992ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
993
994Patching component oracle.rdbms, 11.2.0.4.0...
995
996Patching component oracle.rdbms.rsf, 11.2.0.4.0...
997
998Patching component oracle.javavm.containers, 11.2.0.4.0...
999Applying sub-patch '34998337' to OH '/u01/app/oracle/product/11.2.0/db'
1000ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
1001
1002Patching component oracle.rdbms, 11.2.0.4.0...
1003
1004Patching component oracle.rdbms.rsf, 11.2.0.4.0...
1005Applying sub-patch '35269283' to OH '/u01/app/oracle/product/11.2.0/db'
1006ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
1007
1008Patching component oracle.rdbms, 11.2.0.4.0...
1009
1010Patching component oracle.network.rsf, 11.2.0.4.0...
1011
1012Patching component oracle.rdbms.rsf, 11.2.0.4.0...
1013
1014Patching component oracle.dbdev, 11.2.0.4.0...
1015Applying sub-patch '35574075' to OH '/u01/app/oracle/product/11.2.0/db'
1016ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
1017
1018Patching component oracle.rdbms, 11.2.0.4.0...
1019
1020Patching component oracle.rdbms.rsf, 11.2.0.4.0...
1021
1022Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
1023
1024Patching component oracle.network.rsf, 11.2.0.4.0...
1025
1026Patching component oracle.rdbms.rsf, 11.2.0.4.0...
1027
1028Patching component oracle.sysman.oms.core, 10.2.0.4.5...
1029
1030Patching component oracle.marvel, 11.2.0.4.0...
1031
1032Patching component oracle.javavm.containers, 11.2.0.4.0...
1033
1034Patching component oracle.dbjava.ucp, 11.2.0.4.0...
1035
1036Patching component oracle.owb.rsf, 11.2.0.4.0...
1037
1038Patching component oracle.sysman.ccr, 10.3.8.1.0...
1039
1040Patching component oracle.sysman.ccr.client, 10.3.2.1.0...
1041
1042Patching component oracle.sysman.common, 10.2.0.4.5...
1043
1044Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
1045
1046Patching component oracle.javavm.containers, 11.2.0.4.0...
1047Composite patch 35574075 successfully applied.
1048Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-02-26_13-41-26PM_1.log
1049
1050OPatch succeeded.
1051
1052#==============================================================#
1053Oracle 软件安装补丁 33991024
1054#==============================================================#
1055
1056Oracle Interim Patch Installer version 11.2.0.3.44
1057Copyright (c) 2024, Oracle Corporation. All rights reserved.
1058
1059PREREQ session
1060
1061Oracle Home : /u01/app/oracle/product/11.2.0/db
1062Central Inventory : /u01/app/oraInventory
1063 from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
1064OPatch version : 11.2.0.3.44
1065OUI version : 11.2.0.4.0
1066Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-02-26_13-50-26PM_1.log
1067
1068Invoking prereq "checkconflictagainstohwithdetail"
1069
1070Prereq "checkConflictAgainstOHWithDetail" passed.
1071
1072OPatch succeeded.
1073Oracle Interim Patch Installer version 11.2.0.3.44
1074Copyright (c) 2024, Oracle Corporation. All rights reserved.
1075
1076
1077Oracle Home : /u01/app/oracle/product/11.2.0/db
1078Central Inventory : /u01/app/oraInventory
1079 from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
1080OPatch version : 11.2.0.3.44
1081OUI version : 11.2.0.4.0
1082Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-02-26_13-50-29PM_1.log
1083
1084Verifying environment and performing prerequisite checks...
1085OPatch continues with these patches: 33991024
1086
1087Do you want to proceed? [y|n]
1088Y (auto-answered by -silent)
1089User Responded with: Y
1090All checks passed.
1091
1092Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
1093(Oracle Home = '/u01/app/oracle/product/11.2.0/db')
1094
1095
1096Is the local system ready for patching? [y|n]
1097Y (auto-answered by -silent)
1098User Responded with: Y
1099Backing up files...
1100Applying interim patch '33991024' to OH '/u01/app/oracle/product/11.2.0/db'
1101
1102Patching component oracle.rdbms.rsf, 11.2.0.4.0...
1103
1104Patching component oracle.buildtools.rsf, 11.2.0.4.0...
1105
1106Patching component oracle.has.db, 11.2.0.4.0...
1107Patch 33991024 successfully applied.
1108Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-02-26_13-50-29PM_1.log
1109
1110OPatch succeeded.
1111
1112#==============================================================#
1113Oracle 执行 relink
1114#==============================================================#
1115
1116writing relink log to: /u01/app/oracle/product/11.2.0/db/install/relink.log
1117
1118#==============================================================#
1119OJVM 补丁安装
1120#==============================================================#
1121
1122Oracle Interim Patch Installer version 11.2.0.3.44
1123Copyright (c) 2024, Oracle Corporation. All rights reserved.
1124
1125PREREQ session
1126
1127Oracle Home : /u01/app/oracle/product/11.2.0/db
1128Central Inventory : /u01/app/oraInventory
1129 from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
1130OPatch version : 11.2.0.3.44
1131OUI version : 11.2.0.4.0
1132Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-02-26_13-51-26PM_1.log
1133
1134Invoking prereq "checkconflictagainstohwithdetail"
1135
1136Prereq "checkConflictAgainstOHWithDetail" passed.
1137
1138OPatch succeeded.
1139Oracle Interim Patch Installer version 11.2.0.3.44
1140Copyright (c) 2024, Oracle Corporation. All rights reserved.
1141
1142
1143Oracle Home : /u01/app/oracle/product/11.2.0/db
1144Central Inventory : /u01/app/oraInventory
1145 from : /u01/app/oracle/product/11.2.0/db/oraInst.loc
1146OPatch version : 11.2.0.3.44
1147OUI version : 11.2.0.4.0
1148Log file location : /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-02-26_13-51-29PM_1.log
1149
1150Verifying environment and performing prerequisite checks...
1151OPatch continues with these patches: 35685663
1152
1153Do you want to proceed? [y|n]
1154Y (auto-answered by -silent)
1155User Responded with: Y
1156All checks passed.
1157
1158Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
1159(Oracle Home = '/u01/app/oracle/product/11.2.0/db')
1160
1161
1162Is the local system ready for patching? [y|n]
1163Y (auto-answered by -silent)
1164User Responded with: Y
1165Backing up files...
1166Applying interim patch '35685663' to OH '/u01/app/oracle/product/11.2.0/db'
1167ApplySession: Optional component(s) [ oracle.sqlj, 11.2.0.4.0 ] , [ oracle.sqlj.companion, 11.2.0.4.0 ] not present in the Oracle Home or a higher version is found.
1168
1169Patching component oracle.javavm.server, 11.2.0.4.0...
1170
1171Patching component oracle.precomp.common, 11.2.0.4.0...
1172
1173Patching component oracle.rdbms, 11.2.0.4.0...
1174
1175Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
1176
1177Patching component oracle.javavm.client, 11.2.0.4.0...
1178
1179Patching component oracle.dbjava.jdbc, 11.2.0.4.0...
1180
1181Patching component oracle.dbjava.ic, 11.2.0.4.0...
1182Patch 35685663 successfully applied.
1183Log file location: /u01/app/oracle/product/11.2.0/db/cfgtoollogs/opatch/opatch2024-02-26_13-51-29PM_1.log
1184
1185OPatch succeeded.
1186
1187#==============================================================#
1188Oracle 软件版本
1189#==============================================================#
1190
1191
1192SQL*Plus: Release 11.2.0.4.0 Production
1193
1194
1195#==============================================================#
1196Oracle 补丁信息
1197#==============================================================#
1198
119935685663;OJVM PATCH SET UPDATE 11.2.0.4.231017
120033991024;11204CERT ON OL8: LINKING ERRORS DURING 11204 FOR DB INSTALL ON OL8.2
120135574075;Database Patch Set Update : 11.2.0.4.231017 (35574075)
1202
1203OPatch succeeded.
1204
1205
1206#==============================================================#
1207配置监听
1208#==============================================================#
1209
1210
1211Parsing command line arguments:
1212 Parameter "silent" = true
1213 Parameter "responsefile" = /u01/app/oracle/product/11.2.0/db/assistants/netca/netca.rsp
1214Done parsing command line arguments.
1215Oracle Net Services Configuration:
1216Profile configuration complete.
1217Oracle Net Listener Startup:
1218 Running Listener Control:
1219 /u01/app/oracle/product/11.2.0/db/bin/lsnrctl start LISTENER
1220 Listener Control complete.
1221 Listener started successfully.
1222Listener configuration complete.
1223Oracle Net Services configuration successful. The exit code is 0
1224
1225检查监听状态:
1226
1227
1228LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 26-FEB-2024 13:52:01
1229
1230Copyright (c) 1991, 2013, Oracle. All rights reserved.
1231
1232Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
1233STATUS of the LISTENER
1234------------------------
1235Alias LISTENER
1236Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
1237Start Date 26-FEB-2024 13:52:00
1238Uptime 0 days 0 hr. 0 min. 0 sec
1239Trace Level off
1240Security ON: Local OS Authentication
1241SNMP OFF
1242Listener Parameter File /u01/app/oracle/product/11.2.0/db/network/admin/listener.ora
1243Listener Log File /u01/app/oracle/diag/tnslsnr/kylin/listener/alert/log.xml
1244Listening Endpoints Summary...
1245 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
1246 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=kylin)(PORT=1521)))
1247The listener supports no services
1248The command completed successfully
1249
1250#==============================================================#
1251静默建库命令
1252#==============================================================#
1253
1254dbca -silent -createDatabase \
1255-templateName General_Purpose.dbc \
1256-responseFile NO_VALUE \
1257-gdbname lucifer \
1258-sid lucifer \
1259-sysPassword welcome1 \
1260-systemPassword welcome1 \
1261-redoLogFileSize 100 \
1262-datafileDestination /oradata \
1263-storageType FS \
1264-characterSet AL32UTF8 \
1265-nationalCharacterSet AL16UTF16 \
1266-emConfiguration NONE \
1267-automaticMemoryManagement false \
1268-totalMemory 3342 \
1269-databaseType OLTP
1270
1271#==============================================================#
1272创建数据库
1273#==============================================================#
1274
1275Copying database files
12761% complete
12773% complete
127811% complete
127918% complete
128026% complete
128137% complete
1282Creating and starting Oracle instance
128340% complete
128445% complete
128550% complete
128655% complete
128756% complete
128860% complete
128962% complete
1290Completing Database Creation
129166% complete
129270% complete
129373% complete
129474% complete
129575% complete
129676% complete
129777% complete
129878% complete
129979% complete
130080% complete
130192% complete
1302100% complete
1303Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/lucifer/lucifer.log" for further details.
1304
1305#==============================================================#
1306配置在线重做日志
1307#==============================================================#
1308
1309数据库在线重做日志文件:
1310
1311
1312 THREAD# GROUP# MEMBER size(M)
1313---------- ---------- ------------------------------------------------------------------------------------------------------------------------ ----------
1314 1 1 /oradata/lucifer/redo01.log 100
1315 1 2 /oradata/lucifer/redo02.log 100
1316 1 3 /oradata/lucifer/redo03.log 100
1317 1 11 /oradata/LUCIFER/onlinelog/o1_mf_11_lxrbctj0_.log 100
1318 1 11 /u01/app/oracle/fast_recovery_area/LUCIFER/onlinelog/o1_mf_11_lxrbctlc_.log 100
1319 1 12 /oradata/LUCIFER/onlinelog/o1_mf_12_lxrbcto3_.log 100
1320 1 12 /u01/app/oracle/fast_recovery_area/LUCIFER/onlinelog/o1_mf_12_lxrbctqg_.log 100
1321 1 13 /oradata/LUCIFER/onlinelog/o1_mf_13_lxrbctsl_.log 100
1322 1 13 /u01/app/oracle/fast_recovery_area/LUCIFER/onlinelog/o1_mf_13_lxrbctvx_.log 100
1323 1 14 /oradata/LUCIFER/onlinelog/o1_mf_14_lxrbctyb_.log 100
1324 1 14 /u01/app/oracle/fast_recovery_area/LUCIFER/onlinelog/o1_mf_14_lxrbcvb4_.log 100
1325 1 15 /oradata/LUCIFER/onlinelog/o1_mf_15_lxrbcvnh_.log 100
1326 1 15 /u01/app/oracle/fast_recovery_area/LUCIFER/onlinelog/o1_mf_15_lxrbcw59_.log 100
1327
1328#==============================================================#
1329配置 RMAN 备份任务
1330#==============================================================#
1331
1332## OracleBegin
133300 02 * * * /home/oracle/scripts/del_arch.sh
1334#00 00 * * 0 /home/oracle/scripts/dbbackup_lv0.sh
1335#00 00 * * 1,2,3,4,5,6 /home/oracle/scripts/dbbackup_lv1.sh
1336
1337#==============================================================#
1338配置 glogin.sql
1339#==============================================================#
1340
1341define _editor=vi
1342set serveroutput on size 1000000
1343set pagesize 9999
1344set long 99999
1345set trimspool on
1346col name format a80
1347set termout off
1348define gname=idle
1349column global_name new_value gname
1350select lower(user) || '@' || substr( global_name, 1, decode( dot, 0, length(global_name), dot-1) ) global_name from (select global_name, instr(global_name,'.') dot from global_name );
1351ALTER SESSION SET nls_date_format = 'YYYY-MM-DD HH24:MI:SS';
1352set sqlprompt '&gname _DATE> '
1353set termout on
1354
1355#==============================================================#
1356优化数据库参数
1357#==============================================================#
1358
1359数据库参数:
1360
1361
1362NAME SID SPVALUE VALUE
1363-------------------------------------------------- ---------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
1364_b_tree_bitmap_plans * FALSE FALSE
1365_datafile_write_errors_crash_instance * FALSE FALSE
1366audit_file_dest * /u01/app/oracle/admin/lucifer/adump /u01/app/oracle/admin/lucifer/adump
1367audit_trail * NONE DB
1368compatible * 11.2.0.4.0 11.2.0.4.0
1369control_file_record_keep_time * 31 31
1370db_block_size * 8192 8192
1371db_create_file_dest * /oradata /oradata
1372db_file_multiblock_read_count * 128
1373db_files * 5000 200
1374db_name * lucifer lucifer
1375db_recovery_file_dest * /u01/app/oracle/fast_recovery_area /u01/app/oracle/fast_recovery_area
1376db_recovery_file_dest_size * 4857004032 4857004032
1377db_writer_processes * 1
1378deferred_segment_creation * FALSE FALSE
1379diagnostic_dest * /u01/app/oracle /u01/app/oracle
1380dispatchers * (PROTOCOL=TCP) (SERVICE=luciferXDB) (PROTOCOL=TCP) (SERVICE=luciferXDB)
1381enable_ddl_logging * TRUE FALSE
1382event * 10949 trace name context forever,level 1
1383event * 28401 trace name context forever,level 1
1384fast_start_parallel_rollback * LOW
1385log_archive_dest_1 * location=/oradata/archivelog location=/oradata/archivelog
1386log_archive_format * %t_%s_%r.dbf %t_%s_%r.dbf
1387max_dump_file_size * unlimited
1388open_cursors * 1000 300
1389optimizer_index_caching * 0
1390optimizer_mode * ALL_ROWS
1391parallel_force_local * FALSE
1392parallel_max_servers * 64 64
1393pga_aggregate_target * 1120927744 700448768
1394processes * 2000 150
1395remote_login_passwordfile * EXCLUSIVE EXCLUSIVE
1396resource_limit * TRUE FALSE
1397resource_manager_plan * force:
1398sec_case_sensitive_logon * FALSE TRUE
1399session_cached_cursors * 300 50
1400sessions * 248
1401sga_max_size * 4485808128 2818572288
1402sga_target * 4485808128 2818572288
1403spfile * /u01/app/oracle/product/11.2.0/db/dbs/spfilelucifer.ora
1404statistics_level * TYPICAL
1405undo_retention * 10800 900
1406
1407恭喜!Oracle 单机安装成功,现在是否重启主机:[Y/N]