linux7.5+12c+sqldeveloper安装(不创建容器)
安装12C前的准备
vim /etc/hosts
yum install oracle-rdbms-server-12cR1-preinstall -y
rm -rf /var/run/yum.pid
yum install oracle-rdbms-server-12cR1-preinstall -y
id oracle
passwd oracle
vim /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
mkdir -p /u01/app/oracle/product/12.1.0.2/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
mkdir /u02
cd /u02
unzip linuxamd64_12102_database_1of2_12.1.0.2.0.zip
unzip linuxamd64_12102_database_2of2_12.1.0.2.0.zip
rm -rf linuxamd64_12102_database_1of2_12.1.0.2.0.zip linuxamd64_12102_database_2of2_12.1.0.2.0.zip
chown -R oracle:oinstall /u02
chmod -R 775 /u02
ls -ld /u02
su – oracle
vim .bash_profile
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=db.localdomain
export ORACLE_UNQNAME=cdb1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/db_1
export ORACLE_SID=cdb1
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
xdpyinfo
su – oracle
export DISPLAY=:0
cd /u02/database/
./runInstaller
export LANG=EN_us
./runInstaller
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/12.1.0.2/db_1/root.sh
sqlplus / as sysdba
lsnrctl status
export LANG=EN_us
rpm -ivh sqldeveloper-19.1.0.094.2042.noarch.rpm
无法启动,没装JDK
rpm -ivh jdk-8u231-linux-x64.rpm
复制这个目录,粘贴到下面 /usr/java/jdk1.8.0_231-amd64/
上一篇: RabbitMQ入门
下一篇: C语言实现扫雷小游戏(扩展版)