7.为Oracle用户设置内核限制
上线为:
Shell Limit
|
Item in limits.conf
|
Hard Limit
|
Maximum number of open file descriptors
|
nofile
|
65536
|
Maximum number of processes available to a single user
|
nproc
|
16384
|
vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
vim /etc/pam.d/login
o if [ $USER = "oracle" ]; then
o if [ $SHELL = "/bin/ksh" ]; then
o ulimit -p 16384
o ulimit -n 65536
o else
o ulimit -u 16384 -n 65536
o fi
o fi
o if ( $USER == "oracle" ) then
o limit maxproc 16384
o limit descriptors 65536
o endif
类似结构:/mount_point/app/oracle_sw_owner(软件所属主)
Requirement
|
Free Disk Space
|
The Oracle base directory will contain only software files.
|
Up to 3 GB
|
The Oracle base directory will contain both software and database files (not recommended for production databases).
|
Up to 4 GB
|
mkdir /u01(在这里,我们仅储存软件包文件,至于数据库文件我们将它放到oracle用户的家目录中)
fdisk �Cl
fdisk /dev/sda
partprobe
mkfs.ext3 /dev/sda6
vim /etc/fstab
【 /dev/sda6 /u01 ext3 defaults 0 0 】
mount �Ca
ls /u01 【若发现有lost+found,就说明挂载成功】
mkdir �Cpv /u01/app/oracle【递归创建oracle的基本目录,并显示过程】
chown �CR oracle:oinstall /u01/app/oracle【修改oracle根目录的属主和属组】
chmod �CR 755 /u01/app/oracle 【修改oracle根目录的权限】9.定义根目录和SID
su �C oracle
vim .bash_profile
【PATH=$PATH:$HOME/bin:/u01/app/oracle/product/10.2.0/db_1/bin
umask 022
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_SID ORACLE_HOME】
. .bash_profile
echo $ORACLE_BASE
9.定义根目录和SID
su �C oracle
vim .bash_profile
【PATH=$PATH:$HOME/bin:/u01/app/oracle/product/10.2.0/db_1/bin
umask 022
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_SID ORACLE_HOME】
. .bash_profile
echo $ORACLE_BASE
注意:oracle用户必须重新登录才能生效