How to connect to Oracle as “SYS” from SQL*Plus in Java
问题 I want to connect to Oracle as SYS from SQL*Plus in Java. But I am not able to connect. But I am able to connect as user named SCOTT . My code snippet is as follows: public static void test_script () { String fileName = "@t.sql"; //t.sql contains "show user" command String sqlPath = "D:\\"; String sqlCmd = "sqlplus"; // String arg1 = "scott/tiger@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=hostname)(Port=PORT ID))(CONNECT_DATA=(SID=SID)))"; String arg1 = "sys as sysdba/tiger@(DESCRIPTION=