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

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

一、主机准备

主机版本 主机内存 主机磁盘空间 主机网卡 主机IP ASM盘
redhat 7.9 8G 50G eth0 10.211.55.100 /dev/sde,/dev/sdf

注意:

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

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

25分钟!一键部署Oracle 11GR2 HA 单机集群

ASM盘通过共享存储之–StarWind高级配置方式配置ISCSI共享存储。
25分钟!一键部署Oracle 11GR2 HA 单机集群 - 图2

二、安装前准备

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

25分钟!一键部署Oracle 11GR2 HA 单机集群 - 图3

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
25
26
27
28
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官方DB 安装包
12. 1.3G p13390677_112040_Linux-x86-64_1of7.zip
13. 1.1G p13390677_112040_Linux-x86-64_2of7.zip
14. ##oracle 11GR2官方GRID 安装包
15. 1.2G p13390677_112040_Linux-x86-64_3of7.zip
16. ##oracle 11GR2 GRID PSU 最终版补丁包+6880880 OPatch补丁包
17. 1.3G p31718723_112040_Linux-x86-64.zip
18. 118M p6880880_112000_Linux-x86-64.zip
19. ##上下文切换软件(可选)
20. 276K rlwrap-0.42.tar.gz
21. ##RAC GRID On Linux7 需要打补丁修复OHAS
22. 175M p18370031_112040_Linux-x86-64.zip

24. ##3.授权脚本执行权限
25. chmod +x OracleShellInstall.sh

AI写代码bash

三、安装

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

25分钟!一键部署Oracle 11GR2 HA 单机集群 - 图5

安装命令如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
1. cd /soft
2. ./OracleShellInstall.sh -i 10.211.55.100 `#Public ip`\
3. -n asm11g `# hostname`\
4. -o asm11g `# oraclesid`\
5. -op oracle `# oracle user password`\
6. -gp oracle `# grid user password`\
7. -b /u01/app `# install basedir`\
8. -s AL32UTF8 `# characterset`\
9. -dd /dev/sde,/dev/sdf `# asm data disk`\
10. -dr EXTERNAL `# asm data redundancy`\
11. -gpa 31718723 `# grid psu number`

AI写代码bash

25分钟!一键部署Oracle 11GR2 HA 单机集群 - 图7

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

开始时间:11:40

执行过程太多…..略

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

安装结束后,将自动创建好一个上述指定实例名asm11g的数据库单机集群实例,并安装上传补丁31718723。

等待安装结束…….

结束时间:00:05

安装结束。

总耗时:25分钟。

25分钟!一键部署Oracle 11GR2 HA 单机集群 - 图8

25分钟!一键部署Oracle 11GR2 HA 单机集群 - 图9

安装日志如下:

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
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
1. [root@asm11g soft]# cat oracleAllSilent_20210506030826.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. asm11g

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 asm11g

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

98. # Create user and groups(grid)

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

102. Create user and groups(grid) :

104. uid=11012(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54330(racdba),54327(asmdba),54328(asmoper),54329(asmadmin)

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

108. # Create user and groups(oracle)

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

112. Create user and groups(oracle) :

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

116. ####################################################################################

118. # multipath info:

120. ####################################################################################

122. multipath info: :

124. mpathc (26db11f226db16dbc) dm-5 ROCKET ,IMAGEFILE
125. size=15G features='0' hwhandler='0' wp=rw
126. `-+- policy='service-time 0' prio=1 status=active
127. `- 8:0:0:2 sdd 8:48 active ready running
128. mpathb (2a3131d89cdb898cd) dm-4 ROCKET ,IMAGEFILE
129. size=15G features='0' hwhandler='0' wp=rw
130. `-+- policy='service-time 0' prio=1 status=active
131. `- 8:0:0:1 sdc 8:32 active ready running
132. data_2 (2c7a3296d077abc19) dm-7 ROCKET ,IMAGEFILE
133. size=10G features='0' hwhandler='0' wp=rw
134. `-+- policy='service-time 0' prio=1 status=active
135. `- 8:0:0:4 sdf 8:80 active ready running
136. mpatha (27dddccfeca91227d) dm-3 ROCKET ,IMAGEFILE
137. size=15G features='0' hwhandler='0' wp=rw
138. `-+- policy='service-time 0' prio=1 status=active
139. `- 8:0:0:0 sdb 8:16 active ready running
140. data_1 (20726af970fe9d02e) dm-6 ROCKET ,IMAGEFILE
141. size=10G features='0' hwhandler='0' wp=rw
142. `-+- policy='service-time 0' prio=1 status=active
143. `- 8:0:0:3 sde 8:64 active ready running

145. ####################################################################################

147. # udev asm info:

149. ####################################################################################

151. udev asm info: :

153. /dev/asm_data_1
154. /dev/asm_data_2

156. ####################################################################################

158. # chronyd

160. ####################################################################################

162. chronyd :

164. ● chronyd.service - NTP client/server
165. Loaded: loaded (/usr/lib/systemd/system/chronyd.service; disabled; vendor preset: enabled)
166. Active: inactive (dead)
167. Docs: man:chronyd(8)
168. man:chrony.conf(5)

170. May 06 14:23:54 localhost.localdomain systemd[1]: Starting NTP client/server...
171. 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)
172. May 06 14:23:54 localhost.localdomain systemd[1]: Started NTP client/server.
173. May 06 15:12:05 asm11g chronyd[731]: chronyd exiting
174. May 06 15:12:05 asm11g systemd[1]: Stopping NTP client/server...
175. May 06 15:12:05 asm11g systemd[1]: Stopped NTP client/server.

177. ####################################################################################

179. # Time dependent

181. ####################################################################################

183. Time dependent :

185. Thu May 6 15:12:05 CST 2021

187. ####################################################################################

189. # avahi-daemon

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

193. avahi-daemon :

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

198. # Firewalld

200. ####################################################################################

202. Firewalld :

204. ● firewalld.service - firewalld - dynamic firewall daemon
205. Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
206. Active: inactive (dead)
207. Docs: man:firewalld(1)

209. May 06 14:23:54 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
210. May 06 14:23:55 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
211. 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.
212. May 06 15:12:05 asm11g systemd[1]: Stopping firewalld - dynamic firewall daemon...
213. May 06 15:12:06 asm11g systemd[1]: Stopped firewalld - dynamic firewall daemon.

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

217. # SELINUX

219. ####################################################################################

221. SELINUX :

223. Permissive

225. ####################################################################################

227. # /etc/default/grub

229. ####################################################################################

231. /etc/default/grub :

233. GRUB_TIMEOUT=5
234. GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
235. GRUB_DEFAULT=saved
236. GRUB_DISABLE_SUBMENU=true
237. GRUB_TERMINAL_OUTPUT="console"
238. GRUB_CMDLINE_LINUX="spectre_v2=retpoline rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet transparent_hugepage=never numa=off"
239. GRUB_DISABLE_RECOVERY="true"

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

243. # Transparent_hugepages

245. ####################################################################################

247. Transparent_hugepages :

249. [always] madvise never

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

253. # NUMA

255. ####################################################################################

257. NUMA :

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

261. ####################################################################################

263. # NetworkManager

265. ####################################################################################

267. NetworkManager :

269. ● NetworkManager.service - Network Manager
270. Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
271. Active: inactive (dead) since Thu 2021-05-06 15:12:08 CST; 129ms ago
272. Docs: man:NetworkManager(8)
273. Main PID: 771 (code=exited, status=0/SUCCESS)

275. 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')
276. May 06 14:43:52 localhost.localdomain NetworkManager[771]: <info> [1620283432.5703] device (eth1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
277. May 06 14:43:52 localhost.localdomain NetworkManager[771]: <info> [1620283432.5722] device (eth1): Activation: successful, device activated.
278. May 06 15:11:08 asm11g NetworkManager[771]: <info> [1620285068.6247] hostname: hostname changed from "localhost.localdomain" to "asm11g"
279. May 06 15:11:08 asm11g NetworkManager[771]: <info> [1620285068.6258] policy: set-hostname: current hostname was changed outside NetworkManager: 'asm11g'
280. May 06 15:12:08 asm11g systemd[1]: Stopping Network Manager...
281. May 06 15:12:08 asm11g NetworkManager[771]: <info> [1620285128.1569] caught SIGTERM, shutting down normally.
282. May 06 15:12:08 asm11g NetworkManager[771]: <info> [1620285128.1614] manager: NetworkManager state is now CONNECTED_SITE
283. May 06 15:12:08 asm11g NetworkManager[771]: <info> [1620285128.1629] exiting (success)
284. May 06 15:12:08 asm11g systemd[1]: Stopped Network Manager.

286. ####################################################################################

288. # rlwrap

290. ####################################################################################

292. rlwrap :

294. rlwrap 0.42

296. ####################################################################################

298. # /etc/sysctl.conf

300. ####################################################################################

302. /etc/sysctl.conf :

304. fs.aio-max-nr = 1048576
305. fs.file-max = 6815744
306. kernel.shmall = 2097152
307. kernel.shmmax = 8365367295
308. kernel.shmmni = 4096
309. kernel.sem = 250 32000 100 128
310. net.ipv4.ip_local_port_range = 9000 65500
311. net.core.rmem_default = 262144
312. net.core.rmem_max = 4194304
313. net.core.wmem_default = 262144
314. net.core.wmem_max = 1048576

316. ####################################################################################

318. # NOZEROCONF

320. ####################################################################################

322. NOZEROCONF :

324. # Created by anaconda
325. #OracleBegin
326. NOZEROCONF=yes
327. #OracleEnd

329. ####################################################################################

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

333. ####################################################################################

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

337. # Default limit for number of user's processes to prevent
338. # accidental fork bombs.
339. # See rhbz #432903 for reasoning.

341. * - nproc 16384
342. root soft nproc unlimited

344. ####################################################################################

346. # /etc/security/limits.conf

348. ####################################################################################

350. /etc/security/limits.conf :

352. # /etc/security/limits.conf
353. #
354. #This file sets the resource limits for the users logged in via PAM.
355. #It does not affect resource limits of the system services.
356. #
357. #Also note that configuration files in /etc/security/limits.d directory,
358. #which are read in alphabetical order, override the settings in this
359. #file in case the domain is the same or more specific.
360. #That means for example that setting a limit for wildcard domain here
361. #can be overriden with a wildcard setting in a config file in the
362. #subdirectory, but a user specific setting here can be overriden only
363. #with a user specific setting in the subdirectory.
364. #
365. #Each line describes a limit for a user in the form:
366. #
367. #<domain> <type> <item> <value>
368. #
369. #Where:
370. #<domain> can be:
371. # - a user name
372. # - a group name, with @group syntax
373. # - the wildcard *, for default entry
374. # - the wildcard %, can be also used with %group syntax,
375. # for maxlogin limit
376. #
377. #<type> can have the two values:
378. # - "soft" for enforcing the soft limits
379. # - "hard" for enforcing hard limits
380. #
381. #<item> can be one of the following:
382. # - core - limits the core file size (KB)
383. # - data - max data size (KB)
384. # - fsize - maximum filesize (KB)
385. # - memlock - max locked-in-memory address space (KB)
386. # - nofile - max number of open file descriptors
387. # - rss - max resident set size (KB)
388. # - stack - max stack size (KB)
389. # - cpu - max CPU time (MIN)
390. # - nproc - max number of processes
391. # - as - address space limit (KB)
392. # - maxlogins - max number of logins for this user
393. # - maxsyslogins - max number of logins on the system
394. # - priority - the priority to run user process with
395. # - locks - max number of file locks the user can hold
396. # - sigpending - max number of pending signals
397. # - msgqueue - max memory used by POSIX message queues (bytes)
398. # - nice - max nice priority allowed to raise to values: [-20, 19]
399. # - rtprio - max realtime priority
400. #
401. #<domain> <type> <item> <value>
402. #

404. #* soft core 0
405. #* hard rss 10000
406. #@student hard nproc 20
407. #@faculty soft nproc 20
408. #@faculty hard nproc 50
409. #ftp hard nproc 0
410. #@student - maxlogins 4

412. # End of file
413. #OracleBegin
414. oracle soft nofile 1024
415. oracle hard nofile 65536
416. oracle soft stack 10240
417. oracle hard stack 32768
418. oracle soft nproc 2047
419. oracle hard nproc 16384
420. oracle hard memlock 134217728
421. oracle soft memlock 134217728

423. grid soft nofile 1024
424. grid hard nofile 65536
425. grid soft stack 10240
426. grid hard stack 32768
427. grid soft nproc 2047
428. grid hard nproc 16384
429. #OracleEnd

431. ####################################################################################

433. # /etc/pam.d/login

435. ####################################################################################

437. /etc/pam.d/login :

439. #%PAM-1.0
440. auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
441. auth substack system-auth
442. auth include postlogin
443. account required pam_nologin.so
444. account include system-auth
445. password include system-auth
446. # pam_selinux.so close should be the first session rule
447. session required pam_selinux.so close
448. session required pam_loginuid.so
449. session optional pam_console.so
450. # pam_selinux.so open should only be followed by sessions to be executed in the user context
451. session required pam_selinux.so open
452. session required pam_namespace.so
453. session optional pam_keyinit.so force revoke
454. session include system-auth
455. session include postlogin
456. -session optional pam_ck_connector.so
457. #OracleBegin
458. session required pam_limits.so
459. session required /lib64/security/pam_limits.so
460. #OracleEnd

462. ####################################################################################

464. # /dev/shm

466. ####################################################################################

468. /dev/shm :

471. #
472. # /etc/fstab
473. # Created by anaconda on Thu May 6 02:11:47 2021
474. #
475. # Accessible filesystems, by reference, are maintained under '/dev/disk'
476. # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
477. #
478. /dev/mapper/rhel-root / xfs defaults 0 0
479. UUID=32cd2453-e3e4-4e58-a3c5-d7eb092d7469 /boot xfs defaults 0 0
480. /dev/mapper/rhel-home /home xfs defaults 0 0
481. /dev/mapper/rhel-swap swap swap defaults 0 0
482. /swapfile swap swap defaults 0 0
483. tmpfs /dev/shm tmpfs size=8169304k 0 0

485. ####################################################################################

487. # df -hP

489. ####################################################################################

491. df -hP :

493. Filesystem Size Used Avail Use% Mounted on
494. devtmpfs 3.9G 4.0K 3.9G 1% /dev
495. tmpfs 7.8G 0 7.8G 0% /dev/shm
496. tmpfs 3.9G 9.1M 3.9G 1% /run
497. tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
498. /dev/mapper/rhel-root 39G 8.3G 30G 22% /
499. /dev/sda1 1014M 137M 878M 14% /boot
500. /dev/mapper/rhel-home 19G 33M 19G 1% /home
501. tmpfs 798M 0 798M 0% /run/user/0
502. /dev/sr0 4.3G 4.3G 0 100% /mnt

504. ####################################################################################

506. # Oracle Profile

508. ####################################################################################

510. Oracle Profile :

512. # .bash_profile

514. # Get the aliases and functions
515. if [ -f ~/.bashrc ]; then
516. . ~/.bashrc
517. fi

519. # User specific environment and startup programs

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

523. export PATH
524. ################OracleBegin#########################
525. umask 022
526. export TMP=/tmp
527. export TMPDIR=$TMP
528. export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 #AL32UTF8,ZHS16GBK
529. export ORACLE_BASE=/u01/app/oracle
530. export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
531. export ORACLE_HOSTNAME=asm11g
532. export ORACLE_TERM=xterm
533. export TNS_ADMIN=$ORACLE_HOME/network/admin
534. export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
535. export ORACLE_SID=asm11g
536. export PATH=/usr/sbin:$PATH
537. export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
538. alias sas='sqlplus / as sysdba'
539. alias alert='tail -500f $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace/alert_$ORACLE_SID.log|more'
540. export PS1="[`whoami`@`hostname`:"'$PWD]$ '
541. alias sqlplus='rlwrap sqlplus'
542. alias rman='rlwrap rman'
543. alias lsnrctl='rlwrap lsnrctl'
544. alias asmcmd='rlwrap asmcmd'
545. alias adrci='rlwrap adrci'
546. alias ggsci='rlwrap ggsci'
547. alias dgmgrl='rlwrap dgmgrl'
548. ################OracleEnd###########################

550. ####################################################################################

552. # Grid Profile

554. ####################################################################################

556. Grid Profile :

558. # .bash_profile

560. # Get the aliases and functions
561. if [ -f ~/.bashrc ]; then
562. . ~/.bashrc
563. fi

565. # User specific environment and startup programs

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

569. export PATH
570. ################OracleBegin#########################
571. umask 022
572. export TMP=/tmp
573. export TMPDIR=$TMP
574. export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 #AL32UTF8,ZHS16GBK
575. export ORACLE_BASE=/u01/app/grid
576. export ORACLE_HOME=/u01/app/11.2.0/grid
577. export ORACLE_TERM=xterm
578. export TNS_ADMIN=$ORACLE_HOME/network/admin
579. export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
580. export ORACLE_SID=+ASM
581. export PATH=/usr/sbin:$PATH
582. export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
583. alias sas='sqlplus / as sysasm'
584. export PS1="[`whoami`@`hostname`:"'$PWD]$ '
585. alias sqlplus='rlwrap sqlplus'
586. alias rman='rlwrap rman'
587. alias lsnrctl='rlwrap lsnrctl'
588. alias asmcmd='rlwrap asmcmd'
589. alias adrci='rlwrap adrci'
590. ################OracleEnd###########################

592. ####################################################################################

594. # /soft/grid.rsp

596. ####################################################################################

598. /soft/grid.rsp :

600. oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0
601. ORACLE_HOSTNAME=asm11g
602. INVENTORY_LOCATION=/u01/app/oraInventory
603. SELECTED_LANGUAGES=en
604. oracle.install.option=HA_CONFIG
605. ORACLE_BASE=/u01/app/grid
606. ORACLE_HOME=/u01/app/11.2.0/grid
607. oracle.install.asm.OSDBA=asmdba
608. oracle.install.asm.OSOPER=asmoper
609. oracle.install.asm.OSASM=asmadmin
610. oracle.install.crs.config.gpnp.scanName=
611. oracle.install.crs.config.gpnp.scanPort=
612. oracle.install.crs.config.clusterName=
613. oracle.install.crs.config.gpnp.configureGNS=false
614. oracle.install.crs.config.gpnp.gnsSubDomain=
615. oracle.install.crs.config.gpnp.gnsVIPAddress=
616. oracle.install.crs.config.autoConfigureClusterNodeVIP=false
617. oracle.install.crs.config.clusterNodes=
618. oracle.install.crs.config.networkInterfaceList=
619. oracle.install.crs.config.storageOption=
620. oracle.install.crs.config.sharedFileSystemStorage.diskDriveMapping=
621. oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=
622. oracle.install.crs.config.sharedFileSystemStorage.votingDiskRedundancy=NORMAL
623. oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=
624. oracle.install.crs.config.sharedFileSystemStorage.ocrRedundancy=NORMAL
625. oracle.install.crs.config.useIPMI=false
626. oracle.install.crs.config.ipmi.bmcUsername=
627. oracle.install.crs.config.ipmi.bmcPassword=
628. oracle.install.asm.SYSASMPassword=oracle
629. oracle.install.asm.diskGroup.name=DATA
630. oracle.install.asm.diskGroup.redundancy=EXTERNAL
631. oracle.install.asm.diskGroup.AUSize=1
632. oracle.install.asm.diskGroup.disks=/dev/asm_data_1,/dev/asm_data_2
633. oracle.install.asm.diskGroup.diskDiscoveryString=/dev/asm*
634. oracle.install.asm.monitorPassword=oracle
635. oracle.install.crs.upgrade.clusterNodes=
636. oracle.install.asm.upgradeASM=false
637. oracle.installer.autoupdates.option=SKIP_UPDATES
638. oracle.installer.autoupdates.downloadUpdatesLoc=
639. AUTOUPDATES_MYORACLESUPPORT_USERNAME=
640. AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
641. PROXY_HOST=
642. PROXY_PORT=0
643. PROXY_USER=
644. PROXY_PWD=
645. PROXY_REALM=

647. ####################################################################################

649. # Grid OPatch Version

651. ####################################################################################

653. Grid OPatch Version :

655. OPatch Version: 11.2.0.3.4

657. OPatch succeeded.

659. ####################################################################################

661. # Grid RDBMS

663. ####################################################################################

665. Grid RDBMS :

668. SQL*Plus: Release 11.2.0.4.0 Production

671. ####################################################################################

673. # Grid Status

675. ####################################################################################

677. Grid Status :

679. --------------------------------------------------------------------------------
680. NAME TARGET STATE SERVER STATE_DETAILS
681. --------------------------------------------------------------------------------
682. Local Resources
683. --------------------------------------------------------------------------------
684. ora.DATA.dg
685. ONLINE OFFLINE asm11g
686. ora.LISTENER.lsnr
687. ONLINE OFFLINE asm11g STARTING
688. ora.asm
689. ONLINE OFFLINE asm11g Instance Shutdown
690. ora.ons
691. OFFLINE OFFLINE asm11g
692. --------------------------------------------------------------------------------
693. Cluster Resources
694. --------------------------------------------------------------------------------
695. ora.cssd
696. 1 ONLINE OFFLINE
697. ora.diskmon
698. 1 OFFLINE OFFLINE
699. ora.evmd
700. 1 ONLINE INTERMEDIATE asm11g

702. ####################################################################################

704. # OPatch lspatches

706. ####################################################################################

708. OPatch lspatches :

710. 29509309;ACFS Patch Set Update : 11.2.0.4.190716 (29509309)
711. 31537677;Database Patch Set Update : 11.2.0.4.201020 (31537677)
712. 29938455;OCW Patch Set Update : 11.2.0.4.191015 (29938455)

714. OPatch succeeded.

716. ####################################################################################

718. # /soft/db.rsp

720. ####################################################################################

722. /soft/db.rsp :

724. oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
725. oracle.install.option=INSTALL_DB_SWONLY
726. ORACLE_HOSTNAME=asm11g
727. UNIX_GROUP_NAME=oinstall
728. INVENTORY_LOCATION=/u01/app/oraInventory
729. SELECTED_LANGUAGES=en,zh_CN
730. ORACLE_HOME=/u01/app/oracle/product/11.2.0/db
731. ORACLE_BASE=/u01/app/oracle
732. oracle.install.db.InstallEdition=EE
733. oracle.install.db.DBA_GROUP=dba
734. oracle.install.db.OPER_GROUP=oper
735. DECLINE_SECURITY_UPDATES=true
736. oracle.installer.autoupdates.option=SKIP_UPDATES

738. ####################################################################################

740. # Oracle RDBMS

742. ####################################################################################

744. Oracle RDBMS :

747. SQL*Plus: Release 11.2.0.4.0 Production

750. ####################################################################################

752. # Oracle OPatch Version

754. ####################################################################################

756. Oracle OPatch Version :

758. OPatch Version: 11.2.0.3.28

760. OPatch succeeded.

762. ####################################################################################

764. # OPatch lspatches

766. ####################################################################################

768. OPatch lspatches :

770. 31537677;Database Patch Set Update : 11.2.0.4.201020 (31537677)
771. 29938455;OCW Patch Set Update : 11.2.0.4.191015 (29938455)

773. OPatch succeeded.

775. ####################################################################################

777. # ORACLE Instance

779. ####################################################################################

781. ORACLE Instance :

784. LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 06-MAY-2021 15:35:29

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

788. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
789. STATUS of the LISTENER
790. ------------------------
791. Alias LISTENER
792. Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
793. Start Date 06-MAY-2021 15:25:17
794. Uptime 0 days 0 hr. 10 min. 12 sec
795. Trace Level off
796. Security ON: Local OS Authentication
797. SNMP OFF
798. Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
799. Listener Log File /u01/app/grid/diag/tnslsnr/asm11g/listener/alert/log.xml
800. Listening Endpoints Summary...
801. (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
802. (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=asm11g)(PORT=1521)))
803. Services Summary...
804. Service "+ASM" has 1 instance(s).
805. Instance "+ASM", status READY, has 1 handler(s) for this service...
806. Service "asm11g" has 1 instance(s).
807. Instance "asm11g", status READY, has 1 handler(s) for this service...
808. Service "asm11gXDB" has 1 instance(s).
809. Instance "asm11g", status READY, has 1 handler(s) for this service...
810. The command completed successfully

812. ####################################################################################

814. # Oracle Implied parameters

816. ####################################################################################

818. Oracle Implied parameters :

821. SQL*Plus: Release 11.2.0.4.0 Production on Thu May 6 15:35:30 2021

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

826. Connected to:
827. Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
828. With the Partitioning, Automatic Storage Management, OLAP, Data Mining
829. and Real Application Testing options

832. NAME TYPE VALUE
833. ------------------------------------ ----------- ------------------------------
834. audit_trail string NONE

836. NAME TYPE VALUE
837. ------------------------------------ ----------- ------------------------------
838. deferred_segment_creation boolean FALSE

840. NAME TYPE VALUE
841. ------------------------------------ ----------- ------------------------------
842. result_cache_max_size big integer 0

844. NAME VALUE DESCRIB
845. ---------------------------------------- ---------- ------------------------------------------------------------
846. _use_adaptive_log_file_sync TRUE Adaptively switch between post/wait and polling
847. _optimizer_cartesian_enabled FALSE optimizer cartesian join enabled

849. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
850. With the Partitioning, Automatic Storage Management, OLAP, Data Mining
851. and Real Application Testing options

AI写代码bash