The problem of database login in linux system shell script

If you need to log in to the current physical machine in a shell script, and the current machine has a sqlplus file, you can

Log in directly with sqlplus -s username / password. If you need to log in across machines, you need to add the need

Log into the machine's ip, the command is as follows sqlplus -s username / password @ net_service_name, after login

You can also use the conn command to connect to other users, conn username / password @ net_service_name

Published 13 original articles · praised 0 · visits 1946

Guess you like

Origin blog.csdn.net/Beautifulcoco/article/details/89670327