接続DB確認

select * from v$instance;

SELECT database();

select current_database();

 

select @@SERVERNAME as 'サーバー名',DB_NAME() as 'データベース名';
go