虚拟机正确关闭方式

此处是如果虚拟机的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)

转载于:https://www.cnblogs.com/zlshtml/p/10077427.html

你可能感兴趣的:(虚拟机正确关闭方式)