ITPub博客

首页 > Linux操作系统 > Linux操作系统 > HPUX Veritas sf数据库扩容 SHELL

HPUX Veritas sf数据库扩容 SHELL

原创 Linux操作系统 作者:shihfa 时间:2016-02-29 13:54:04 0 删除 编辑
#HPUX 11.31

#!/usr/bin/sh
#创建卷改属性合并批量脚本

i=684
for dg in 12 13 14 15 16 17 18 19 20 21
do
  ct=0
  while [ ct -lt 65 ]
   do
     if [ i -lt 1000 ]
     then
       vxassist -g dgzw$dg make data_16g_0$i 16g layout=stripe stripeunit=64k ncol=8  
       vxedit   -g dgzw$dg set  user=oracle group=dba mode=660 data_16g_0$i
     else
       vxassist -g dgzw$dg make data_16g_$i 16g layout=stripe stripeunit=64k ncol=8  
       vxedit   -g dgzw$dg set user=oracle group=dba mode=660 data_16g_$i
     fi  

     i=$(expr $i + 1)
     ct=$(expr $ct + 1)
   done
done



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26179376/viewspace-2016114/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 10046 10053
下一篇: AIX LV RAW
请登录后发表评论 登录
全部评论

注册时间:2013-11-05

  • 博文量
    62
  • 访问量
    65722