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