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

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -