c# - Get Oracle Database name -


How can I get the program named Oracle Database I'm connecting to? I tried:

 using  (Oracle Connection Connection = New Oracle Connection (oraConnectStr)) {connection.Open (); Return connection Database; }  

but it returns an empty string. I can not use full connection string because it can contain username / password.

you V $ database :

  SQL & gt; Choose a name from the V $ database; NAME --------- PROD  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -