ALTER SYSTEM CHECK DATAFILES 这个命令,貌似是从白鳝的书中看到的,于是就到官方文档的-sql reference 中搜了一下,果然有这个语句的说明,摘录如下:
check_datafiles_clause In a distributed database system, such as a Real Application Clusters environment, this clause updates an instance‘s SGA from the database control file to reflect information on all online datafiles. ?Specify GLOBAL to perform this synchronization for all instances that have opened the database. This is the default. ?Specify LOCAL to perform this synchronization only for the local instance. Your instance should have the database open.
该命令一般用于rac环境中,比如说其中一个节点无法访问某一个datafile(只有这个节点无法访问,其余节点是能访问的),无法访问的这个节点上就可以使用ALTER SYSTEM CHECK DATAFILES这个命令来更新实例的sga信息,更新信息的来源 是控制文件。
然后再到mos中,以‘alter system check datafile‘为关键字搜索,搜到如下知识点:
ALTER SYSTEM CHECK DATAFILES does not check read-only files. ---Master Note: Overview of Oracle Tablespace Management (文档 ID 1493350.1)
另外如下的文章也有一定的学习价值:
ALTER SYSTEM CHECK DATAFILES DOES NOT WORK AS EXPECTED (文档 ID 1071756.6)
时间: 2024-11-10 06:58:30