Oracle Database 21c Installation on VirtualBox
Oracle Database 21c Installation cheat sheet :
// Masuk ke Superuser
// Install Oracle
yum install -y oracle-database-preinstall-21c
// Set Oracle Password
passwd oracle
// Create Required directories
mkdir -p /u01/app/oracle/product/21c/db_1/
mkdir -p /u01/app/oracle/oradata/
mkdir -p /u01/app/oracle/FRA/
chown -R oracle:oinstall /u01/
chmod -R 775 /u01/
// Pindah ke Superuser oracle
// Terlebih dahulu kembali ke directory sebelumnya
cd
// Masuk ke bash_profile i.e
vi .bash_profile
// Saat di bash_profile oracle masukan command dibawah, lalu kemudian di simpan:
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/u01/app/oracle
export DB_HOME=$ORACLE_BASE/product/21c/db_1
export ORACLE_HOME=$DB_HOME
export ORACLE_SID=test
export ORACLE_TERM=xterm
export BASE_PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$BASE_PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
// Cek terlebih dahulu bash profilenya
. .bash_profile
// Pindah ke super user untuk mengubah konfigurasi limits
// Mengubah limits dengan command dengan super user
vi /etc/security/limits.conf
// Masukan command dibawah :
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
// Mengecek Terlebih dahulu limits
./etc/security/limits.conf
// Mendisable firewall server pada root user dengan command :
systemctl stop firewalld
systemctl disable firewalld
// Pindah ke user oracle kembali
// Membuat directory filewin
mkdir filewin
// Melakukan shared folder yang sudah ada zipnya
// Masuk ke superuser kembali
// mount file inputvm yang telah di shared ke vm (klo Mac apaya)
mount -t vboxsf inputvm /home/oracle/filewin
// kembali ke user biasa
exit
// mengecek isi directory file
ls
// membuka directory filewin
cd filewin
// mengecek isi directory filewin
ls
// Memilih file zip linux untuk di copy dari filewin ke home
cp LINUX.X64_213000_db_home.zip $ORACLE_HOME
// Membuka file $ORACLE_HOME
// Untuk mengecek lokasi directory gunakan
pwd
// Untuk mengecek isi directory $ORACLE_HOME
ls
// Unzip file LINUX.X64_213000_db_home.zip
unzip LINUX.X64_213000_db_home.zip
// Jika sudah di unzip switch user ke oracle
// Buka ORACLE_HOME
cd $ORACLE_HOME
// Mengecek isi directory ORACLE_HOME
ls
// Menjalankan installer Oracle 21c
./runInstaller
// Jika muncul Verification Result
// buka new tab terminal
// masuk ke super user
// matikan swapoff filenya dengan command :
swapoff -a
dd if=/dev/zero of=/swapfile bs=1G count=4
mkswap /swapfile
swapon /swapfile
// Bagian Execute Configuration Scripts
// Buka kembali terminal
copy command yang muncul pada error message kemudian di enter untuk di eksekusi, jika diminta untuk masukan value cukup pencet enter
// Jika sudah cek dengan
sqlplus
// User
sys as sysdba
[ad_2]
source