Judging the accurate storage capacity
We have a requirement to copy schemas(after some data filtering) from one DB instance to another. Before we do this, we also need to make sure the target DB has enough storage capacity to accomodate the copied data. We have a Java based microservice to do all this and prefer the SQL route if it is possible. We use ASM and Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production.
Based on our reading, we saw that there are multiple ways of doing it. I have listed down a few options we came across, but wanted your inputs.
1. Assuming that we know the table space which the schema objects are going to use, is it reliable to use the data in DBA_TABLESPACE_USAGE_METRICS and DBA_TABLESPACES to find available capacity? We tried the following query: