rmannocatalogtargetsys ">
今天在本機上連接rman時拋出12514的錯誤:
C:\Documents and Settings\Administrator>rman nocatalog target sys/sys@colin
恢復管理器: Release 10.2.0.1.0 - Production on 星期二 7月 17 09:36:34 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN-00571:
RMAN-00569: ERROR MESSAGE STACK FOLLOWS
RMAN-00571:
RMAN-00554: 內部恢復管理器程序包初始化失敗
RMAN-04005: 目標數據庫中存在錯誤:
ORA-12514: TNS: 監聽程序當前無法識別連接描述符中請求的服務
這個錯誤很常見,造成這個錯誤的原因也比較多,根據在線文檔上的錯誤描述為:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Cause:The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
Action:
- Wait a moment and try to connect a second time.
- Check which services are currently known by the listener by executing: lsnrctl services
- Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
- If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
- Check for an event in the listener.log file.
筆者這邊遇到的情況為,每次關閉數據庫重新啟動后都會拋這樣的錯誤。
SQL> shutdown immediate;
數據庫已經關閉。
已經卸載數據庫。
ORACLE 例程已經關閉。
C:\Documents and Settings\Administrator>sqlplus sys/sys@colin as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 7月 17 11:30:09 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS: 監聽程序當前無法識別連接描述符中請求的服務
察看監聽文件的配置為:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=PLSExtProc)
(ORACLE_HOME=D:\oracle\product.2.0\db_1)
(PROGRAM=extproc)
) ----注意這里缺少了相應得數據庫服務
)
LISTENER=
(DESCRIPTION_LIST=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))
)
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=COLIN)(PORT=1521))
)
)
下面呢就利用net manager為監聽添加相應得數據庫服務了
服務添加完成后,保存下,再看監聽的配置:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=PLSExtProc)
(ORACLE_HOME=D:\oracle\product.2.0\db_1)
(PROGRAM=extproc)
)
(SID_DESC=
(GLOBAL_DBNAME=colin)
(ORACLE_HOME=D:\oracle\product.2.0\db_1)
(SID_NAME=colin)
) -------相應的數據庫服務添加上了
)
LISTENER=
(DESCRIPTION_LIST=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))
)
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=COLIN)(PORT=1521))
)
)
好了下步就是要重新裝入下監聽器
C:\Documents and Settings\Administrator>lsnrctl reload
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 17-7月 -2007 12:0
2:25
Copyright (c) 1991, 2005, Oracle. All rights reserved.
正在連接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
命令執行成功
我們再來顯示下監聽的狀態:
C:\Documents and Settings\Administrator>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 17-7月 -2007 12:0
2:56
Copyright (c) 1991, 2005, Oracle. All rights reserved.
正在連接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
LISTENER 的 STATUS
別名 LISTENER
版本 TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
啟動日期 17-7月 -2007 09:39:35
正常運行時間 0 天 2 小時 23 分 21 秒
跟蹤級別 off
安全性 ON: Local OS Authentication
SNMP OFF
監聽程序參數文件 D:\oracle\product.2.0\db_1\network\admin\listener.ora
監聽程序日志文件 D:\oracle\product.2.0\db_1\network\log\listener.log
監聽端點概要
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=colin)(PORT=1521)))
服務摘要
服務 "PLSExtProc" 包含 1 個例程。
例程 "PLSExtProc", 狀態 UNKNOWN, 包含此服務的 1 個處理程序
服務 "colin" 包含 1 個例程。
例程 "colin", 狀態 UNKNOWN, 包含此服務的 1 個處理程序
命令執行成功
再關閉數據庫,然后再連接數據庫。Ok,no problem了~
SQL> shutdown immediate
數據庫已經關閉。
已經卸載數據庫。
ORACLE 例程已經關閉。
C:\Documents and Settings\Administrator>sqlplus sys/sys@colin as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 7月 17 12:03:06 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
已連接到空閑例程。
End.
作者:fullerhua (中國統計網特邀認證作者)
本文為頭條號作者原創。未經允許,不得轉載。
運行人員:中國統計網小編(微信號:itongjilove)
中國統計網,是國內最早的大數據學習網站,公眾號:中國統計網
http://www.itongji.cn
如果你使用的是大尺寸顯示屏,擁有1920x1080或更大分辨率,可能你會選擇設置一個較高的DPI縮放級別,比如125%或更高。這樣屏幕上的內容看起來會更大一些,更容易閱讀。
在Windows Vista/Win7/Win8/Win8.1中這么做不會有什么問題,但是在Win10中,你會發現某些窗口中的字體會顯得很模糊,比如Windows服務窗口中,如下圖所示。
這是因為在Windows10中微軟采用了新的DPI解決方案,微軟這么做可能主要是為了兼顧移動設備。為了解決這一問題,我們可以手動修改注冊表讓系統仍然采用Windows8時的DPI縮放方案,不過該方法有一個缺點,那就是系統每重啟兩次都會將注冊表還原,你需要重新修改。當然,可以寫一個批處理放到開機啟動文件夾,不過這樣開機時會出現CMD窗口。
國外網友利用系統中的API制作了一個小工具,較“完美”地解決了這個問題,在微軟修復這個問題之前可臨時采用這個方法。
使用方法如下:
? 下載Win10 DPI修復工具(網盤下載)。
? 打開軟件后,選擇“Use Windows8.1 DPI scaling”,然后選擇縮放級別。點擊“Apply”應用,在彈出的提示窗口中點擊“OK”。
設置好后重啟系統或注銷重登錄后就可以看到效果了。如下圖所示:
注:軟件會在C:\Program Files (x86)\XPE Windows 10 DPI Fix(此為64位系統目錄,32位系統為Program Files文件夾)目錄下面生成程序文件,并自動設置為開機啟動(因為需要自動調整)。如果你想恢復默認,只需要打開工具后勾選“Use Windows 10 Default DPI Scaling”,點擊“確定”,重啟后刪掉C:\Program Files (x86)\XPE Windows 10 DPI Fix目錄即可。(Source: xpexplorer)
感謝IT圈總版主Star2011投遞消息。