Database Administration

12 Questions
Study Guide: This page shows the correct answers and explanations for all questions in this topic. Review these to understand the key concepts.

Question:

You want to view the initialization parameter settings for only a specific PDB. Which of the following statements is true?

Correct Answer: D
  • D. From the PDB, execute SELECT NAME, VALUE, ISPDB_MODIFIABLE FROM v$parameter;
Explanation
A .Incorrect syntax and view (pdb_spfile$ is not a valid view; PDB_SPFILE$ exists but lacks value$). B .From CDB root, V$PARAMETER shows all parameters, not PDB-specific ones. C .pdb_spfiles is not a valid view; PDB_SPFILE$ exists but requires scoping to a PDB. D .True. From the PDB, V$PARAMETER shows parameters specifi c to that PDB, including inherited and PDB-modified values, with ISPDB_MODIFIABLE indicatin g alterability.

Question:

Your database instance is started with an SPFILE. A PFILE is also available. You execute this command: ALTER SYSTEM SET DB_CACHE_SIZE=100K; Where does the value change?

Correct Answer: B
  • B. In the SPFILE and memory
Explanation
B .True. Without SCOPE, ALTER SYSTEM defaults to BOTH (memory and SPFILE); PFILE isn’t updated unless manually recreated.

Question:

In the SPFILE of a single instance database, LOCAL_LISTENER is set to LISTENER_1. The TNSNAMES.ORA file in $ORACLE_HOME/network/admin in the database home contains: LISTENER_1 = (ADDRESS = (PROTOCOL = TCP)(HOST = host1.abc.com)(PORT = 1521)). Which statement is true?

Correct Answer: C
  • C. The LREG process registers services dynamically with the LISTENER_1 listener.
Explanation
Dynamic service registration allows a database to automatically register its services with a listener without manual configuration in LISTENER.ORA. Let’s analyze each option: A . The definition for LISTENER_1 requires a CONNECT_DATA section to enable dynamic service registration. False. The CONNECT_DATA section is part of a client-side TN SNAMES.ORA entry for connecting to a service, not for listener registration. Dynamic registrati on is handled by the database’s LREG (Listener Registration) process, which uses the LOCAL_LISTENER paramet er to locate the listener’s address (e.g., host1.abc.com:1521). No CONNECT_DATA is needed in the listener address definition itself. This option confuses client connection syntax with listener conf iguration. Mechanics:The listener address in TNSNAMES.ORA (LISTENER_1) is sufficient for LREG to find and register with it, as long as the listener is running at that address. B . LISTENER_1 must also be defined in the LISTENER.ORA file to enable dynamic service registration. False. Dynamic registration doesn’t require the listener to be explicitly defined in LISTENER.ORA. The LOCAL_LISTENER parameter pointing to LISTENER_1 (resolved via TNSNAMES.ORA) tells LREG where to register services. If the listener is running on host1.abc.com: 1521, LREG will find it without a LISTENER.ORA entry. However, LISTENER.ORA is needed tostartthe listener process, but that’s separate from dynamic registration. Practical Note:If LISTENER.ORA isn’t configured, a default listener might run on port 1521, but the question implies LISTENER_1 is operational. C . The LREG process registers services dynamically with the LISTENER_1 listener. True. In Oracle 23ai, the LREG background process (replacing P MON’s registration role in earlier versions) dynamically registers database services with listene rs specified by LOCAL_LISTENER. Here, LOCAL_LISTENER=LISTENER_1 resolves to host1.abc.com:1521 via TNSN AMES.ORA. LREG periodically sends service information (e.g., service na mes, instance details) to the listener, enabling clients to connect without static configuration. Mechanics:LREG uses the TNS alias (LISTENER_1) to locate the listener’s IP and port, registers services like orcl or orclpdb, and updates the listener’s service table. This happens automatically every 60 seconds or on significant events (e.g., instance startup). D . Dynamic service registration cannot be used for this database instance. False. The setup (LOCAL_LISTENER set and a valid TNSNAMES.ORA entry) explicitly supports dynamic registration. No blockers (e.g., REGISTRATION_EXCLUDED_LISTENE RS) are mentioned, so LREG can function normally. E . There are two listeners named LISTENER and LISTENER_1 running simultaneously using port 1521 on the same host as the database in LISTENERS. False. The question mentions only LISTENER_1 in the SPFILE and TNSNAMES.ORA. There’s no evidence of a second listener (LISTENER) or a LISTENERS configuration (possibly a typo). Two listen ers can’t share the same port (1521) on the same host due to port confl icts unless explicitly configured with different IPs, which isn’t indicated here.

Question:

Which three statements are true about the Oracle Dat abase server during and immediately after SHUTDOWN TRANSACTIONAL?

Correct Answer: C,D,E
  • C. New connection requests made to the database instance are refused.
  • D. Sessions remain connected even if they are not running a transaction.
  • E. Uncommitted transactions are allowed to continue to the next COMMIT.
Explanation
A .False. Recovery happens on startup, not shutdown. B .False. TRANSACTIONAL waits for commits or rollbacks, then disconnects. C .True. New connections are blocked during shutdown. D .True. Inactive sessions persist until shutdown completes. E .True. Active transactions can commit before disconnection.

Question:

You execute the SHUTDOWN ABORT command. Which two statements are true?

Correct Answer: C,E
  • C. Subsequent instance startup performs instance recovery.
  • E. Uncommitted transactions are not rolled back by the shutdown.
Explanation
A .False. No checkpoint occurs with ABORT. B .False. Instance recovery, not media recovery, is needed. C .True. Crash recovery rolls back uncommitted changes on startup. D .False. Files aren’t closed cleanly with ABORT. E .True. Shutdown doesn’t roll back; recovery does.

Question:

Which three relationships between instances and Oracle databases are possible without using Multi- tenant?

Correct Answer: B,D,E
  • B. Two or more instances on separate servers all mounting and opening the same database.
  • D. One instance on one server that has no database mounted.
  • E. One instance on one server mounting and opening one database.
Explanation
A .False. One instance can’t mount multiple DBs without multitenant. B .True. RAC allows multiple instances to share one DB. C .False. Same as A; not possible without CDB. D .True. An instance can start in NOMOUNT with no DB. E .True. Standard single-instance configuration.

Question:

You execute this command: [oracle@host01 ~]$ expdp system/o racle FULL=Y DUMPFILE=exp_db_full.dmp PARALLEL=4 LOGFILE=exp_db_full.log JOB_NAME=exp_db_full. During the export operation, you detach from the job by using CTRL+C a nd then execute this command: Export> STOP_JOB=IMMEDIATE. Are you sure you wish to stop th e job ([yes]/no): yes. Which two statements are true about the job?

Correct Answer: C,D
  • C. You can reattach to it and monitor it.
  • D. It terminates.
Explanation
A .False. STOP_JOB=IMMEDIATE halts the job, not backgrounds it. B .False. You can monitor before stopping or after restarting. C .True. Before stopping, you can reattach with expdp attach=exp_db_full. D .True. STOP_JOB=IMMEDIATE terminates the job instantly.

Question:

You start your database instance in NOMOUNT state. Which two actions are performed?

Correct Answer: A,D
  • A. All required background processes are started.
  • D. Memory is allocated for the SGA.
Explanation
A .True. Background processes (e.g., PMON) start. B .False. Consistency checks require MOUNT. C .False. Control files open in MOUNT. D .True. SGA is allocated at startup. E .False. SYS access requires OPEN.

Question:

Which two account management capabilities can be configured using Oracle profiles?

Correct Answer: D,E
  • D. The ability to prevent a password from ever being reused.
  • E. The number of days for which an account may be inactive before it is locked.
Explanation
A .False. Session limits don’t tie to password changes. B .False. CPU limits don’t lock accounts. C .False. No direct “logged - in days” parameter. D .True. PASSWORD_REUSE_MAX=UNLIMITED prevents reuse. E .True. PASSWORD_LOCK_TIME sets inactivity lockout .

Question:

Which three statements are true about an SPFILE?

Correct Answer: A,C,E
  • A. It can be created by SYS from an idle instance.
  • C. It can be used to create a PFILE.
  • E. It contains initialization parameters whose values can be changed using the ALTER SYSTEM statement.
Explanation
A .True. CREATE SPFILE FROM PFILE works when idle. B .False. Includes dynamic parameters too. C .True. CREATE PFILE FROM SPFILE generates a PFILE. D .False. A PFILE can start the instance if no SPFILE exists. E .True. Dynamic parameters (e.g., DB_CACHE_SIZE) are modifiable.

Question:

orcl.dmp contains a full export of the ORCL database. This command is executed to load data from orcl.dmp into the TESTDB database: [oracle@host01 ~] impdp sys tem/oracle SCHEMAS=sh,oe REMAP_SCHEMA=sh:hr DUMPFILE=orcl.dmp EXCLUDE=index TABLE_ EXISTS_ACTION=replace LOGFILE=impdp.log Which two statements are true?

Correct Answer: C,D
  • C. It skips all indexes of ORCL:SH and in both ORCL:SH and TESTDB:HR.
  • D. It drops and re -creates tables that exist in both ORCL:SH and TESTDB:HR.
Explanation
A .False. EXCLUDE=index skips all indexes, not re -creates them. B .False. TABLE_EXISTS_ACTION=replace drops and re -creates tables. C .True. EXCLUDE=index omits all indexes from import. D .True. replace drops and re -creates existing tables. E .False. Skips all indexes, not just overlapping ones.

Question:

Which two are benefits of external tables?

Correct Answer: D,E
  • D. They can be queried, transformed, and joined with other tables with out having to load the data first.
  • E. The results of a complex join or aggregating function or both can be unloaded to a file for transportation to other systems.
Explanation
A .False. External tables are read-only; no DELETE. B .False. Require OPEN state, unlike V$ views. C .False. No UPDATE support; read-only. D .True. Queryable like regular tables without loading. E .True. Data Pump can unload query results to files.