1.oracle 安全前环境检查
rpm -ivh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
安装时候,提示以下依赖包需要安装。
[root@oracle software]# rpm -ivh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm 警告:oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID ec551f03: NOKEY 错误:依赖检测失败: compat-libcap1 被 oracle-database-preinstall-19c-1.0-1.el7.x86_64 需要 compat-libstdc++-33 被 oracle-database-preinstall-19c-1.0-1.el7.x86_64 需要 ksh 被 oracle-database-preinstall-19c-1.0-1.el7.x86_64 需要 libaio-devel 被 oracle-database-preinstall-19c-1.0-1.el7.x86_64 需要 libstdc++-devel 被 oracle-database-preinstall-19c-1.0-1.el7.x86_64 需要
|
yum -y install compat-libcap1 compat-libstdc++-33 ksh libaio-devel libstdc++-devel
修改oracle 密码
passwd oracle
[root@oracle software]# chown -R oracle:oinstall /opt/oracle [root@oracle software]# chmod -R 775 /opt/oracle [root@oracle software]# rpm -ivh oracle-database-ee-19c-1.0-1.x86_64.rpm 警告:oracle-database-ee-19c-1.0-1.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID ec551f03: NOKEY 准备中... ################################# [100%] 正在升级/安装... 1:oracle-database-ee-19c-1.0-1 ################################# [100%] [INFO] Executing post installation scripts... [INFO] Oracle home installed successfully and ready to be configured. To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-19c configure [root@oracle software]#
|
[root@oracle software]# cp /etc/sysconfig/oracledb_ORCLCDB-19c.conf /etc/sysconfig/oracledb_deploy-19c.conf [root@oracle software]# cp /etc/init.d/oracledb_ORCLCDB-19c /etc/init.d/oracledb_deploy-19c [root@oracle software]# vi /etc/init.d/oracledb_deploy-19c
:%s/ORCLCDB/deploy/g
:%s/ORCLPDB1/deploy/g
export ORACLE_VERSION=19c export ORACLE_SID=deploy export TEMPLATE_NAME=General_Purpose.dbc export CHARSET=ZHS16GBK export PDB_NAME=deploy export LISTENER_NAME=LISTENER export NUMBER_OF_PDBS=1 export CREATE_AS_CDB=false
|
创建数据库:
/etc/init.d/oracledb_deploy-19c configure
|