在 $ORACLE_HOME/bin 目錄下沒有 JRE 檔案夾。
---------------------------------------------------
bin 目錄下的 jar檔案夾是一個軟串連。
我刪除的時候,只刪除了 product目錄,致使沒有產生 JRE 檔案夾。
最後的辦法是刪除 oracle_base 下的所有檔案。
root.sh
[root@tsd01 Disk1]# /oracle/product/9204/root.sh
Running Oracle9 root.sh script...
"nThe following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/product/9204
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Cannot mount database in Exclusive mode
init 參數檔案中,參數 remote_login_passwordfile在起作用。 = exclusive 起作用。
remote_login_passwordfile = exclusive
可設為 remote_login_passwordfile = shared
在 exclusive 模式下,不能再啟動另一個執行個體。可使用 ps 命令查看 oracle 執行個體的進程。kill them.
ps -ef |grep <orcl>
<orcl> 為資料庫執行個體的名稱。
如果報“找不到密碼檔案”,可以使用 oracle 提供的 orapwd tool. 建立之。