Scripts: Oracle11g自动化安装

安装脚本:

https://raw.githubusercontent.com/xblvesting/oracle-install/master/auto-install.sh

Readme

  • 支持Oracle 11g和18c版本在linux6和7的安装
  • 支持Dataguard的一键安装

部分安装日志:

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
[root@xb ~]# wget http://127.0.0.1/soft/auto-install.sh && chmod a+x auto-install.sh && ./auto-install.sh install_db
......
SELINUX=enforcing
Please input oracle's user password:
(Default password: oracle):
Please input oracle install PATH:
(Default path: /u01/app/oracle):
Please input oracle version to install [11g or 18c]:
(Default version: 11g):
Please input oracle_sid:
(Default oracle_sid: orcl):

=======================================
Now checking rpm,please wait...
=======================================

binutils-2.27-34.base.0.1.el7.x86_64
compat-libcap1-1.10-7.el7.x86_64
compat-libstdc++-33-3.2.3-72.el7.x86_64
gcc-c++-4.8.5-36.0.1.el7.x86_64
gcc-gfortran-4.8.5-36.0.1.el7.x86_64
gcc-4.8.5-36.0.1.el7.x86_64
gcc-objc-4.8.5-36.0.1.el7.x86_64
gcc-objc++-4.8.5-36.0.1.el7.x86_64
gcc-gnat-4.8.5-36.0.1.el7.x86_64
gcc-c++-4.8.5-36.0.1.el7.x86_64
glibc-2.17-260.0.9.el7.x86_64
glibc-headers-2.17-260.0.9.el7.x86_64
glibc-common-2.17-260.0.9.el7.x86_64
glibc-devel-2.17-260.0.9.el7.x86_64
glibc-devel-2.17-260.0.9.el7.x86_64
ksh-20120801-139.0.1.el7.x86_64
libaio-0.3.109-13.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
libgcc-4.8.5-36.0.1.el7.x86_64
libstdc++-4.8.5-36.0.1.el7.x86_64
libstdc++-devel-4.8.5-36.0.1.el7.x86_64
libstdc++-devel-4.8.5-36.0.1.el7.x86_64
make-3.82-23.el7.x86_64
sysstat-10.1.5-17.el7.x86_64
libXi-1.7.9-1.el7.x86_64
libXtst-1.2.3-1.el7.x86_64

=======================================
++++++++++++++++CHECK PASS!+++++++++++++++++++++
=======================================

#########################################################
######## Summary Info ############
Oracle Home Dir : /u01/app/oracle/product/11.2.0/dbhome_1
Oracle User Password : oracle
Oracle Base Dir : /u01/app/oracle
Oracle SID : orcl
Oracle Version : 11g
#########################################################

Press any key to start...or Press Ctrl+c to cancel

......

=======================================
Now downloading software,please wait...
=======================================

......

=======================================
Now unziping zip files,please wait...
=======================================

Oracle install pre-setting finish!

=======================================
Now installing db software,please wait...
=======================================

Starting Oracle Universal Installer...

......

The installation of Oracle Database 11g was successful.

As a root user, execute the following script(s):
1. /u01/app/oraInventory/orainstRoot.sh
2. /u01/app/oracle/product/11.2.0/dbhome_1/root.sh


Successfully Setup Software.
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.

......

=======================================
Database software installed successfully ... OK!
=======================================


=======================================
Now installing soft patchs,please wait...
=======================================

......

Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 17478514 18031668 18522509 19121551 19769489 20299013 20760982 21352635 21948347 22502456 23054359 24006111 24732075 25869727 26609445 26392168 26925576 27338049 27734982 28204707

Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0/dbhome_1')


Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying sub-patch '17478514' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'

Patching component oracle.rdbms, 11.2.0.4.0...

Patching component oracle.rdbms.rsf, 11.2.0.4.0...


......

Composite patch 28204707 successfully applied.
OPatch Session completed with warnings.

OPatch completed with warnings.

=======================================
Now installing db instance,please wait...
=======================================

Copying database files
1% complete
3% complete
11% complete
18% complete
26% complete
37% complete
Creating and starting Oracle instance
40% complete
45% complete
50% complete
55% complete
56% complete
60% complete
62% complete
Completing Database Creation
66% complete
70% complete
73% complete
74% complete
75% complete
76% complete
77% complete
88% complete
99% complete
100% complete

Scripts: Oracle11g自动化安装
https://www.xbdba.com/2018/09/06/11g-auto-install/
作者
xbdba
发布于
2018年9月6日
许可协议