0
我想用迴旋作爲SYSDBA連接,已經嘗試過使用連接作爲SYSDBA迴旋
conn.ConnectionString = "Driver={Microsoft ODBC for Oracle};SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=1521))(CON
NECT_DATA=(SERVICE_NAME=orcl)));uid=scott;pwd=tiger**;as sysdba**"
腸道得到這個例外
RoundhousE encountered an error.
System.ArgumentException: Format of the initialization string does not conform t
o specification starting at index 202.
at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionSt
也試過
conn.ConnectionString = "Driver={Microsoft ODBC for Oracle};SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=1521))(CON
NECT_DATA=(SERVICE_NAME=orcl)));uid=scott;pwd=tiger;**DBA Privilege=SYSDBA;"**
但隨後的例外是
RoundhousE encountered an error.
System.ArgumentException: Keyword not supported: 'dba privilege'.
有什麼建議嗎?
在此先感謝