關於oracle的相關檔案及目錄的解讀(原)
/etc/oratab檔案:
該檔案看其中的內容就知道是怎麼回事了,此外我們可以將手動建立的資料庫資訊新增到該檔案中,此時透過dbca就可以看到我們手動建立的資料庫了
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form.:
# $ORACLE_SID:$ORACLE_HOME:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
+ASM2:/u01/ora10g/product/10.2.0/db_1:N
RACDB:/u01/ora10g/product/10.2.0/db_1:N
/etc/oraInst.loc檔案:
該檔案記錄oraInventory的資訊
[root@RAC02 etc]# cat oraInst.loc
inventory_loc=/u01/ora10g/oraInventory
inst_group=oinstall
關於oraInventory 目錄在Oracle安裝中的作用
預設情況下該目錄會在$ORACLE_BASE/oraInventory,但是我們也可以透過更改/etc/oraInst.loc檔案來指定具體的路徑:
假設想修改該目錄的路徑可以修改oraInst.loc 檔案
在linux下:
該檔案路徑為/etc/oraInst.loc
在hpunix下:
該檔案路徑為/var/opt/oracle/oraInst.loc
You all might be familiar with oraInventory & its importance so lets take a look at few common things about it like binary/xml inventory, What to do if Inventory is corrupted , What is global / Local Inventory and where to find documentation related to oraInventory .
What is oraInventory ?
oraInventory is repository (directory) which store/records oracle software products & their oracle_homes location on a machine. This Inventory now a days in XML format and called as XML Inventory where as in past it used to be in binary format & called as binary Inventory.
There are basically two kind of Inventory Global Inventory (also called as Central Inventory) and Local Inventory also called as Oracle Home Inventory.
oraInventory中的內容如下:
[oracle@RAC01 ora10g]$ cd $ORACLE_BASE/
[oracle@RAC01 ora10g]$ ls
admin backup oraInventory product
[oracle@RAC01 ora10g]$ cd oraInventory
[oracle@RAC01 oraInventory]$ ls
Contents logs orainstRoot.sh
ContentsXML oraInstaller.properties oui
install.platform oraInst.loc sessionContext.ser
Global Inventory ?
Global Inventory holds information about Oracle Products on a Machine. These products can be various oracle components like database, oracle application server, collaboration suite, soa suite, forms & reports or discoverer server . This global Inventory location will be determined by file oraInst.loc in /etc (on Linux) or /var/opt/oracle (solaris). If you want to see list of oracle products on machine check for file inventory.xml under ContentsXML in oraInventory Please note if you have multiple global Inventory on machine check all oraInventory directories)
You will see entry like
HOME NAME=”ORA10g_HOME” LOC=”/u01/oracle/10.2.0/db” TYPE=”O” IDX=”1″/
…
…
Local Inventory
Inventory inside each Oracle Home is called as local Inventory or oracle_home Inventory. This Inventory holds information to that oracle_home only.
Can I have multiple Global Inventory on a machine ?
Quite common questions is that can you have multiple global Inventory and answer is YES you can have multiple global Inventory but if your upgrading or applying patch then change Inventory Pointer oraInst.loc to respective location. If you are following single global Inventory and if you wish to uninstall any software then remove it from Global Inventory as well.
What to do if my Global Inventory is corrupted ?
No need to worry if your global Inventory is corrupted, you can recreate global Inventory on machine using Universal Installer and attach already Installed oracle home by option
-attachHome
./runInstaller -silent -attachHome -invPtrLoc $location_to_oraInst.loc
ORACLE_HOME=”Oracle_Home_Location” ORACLE_HOME_NAME=”Oracle_Home_Name”
CLUSTER_NODES=”{}”
Do I need to worry about oraInventory during oracle Apps 11i cloning ?
No, Rapid Clone will update both Global & Local Inventory with required information , you don’t have to worry about Inventory during Oracle Apps 11i cloning.
Inventory解析參考自:
關於ocr.loc檔案:
該檔案是在ORACLE RAC中使用的配置檔案,用於鉅鹿oracle rac的cor位置資訊:
ocrconfig_loc=/dev/raw/raw1
local_only=FALSE
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28612416/viewspace-774879/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- c++ Builder 關於檔案和目錄的操作C++UI
- 關於onethink 目錄,檔案讀寫檢測函式中的問題函式
- 關於oracle的控制檔案Oracle
- ORACLE directory 目錄讀寫檔案Oracle
- Oracle控制檔案相關的其他(五)Oracle
- 關於檔案系統在建立目錄檔案和普通檔案時的區別
- 解讀數倉中的資料物件及相關關係物件
- Oracle 資料庫常見檔案及相關操作Oracle資料庫
- 關於發展報告的相關檔案生成的源程式
- 關於目錄物件物件
- 與Linux檔案和目錄管理相關的一些重要命令Linux
- oracle 關於--控制檔案Oracle
- [原] PHP檔案及目錄操作總結(一)PHP
- 與 RMAN 相關的檔案
- Linux下對於檔案或者目錄的打包及壓縮、解壓Linux
- win登錄檔相關
- 關於轉儲Oracle索引資訊的相關命令Oracle索引
- oracle 關於--密碼檔案Oracle密碼
- oracle 關於--引數檔案Oracle
- oracle 關於-日誌檔案Oracle
- oracle 關於-資料檔案Oracle
- 關於oracle 密碼檔案Oracle密碼
- 簡單C#生成靜態及相關讀取模板檔案C#
- linux系統配置及相關檔案Linux
- 10g Oracle檔案及目錄介紹Oracle
- oracle實驗記錄 (恢復-關於控制檔案(1))Oracle
- oracle實驗記錄 (恢復-關於控制檔案(2))Oracle
- oracle實驗記錄 (恢復-關於控制檔案(3))Oracle
- oracle實驗記錄 (恢復-關於控制檔案(4))Oracle
- oracle關於分割槽相關操作Oracle
- /etc/shadow檔案相關欄位的解釋
- 關於解壓zip檔案的問題
- 關於資料檔案autoextend on的一點記錄
- [ARKit]0-相關實踐目錄
- 雲端計算相關論文目錄
- linux下Oracle RAC檔案系統相關的文章LinuxOracle
- oracle相關術語的解釋Oracle
- 關於oracle檔案許可權的問題Oracle