手机版
你好,游客 登录 注册
背景:
阅读新闻

在HP-UX 11iv3上安装Oracle 11gR2步骤

[日期:2012-08-30] 来源:Linux社区  作者:db_wjw [字体:大 中 小]

五、创建必须的目录:
# 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

linux
相关资讯       Oracle 11gR2 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款