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