在開啟dbcc連線資料庫檢視資料庫配置引數時提示SQL1337錯誤
在開啟dbcc連線資料庫檢視資料庫配置引數時提示SQL1337錯誤,檢視IBM的infocenter錯誤解釋如下:
SQL1337N
找不到服務 服務名稱。
說明
系統不能解析與服務名稱相關的埠號。可能的原因為:
編目 TCP/IP 節點時,指定的服務名稱值不正確。
指定了正確的服務名稱,但未在客戶機 services 檔案中對其進行定義。
聯合系統使用者:資料來源也可能會檢測到此情況。
使用者響應
確保編目 TCP/IP 節點時指定的服務名稱正確,且它是在本地 services 檔案中定義的。
聯合系統使用者還必須確保在資料來源上的 services 檔案中定義了該名稱。
[db2inst1@db2 ~]$ db2 list db directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = MYSAMP
Database name = SAMPLE
Node name = MYNODE
Database release level = d.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = /home/db2inst1
Database release level = d.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
[db2inst1@db2 ~]$ db2 list node directory --檢視node資訊,發現 Service name與/etc/services裡的名稱不一樣
Node Directory
Number of entries in the directory = 1
Node 1 entry:
Node name = MYNODE
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = db2
Service name = db2int1
[root@db2 etc]# tail -n 4 services
DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_END 60003/tcp
[db2inst1@db2 ~]$ db2 get dbm cfg | grep -i svcename
TCP/IP Service name (SVCENAME) = DB2_db2inst1
SSL service name (SSL_SVCENAME) =
刪除節點、資料庫目錄資訊,重建後恢復正常:
[db2inst1@db2 ~]$ db2 uncatalog database SAMPLE
DB20000I The UNCATALOG DATABASE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
[db2inst1@db2 ~]$ db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = MYSAMP
Database name = SAMPLE
Node name = MYNODE
Database release level = d.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
[db2inst1@db2 ~]$ db2 uncatalog node MYNODE
DB20000I The UNCATALOG NODE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
[db2inst1@db2 ~]$ db2 list node directory
SQL1037W The node directory is empty. SQLSTATE=01606
[db2inst1@db2 ~]$ db2 catalog tcpip node testnode remote 192.168.2.30 server DB2_db2inst1
DB20000I The CATALOG TCPIP NODE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
[db2inst1@db2 ~]$ db2 list node directory
Node Directory
Number of entries in the directory = 1
Node 1 entry:
Node name = TESTNODE
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 192.168.2.30
Service name = DB2_db2inst1
[db2inst1@db2 ~]$ db2 catalog database sample at node TESTNODE
DB20000I The CATALOG DATABASE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
[db2inst1@db2 ~]$ db2 list db directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = MYSAMP
Database name = SAMPLE
Node name = MYNODE
Database release level = d.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = SAMPLE
Database name = SAMPLE
Node name = TESTNODE
Database release level = d.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
SQL1337N
找不到服務 服務名稱。
說明
系統不能解析與服務名稱相關的埠號。可能的原因為:
編目 TCP/IP 節點時,指定的服務名稱值不正確。
指定了正確的服務名稱,但未在客戶機 services 檔案中對其進行定義。
聯合系統使用者:資料來源也可能會檢測到此情況。
使用者響應
確保編目 TCP/IP 節點時指定的服務名稱正確,且它是在本地 services 檔案中定義的。
聯合系統使用者還必須確保在資料來源上的 services 檔案中定義了該名稱。
[db2inst1@db2 ~]$ db2 list db directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = MYSAMP
Database name = SAMPLE
Node name = MYNODE
Database release level = d.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = /home/db2inst1
Database release level = d.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
[db2inst1@db2 ~]$ db2 list node directory --檢視node資訊,發現 Service name與/etc/services裡的名稱不一樣
Node Directory
Number of entries in the directory = 1
Node 1 entry:
Node name = MYNODE
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = db2
Service name = db2int1
[root@db2 etc]# tail -n 4 services
DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_END 60003/tcp
[db2inst1@db2 ~]$ db2 get dbm cfg | grep -i svcename
TCP/IP Service name (SVCENAME) = DB2_db2inst1
SSL service name (SSL_SVCENAME) =
刪除節點、資料庫目錄資訊,重建後恢復正常:
[db2inst1@db2 ~]$ db2 uncatalog database SAMPLE
DB20000I The UNCATALOG DATABASE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
[db2inst1@db2 ~]$ db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = MYSAMP
Database name = SAMPLE
Node name = MYNODE
Database release level = d.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
[db2inst1@db2 ~]$ db2 uncatalog node MYNODE
DB20000I The UNCATALOG NODE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
[db2inst1@db2 ~]$ db2 list node directory
SQL1037W The node directory is empty. SQLSTATE=01606
[db2inst1@db2 ~]$ db2 catalog tcpip node testnode remote 192.168.2.30 server DB2_db2inst1
DB20000I The CATALOG TCPIP NODE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
[db2inst1@db2 ~]$ db2 list node directory
Node Directory
Number of entries in the directory = 1
Node 1 entry:
Node name = TESTNODE
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = 192.168.2.30
Service name = DB2_db2inst1
[db2inst1@db2 ~]$ db2 catalog database sample at node TESTNODE
DB20000I The CATALOG DATABASE command completed successfully.
DB21056W Directory changes may not be effective until the directory cache is
refreshed.
[db2inst1@db2 ~]$ db2 list db directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = MYSAMP
Database name = SAMPLE
Node name = MYNODE
Database release level = d.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = SAMPLE
Database name = SAMPLE
Node name = TESTNODE
Database release level = d.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27015256/viewspace-777296/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 網站提示資料庫連線錯誤網站資料庫
- PbootCMS錯誤提示:資料庫連線失敗boot資料庫
- Ubuntu網站開啟時提示建立資料庫連線錯誤怎麼解決Ubuntu網站資料庫
- 網站連線資料庫配置錯誤網站資料庫
- JDBC連線資料庫時,Oracle9i的連線引數配置JDBC資料庫Oracle
- 開啟網站資料庫連線錯誤怎麼辦?網站資料庫
- (轉)檢視sql server 資料庫連線數方法SQLServer資料庫
- 網站提示連線資料庫錯誤怎麼解決網站資料庫
- 恢復資料庫引數錯誤無法啟動資料庫
- 網站資料庫連線時錯誤怎麼辦?網站資料庫
- 阿里雲資料庫連線資料庫錯誤:如何解決?阿里資料庫
- qt使用mysql,開啟資料庫,丟擲無法連線錯誤。QTMySql資料庫
- 檢視oracle資料庫的連線數以及使用者檢視Oracle資料庫
- asp網站提示資料庫連線出錯網站資料庫
- 檢視mysql資料庫連線數、併發數相關資訊MySql資料庫
- MMMNL absent錯誤 ,資料庫無法連線資料庫
- Oracle 資料庫連線錯誤解決方法Oracle資料庫
- DedeCms錯誤警告:連線資料庫失敗資料庫
- 資料庫本地,sqlplus和資料庫工具連線資料庫正常,但是JDBC連線資料庫出現了一直提示使用者名稱/密碼錯誤資料庫SQLJDBC密碼
- 連線資料庫出錯???資料庫
- Mybatis配置資料庫連線MyBatis資料庫
- solr連線資料庫配置Solr資料庫
- 開啟網頁顯示資料庫連線出錯網頁資料庫
- jmap檢視java程式佔用的資料庫連線數Java資料庫
- [Q]怎麼檢視資料庫引數 zt資料庫
- 資料庫的連線數資料庫
- 網站資料庫連線錯誤怎麼辦?網站資料庫
- sql server資料庫錯誤資料恢復(資料庫連線失效,無法附加查詢)SQLServer資料庫資料恢復
- 通過連線檢視資料庫相關資訊資料庫
- PLSQL連線oracle資料庫配置SQLOracle資料庫
- JNDI配置資料庫連線池資料庫
- .net 資料庫連線池配置資料庫
- 連線資料庫時出現ORA-12514錯誤資料庫
- 嘗試無引數啟動資料庫時報錯ORA-304錯誤資料庫
- MySQL資料庫遠端連線開啟方法MySql資料庫
- oracle資料庫修改連線數Oracle資料庫
- 織夢DedeCms錯誤警告,連線資料庫失敗資料庫
- 資料庫連線錯誤的原因及解決方法資料庫