简体   繁体   中英

how to run an application and pass username and password to that application

I want to run oracle 10g enterprise edition application from c# window form application and i want to pass the username and password to login page of the oracle automatically...oracle must be logged in without any effort to enter the login username and password.

I can run the application by following code:

Process.Start("sqlplusw.exe");

but I dont know how to pass username and password to this application automatically from c# form.

From the documentation :

You can optionally include your login username and password separated by a slash (/), and a remote database to connect to, for example:

C:\\> SQLPLUSW username/password@connect_identifier

Therefore, you should be able to do:

Process.Start("sqlplusw.exe", "username/password@connect_identifier");

I Found This:

sqlplus user/password@dbname 

Here http://www.fehily.com/books/createdb/sql-3rd-oracle-10g.html

Is that what you meant ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM