时不我待。
分类: Oracle
2009-09-28 15:37:16
$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....B1.lsnr application ONLINE ONLINE db1 ora....db1.gsd application ONLINE ONLINE db1 ora....db1.ons application ONLINE ONLINE db1 ora....db1.vip application ONLINE ONLINE db1 ora....B2.lsnr application ONLINE OFFLINE ora....db2.gsd application ONLINE ONLINE db2 ora....db2.ons application ONLINE ONLINE db2 ora....db2.vip application ONLINE ONLINE db1 ora.db.db application ONLINE ONLINE db2 ora....b1.inst application ONLINE ONLINE db1 ora....b2.inst application ONLINE OFFLINE |
$ crs_stop ora.db2.vip CRS-1016: Resources depending on 'ora.db2.vip' are running CRS-0223: Resource 'ora.db2.vip' has placement error. |
$ crs_stop ora.db2.vip -f Target set to OFFLINE for `ora.db.db2.inst` Target set to OFFLINE for `ora.db2.LISTENER_db2.lsnr` Attempting to stop `ora.db2.vip` on member `db1` Stop of `ora.db2.vip` on member `db1` succeeded. $ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....B1.lsnr application ONLINE ONLINE db1 ora....db1.gsd application ONLINE ONLINE db1 ora....db1.ons application ONLINE ONLINE db1 ora....db1.vip application ONLINE ONLINE db1 ora....B2.lsnr application OFFLINE OFFLINE ora....db2.gsd application ONLINE ONLINE db2 ora....db2.ons application ONLINE ONLINE db2 ora....db2.vip application OFFLINE OFFLINE ora.db.db application ONLINE ONLINE db2 ora....b1.inst application ONLINE ONLINE db1 ora....b2.inst application OFFLINE OFFLINE |
$ srvctl start nodeapps -n db2 $ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....B1.lsnr application ONLINE ONLINE db1 ora....db1.gsd application ONLINE ONLINE db1 ora....db1.ons application ONLINE ONLINE db1 ora....db1.vip application ONLINE ONLINE db1 ora....B2.lsnr application ONLINE ONLINE db2 ora....db2.gsd application ONLINE ONLINE db2 ora....db2.ons application ONLINE ONLINE db2 ora....db2.vip application ONLINE ONLINE db2 ora.db.db application ONLINE ONLINE db2 ora....b1.inst application ONLINE ONLINE db1 ora....b2.inst application OFFLINE OFFLINE |
$ srvctl start instance -i db2 -d db $ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....B1.lsnr application ONLINE ONLINE db1 ora....db1.gsd application ONLINE ONLINE db1 ora....db1.ons application ONLINE ONLINE db1 ora....db1.vip application ONLINE ONLINE db1 ora....B2.lsnr application ONLINE ONLINE db2 ora....db2.gsd application ONLINE ONLINE db2 ora....db2.ons application ONLINE ONLINE db2 ora....db2.vip application ONLINE ONLINE db2 ora.db.db application ONLINE ONLINE db2 ora....b1.inst application ONLINE ONLINE db1 ora....b2.inst application ONLINE ONLINE db2 |