oracle asm alias 文件別名

今天在網上看到一個朋友問:爲什麼在ASM存儲管理的方式下明明只設置了log_archive_dest_1來指定歸檔的路徑,卻在ASM下發現了兩處歸檔日誌文件?(未開閃回)
這裏寫圖片描述

這裏寫圖片描述

這裏寫圖片描述

這裏寫圖片描述
我查了一些資料,認爲是這樣的:
Every file created in ASM gets a system-generated filename, otherwise known as a fully qualified filename (FQFN). The fully qualified filename represents a complete path name in the ASM file system. An example of a fully qualified filename is:
+dgroup2/sample/controlfile/Current.256.541956473
You can use the fully qualified filename to reference (read or retrieve) an ASM file. ASM generates a fully qualified filename upon any request to create a file. A creation request cannot specify a fully qualified filename. Instead, it uses a simpler syntax to specify a file, such as an alias or just a disk group name. ASM then creates the file, placing it in the correct ASM “path” according to file type, and then assigns an appropriate fully qualified filename. If you specify an alias in the creation request, ASM also creates the alias so that it references the fully qualified filename.

最後ls -l 看了下ASM裏這兩個目錄下的歸檔日誌文件後發現,確實就是這種情況:

這裏寫圖片描述

Oracle不希望我們改這些文件的路徑,但我們熱衷於做這個,而且ORacle自動產生的文件名不方便人爲記憶並管理,估計oracle也意識到了這問題便也有了別名了。

發佈了36 篇原創文章 · 獲贊 2 · 訪問量 16萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章