查询版本号:

select * from product_component_version

查询ip:

select utl_inaddr.get_host_address from dual

查询数据库服务名或实例名:

select global_name from global_name