Oracle Database Sql Certified Associate · Free Practice Question Medium

Question 18

View and examine the following available responses.

Given:

  • You do not own the the objects

  • You do not have the DROP ANY TABLE system privilege

  • You do not have the EXECUTE ANY PROCEDURE system privilege

  • Referenced tables are not in your schema

Identify the actions can you perform only with system privileges. (Select two.)

  • A

    Query any table in a database.

  • B

    Access flat files via a database, which are stored in an operating system directory.

  • C

    Truncate a table in another schema.

  • D

    Execute a procedure in another schema.

  • E

    Log into a database.

  • F

    Use the WITH GRANT OPTION clause.

Reveal correct answers

Correct answers: A, E

Explanation

Correct options:

  1. Query any table in a database – Requires system privilege
    Accessing tables outside your schema generally requires the SELECT ANY TABLE system privilege.

  2. Log into a database – Does not require system privilege
    Logging into a database simply requires a valid user account with authentication privileges.

Incorrect options

  • Access flat files via a database, which are stored in an operating system directory – Requires system privilege
    Accessing external files typically requires the READ ANY FILE or ADMINISTER DATABASE TRIGGER system privilege.

  • Execute a procedure in another schema – Requires system privilege
    Since you lack EXECUTE ANY PROCEDURE, executing another schema’s procedure would require explicit privileges or system-level access.

  • Use the WITH GRANT OPTION clause – Does not require system privilege
    The WITH GRANT OPTION can be used if you already have privileges granted to you with that option.

  • Truncate a table in another schema – Requires system privilege
    Truncating a table outside your schema would typically require the ALTER ANY TABLE or DROP ANY TABLE system privileges.

When multiple users can access database objects, authorization can be controlled to these objects with privileges. Every object has an owner. Privileges control if a user can modify an object owned by another user. Privileges are granted or revoked either by the instance administrator, a user with the ADMIN privilege or, for privileges to a certain object, by the owner of the object.

A System Privilege is the right to perform a particular action or to perform an action on any object of a particular type. Objects include tables, views, materialized views, synonyms, indexes, sequences, cache groups, replication schemes and PL/SQL functions, procedures and packages. Only the instance administrator or a user with ADMIN privilege can grant or revoke system privileges.

The system privileges can be passed WITH ADMIN OPTION.


An Object Privilege is the right to perform a particular action on an object or to access another user's object. Objects include tables, views, materialized views, indexes, synonyms, sequences, cache groups, replication schemes and PL/SQL functions, procedures and packages.

An object's owner has all Object Privileges for that object, and those privileges cannot be revoked. The object's owner can grant object privileges for that object to other database users. A user with ADMIN privilege can grant and revoke object privileges from users who do not own the objects on which the privileges are granted.

Some privileges confer other privileges. For example, ADMIN privilege confers all other privileges.

All users of the database have the PUBLIC role. In a newly created TimesTen database, by default PUBLIC has SELECT and EXECUTE privileges on various system tables and views and PL/SQL functions, procedures and packages. Privileges that are granted to PUBLIC as part of database creation cannot be revoked.

The object privileges can be passed WITH GRANT OPTION.


TRUNCATE TABLE

TRUNCATE TABLE command requires user to have "drop any table" permission.

TRUNCATE ANY TABLE is a system privilege.

A. Querying any table in a database requires system privileges as it involves accessing data from tables that are not in your schema. Without system privileges, you would not be able to query tables that you do not own.

B. Accessing flat files via a database stored in an operating system directory does not require system privileges. This operation is related to file system access rather than database system privileges.

C. Truncating a table in another schema requires object-level privileges on that specific table, not system privileges. System privileges are not needed to truncate tables in different schemas.

D. Executing a procedure in another schema requires object-level privileges rather than system privileges. System privileges are not needed to execute procedures in different schemas.

E. Logging into a database is a system-level operation that requires system privileges. Without the necessary system privileges, you would not be able to access the database at all.

F. Using the WITH GRANT OPTION clause allows a user to grant the same privileges they have been granted to other users. It is a privilege granted at the object level, not a system privilege.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need