Use this procedure to log out of a DB VM or App VM.
To completely log out, you need to exit from each login and su that you've performed. For example, if you logged into a VM then used the su command to assume the root role, type exit twice.
# exit
Repeat exit as needed.