下载Oracle 19c rpm包
https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
安装数据库
yum -y install http://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
yum -y install oracle-database-ee-19c-1.0-1.x86_64.rpm
配置数据库实例
/etc/init.d/oracledb_ORCLCDB-18c configure
vi /etc/profile.d/oracle.sh
export ORACLE_HOME=/opt/oracle/product/18c/dbhome_1
export PATH=$PATH:/opt/oracle/product/18c/dbhome_1/bin
export ORACLE_SID=ORCLCDB
source /etc/profile
登录数据库
su - oracle
sqlplus / as sysdba
alter user system identified by system
show pdbs
exit
sqlplus system/system@192.168.83.134/orclpdb1
网友评论