Today, the virtual machine is configured with an ip address, so that the virtual machine and the host are in the same network segment, and then webservice is used successfully, but a new problem arises, and oracle cannot be connected.
I found that the OracleOraDb10g_home1TNSListener service was automatically disabled when I started it. I think it is related to changing the ip address, the following method was used to immediately succeed:
1. When running emca-config dbcontrol db in the cmd environment, you are required to enter the database SID. My database SID is the default orcl, and the listening port is 1521 by default. Then configure it step by step. Start OracleDBConsoleorcl.
2. Use Oracle net configuration assistant, an application that comes with orcale, to delete the original listener and configure a new listener. The method is simple. OracleOraDb10g_home1TNSListener can be started, and the database will resume normal use.