[20211013]測試遠端監聽補充.txt
[20211013]測試遠端監聽補充.txt
--//昨天做了遠端監聽的測試,今天本想看看SECURE_REGISTER_LISTENER= (TCP),是否限制這個功能.
--//在測試前我遇到無法登入的情況.
1.測試環境。
--//資料庫在192.168.100.78 sid=book,監聽埠1521 版本11.2.0.4
--//監聽伺服器在192.168.100.33 ,監聽埠1521 版本10.2.0.4。
--//兩臺機器監聽同時啟動。
2.測試:
d:\>sqlplus -s -l scott/book@192.168.100.33:1521/book
ERROR:
ORA-12545: Connect failed because target host or object does not exist
SP2-0751: Unable to connect to Oracle. Exiting SQL*Plus
--//我自己檢查沒有問題,突然想起我昨天做的測試
--//http://blog.itpub.net/267265/viewspace-2795454/=>[20211012]sqlnet.ora USE_DEDICATED_SERVER=on.txt
--//我已經註解了USE_DEDICATED_SERVER=on.
--//我馬上取消註解,發現ok.
d:\notes\2021>echo @ ver1 | sqlplus -s -l scott/book@192.168.100.33:1521/book
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
--//這才想起來我昨天修改了引數dispatchers:
SYS@book> show parameter dispatchers
NAME TYPE VALUE
----------- ------ -------------------------------------
dispatchers string (PROTOCOL=TCP) (SERVICE=book,bookXDB)
--//這樣導致book支援兩種模式 shared ,DEDICATED.使用ezconnect 預設不指明優先使用共享模式.
--//很明顯遠端監聽的方式不支援共享模式:
--//註解客戶端的sqlnet.ora檔案中的USE_DEDICATED_SERVER=on.
d:\notes\2021>sqlplus -s -l scott/book@192.168.100.33:1521/book
ERROR:
ORA-12545: Connect failed because target host or object does not exist
SP2-0751: Unable to connect to Oracle. Exiting SQL*Plus
--//我必須明確指明採用DEDICATED模式連線:
d:\notes\2021>echo @ver1 | sqlplus -s -l scott/book@192.168.100.33:1521/book:DEDICATED
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
--//在192.168.100.33上執行:
$ lsnrctl service
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 13-OCT-2021 10:10:36
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.100.33)(PORT=1521)))
Services Summary...
Service "BOOKSHARE" has 1 instance(s).
Instance "book", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:11 refused:0 state:ready
REMOTE SERVER
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.78)(PORT=1521)))
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "book" has 1 instance(s).
Instance "book", status READY, has 2 handler(s) for this service...
Handler(s):
"DEDICATED" established:11 refused:0 state:ready
REMOTE SERVER
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.78)(PORT=1521)))
"D000" established:8 refused:0 current:4 max:1022 state:ready
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DISPATCHER <machine: gxqyydg4, pid: 47703>
(ADDRESS=(PROTOCOL=tcp)(HOST=gxqyydg4.com)(PORT=3012))
Service "bookXDB" has 1 instance(s).
Instance "book", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:8 refused:0 current:4 max:1022 state:ready
DISPATCHER <machine: gxqyydg4, pid: 47703>
(ADDRESS=(PROTOCOL=tcp)(HOST=gxqyydg4.com)(PORT=3012))
Service "icare" has 1 instance(s).
Instance "icaredg", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "test" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "testXDB" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: icaredg, pid: 23483>
(ADDRESS=(PROTOCOL=tcp)(HOST=icaredg)(PORT=19254))
Service "test_XPT" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully
--//共享模式是註冊的.很明顯無法透過遠端監聽實現這個功能.
--//執行如下直接訪問埠.
d:\>sqlplus scott/book@192.168.100.78:3012/book
SCOTT@192.168.100.78:3012/book> @ spid
SID SERIAL# PROCESS SERVER SPID PID P_SERIAL# C50
---------- ---------- ------------------------ --------- -------------------- ------- ---------- --------------------------------------------------
281 15 8512:8764 SHARED 47705 20 1 alter system kill session '281,15' immediate;
3.關於SECURE_REGISTER_LISTENER=(TCP)限制我一直無法實現.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2795654/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20211012]測試遠端監聽.txt
- 遠端控制監聽器
- 為監聽設定密碼防止遠端關閉監聽密碼
- [20220603]測試quiz night(補充).txtUI
- [20190211]簡單測試埠是否開啟(補充).txt
- Oracle動態監聽註冊測試Oracle
- 第三方軟體測試之遠端測試和現場測試如何選擇?聽卓碼測評怎麼說
- 服務端模板注入:現代WEB遠端程式碼執行(補充翻譯和擴充套件)服務端Web套件
- 使用遠端Docker進行整合測試Docker
- 通過Webkit遠端除錯協議監聽網頁崩潰WebKit除錯協議網頁
- iOS Framework 單元測試(二)-- JDAppTests(XCTests的補充)iOSFrameworkAPP
- 2.5.4. 測試Oracle net——2.5.4.1. 啟動監聽程式Oracle
- [20220815]奇怪的隱式轉換問題(11g測試補充).txt
- [20220811]奇怪的隱式轉換問題(12c補充測試).txt
- OGG 18.1 for mysql遠端捕獲測試MySql
- 移動端除錯方法補充除錯
- [20210813]關於測試sql語句子游標的效能的一些補充說明.txtSQL
- PLC快速聯網,實現裝置遠端監測管理
- JAVA單元測試框架-13-TestNG中的Listener監聽Java框架
- 遠端執行命令,補充subprocess模組,粘包現象及解決辦法
- 伺服器端監聽器配置伺服器
- 【監聽】配置服務端靜態(動態)監聽/修改監聽埠及引數local_listener作用服務端
- linux測試遠端埠是否開啟(nc命令)Linux
- [20160418]修改oracle監聽埠.txtOracle
- 第三方軟體測試應該選擇現場測試還是遠端測試?
- junkman 遠端堆疊監控
- 遠端客戶端連線資料庫時提示TNS-12541: TNS: 無監聽程式客戶端資料庫
- [20141210]使用logminer看遠端歸檔檔案補充
- 2.5.4. 測試Oracle net——2.5.4.2. 檢視監聽程式狀態Oracle
- 智慧遠端監考方案助力企業考試化繁為簡
- seleniumGrid分散式遠端執行測試指令碼分散式指令碼
- [20160513]Restrict Session與靜態監聽.txtRESTSession
- [20130422]修改oracle監聽埠.txtOracle
- [20170825]不啟動監聽遠端能連線資料庫嗎2資料庫
- Linux 命令列終端快捷鍵補充Linux命令列
- 請問一下,如何監聽 swipe 滑動事件,謝謝 - 使用於安卓端的自動化測試事件安卓
- 影片監控遠端傳輸方案
- 遠端監控Springboot JVMSpring BootJVM