The following query gives the version numbers of the database and the installed components.
SELECT 'Version' source,
banner
FROM sys.v_$version
UNION ALL
SELECT 'Registry',
banner
FROM sys.all_registry_banners
banner
FROM sys.v_$version
UNION ALL
SELECT 'Registry',
banner
FROM sys.all_registry_banners
Done...