CREST Practitioner Security Analyst (CPSA) Practice

Disable ads (and more) with a membership for a one time $2.99 payment

Master the CREST Practitioner Security Analyst Exam. Prepare with quizzes and comprehensive study guides that include tips and explanations. Excel in your certification journey!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which Oracle command provides the database version?

  1. SELECT * FROM v$version

  2. SELECT instance_name FROM v$instance

  3. SELECT DISTINCT owner FROM all_tables

  4. SELECT username FROM all_users ORDER BY username

The correct answer is: SELECT * FROM v$version

The command that provides the database version is the SELECT * FROM v$version. This command retrieves information from the v$version view, which contains details about the Oracle Database version currently in use, including the release number and any patch updates. This is particularly useful for database administrators and developers who need to verify the database version for compatibility purposes, troubleshooting, or when applying updates. Knowing the version of the database can help in determining the features and functionalities available, as well as any deprecated features or specific bugs that may affect applications. The other options focus on different aspects of the Oracle database. For example, fetching the instance name or querying distinct owners from tables does not provide version information. Similarly, retrieving usernames provides data about user accounts but not the database version itself. Therefore, the command that directly accesses the version information is the most appropriate response to the question.