五、创建必须的目录:
# cd /
# mkdir oraInventory
# chown Oracle:oinstall oraInventory
# mkdir oracle
# chown oracle:oinstall oracle
六、配置oracle用户编辑环境变量
# vi .profile
添加如下内容:
umask 022
TMP=/tmp
TMPDIR=$TMP
ORACLE_SID=uat
ORACLE_BASE=/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
ORACLE_TERM=xterm
PATH=$ORACLE_HOME/bin:$PATH
NLS_LANG="simplified chinese_china.ZHS16GBK"
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/usr/bin
export TMP TMPDIR ORACLE_SID ORACLE_BASE ORACLE_HOME ORACLE_TERM PATH NLS_LANG LD_LIBRARY_PATH
七、上传安装包,解压并安装
附:
1、主机名解析问题:
# swlist
# Initializing...
# Contacting target "zduat"...
WARNING: An attempt to get the network host entry for "zduat" failed.
This may result in denial of access to users and agents at
this host. Check the spelling of this name, then your
"/etc/hosts" file, or your "/etc/resolv.conf" file and DNS
resolver configuration. The nslookup program may be helpful
in isolating this problem.
ERROR: Internal error. Security check failed unexpectedly. This
error occurred in function "idam_LocateLocalFile", source file
"id.c", line 4765. Please give this information to your
Hewlett-Packard support contact.
ERROR: "zduat:/": You do not have permission for this operation.
The depot owner, system administrator, or alternate root owner
may need to use the "swreg" or "swacl" command to give you
permission. Or, to manage applications designed and packaged
for nonprivileged mode, see the "run_as_superuser" option in
the "sd" man page.
这样的错误解决办法是
1)ping `hostname`
是否能解析出本机IP
2)cat /etc/resolv.conf
如果配置了 nameserver
将 nameserver 以#注释掉
3)cat /etc/nsswitch.conf
是否配置解析顺序。
正确的解析 顺序是 host: files dns (这个和linux 里的host.conf 有不一样)
先找hosts文件,然后再用DNS (根据个人配置)
2、逻辑卷管理:
pvcreate -f /dev/rdisk/disk4
pvcreate -f /dev/rdisk/disk6
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate -l 255 -s 32 -p 100 /dev/vg01 /dev/disk/disk4 /dev/disk/disk6
lvcreate -L 51200 -n lvwork /dev/vg01
newfs -F vxfs /dev/vg01/rlvwork
cd /
mkdir work
vi /etc/fstab
/dev/vg01/lvwork /work vxfs delaylog 0 2
