[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
- [20211025]12c sequence nocache測試補充.txt
- [20190211]簡單測試埠是否開啟(補充).txt
- [20201116]測試CURSOR_SPACE_FOR_TIME(10g)(補充).txt
- ssh遠端埠轉發無法監聽0.0.0.0
- [20220815]奇怪的隱式轉換問題(11g測試補充).txt
- [20220811]奇怪的隱式轉換問題(12c補充測試).txt
- [20180928]ora-01426(補充).txt
- [20211013]ffmpeg mkv轉mp4.txt
- [20241016]Oracle C functions annotations補充.txtOracleFunction
- [20211215]提示precompute_subquery補充.txt
- [20211013]閱讀ldd原始碼跟蹤.txt原始碼
- 服務端模板注入:現代WEB遠端程式碼執行(補充翻譯和擴充套件)服務端Web套件
- 第三方軟體測試之遠端測試和現場測試如何選擇?聽卓碼測評怎麼說
- [20211116]plsql_code_type=native補充.txtSQL
- [20210813]關於測試sql語句子游標的效能的一些補充說明.txtSQL
- 通過Webkit遠端除錯協議監聽網頁崩潰WebKit除錯協議網頁
- [20180417]監聽與時區問題.txt
- iOS Framework 單元測試(二)-- JDAppTests(XCTests的補充)iOSFrameworkAPP
- OGG 18.1 for mysql遠端捕獲測試MySql
- 使用遠端Docker進行整合測試Docker
- [20211221]提示precompute_subquery補充2.txt
- [20210803]使用那個shared pool latch(補充).txt
- [20221014]TNS-12543 TNSdestination host unreachable(補充).txt
- Jmeter(四十九)_常用的效能測試監聽器JMeter
- [20200115]監聽中沒有xdb服務.txt
- 2.5.4. 測試Oracle net——2.5.4.1. 啟動監聽程式Oracle
- 遠端監控Springboot JVMSpring BootJVM
- 移動端除錯方法補充除錯
- [20180129]簡單探究cluster table(補充)4.txt
- [20181229]簡單探究cluster table(補充)3.txt
- [20181227]簡單探究cluster table(補充)2.txt
- [20220119]超長sql語句補充3.txtSQL
- [20220120]超長sql語句補充4.txtSQL
- [20211111]補充完善ash_wait_chains指令碼.txtAI指令碼
- [20190213]測試服務端開啟那些埠.txt服務端
- 面試題抽答(補充)面試題