Gblog

おもにTips

Database Server インストール時の

インストール時に使うコマンド。19c用。

もはや自分専用ですが。

## hosts
# vi /etc/hosts
192.168.185.11  hogehoge hogehoge.localdomain

## hostname 
hostnamectl set-hostname hogehoge --static

## firewall 
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
	
## SELinux
# vi /etc/selinux/config

## OS user
usermod -g oinstall -G dba,oper hoge

## directory
mkdir -p /u01/app/hoge
chown -R hoge:oinstall /u01
chmod -R 775 /u01/

## bash
# vi .bash_profile
----------
umask 022

if [ -t 0 ]; then
   stty intr ^C
fi
----------

## db install
mkdir -p /u01/app/hoge/product/19.0.0/dbhome_1
chgrp oinstall /u01/app/hoge/product/19.0.0/dbhome_1
cd /u01/app/hoge/product/19.0.0/dbhome_1
unzip -q /tmp/db_home.zip

cd /u01/app/hoge/product/19.0.0/dbhome_1
./runInstaller


 

適宜追加予定。