2012/12/19 Xiaognag Wang <xiaogangwang2...@hotmail.com>:
> hi,
>
> “conn system/password as sysdba" is not a SQL statement, ...
> ...
> So, Is there any method for this?

That's how it is done in Java using JDBC:

Quote:

"
...
internal_logon: Use this property to connect as a sysoper or sysdba
role. When using this property, the user and password properties must
be included in the properties object. For example:

Properties props = new Properties();
props.put("user", "scott");
props.put("password", "tiger");
props.put("internal_logon", "sysoper");
Connection conn = DriverManager.getConnection (url, props);
"

[http://www.razorsql.com/articles/oracle_jdbc_connect.html]

Mapping that knowledge to Qt leads me to:

  http://doc.qt.digia.com/qt/qsqldatabase.html#setConnectOptions


That's what I get from a 2 minute Google session, mixed with a sound
level of assumptions and educated guesses. Does that help?

Cheers, Oliver
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to