ALTER SYSTEM CHECK DATAFILES命令的使用,alterdatafiles
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)