posted 20 years ago
Um, why do you need to know the database name?
The reason why I ask is this. If you are a DBA then you already know the database name. If you are a developer, then you don't need to know the database name. In oracle, check out your tnsnames.ora file in the ORACLE_HOME\netork\admin directory. Find the entry that you use to connect to the database and you will find the service name, which is all you really would need.
Hope that helps.
Mark