无人值守安装Oracle 12CR2单机CDB+PDB,只需要15分钟?没错,通过脚本静默安装,真的只需要15分钟,包括安装补丁,建库。

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

一、主机准备

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

注意:

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

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

15分钟!一键部署Oracle 12CR2单机CDB+PDB

二、安装前准备

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

15分钟!一键部署Oracle 12CR2单机CDB+PDB - 图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
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. ##oracle 12CR2 DB官方安装包
10. 3.3G LINUX.X64_122010_db_home.zip
11. ##无人值守shell脚本
12. 140K OracleShellInstall.sh
13. ##oracle 12CR2 PSU 最新版补丁包+6880880 OPatch补丁包
14. 933M p32507738_122010_Linux-x86-64.zip
15. 116M p6880880_122010_Linux-x86-64.zip
16. ##上下文切换软件(可选)
17. 276K rlwrap-0.42.tar.gz

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

AI写代码bash

三、安装

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

15分钟!一键部署Oracle 12CR2单机CDB+PDB - 图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 s12c `# hostname`\
4. -o s12c `# oraclesid`\
5. -op oracle `# oracle user password`\
6. -b /u01/app `# install basedir`\
7. -s ZHS16GBK `# characterset`\
8. -opa 32507738 `# oracle psu number`

AI写代码bash

注意:可通过指定-c 和-pb的值来确认是否创建CDB+PDB数据库。

1
2
3
4
1. -c TRUE `# cdb`\
2. -pb pdb01 `# pdb`\

AI写代码bash

15分钟!一键部署Oracle 12CR2单机CDB+PDB - 图5

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

开始时间:11:45

执行过程太多…..略

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

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

等待安装结束…….

结束时间:11:58

安装结束。

总耗时:

非CDB数据库,13分钟。

CDB+PDB数据库,15~20分钟。(安装过程忽略,可自行测试)

15分钟!一键部署Oracle 12CR2单机CDB+PDB - 图6

15分钟!一键部署Oracle 12CR2单机CDB+PDB - 图7

安装日志如下:

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
641
1. [root@s12c soft]# cat oracleAllSilent_20210506030517.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. 12.2.0.1

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

30. # HOSTNAME

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

34. HOSTNAME :

36. s12c

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 s12c

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:51:16 localhost.localdomain systemd[1]: Starting NTP client/server...
121. May 06 14:51:16 localhost.localdomain chronyd[706]: chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
122. May 06 14:51:16 localhost.localdomain chronyd[706]: Frequency 0.000 +/- 1000000.000 ppm read from /var/lib/chrony/drift
123. May 06 14:51:16 localhost.localdomain systemd[1]: Started NTP client/server.
124. May 06 15:06:39 s12c chronyd[706]: chronyd exiting
125. May 06 15:06:39 s12c systemd[1]: Stopping NTP client/server...
126. May 06 15:06:39 s12c systemd[1]: Stopped NTP client/server.

128. ####################################################################################

130. # Time dependent

132. ####################################################################################

134. Time dependent :

136. Thu May 6 15:06:39 CST 2021

138. ####################################################################################

140. # avahi-daemon

142. ####################################################################################

144. avahi-daemon :

147. ####################################################################################

149. # Firewalld

151. ####################################################################################

153. Firewalld :

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

160. May 06 14:51:16 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
161. May 06 14:51:16 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
162. May 06 14:51:16 localhost.localdomain firewalld[722]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will be removed in a future release. Please consider disabling it now.
163. May 06 15:06:40 s12c systemd[1]: Stopping firewalld - dynamic firewall daemon...
164. May 06 15:06:40 s12c systemd[1]: Stopped firewalld - dynamic firewall daemon.

166. ####################################################################################

168. # SELINUX

170. ####################################################################################

172. SELINUX :

174. Permissive

176. ####################################################################################

178. # /etc/default/grub

180. ####################################################################################

182. /etc/default/grub :

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

192. ####################################################################################

194. # Transparent_hugepages

196. ####################################################################################

198. Transparent_hugepages :

200. [always] madvise never

202. ####################################################################################

204. # NUMA

206. ####################################################################################

208. NUMA :

210. 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

212. ####################################################################################

214. # NetworkManager

216. ####################################################################################

218. NetworkManager :

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

226. May 06 14:51:17 localhost.localdomain NetworkManager[724]: <info> [1620283877.7036] device (eth1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
227. May 06 14:51:17 localhost.localdomain NetworkManager[724]: <info> [1620283877.7086] device (eth1): Activation: successful, device activated.
228. May 06 14:51:17 localhost.localdomain NetworkManager[724]: <info> [1620283877.7090] manager: startup complete
229. May 06 15:06:34 s12c NetworkManager[724]: <info> [1620284794.4650] hostname: hostname changed from "localhost.localdomain" to "s12c"
230. May 06 15:06:34 s12c NetworkManager[724]: <info> [1620284794.4654] policy: set-hostname: set hostname to 's12c' (from system configuration)
231. May 06 15:06:42 s12c systemd[1]: Stopping Network Manager...
232. May 06 15:06:42 s12c NetworkManager[724]: <info> [1620284802.8183] caught SIGTERM, shutting down normally.
233. May 06 15:06:42 s12c NetworkManager[724]: <info> [1620284802.8222] manager: NetworkManager state is now CONNECTED_SITE
234. May 06 15:06:42 s12c NetworkManager[724]: <info> [1620284802.8250] exiting (success)
235. May 06 15:06:42 s12c systemd[1]: Stopped Network Manager.

237. ####################################################################################

239. # rlwrap

241. ####################################################################################

243. rlwrap :

245. rlwrap 0.42

247. ####################################################################################

249. # /etc/sysctl.conf

251. ####################################################################################

253. /etc/sysctl.conf :

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

267. ####################################################################################

269. # NOZEROCONF

271. ####################################################################################

273. NOZEROCONF :

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

280. ####################################################################################

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

284. ####################################################################################

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

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

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

295. ####################################################################################

297. # /etc/security/limits.conf

299. ####################################################################################

301. /etc/security/limits.conf :

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

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

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

375. ####################################################################################

377. # /etc/pam.d/login

379. ####################################################################################

381. /etc/pam.d/login :

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

406. ####################################################################################

408. # /dev/shm

410. ####################################################################################

412. /dev/shm :

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

429. ####################################################################################

431. # df -hP

433. ####################################################################################

435. df -hP :

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

448. ####################################################################################

450. # Oracle Profile

452. ####################################################################################

454. Oracle Profile :

456. # .bash_profile

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

463. # User specific environment and startup programs

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

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

494. ####################################################################################

496. # /soft/db.rsp

498. ####################################################################################

500. /soft/db.rsp :

502. oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.2.0
503. oracle.install.option=INSTALL_DB_SWONLY
504. UNIX_GROUP_NAME=oinstall
505. ORACLE_HOME=/u01/app/oracle/product/12.2.0/db
506. INVENTORY_LOCATION=/u01/app/oraInventory
507. ORACLE_BASE=/u01/app/oracle
508. SELECTED_LANGUAGES=en,zh_CN
509. oracle.install.db.InstallEdition=EE
510. oracle.install.db.OSDBA_GROUP=dba
511. oracle.install.db.OSOPER_GROUP=oper
512. oracle.install.db.OSBACKUPDBA_GROUP=backupdba
513. oracle.install.db.OSDGDBA_GROUP=dgdba
514. oracle.install.db.OSKMDBA_GROUP=kmdba
515. oracle.install.db.OSRACDBA_GROUP=racdba

517. ####################################################################################

519. # /soft/netca.rsp

521. ####################################################################################

523. /soft/netca.rsp :

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

541. ####################################################################################

543. # Oracle RDBMS

545. ####################################################################################

547. Oracle RDBMS :

550. SQL*Plus: Release 12.2.0.1.0 Production

553. ####################################################################################

555. # Oracle OPatch Version

557. ####################################################################################

559. Oracle OPatch Version :

561. OPatch Version: 12.2.0.1.24

563. OPatch succeeded.

565. ####################################################################################

567. # OPatch lspatches

569. ####################################################################################

571. OPatch lspatches :

573. 32507738;Database Apr 2021 Release Update : 12.2.0.1.210420 (32507738)

575. OPatch succeeded.

577. ####################################################################################

579. # ORACLE Instance

581. ####################################################################################

583. ORACLE Instance :

586. LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 06-MAY-2021 15:19:42

588. Copyright (c) 1991, 2016, Oracle. All rights reserved.

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

610. ####################################################################################

612. # Oracle Implied parameters

614. ####################################################################################

616. Oracle Implied parameters :

619. SQL*Plus: Release 12.2.0.1.0 Production on Thu May 6 15:19:44 2021

621. Copyright (c) 1982, 2016, Oracle. All rights reserved.

624. Connected to:
625. Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

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

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

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

640. NAME VALUE DESCRIB
641. ---------------------------------------- ---------- ------------------------------------------------------------
642. _use_single_log_writer ADAPTIVE Use a single process for redo log writing
643. _use_adaptive_log_file_sync TRUE Adaptively switch between post/wait and polling
644. _optimizer_cartesian_enabled FALSE optimizer cartesian join enabled

646. Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

AI写代码bash