Oracle database start and stop show this error code ORA-01012: not logged on
Running the hostname -i command failed to resolve the host name to an IP address. Error hostname: Host name lookup failure
Edit the /etc/hosts file and configure the correct IP address and host name mapping relationship
After saving and exiting, run the hostname -i command again to check that the correct local IP address is displayed.
Restart the Oracle instance to start normally