CentOS7 静默安装Oracle 11G
Linux版本:CentOS7
Oracle版本:11G
安装过程:
```bash
## 1.挂载光盘
cd /mnt
mkdir cdrom
mount -t auto /dev/cdrom /mnt/cdrom
## 2.复制文件到/software目录中
mkdir /software
cp -r /mnt/cdrom /software
## 3.启动网卡
ifconfig ##查看网卡
cd /etc/sysconfig/network-scripts/
vim 网卡名称
将ONBOOT=no,修改为yes
## 4.创建oracle用户并且安装依赖
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba -m oracle
passwd oracle ##(修改Oracle用户名密码。在Linux安装Oracle,必须要在Oracle用户下安装)
## 安装依赖
yum install binutils
yum install compat-libcap
yum install gcc
yum install gcc-c++
yum install glibc
yum install glibc-devel
yum install ksh
yum install libaio
yum install libgcc
yum install libstdc++
yum install libXi
yum install libXtst
yum install make
yum install sysstat
yum install unixODBC
yum install unixODBC-devel
yum -y install binutils compat compat-libstdc gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat unixODBC unixODBC-devel
yum install compat-libstdc++
yum install libaio
yum install glibc-static
yum -y install libstdc++.so.6
yum -y install libgmp.so.3
yum install cpp
yum install ppl
yum install cloog-ppl
yum install mpfr
chmod -Rf 777 /software
## 5.创建oracle数据库的安装目录
mkdir u01
mkdir app
mkdir /u01/app/oracle
mkdir /u01/app/oracle/fast_recovery_area
mkdir /u01/app/oracle/inventory
mkdir /u01/app/oracle/oradata
mkdir /u01/app/oracle/product
mkdir /u01/app/oracle/product/11.2.0
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
## 使用Oracle用户
## 6.编辑.bash_profile,最后追加
vi /home/oracle/.bash_profile
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0
export ORACLE_SID=orcl
export PATH=$PATH:PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
## 7.设置Oracle数据库安装参数
vim /software/cdrom/response/db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY
INVENTORY_LOCATION=/u01/app/oracle/inventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/u01/app/oracle/product/11.2.0
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
DECLINE_SECURITY_UPDATES=true
## 8.执行数据库安装
## 打开Oracle数据库安装包
cd /software/cdrom
./runInstaller -silent -responseFile /software/cdrom/response/db_install.rsp -ignorePrereq
## 9.已静默方式配置监听(/software/cdrom/response/netca.rsp这个是oracle安装包的路径):
netca /silent /responseFile /software/cdrom/response/netca.rsp
安装过程遇到: [FATAL] [INS-32038] The operating system group specified for central inventory
切换到root:
cd /etc/
vi oraInst.loc
inventory_loc=/u01/app/oracle/inventory
inst_group=oinstall
CentOS7 静默安装Oracle 11G
Linux版本:CentOS7Oracle版本:11G安装过程:```bash## 1.挂载光盘cd /mntmkdir cdrommount -t auto /dev/cdrom /mnt/cdrom## 2....
点击下载文档
本文2024-09-16 22:01:40发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-45470.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章