ASM搭建单实例分享


本篇内容主要讲解“ASM搭建单实例分享”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“ASM搭建单实例分享”吧!1.修改主机名[root@Test_run_CRM soft]# vi /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6172.16.25.235 Test_run_CRM2.查看rpm包查看是否有包:rpm -qa binutils* compat-libstdc* glibc-2* ksh* libaio* make-3* compat-libcap1* gcc-4* gcc-c* libstdc++-devel* sysstat* glibc-devel* libgcc-4* libstdc++-4* unixODBC-2* unixODBC-devel-2* elfutils-libelf-devel* libXp*安装包:yum -y install binutils* compat-libstdc* glibc-2* ksh* libaio* make-3* compat-libcap1* gcc-4* gcc-c* libstdc++-devel* sysstat* glibc-devel* libgcc-4* libstdc++-4* unixODBC-2* unixODBC-devel-2* elfutils-libelf-devel* libXp*3.修改系统参数1)[root@Test_run_CRM soft]# vi /etc/sysctl.confkernel.msgmnb = 65536kernel.shmall = 4294967296fs.file-max = 6815744kernel.msgmni = 2878kernel.msgmax = 8192kernel.msgmnb = 65536kernel.sem = 250 32000 100 142kernel.shmmni = 4096kernel.shmmax = 329853488333net.core.wmem_default = 262144net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_max = 1048576fs.aio-max-nr = 3145728net.ipv4.ip_local_port_range = 9000 65500vm.min_free_kbytes = 51200生效:[root@Test_run_FOSS u01]# sysctl -p2)[root@Test_run_CRM soft]# vi /etc/pam.d/login最后一行添加session required pam_limits.so3)[root@Test_run_CRM soft]# vi /etc/security/limits.conf最后添加: grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 655364)[root@Test_run_CRM soft]# vi /etc/profile添加:if [ $USER = “oracle” ]||[ $USER = “grid” ]; thenif [ $SHELL = “/bin/ksh” ]; thenulimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fiumask 022fi3.创建组和用户创建组:groupadd -g 501 oinstallgroupadd -g 502 dbagroupadd -g 503 opergroupadd -g 504 asmadmingroupadd -g 505 asmdbagroupadd -g 506 asmoper创建用户:# useradd -u 501 -g oinstall -G dba,oper,asmadmin,asmdba,asmoper -s /bin/bash grid# useradd -u 502 -g oinstall -G dba,oper,asmadmin,asmdba,asmoper-s /bin/bash oracle修改密码:passwd oraclepasswd grid修改路径权限:mkdir -p /u01/app/chown -R oracle:oinstall /u01/app/chmod -R 775 /u01/app/4.修改bash_profileoracle:export ORACLE_BASE=/u01/app/oracleexport ORACLE_SID=sfsdb1export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1export PATH=$PATH:$ORACLE_HOME/binexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libexport ORACLE_TERM=xtermexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/lib64:/usr/lib64export NLS_DATE_FORMAT=”YYYY-MM-DD HH24:MI:SS”export TNS_ADMIN=$ORACLE_HOME/network/admingrid:export ORACLE_BASE=/u01/app/gridexport ORACLE_HOME=/u01/app/11.2.0/gridexport ORACLE_SID=+ASMexport PATH=$PATH:$ORACLE_HOME/binexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/lib64:/usr/lib64export ORACLE_TERM=xtermexport CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlibexport TNS_ADMIN=$ORACLE_HOME/network/admin5.使用udev
绑定磁盘查看存储磁盘:1)跟主机组确定,可使用的1a到1f[root@Test_run_CRM soft]# ll /dev/mapper/total 0lrwxrwxrwx 1 root root 7 May 27 19:58 32ff70002ac012ff4 -> ../dm-7lrwxrwxrwx 1 root root 7 May 27 15:07 360002ac0000000000000001300012ff4 -> ../dm-0lrwxrwxrwx 1 root root 7 May 27 15:07 360002ac0000000000000001300012ff4p1 -> ../dm-8lrwxrwxrwx 1 root root 7 May 27 15:07 360002ac0000000000000001a00012ff4 -> ../dm-5lrwxrwxrwx 1 root root 7 May 27 15:07 360002ac0000000000000001b00012ff4 -> ../dm-4lrwxrwxrwx 1 root root 7 May 27 15:07 360002ac0000000000000001c00012ff4 -> ../dm-3lrwxrwxrwx 1 root root 7 May 27 15:07 360002ac0000000000000001d00012ff4 -> ../dm-2lrwxrwxrwx 1 root root 7 May 27 15:07 360002ac0000000000000001e00012ff4 -> ../dm-1lrwxrwxrwx 1 root root 7 May 27 15:07 360002ac0000000000000001f00012ff4 -> ../dm-6crw-rw—- 1 root root 10, 236 May 27 15:07 control2)新增udev绑定文件:[root@Test_run_CRM soft]# vi /etc/udev/rules.d/12-dm-permissions.rulesENV{DM_NAME}==”360002ac0000000000000001a00012ff4″, OWNER:=”grid”, GROUP:=”asmadmin”, MODE:=”660″ENV{DM_NAME}==”360002ac0000000000000001b00012ff4″, OWNER:=”grid”, GROUP:=”asmadmin”, MODE:=”660″ENV{DM_NAME}==”360002ac0000000000000001c00012ff4″, OWNER:=”grid”, GROUP:=”asmadmin”, MODE:=”660″ENV{DM_NAME}==”360002ac0000000000000001d00012ff4″, OWNER:=”grid”, GROUP:=”asmadmin”, MODE:=”660″ENV{DM_NAME}==”360002ac0000000000000001e00012ff4″, OWNER:=”grid”, GROUP:=”asmadmin”, MODE:=”660″ENV{DM_NAME}==”360002ac0000000000000001f00012ff4″, OWNER:=”grid”, GROUP:=”asmadmin”, MODE:=”660″3)启动UDEV/sbin/start_udev4)查看磁盘用户和组已经被修改为grid和asmadmin[root@Test_run_FOSS u01]# ll /dev/ | grep gridbrw-rw—- 1 grid asmadmin 252, 1 May 27 18:24 dm-1brw-rw—- 1 grid asmadmin 252, 2 May 27 18:24 dm-2brw-rw—- 1 grid asmadmin 252, 3 May 27 18:24 dm-3brw-rw—- 1 grid asmadmin 252, 4 May 27 18:24 dm-4brw-rw—- 1 grid asmadmin 252, 5 May 27 18:24 dm-5brw-rw—- 1 grid asmadmin 252, 6 May 27 18:24 dm-66.解压文件[root@Test_run_CRM soft]# unzip p13390677_112040_Linux-x86-64_1of7.zip[root@Test_run_CRM soft]# unzip p13390677_112040_Linux-x86-64_2of7.zip[root@Test_run_CRM soft]# unzip p13390677_112040_Linux-x86-64_3of7.zip修改其权限:[root@Test_run_CRM soft]# chown -R oracle:oinstall database/[root@Test_run_CRM soft]# chown -R grid:oinstall grid/7.安装grid软件[root@Test_run_CRM soft]# su – grid[grid@Test_run_CRM ~]$ cd /u01/soft/grid/[grid@Test_run_CRM grid]$ xhostaccess control disabled, clients can connect from any hostINET:10.253.1.13[grid@Test_run_CRM grid]$[grid@Test_run_CRM grid]$[grid@Test_run_CRM grid]$ export DIS免费云主机域名PLAY=10.253.1.13:110.0[grid@Test_run_CRM grid]$ ./runInstaller默认:8.安装Oracle软件:[root@Test_run_CRM soft]# su – oracle[oracle@Test_run_CRM database]$ pwd/u01/soft/database[oracle@Test_run_CRM database]$ ./runInstaller9.新建DB:采用asm磁盘不开归档指定SGA+PGA:指定字符集:到此,相信大家对“ASM搭建单实例分享”有了更深的了解,不妨来实际操作一番吧!这里是百云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

相关推荐: MongoDB中怎么使用正则表达式

MongoDB中怎么使用正则表达式,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。 如果要想实现模糊查询,那么必须使用正则表达式,使用的是与Perl兼容的正则表达式的形式。如果要想实现正则表达式,则…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

Like (0)
Donate 微信扫一扫 微信扫一扫
Previous 01/04 16:37
Next 01/04 16:37