Final Day reveiw Flashcards
(40 cards)
Which type of database backup can be performed while a database is online?
Inconsistent
What can be queried from a database while it is in the NOMOUNT state?
Instance parameters
Which process duplicates modified blocks from a buffer cache to files on disk?
Database Writer (DBWn)
In response to users’ complaints that the system is slow, a database administrator detects that a user is consuming too many resources.
Which parameter controls the use of service units?
COMPOSITE_LIMIT
What is the result of the CASCADE option when used with the DROP USER command?
All the user’s objects are removed from the database.
Which privilege is required to add a foreign key constraint to a table owned by another user?
REFERENCES
An administrator runs the following SQL statements:
CREATE USER HR_User IDENTIFIED BY ‘Password’ DEFAULT TABLESPACE DATA;
GRANT CREATE SESSION, CREATE TABLE to HR_User;
HR_User creates a new table in their own schema.
What happens when HR_User inserts a row into the new table?
The insert fails with an error for missing privileges on the DATA tablespace.
What is the NOMOUNT state in Oracle?
The NOMOUNT state is the initial state of an Oracle instance, in which the instance is started but the database is not mounted.
What does it mean for a database to be “mounted”?
When a database is “mounted,” it means that the instance is able to access the datafiles and control files of the database.
What can be done in the NOMOUNT state?
In the NOMOUNT state, the instance can perform tasks such as creating a new database or recovering an existing one.
What is the command to start an instance in NOMOUNT state?
The command to start an instance in NOMOUNT state is “STARTUP NOMOUNT”.
What is the command to mount a database?
The command to mount a database is “ALTER DATABASE MOUNT”.
What is the command to open a database?
The command to open a database is “ALTER DATABASE OPEN”.
What is the difference between mounting and opening a database?
Mounting a database makes it accessible to the instance, while opening a database makes it available for use by users.
What can be queried from a database while it is in the NOMOUNT state?
While the database is in the NOMOUNT state, you will not be able to query any data from the database as the database is not mounted, and the instance does not have access to the datafiles and control files of the database.
In NOMOUNT state, you can only query the information available in the data dictionary, such as the initialization parameters, backup and recovery information, and the structure of the database objects. However, you will not be able to access the data stored in the database tables.
You can also check the status of the background processes and the memory structures such as SGA, PGA etc.
Once the database is mounted and opened, you will be able to query the data in the database tables.
What is the MOUNTED state in Oracle?
The MOUNTED state is when the instance has successfully mounted the database, allowing the instance to access the datafiles and control files of the database.
What is the OPEN state in Oracle?
The OPEN state is when the instance has opened the database, making it available for use by users.
What is the CLOSED state in Oracle?
The CLOSED state is when the instance has closed the database, making it unavailable for use by users, but allowing the instance to continue to access the datafiles and control files
What is the SHUTDOWN state in Oracle?
The SHUTDOWN state is when the instance is shut down, and the database is not available for use.
What is the ARCHIVELOG mode in Oracle?
ARCHIVELOG mode is a mode in which the Oracle database automatically archives redo logs, which are used to recover the database in case of a failure.
What is the NOARCHIVELOG mode in Oracle?
NOARCHIVELOG mode is a mode in which the Oracle database does not automatically archive redo logs. This mode is less robust in terms of recovery options.
More info on Closed state
Certainly, the CLOSED state in Oracle is when the instance has closed the database, making it unavailable for use by users, but allowing the instance to continue to access the datafiles and control files. Here are some additional details on the closed state:
The closed state is typically used when performing maintenance on the database, such as adding new datafiles or making structural changes to the database.
While the database is closed, users cannot access the data in the tables, but the instance can still access the datafiles and control files.
The instance can perform tasks such as backup and recovery, and it can also read and write to the datafiles.
The instance can also switch the database to another state, such as the open state, once the maintenance is complete.
The command to close the database is “ALTER DATABASE CLOSE”, this command makes the database unavailable for user access and only the instance can access the datafiles and control files.
The closed state is not the same as shutting down the instance, shutting down the instance would close the database but also release all the resources and stop the background processes.
It is important to note that a closed database is not accessible to the users, so the data is not updated, therefore the database can be inconsistent and can’t be used for any query or transaction. A closed database is typically used for maintenance purpose, and before opening the database, it is important to perform recovery actions to make it consistent.
What is the Apply Server (ASnn) in Oracle?
A: The Apply Server (ASnn) is a background process that is used to apply changes from the redo log to a replicated or materialized database.
What types of replication and data warehousing configurations use the Apply Server (ASnn)?
The Apply Server (ASnn) is used in configurations such as Oracle Streams and Oracle GoldenGate, which are used to replicate data between databases.