2. 在lisener.ora文件中找到html
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)sql
將下面的一段內容copy進去,並適當修改。(紅字部分爲你的SID,其中GLOBAL_DBNAME爲全局數據庫名,能夠與SID不一樣)數據庫
(SID_DESC =
(GLOBAL_DBNAME = ORAC11)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(SID_NAME = ORAC11)
)
app
修改後的內容以下:spa
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\003\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\003\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\app\003\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)
).net
3. 保存listener.ora文件,關閉並從新啓動監聽程序。htm
lsnrctl stop // 關閉get
lsnrctl start // 啓動it
4. 此時,用正常的用戶去鏈接雙出現新的錯誤。file
6. >sqlplus /nolog
>conn / as sysdba
>create spfile from pfile='D:\app\Administrator\admin\orac11\pfile\init.ora.1052011103553'
>startup // 啓動數據庫。
7. 一切恢復正常。