oraclerac常用命令集锦
1、修改会话数
我们提供的服务有:做网站、成都网站制作、微信公众号开发、网站优化、网站认证、讷河ssl等。为上千余家企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的讷河网站制作公司
查询数据库当前进程的连接数:
select count(*) from v$process;
修改数据库允许的最大连接数:
alter system set processes =1500 scope = spfile;
(需要重启数据库才能实现连接数的修改)
2、GRID安装出错如何删除
su - grid
cd /dev/oracleasm/disks
rm -rf vote*
cd /dev/disk/by-label
rm -rf vote*
ll /g01
rm -rf *
chown -R grid:oinstall /g01
rm /etc/oracle/ocr.loc
rm -rf /etc/ora*
ps -ef |grep oha
kill -9 47495
cd /etc/init.d
ls *oha*
rm -rf *oha*
cd /etc/rc3.d
rm -rf S96ohasd
cd /etc/rc5.d
rm -rf S96oha*
oracleasm scandisks
oracleasm listdisks
oracleasm querydisk /dev/mapper/*
dd if=/dev/zero of=/dev/mapper/sc-vote-hpp1 bs=1M count=300
dd if=/dev/zero of=/dev/mapper/tc-vote-hpp1 bs=1M count=300
dd if=/dev/zero of=/dev/mapper/yd-vote-netappp1 bs=1M count=300
3、rac集群启停
停止rac
oracle用户
181 srvctl status database -d prod
182 srvctl stop database -d prod
183 srvctl status database -d prod
root用户
./crsctl start has 高可用
cd /g01/11ggrid/app/11.2.0/grid/bin
./crsctl check cluster -all
./crsctl stop cluster -all
./crsctl check cluster -all
./crs_stat -t -v
reboot
开始rac
root用户
975 cd /g01/11ggrid/app/11.2.0/grid/bin
977 ./crsctl start cluster -all
978 ./crsctl check cluster -all
980 ./crsctl status resource -t
oracle用户
[oracle@sc-rac1 ~]$srvctl start database -d prod
[oracle@sc-rac1 ~]$ srvctl status database -d prod
Instance prod1 is running on node sc-rac1
Instance prod2 is running on node sc-rac2
Instance prod3 is running on node tc-rac1
新闻标题:oraclerac常用命令集锦
文章出自:http://scjbc.cn/article/jdphsd.html