无人值守安装Oracle 11GR2单机,只需要10分钟?没错,通过脚本静默安装,真的只需要10分钟,包括安装补丁,建库。

脚本下载链接SHELL脚本进行oracle数据库一键安装,实现真正的无人值守安装

一、主机准备

主机版本 主机内存 主机磁盘空间 主机网卡 主机IP
redhat 7.9 8G 50G eth0 10.211.55.100

注意:

1.主机内存不得低于2G

2.磁盘空间不得低于50G

10分钟!一键部署Oracle 11GR2单机

二、安装前准备

1.挂载ISO镜像源

1
2
3
4
5
6
7
1. ##1.通过cdrom挂载
2. mount /dev/cdrom /mnt

4. ##2.通过安装镜像源挂载
5. mount -o loop /soft/rhel-server-7.9-x86_64-dvd.iso /mnt

AI写代码bash

10分钟!一键部署Oracle 11GR2单机 - 图2

2.创建目录并上传安装介质

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
1. ##1.创建安装介质上传目录
2. mkdir /soft
3. [root@localhost ~]# cd /soft/

5. ##2.上传安装介质
6. [root@localhost soft]# du -sh *
7. ##linux7系统缺少补丁包
8. 192K compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
9. ##无人值守shell脚本
10. 140K OracleShellInstall.sh
11. ##oracle 11GR2官方安装包
12. 1.3G p13390677_112040_Linux-x86-64_1of7.zip
13. 1.1G p13390677_112040_Linux-x86-64_2of7.zip
14. ##oracle 11GR2 PSU 最终版补丁包+6880880 OPatch补丁包
15. 374M p31537677_112040_Linux-x86-64.zip
16. 118M p6880880_112000_Linux-x86-64.zip
17. ##上下文切换软件(可选)
18. 276K rlwrap-0.42.tar.gz

20. ##3.授权脚本执行权限
21. chmod +x OracleShellInstall.sh

AI写代码bash

三、安装

注意:可通过./OracleShellInstall.sh –help查看命令帮助

10分钟!一键部署Oracle 11GR2单机 - 图4

安装命令如下:

1
2
3
4
5
6
7
8
9
10
1. cd /soft
2. ./OracleShellInstall.sh -i 10.211.55.100 `#Public ip`\
3. -n s11g `# hostname`\
4. -o s11g `# oraclesid`\
5. -op oracle `# oracle user password`\
6. -b /oracle/app `# install basedir`\
7. -s AL32UTF8 `# characterset`\
8. -opa 31537677 `# oracle psu number`

AI写代码bash

敲下回车将开始无人值守安装……

开始时间:22:15

执行过程太多…..略

安装日志记录在/soft目录下:oracleAllSilent_*.log,在文末展示安装日志。

安装结束后,将自动创建好一个上述指定实例名为s11g的数据库实例,并安装上传补丁31537677。

等待安装结束…….

结束时间:22:25

安装结束。

总耗时:10分钟。

10分钟!一键部署Oracle 11GR2单机 - 图5

安装日志如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
1. [root@s11g soft]# cat oracleAllSilent_20210506025105.log
2. ####################################################################################

4. # Installation Logging

6. ####################################################################################

8. ####################################################################################

10. # OS Version

12. ####################################################################################

14. OS Version :

16. linux7

18. ####################################################################################

20. # DB Version

22. ####################################################################################

24. DB Version :

26. 11.2.0.4

28. ####################################################################################

30. # HOSTNAME

32. ####################################################################################

34. HOSTNAME :

36. s11g

38. ####################################################################################

40. # RPM Check

42. ####################################################################################

44. RPM Check :

46. bc-1.06.95-13.el7.x86_64
47. binutils-2.27-44.base.el7.x86_64
48. compat-libcap1-1.10-7.el7.x86_64
49. compat-libstdc++-33-3.2.3-72.el7.x86_64
50. gcc-4.8.5-44.el7.x86_64
51. gcc-c++-4.8.5-44.el7.x86_64
52. elfutils-libelf-0.176-5.el7.x86_64
53. elfutils-libelf-devel-0.176-5.el7.x86_64
54. glibc-2.17-317.el7.x86_64
55. glibc-devel-2.17-317.el7.x86_64
56. ksh-20120801-142.el7.x86_64
57. libaio-0.3.109-13.el7.x86_64
58. libaio-devel-0.3.109-13.el7.x86_64
59. libgcc-4.8.5-44.el7.x86_64
60. libstdc++-4.8.5-44.el7.x86_64
61. libstdc++-devel-4.8.5-44.el7.x86_64
62. libxcb-1.13-1.el7.x86_64
63. libX11-1.6.7-2.el7.x86_64
64. libXau-1.0.8-2.1.el7.x86_64
65. libXi-1.7.9-1.el7.x86_64
66. libXtst-1.2.3-1.el7.x86_64
67. libXrender-0.9.10-1.el7.x86_64
68. libXrender-devel-0.9.10-1.el7.x86_64
69. make-3.82-24.el7.x86_64
70. net-tools-2.0-0.25.20131004git.el7.x86_64
71. nfs-utils-1.3.0-0.68.el7.x86_64
72. smartmontools-7.0-2.el7.x86_64
73. sysstat-10.1.5-19.el7.x86_64
74. e2fsprogs-1.42.9-19.el7.x86_64
75. e2fsprogs-libs-1.42.9-19.el7.x86_64
76. fontconfig-devel-2.13.0-4.3.el7.x86_64
77. expect-5.45-14.el7_1.x86_64
78. unzip-6.0-21.el7.x86_64
79. openssh-clients-7.4p1-21.el7.x86_64
80. readline-6.2-11.el7.x86_64

82. ####################################################################################

84. # /etc/hosts

86. ####################################################################################

88. /etc/hosts :

90. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
91. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

93. #Public IP
94. 10.211.55.100 s11g

96. ####################################################################################

98. # Create user and groups(oracle)

100. ####################################################################################

102. Create user and groups(oracle) :

104. uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)

106. ####################################################################################

108. # chronyd

110. ####################################################################################

112. chronyd :

114. ● chronyd.service - NTP client/server
115. Loaded: loaded (/usr/lib/systemd/system/chronyd.service; disabled; vendor preset: enabled)
116. Active: inactive (dead)
117. Docs: man:chronyd(8)
118. man:chrony.conf(5)

120. May 06 14:23:54 localhost.localdomain systemd[1]: Starting NTP client/server...
121. May 06 14:23:54 localhost.localdomain chronyd[731]: chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
122. May 06 14:23:54 localhost.localdomain systemd[1]: Started NTP client/server.
123. May 06 14:51:58 s11g chronyd[731]: chronyd exiting
124. May 06 14:51:58 s11g systemd[1]: Stopping NTP client/server...
125. May 06 14:51:58 s11g systemd[1]: Stopped NTP client/server.

127. ####################################################################################

129. # Time dependent

131. ####################################################################################

133. Time dependent :

135. Thu May 6 14:51:58 CST 2021

137. ####################################################################################

139. # avahi-daemon

141. ####################################################################################

143. avahi-daemon :

146. ####################################################################################

148. # Firewalld

150. ####################################################################################

152. Firewalld :

154. ● firewalld.service - firewalld - dynamic firewall daemon
155. Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
156. Active: inactive (dead)
157. Docs: man:firewalld(1)

159. May 06 14:23:54 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
160. May 06 14:23:55 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
161. May 06 14:23:55 localhost.localdomain firewalld[750]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will be removed in a future release. Please consider disabling it now.
162. May 06 14:51:58 s11g systemd[1]: Stopping firewalld - dynamic firewall daemon...
163. May 06 14:51:59 s11g systemd[1]: Stopped firewalld - dynamic firewall daemon.

165. ####################################################################################

167. # SELINUX

169. ####################################################################################

171. SELINUX :

173. Permissive

175. ####################################################################################

177. # /etc/default/grub

179. ####################################################################################

181. /etc/default/grub :

183. GRUB_TIMEOUT=5
184. GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
185. GRUB_DEFAULT=saved
186. GRUB_DISABLE_SUBMENU=true
187. GRUB_TERMINAL_OUTPUT="console"
188. GRUB_CMDLINE_LINUX="spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet transparent_hugepage=never numa=off"
189. GRUB_DISABLE_RECOVERY="true"

191. ####################################################################################

193. # Transparent_hugepages

195. ####################################################################################

197. Transparent_hugepages :

199. [always] madvise never

201. ####################################################################################

203. # NUMA

205. ####################################################################################

207. NUMA :

209. BOOT_IMAGE=/vmlinuz-3.10.0-1160.el7.x86_64 root=/dev/mapper/rhel-root ro spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8

211. ####################################################################################

213. # NetworkManager

215. ####################################################################################

217. NetworkManager :

219. ● NetworkManager.service - Network Manager
220. Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
221. Active: inactive (dead) since Thu 2021-05-06 14:52:01 CST; 149ms ago
222. Docs: man:NetworkManager(8)
223. Main PID: 771 (code=exited, status=0/SUCCESS)

225. May 06 14:43:52 localhost.localdomain NetworkManager[771]: <info> [1620283432.5700] device (eth1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
226. May 06 14:43:52 localhost.localdomain NetworkManager[771]: <info> [1620283432.5703] device (eth1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
227. May 06 14:43:52 localhost.localdomain NetworkManager[771]: <info> [1620283432.5722] device (eth1): Activation: successful, device activated.
228. May 06 14:51:53 s11g NetworkManager[771]: <info> [1620283913.2720] hostname: hostname changed from "localhost.localdomain" to "s11g"
229. May 06 14:51:53 s11g NetworkManager[771]: <info> [1620283913.2726] policy: set-hostname: set hostname to 's11g' (from system configuration)
230. May 06 14:52:01 s11g NetworkManager[771]: <info> [1620283921.7011] caught SIGTERM, shutting down normally.
231. May 06 14:52:01 s11g systemd[1]: Stopping Network Manager...
232. May 06 14:52:01 s11g NetworkManager[771]: <info> [1620283921.7057] manager: NetworkManager state is now CONNECTED_SITE
233. May 06 14:52:01 s11g NetworkManager[771]: <info> [1620283921.7080] exiting (success)
234. May 06 14:52:01 s11g systemd[1]: Stopped Network Manager.

236. ####################################################################################

238. # rlwrap

240. ####################################################################################

242. rlwrap :

244. rlwrap 0.42

246. ####################################################################################

248. # /etc/sysctl.conf

250. ####################################################################################

252. /etc/sysctl.conf :

254. fs.aio-max-nr = 1048576
255. fs.file-max = 6815744
256. kernel.shmall = 2097152
257. kernel.shmmax = 8365367295
258. kernel.shmmni = 4096
259. kernel.sem = 250 32000 100 128
260. net.ipv4.ip_local_port_range = 9000 65500
261. net.core.rmem_default = 262144
262. net.core.rmem_max = 4194304
263. net.core.wmem_default = 262144
264. net.core.wmem_max = 1048576

266. ####################################################################################

268. # NOZEROCONF

270. ####################################################################################

272. NOZEROCONF :

274. # Created by anaconda
275. #OracleBegin
276. NOZEROCONF=yes
277. #OracleEnd

279. ####################################################################################

281. # /etc/security/limits.d/20-nproc.conf

283. ####################################################################################

285. /etc/security/limits.d/20-nproc.conf :

287. # Default limit for number of user's processes to prevent
288. # accidental fork bombs.
289. # See rhbz #432903 for reasoning.

291. * - nproc 16384
292. root soft nproc unlimited

294. ####################################################################################

296. # /etc/security/limits.conf

298. ####################################################################################

300. /etc/security/limits.conf :

302. # /etc/security/limits.conf
303. #
304. #This file sets the resource limits for the users logged in via PAM.
305. #It does not affect resource limits of the system services.
306. #
307. #Also note that configuration files in /etc/security/limits.d directory,
308. #which are read in alphabetical order, override the settings in this
309. #file in case the domain is the same or more specific.
310. #That means for example that setting a limit for wildcard domain here
311. #can be overriden with a wildcard setting in a config file in the
312. #subdirectory, but a user specific setting here can be overriden only
313. #with a user specific setting in the subdirectory.
314. #
315. #Each line describes a limit for a user in the form:
316. #
317. #<domain> <type> <item> <value>
318. #
319. #Where:
320. #<domain> can be:
321. # - a user name
322. # - a group name, with @group syntax
323. # - the wildcard *, for default entry
324. # - the wildcard %, can be also used with %group syntax,
325. # for maxlogin limit
326. #
327. #<type> can have the two values:
328. # - "soft" for enforcing the soft limits
329. # - "hard" for enforcing hard limits
330. #
331. #<item> can be one of the following:
332. # - core - limits the core file size (KB)
333. # - data - max data size (KB)
334. # - fsize - maximum filesize (KB)
335. # - memlock - max locked-in-memory address space (KB)
336. # - nofile - max number of open file descriptors
337. # - rss - max resident set size (KB)
338. # - stack - max stack size (KB)
339. # - cpu - max CPU time (MIN)
340. # - nproc - max number of processes
341. # - as - address space limit (KB)
342. # - maxlogins - max number of logins for this user
343. # - maxsyslogins - max number of logins on the system
344. # - priority - the priority to run user process with
345. # - locks - max number of file locks the user can hold
346. # - sigpending - max number of pending signals
347. # - msgqueue - max memory used by POSIX message queues (bytes)
348. # - nice - max nice priority allowed to raise to values: [-20, 19]
349. # - rtprio - max realtime priority
350. #
351. #<domain> <type> <item> <value>
352. #

354. #* soft core 0
355. #* hard rss 10000
356. #@student hard nproc 20
357. #@faculty soft nproc 20
358. #@faculty hard nproc 50
359. #ftp hard nproc 0
360. #@student - maxlogins 4

362. # End of file
363. #OracleBegin
364. oracle soft nofile 1024
365. oracle hard nofile 65536
366. oracle soft stack 10240
367. oracle hard stack 32768
368. oracle soft nproc 2047
369. oracle hard nproc 16384
370. oracle hard memlock 134217728
371. oracle soft memlock 134217728
372. #OracleEnd

374. ####################################################################################

376. # /etc/pam.d/login

378. ####################################################################################

380. /etc/pam.d/login :

382. #%PAM-1.0
383. auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
384. auth substack system-auth
385. auth include postlogin
386. account required pam_nologin.so
387. account include system-auth
388. password include system-auth
389. # pam_selinux.so close should be the first session rule
390. session required pam_selinux.so close
391. session required pam_loginuid.so
392. session optional pam_console.so
393. # pam_selinux.so open should only be followed by sessions to be executed in the user context
394. session required pam_selinux.so open
395. session required pam_namespace.so
396. session optional pam_keyinit.so force revoke
397. session include system-auth
398. session include postlogin
399. -session optional pam_ck_connector.so
400. #OracleBegin
401. session required pam_limits.so
402. session required /lib64/security/pam_limits.so
403. #OracleEnd

405. ####################################################################################

407. # /dev/shm

409. ####################################################################################

411. /dev/shm :

414. #
415. # /etc/fstab
416. # Created by anaconda on Thu May 6 02:11:47 2021
417. #
418. # Accessible filesystems, by reference, are maintained under '/dev/disk'
419. # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
420. #
421. /dev/mapper/rhel-root / xfs defaults 0 0
422. UUID=32cd2453-e3e4-4e58-a3c5-d7eb092d7469 /boot xfs defaults 0 0
423. /dev/mapper/rhel-home /home xfs defaults 0 0
424. /dev/mapper/rhel-swap swap swap defaults 0 0
425. /swapfile swap swap defaults 0 0
426. tmpfs /dev/shm tmpfs size=8169304k 0 0

428. ####################################################################################

430. # df -hP

432. ####################################################################################

434. df -hP :

436. Filesystem Size Used Avail Use% Mounted on
437. devtmpfs 3.9G 0 3.9G 0% /dev
438. tmpfs 7.8G 0 7.8G 0% /dev/shm
439. tmpfs 3.9G 9.1M 3.9G 1% /run
440. tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
441. /dev/mapper/rhel-root 39G 6.5G 32G 17% /
442. /dev/sda1 1014M 137M 878M 14% /boot
443. /dev/mapper/rhel-home 19G 33M 19G 1% /home
444. tmpfs 798M 0 798M 0% /run/user/0
445. /dev/sr0 4.3G 4.3G 0 100% /mnt

447. ####################################################################################

449. # Oracle Profile

451. ####################################################################################

453. Oracle Profile :

455. # .bash_profile

457. # Get the aliases and functions
458. if [ -f ~/.bashrc ]; then
459. . ~/.bashrc
460. fi

462. # User specific environment and startup programs

464. PATH=$PATH:$HOME/.local/bin:$HOME/bin

466. export PATH
467. ################OracleBegin#########################
468. umask 022
469. export TMP=/tmp
470. export TMPDIR=$TMP
471. export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 #AL32UTF8,ZHS16GBK
472. export ORACLE_BASE=/oracle/app/oracle
473. export ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db
474. export ORACLE_HOSTNAME=s11g
475. export ORACLE_TERM=xterm
476. export TNS_ADMIN=$ORACLE_HOME/network/admin
477. export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
478. export ORACLE_SID=s11g
479. export PATH=/usr/sbin:$PATH
480. export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
481. alias sas='sqlplus / as sysdba'
482. alias alert='tail -500f $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/alert_$ORACLE_SID.log|more'
483. export PS1="[`whoami`@`hostname`:"'$PWD]$ '
484. alias sqlplus='rlwrap sqlplus'
485. alias rman='rlwrap rman'
486. alias lsnrctl='rlwrap lsnrctl'
487. alias asmcmd='rlwrap asmcmd'
488. alias adrci='rlwrap adrci'
489. alias ggsci='rlwrap ggsci'
490. alias dgmgrl='rlwrap dgmgrl'
491. ################OracleEnd###########################

493. ####################################################################################

495. # /soft/db.rsp

497. ####################################################################################

499. /soft/db.rsp :

501. oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
502. oracle.install.option=INSTALL_DB_SWONLY
503. ORACLE_HOSTNAME=s11g
504. UNIX_GROUP_NAME=oinstall
505. INVENTORY_LOCATION=/oracle/app/oraInventory
506. SELECTED_LANGUAGES=en,zh_CN
507. ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db
508. ORACLE_BASE=/oracle/app/oracle
509. oracle.install.db.InstallEdition=EE
510. oracle.install.db.DBA_GROUP=dba
511. oracle.install.db.OPER_GROUP=oper
512. DECLINE_SECURITY_UPDATES=true
513. oracle.installer.autoupdates.option=SKIP_UPDATES

515. ####################################################################################

517. # /soft/netca.rsp

519. ####################################################################################

521. /soft/netca.rsp :

523. [GENERAL]
524. RESPONSEFILE_VERSION="11.2"
525. CREATE_TYPE="CUSTOM"
526. [oracle.net.ca]
527. INSTALLED_COMPONENTS={"server","net8","javavm"}
528. INSTALL_TYPE=""typical""
529. LISTENER_NUMBER=1
530. LISTENER_NAMES={"LISTENER"}
531. LISTENER_PROTOCOLS={"TCP;1521"}
532. LISTENER_START=""LISTENER""
533. NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
534. NSN_NUMBER=1
535. NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
536. NSN_SERVICE={"PLSExtProc"}
537. NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}

539. ####################################################################################

541. # Oracle RDBMS

543. ####################################################################################

545. Oracle RDBMS :

548. SQL*Plus: Release 11.2.0.4.0 Production

551. ####################################################################################

553. # Oracle OPatch Version

555. ####################################################################################

557. Oracle OPatch Version :

559. OPatch Version: 11.2.0.3.28

561. OPatch succeeded.

563. ####################################################################################

565. # OPatch lspatches

567. ####################################################################################

569. OPatch lspatches :

571. 31537677;Database Patch Set Update : 11.2.0.4.201020 (31537677)

573. OPatch succeeded.

575. ####################################################################################

577. # ORACLE Instance

579. ####################################################################################

581. ORACLE Instance :

584. LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 06-MAY-2021 15:00:40

586. Copyright (c) 1991, 2013, Oracle. All rights reserved.

588. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
589. STATUS of the LISTENER
590. ------------------------
591. Alias LISTENER
592. Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
593. Start Date 06-MAY-2021 14:55:04
594. Uptime 0 days 0 hr. 5 min. 36 sec
595. Trace Level off
596. Security ON: Local OS Authentication
597. SNMP OFF
598. Listener Parameter File /oracle/app/oracle/product/11.2.0/db/network/admin/listener.ora
599. Listener Log File /oracle/app/oracle/diag/tnslsnr/s11g/listener/alert/log.xml
600. Listening Endpoints Summary...
601. (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
602. (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=s11g)(PORT=1521)))
603. Services Summary...
604. Service "s11g" has 1 instance(s).
605. Instance "s11g", status READY, has 1 handler(s) for this service...
606. The command completed successfully

608. ####################################################################################

610. # Oracle Implied parameters

612. ####################################################################################

614. Oracle Implied parameters :

617. SQL*Plus: Release 11.2.0.4.0 Production on Thu May 6 15:00:41 2021

619. Copyright (c) 1982, 2013, Oracle. All rights reserved.

622. Connected to:
623. Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
624. With the Partitioning, OLAP, Data Mining and Real Application Testing options

627. NAME TYPE VALUE
628. ------------------------------------ ----------- ------------------------------
629. audit_trail string DB

631. NAME TYPE VALUE
632. ------------------------------------ ----------- ------------------------------
633. deferred_segment_creation boolean FALSE

635. NAME TYPE VALUE
636. ------------------------------------ ----------- ------------------------------
637. result_cache_max_size big integer 0

639. NAME VALUE DESCRIB
640. ---------------------------------------- ---------- ------------------------------------------------------------
641. _use_adaptive_log_file_sync TRUE Adaptively switch between post/wait and polling
642. _optimizer_cartesian_enabled FALSE optimizer cartesian join enabled

644. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
645. With the Partitioning, OLAP, Data Mining and Real Application Testing options

AI写代码bash