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