[oracle @oar
[oracle @oar
As root: (su
# cat /proc/sys/kernel/shmmax (查看)
# echo
# cat /proc/sys/kernel/shmmax(查看)
# vi /etc/nf (更改) 這個值可以不修改
kernel
As root:
# groupadd dba
#useradd
#passwd oracle
As root:
#mkdir –p /opt/oracle/product/
#chown
As oracle
[oracle @oar
…………
# add by admin For Install oracle
#Oracle Environment:
umask
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/
export ORACLE_SID=ora
export ORACLE_TERM=xterm
#export TNS_AIMIN=Set if sqlnet
#there are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN
#export ORA_NLS
#LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
LD_LIBRARY_PATH=$ORACLE_HOME/jdk/fre/lib/i
$ORACLE_HOME/jdk/jre/lib/i
$ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
#Set shell search paths:
export PATH=$ORACLE_HOME/bin:$PATH
#end add by admin For oracle install
As oracle:
[oracle @oar
As oracle
$startx (or vncserver)
[oracle @oar
[oracle @oar
As root:
[oracle @oar
[root @oar
修改$ORACLE_HOME/bin 下的oracle腳本
cd $ORACLE_HOME/bin
mv oracle oracle
cat >oracle <<
#!/bin/bash
export DISABLE_HUGETLBFS=
exec $ORACLE_HOME/bin/oracle
EOF
chmod +x oracle
可以參見
php
這一步是為了解決 ORA
dbca
可以根據實際情況修改listner
$ORACLE_HOME/network/admin/listener
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =
)
)
)
From:http://tw.wingwit.com/Article/program/Oracle/201311/18150.html