9I 10g LISTENER 加密 的不同
預設的9I資料庫監聽是可以遠端關閉的,只要能TNSPING通,如下:
-bash-3.2$ lsnrctl stop ora9i
LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 27-JUN-2013 04:53:08
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.151)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ora9i)))
The command completed successfully
所以我們需要為9I的LISTENER 設定好安全策略為PASSWORD認證,防止這樣的情況
LSNRCTL> change_password
Old password:
New password:
Reenter new password:
Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
Password changed for LISTENER
The command completed successfully
LSNRCTL> save_config
Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
TNS-01169: The listener has not recognized the password
LSNRCTL> set password
Password:
The command completed successfully
LSNRCTL> save_config
Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
Saved LISTENER configuration parameters.
Listener Parameter File /home/oracle/product/9.2.0.4/network/admin/listener.ora
Old Parameter File /home/oracle/product/9.2.0.4/network/admin/listener.bak
The command completed successfully
再次遠端關閉
-bash-3.2$ lsnrctl stop ora9i
LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 27-JUN-2013 04:57:17
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.151)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ora9i)))
TNS-01169: The listener has not recognized the password
但是10G過後不存在這個問題因為使用本地認證的模式如下:
LSNRCTL> status
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Solaris: Version 11.2.0.3.0 - Production
Start Date 27-JUN-2013 04:44:09
Uptime 0 days 0 hr. 14 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/diag/tnslsnr/dg1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg1)(PORT=1521)))
Services Summary...
Service "dg1" has 1 instance(s).
Instance "ora11g", status READY, has 1 handler(s) for this service...
Service "ora11gXDB" has 1 instance(s).
Instance "ora11g", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>
如果遠端關閉如下:
-bash-3.2$ lsnrctl stop test
LSNRCTL for Solaris: Version 11.2.0.3.0 - Production on 27-JUN-2013 05:00:16
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.157)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=test)))
TNS-01189: The listener could not authenticate the user
但是可以在LISTENER檔案中設定
LOCAL_OS_AUTHENTICATION_LISTENER = OFF
來關閉本地認證方式,這樣就可以設定密碼了,但是有什麼意義呢?設定密碼本來就是防止遠端關閉,如果能登入本機設定密碼有什麼意義
呢?殺掉程式不就可以了
如果你忘記了密碼,只要能夠登入本機,可以在配置檔案中刪除關於PASSWORD的記錄,然後KILL掉LISTENER程式,最後重啟就可以了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7728585/viewspace-764206/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 9i、10g、11g資料庫設定listener密碼的方法Oracle資料庫密碼
- oracle 9i與10g,11g不同的子查詢括號用法Oracle
- No need to set a listener password in ORACLE 10GOracle 10g
- Oracle 9i/10g的官方教材Oracle
- 為listener增加密碼驗證加密密碼
- Oracle Flashback (9i & 10g) [zt]Oracle
- oracle 10g的dmp如何匯入9iOracle 10g
- upgrade oracle version 9i to 10gOracle
- oracle 9i/10g merge 用法Oracle
- Initialization Parameter Changes from 9i to 10g
- Oracle 9i, 10g jdbc driver 檔案OracleJDBC
- 轉:oracle 9i/10g merge 用法Oracle
- Windows下9i,10g共存9i dbca無法啟動的解決辦法Windows
- 9I 資料庫升級到10g的步驟資料庫
- 10g 11g 檢視是否DISABLE CRS和10g 11g LOCAL listener的區別
- 10g和9i執行計劃差異
- Oracle Advanced Replication 1 例 9i to 10g MVROracleVR
- oracle 9i 10G 11G 的RAC 穩定性比較Oracle
- oracle監聽檔案listener.ora for 10g/11gOracle
- local_listener ,remote_listener 的配置REM
- Oracle 9i、10g 常用軟體補丁下載地址Oracle
- 9i和10g的程式設計藝術裡面的指令碼程式設計指令碼
- Oracle 9i/10g的Bug和修復列表及升級指南Oracle
- oracle 9i的資料庫的dmp匯入到10G資料庫Oracle資料庫
- Oracle 補丁全集 (Oracle 9i 10g 11g Path)Oracle
- Oracle 9i和10G軟體及補丁下載地址Oracle
- [筆記]Semaphores Tunning on RedHat Linux for Oracle 9i or 10g筆記RedhatLinuxOracle
- 9i, 10g 中table monitoring 10%的變化率是如何統計的
- oracle 9i wrap加密,需要指定edubug=wrap_new_sqlOracle加密SQL
- 9i 10g 各個版本拋棄和不贊成使用的引數
- Oracle 9i,10g,11g 下的 UTL_FILE_DIR 及 DIRECTORY - 1Oracle
- Oracle 9i,10g,11g 下的 UTL_FILE_DIR 及 DIRECTORY - 2Oracle
- 9I/10G 11G online index的實現過程分析Index
- 關於local_listener、remote_listener、current_listenerREM
- Oracle 資料庫歸檔配置-9i,10g,11gOracle資料庫
- 區別oracle 9i 與 oracle 10g 備份表空間Oracle 10g
- Oracle Flashback 閃回查詢功能操作範例(9i and 10g)Oracle
- (轉)使用DBUA從9i到10G升級資料庫資料庫