Oracle is installed in the virtual machine, and after the virtual machine is copied, the client fails to connect again.
solve:
1. Find the network\admin\listener.ora file on the server;
2. Refer to adding red content similar to the following:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\Oracle10g)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = E:\Oracle10g)
(SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = onest)(PORT = 1521))
)
)
3. Monitor restart.
(Reference: http://blog.sina.com.cn/s/blog_5007d1b10100oqo8.html)