标签:
/usr/sbin/groupadd -g 1000 oinstall
/usr/sbin/groupadd -g 1020 asmadmin
/usr/sbin/groupadd -g 1021 asmdba
/usr/sbin/groupadd -g 1022 asmoper
/usr/sbin/groupadd -g 1031 dba
/usr/sbin/groupadd -g 1032 oper
useradd -u 1100-g oinstall -G dba,asmadmin,asmdba -d /home/grid -m grid
##上面grid用户要是不在dba用户组的话,在dbca建库的时候会报错,具体见下文报错信息
useradd -u 1101-g oinstall -G dba,asmdba -d /home/oracle -m oracle
passwd grid
passwd oracle
这里密码默认:grid/grid oracle/oracle
mkdir -p /oracle/app/11.2.0/grid
mkdir -p /oracle/app/grid
chown -R grid:oinstall /oracle
mkdir /oracle/app/oracle
chown oracle:oinstall /oracle/app/oracle
chmod -R 775/u01
chown grid:oinstall /oracle/app
chmod -R 775/oracle/app
cd /usr/lib
ln -s libX11.3 libX11.sl
ln -s libXIE.2 libXIE.sl
ln -s libXext.3 libXext.sl
ln -s libXhp11.3 libXhp11.sl
ln -s libXi.3 libXi.sl
ln -s libXm.4 libXm.sl
ln -s libXp.2 libXp.sl
ln -s libXt.3 libXt.sl
ln -s libXtst.2 libXtst.sl
kctune -h -B nproc=8192
kctune -h -B semmnu=8188
kctune -h -B semmni=4096
kctune -h -B maxuprc=4091
kctune -h -B filecache_min=2%
kctune -h -B filecache_max=2%
kctune -h -B shmmax=34359738368
kctune -h -B maxssiz=401604608
kctune -h -B maxfiles_lim=63488
kctune -h -B maxdsiz_64bit=4396972765184
kctune -h -B max_thread_proc=5000
kctune -h -B maxdsiz=4294963200
kctune -h -B maxfiles=8192
kctune -h -B maxssiz_64bit=2147483648
kctune -h -B swchunk=8192
kctune -h -B max_async_ports=6000
kctune -h -B nkthread=28704
kctune -h -B semmns=32768
kctune -h -B shmmni=16384
kctune -h -B ksi_alloc_max=32768
kctune -h -B ncsize=35840
kctune -h -B ninode=34816
kctune -h -B shmseg=512
重启系统生效!
下面是oracle官方推荐值:
Parameter | Recommended Formula or Value |
---|---|
ksi_alloc_max |
32768 |
executable_stack |
0 |
max_thread_proc |
1024 |
maxdsiz |
1073741824 (1 GB) |
maxdsiz_64bit |
2147483648 (2 GB) |
maxssiz |
134217728 (128 MB) |
maxssiz_64bit |
1073741824 (1 GB) |
maxuprc |
3686 |
msgmni |
4096 |
msgtql |
4096 |
ncsize |
35840 |
maxfiles_lim |
63488 |
maxfiles |
1024 |
nflocks |
4096 |
ninode |
34816 |
nkthread |
7184 |
nproc |
4096 |
semmni |
4096 |
semmns |
8192 |
semmnu |
4092 |
semvmx |
32767 |
shmmax |
1073741824 |
shmmni |
4096 |
shmseg |
512 |
tcp_smallest_anon_port |
9000 |
tcp_largest_anon_port |
65500 |
udp_smallest_anon_port |
9000 |
udp_largest_anon_port |
65500 |
Oracle用户
export ORACLE_BASE=/oracle/app/11.2.0
export ORACLE_HOME=/oracle/app/11.2.0/oracle
export ORACLE_UNQNAME=TTSS
export ORACLE_SID=TTSS
export PATH=$ORACLE_HOME/bin:$PATH
grid用户
export ORACLE_BASE=/oracle/app/grid
export ORACLE_HOME=/oracle/app/11.2.0/grid
export ORACLE_SID=+ASM
export PATH=$ORACLE_HOME/bin:$PATH
TTSS#[/usr/lib]/usr/sbin/ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk755 /dev/rdsk/c10t13d6
/dev/rdsk/c7t13d6
/dev/rdsk/c16t13d6
/dev/rdsk/c13t13d6
/dev/rdisk/disk756 /dev/rdsk/c10t13d7
/dev/rdsk/c7t13d7
/dev/rdsk/c16t13d7
/dev/rdsk/c13t13d7
/dev/rdisk/disk757 /dev/rdsk/c10t14d0
/dev/rdsk/c7t14d0
/dev/rdsk/c16t14d0
/dev/rdsk/c13t14d0
/dev/rdisk/disk758 /dev/rdsk/c10t14d1
/dev/rdsk/c7t14d1
/dev/rdsk/c16t14d1
/dev/rdsk/c13t14d1
/dev/rdisk/disk759 /dev/rdsk/c10t14d2
/dev/rdsk/c7t14d2
/dev/rdsk/c16t14d2
/dev/rdsk/c13t14d2
/dev/rdisk/disk760 /dev/rdsk/c10t14d3
/dev/rdsk/c7t14d3
/dev/rdsk/c16t14d3
/dev/rdsk/c13t14d3
/dev/rdisk/disk761 /dev/rdsk/c10t14d4
/dev/rdsk/c7t14d4
/dev/rdsk/c16t14d4
/dev/rdsk/c13t14d4
/dev/rdisk/disk762 /dev/rdsk/c10t14d5
/dev/rdsk/c7t14d5
/dev/rdsk/c16t14d5
/dev/rdsk/c13t14d5
/dev/rdisk/disk763 /dev/rdsk/c10t14d6
/dev/rdsk/c7t14d6
/dev/rdsk/c16t14d6
/dev/rdsk/c13t14d6
/dev/rdisk/disk764 /dev/rdsk/c10t14d7
/dev/rdsk/c7t14d7
/dev/rdsk/c16t14d7
/dev/rdsk/c13t14d7
/dev/rdisk/disk765 /dev/rdsk/c10t15d0
/dev/rdsk/c7t15d0
/dev/rdsk/c16t15d0
/dev/rdsk/c13t15d0
/dev/rdisk/disk766 /dev/rdsk/c10t15d1
/dev/rdsk/c7t15d1
/dev/rdsk/c16t15d1
/dev/rdsk/c13t15d1
/dev/rdisk/disk767 /dev/rdsk/c10t15d2
/dev/rdsk/c7t15d2
/dev/rdsk/c16t15d2
/dev/rdsk/c13t15d2
/dev/rdisk/disk768 /dev/rdsk/c10t15d3
/dev/rdsk/c7t15d3
/dev/rdsk/c16t15d3
/dev/rdsk/c13t15d3
/dev/rdisk/disk769 /dev/rdsk/c10t15d4
/dev/rdsk/c7t15d4
/dev/rdsk/c16t15d4
/dev/rdsk/c13t15d4
/dev/rdisk/disk770 /dev/rdsk/c10t15d5
/dev/rdsk/c7t15d5
/dev/rdsk/c16t15d5
/dev/rdsk/c13t15d5
/dev/rtape/tape1_BEST /dev/rmt/c5t3d0BEST
/dev/rtape/tape1_BESTn /dev/rmt/c5t3d0BESTn
/dev/rtape/tape1_BESTb /dev/rmt/c5t3d0BESTb
/dev/rtape/tape1_BESTnb /dev/rmt/c5t3d0BESTnb
/dev/rdisk/disk771 /dev/rdsk/c10t15d6
/dev/rdsk/c7t15d6
/dev/rdsk/c16t15d6
/dev/rdsk/c13t15d6
/dev/rdisk/disk772 /dev/rdsk/c10t15d7
/dev/rdsk/c7t15d7
/dev/rdsk/c16t15d7
/dev/rdsk/c13t15d7
/dev/rdisk/disk773 /dev/rdsk/c11t0d0
/dev/rdsk/c8t0d0
/dev/rdsk/c17t0d0
/dev/rdsk/c14t0d0
/dev/pt/pt6 /dev/rscsi/c9t0d0
/dev/rscsi/c6t0d0
/dev/rscsi/c15t0d0
/dev/rscsi/c12t0d0
/dev/rdisk/disk774 /dev/rdsk/c11t0d1
/dev/rdsk/c8t0d1
/dev/rdsk/c17t0d1
/dev/rdsk/c14t0d1
/dev/rdisk/disk775 /dev/rdsk/c11t0d2
/dev/rdsk/c8t0d2
/dev/rdsk/c17t0d2
/dev/rdsk/c14t0d2
/dev/rdisk/disk776 /dev/rdsk/c11t0d3
/dev/rdsk/c8t0d3
/dev/rdsk/c17t0d3
/dev/rdsk/c14t0d3
/dev/rdisk/disk777 /dev/rdsk/c11t0d4
/dev/rdsk/c8t0d4
/dev/rdsk/c17t0d4
/dev/rdsk/c14t0d4
/dev/rdisk/disk778 /dev/rdsk/c11t0d5
/dev/rdsk/c8t0d5
/dev/rdsk/c17t0d5
/dev/rdsk/c14t0d5
赋权
chown grid:oinstall /dev/rdisk/disk*
chmod 660/dev/rdisk/disk*
QPKAPPS
QPKBASE
#/usr/sbin/swlist -l bundle |grep QPK
QPKAPPS B.11.31.1303.391ApplicationsPatchesfor HP-UX 11i v3,March2013
QPKBASE B.11.31.1303.391BaseQualityPackBundlefor HP-UX 11i v3,March2013
/usr/sbin/swlist -l patch | more
PHKL_39747
PHKL_39310
PHKL_39311
TTSS#[/oracle/software]ls -l
total 8592778
-rw-r-----1 root sys 1826501696Jun814:59 p10404530_112030_HPUX-IA64_1of7.zip
-rw-r-----1 root sys 1281422213Jun814:57 p10404530_112030_HPUX-IA64_2of7.zip
-rw-r-----1 root sys 1288957032Jun815:00 p10404530_112030_HPUX-IA64_3of7.zip
TTSS#[/oracle/software]chown oracle:oinstall *1of7.zip
TTSS#[/oracle/software]chown oracle:oinstall *2of7.zip
TTSS#[/oracle/software]chown grid:oinstall *3of7.zip
测试图形界面的可用性
进入到解压的grid目录,执行./runInstaller
跳过软件更新
选择仅安装软件
选择Sample Chinese
选择合适的用户组,默认
选择安装目录,
清单目录
预安装检查,有需要修改的参数点击Fix and Check again,有的参数需要重启,那么重启。
可以省略上面的内核参数配置,直接走到这一步的时候执行脚本即可
执行完成后,点击OK
开始安装
ASMCA创建asm磁盘组
密码:Grid123
解决:
//注意:如果上述在执行./root.sh后没有执行,/u01/app/11.2.0/grid/crs/install/roothas.pl
//那么将会出现:
Oracle Grid Infrastructure is not configured properly. ASMCA needs Oracle Grid Infrastructure to configure ASM.
解决:执行/u01/app/11.2.0/grid/crs/install/roothas.pl
然后再点击创建
密码:Oracle123
分析参考:
报上面的错误,是由于权限问题,grid用户不能使用srvctl启动数据库,可以忽略,但是退出后需要在sqlplus中使用startup命令启动数据库
修改grid用户的属组,加入到dba组
停止数据库和ASM实例,和GI软件
oracle用户
sqlplus --- > shutdown immediate
grid用户
sqlplus / as sysasm ----> shutdown immediate
crs_stop -all
crsctl stop has
不停干净的话,修改权限会报:
首先保证所有的磁盘权限没问题,即拥有者和属组,还有权限,一般是660
dd if=/dev/zero of=/dev/rdisk/disk681 count=10 count=1024
有些盘不能被asm扫到,使用上面的命令格式化一下,可以了!
删除磁盘组
在sysasm中查看(不容易啊)
Oracle 11203 + ASM安装 for HP UX
标签:
原文地址:http://www.cnblogs.com/haoxiaoyu/p/605b6f76e85cc0b529a49b9aa7099f52.html