1、修改会话数
查询数据库当前进程的连接数:
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
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。