如果在shell腳本中需要在當前物理機器登錄,並且當前機器有sqlplus的文件,可以
直接用sqlplus -s username/password登錄。如果需要跨機器登錄,則需要加上需要
登錄機器的ip,命令如下sqlplus -s username/password@net_service_name,登陸後
也可以使用conn命令來連接其他用戶,conn username/password@net_service_name
如果在shell腳本中需要在當前物理機器登錄,並且當前機器有sqlplus的文件,可以
直接用sqlplus -s username/password登錄。如果需要跨機器登錄,則需要加上需要
登錄機器的ip,命令如下sqlplus -s username/password@net_service_name,登陸後
也可以使用conn命令來連接其他用戶,conn username/password@net_service_name