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
Post a Comment