虛擬機器正確關閉方式
此處是如果虛擬機器的oracle資料庫通過遠端連線不行了的配置方法
ping 192.168.133.133
訪問虛擬機器的資料庫
sqlplus scott/[email protected]:1521/orcl
(不能加分號)
當關閉電腦時先掛起虛擬機器,再扣蓋或者關機否則監聽程式有可能不行了
如果監聽程式不行了,可以改一下listener的ip地址,實在不行就刪除裡邊的以前的配置生成的檔案,
# listener.ora Network Configuration File: E:\app\zls\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME =E:\app\zls\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.133.129)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
ADR_BASE_LISTENER = E:\app\zls
上邊這個listener檔案裡留下一個sid就可以了,刪除監聽
重新配置一下(Net Configuration Assistant)