Showing posts with label database properties views. Show all posts
Showing posts with label database properties views. Show all posts

Monday, 29 September 2014

Database properties views

Below are some query that will help you to check current database properties:

SQL>SELECT * FROM DATABASE_PROPERTIES;

SQL> SELECT  * FROM DATABASE_SUMMARY;
If you want the full version information for your DB then:
SQL>SELECT * FROM v$version;
If you want your DB parameters then:
SQL>SELECT * FROM v$parameter;
If you want more information about your DB instance then:
SQL>SELECT * FROM v$database;
SQL>SELECT * FROM v$instance;
If you want the "size" of your database then this will give you a close enough calculation:
SQL>SELECT SUM(bytes / (1024*1024)) "DB Size in MB" FROM dba_data_files;