程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> Oracle數據庫 >> Oracle數據庫基礎 >> oracle10g_linux_install_config

oracle10g_linux_install_config

編輯:Oracle數據庫基礎
 /usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba /usr/sbin/useradd -g oinstall -G dba Oracle
passwd oracle mkdir /opt/Oracle
mkdir /opt/Oracle/product
mkdir /opt/Oracle/product/10.1.0
chown -R oracle.oinstall /opt/oracle mkdir /opt/Oracle/oradata
chown -R oracle.oinstall /opt/oracle/oradata mkdir /var/opt/Oracle
chown oracle.dba /var/opt/Oracle
chmod 755 /var/opt/Oracle vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
vi /etc/security/limits.conf
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
vi /etc/profile
if [ $USER = "Oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
vi .bach_profile
export ORACLE_BASE=/opt/Oracle
export ORACLE_HOME=/opt/Oracle/product/10.1.0
export PATH=$ORACLE_HOME/bin:$Oracle_HOME/Apache/apache/bin:$PATH
export ORACLE_OWNER=Oracle
export Oracle_SID=URPDB
export Oracle_TERM=vt100
export LD_ASSUME_KERNEL=2.4.1
export THREADS_FLAG=native
LD_LIBRARY_PATH=$Oracle_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
export PATH=$PATH:$Oracle_HOME/bin
export NLS_LANG=AMERICAN_AMERICA.UTF8
export LANG=en_US
export ORA_NLS33=$Oracle_HOME/ocommon/nls/admin/data
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$Oracle_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$Oracle_HOME/network/jlib
export CLASSPATH 確認並是修改生效
$ source .bash_profile
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved