To get the version of the db you are connected to:
select *from v$version;select *from product_component_version;
To get the version of the db you are connected to:
select *from v$version;select *from product_component_version;