centos7 oracle19c安装教程
时间: 2023-10-27 18:06:51 浏览: 211
oracle19c的安装
好的,以下是 CentOS 7 上安装 Oracle 19c 的教程:
1. 安装必要的软件包和依赖项:
```
yum install -y binutils.x86_64 compat-libcap1.x86_64 gcc.x86_64 gcc-c++.x86_64 glibc.i686 glibc.x86_64 \
glibc-devel.i686 glibc-devel.x86_64 ksh compat-libstdc++-33 libaio.i686 libaio.x86_64 libaio-devel.i686 \
libaio-devel.x86_64 libgcc.i686 libgcc.x86_64 libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 \
libstdc++-devel.x86_64 libXi.i686 libXi.x86_64 libXtst.i686 libXtst.x86_64 make.x86_64 sysstat.x86_64
```
2. 创建 Oracle 用户和组:
```
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
```
3. 修改内核参数:
```
vi /etc/sysctl.conf
```
在文件末尾添加以下内容:
```
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 9000 65500
```
执行以下命令使修改生效:
```
sysctl -p
```
4. 修改用户限制:
```
vi /etc/security/limits.conf
```
在文件末尾添加以下内容:
```
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
```
5. 创建安装目录并授权:
```
mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
```
6. 下载 Oracle 19c 安装文件并解压:
```
unzip linuxx64_193000_db_home.zip -d /u01/app/oracle/product/19.0.0/dbhome_1/
```
7. 运行安装程序:
```
su - oracle
cd /u01/app/oracle/product/19.0.0/dbhome_1/
./runInstaller
```
8. 按照安装程序提示进行安装。
阅读全文