linux系统shell脚本中数据库登录的问题

如果在shell脚本中需要在当前物理机器登录,并且当前机器有sqlplus的文件,可以

直接用sqlplus -s username/password登录。如果需要跨机器登录,则需要加上需要

登录机器的ip,命令如下sqlplus -s username/password@net_service_name,登陆后

也可以使用conn命令来连接其他用户,conn username/password@net_service_name

发布了13 篇原创文章 · 获赞 0 · 访问量 1946

猜你喜欢

转载自blog.csdn.net/Beautifulcoco/article/details/89670327