Centos 安装Oracle
-
curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
-
yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
-
下载oracle-database-ee-19c-1.0-1.x86_64.rpm
-
yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm
-
/etc/init.d/oracledb_ORCLCDB-19c configure
-
passwd oracle
-
SELINUX=permissive
-
systemctl stop firewalld
-
systemctl disable firewalld
-
su oracle
-
export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
-
cat /opt/oracle/product/19c/dbhome_1/dbs/init.ora
- 查看db_name
-
export ORACLE_SID=你查看的db_name
-
cp init.ora init你查看的db_name.ora
-
/opt/oracle/product/19c/dbhome_1/bin/sqlplus /nolog
- conn / as sysdba
- startup