Thanks for the question, Michel.
Asked: May 20, 2024 - 5:39 am UTC
Last updated: August 06, 2024 - 12:30 am UTC
Version: 12.2
Viewed 1000+ times
You Asked
Hi TOM,
Not long ago it was easy to determine if your DB is on premise or on cloud: their banners (from v$VERSION) were different.
Now Entreprise and Standard original editions can be on premise or on cloud so we can no more determine in which environment we are just looking at the banner.
Starting with 21c, V$PDBS contains a CLOUD_IDENTITY column which is not null if you are on cloud.
So my question, in 12.2 to 19c, how to know, using SQL, if my oracle DB is on premise or cloud?
Bonus: how to know if it is OCI (Oracle Cloud Infrastructure) or ACE (Authorized Cloud Environment) or even neither (and unsupported)?
Regards
Michel
and Connor said...
cloud_identity is present on v$pdbs *if* you are on cloud, eg
SQL> select banner_full from v$version;
BANNER_FULL
----------------------------------------------------------------------------------------------------------------------------------
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.23.0.1.0
SQL> select cloud_identity
2 from v$pdbs;
CLOUD_IDENTITY
----------------------------------------------------------------------------------------------------------------------------------
{
"DATABASE_NAME" : "CMCDONALD1",
"REGION" : "us-phoenix-1",
...
So if the column is not present on 19c, then you are on-premises
If you're on something before 19c, well... you can be confident you're unsupported :-)
Rating
(5 ratings)