参考网址:
https://blog.csdn.net/ddlys1412/article/details/79210384
这个就不复制过来了。用的少。
另外一个是ora-01157的错误问题,参照网址:
https://www.cnblogs.com/macliu1990/p/12107728.html
原因:在rac环境下将数据文件误建在了本地磁盘上,导致另一个节点无法访问该数据文件,从而报出ora-01157和ora-01110错误。
可以看到,18、19号数据文件处于recover的状态,暂时可以不用管,先在rman环境下复制数据文件到共享目录下: RMAN> copy datafile '/u01/app/oracle/11.2.0/db/dbs/goa31new' to '+DATA'; Starting backup at 16-NOV-15 using channel ORA_DISK_1 channel ORA_DISK_1: starting datafile copy input datafile file number=00018 name=/u01/app/oracle/11.2.0/db/dbs/goa31new output file name=+DATA/zwzwdb/datafile/goa31.339.895952649 tag=TAG20151116T194409 RECID=1 STAMP=895952650 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01 Finished backup at 16-NOV-15 RMAN> copy datafile '/u01/app/oracle/11.2.0/db/dbs/goafilenew' to '+DATA' 2> ; Starting backup at 16-NOV-15 using channel ORA_DISK_1 channel ORA_DISK_1: starting datafile copy input datafile file number=00019 name=/u01/app/oracle/11.2.0/db/dbs/goafilenew output file name=+DATA/zwzwdb/datafile/goafile31.340.895952749 tag=TAG20151116T194549 RECID=2 STAMP=895952750 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01 Finished backup at 16-NOV-15 此处需要记住上述copy结果中斜体部分的内容,用于更改系统数据文件路径: SQL>alter database rename file '/u01/app/oracle/11.2.0/db/dbs/goa31new' to '+DATA/zwzwdb/datafile/goa31.339.895952649'; Database altered. SQL>alter database rename file '/u01/app/oracle/11.2.0/db/dbs/goafilenew' to '+DATA/zwzwdb/datafile/goafile31.340.895952749'; Database altered. 现在在重新查看数据文件的name和status,如下:
------------正 文 已 结 束, 感 谢 您 的 阅 读 (折雨的天空)--------------------
转载请注明本文标题和链接:《oracle 11g RAC的一些命令及ora-01157的错误》
发表评论