0

I am working in a project which has huge amounts of DATA, hence we are using two DBs. Now my question is, how will i know to which DB my system is currently connected to?

1 Answers1

1

You can get the variable instance_name from the context:

select sys_context
       ( 'userenv'
       , 'instance_name'
       )
from   dual
Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325