Oracle Test Bobby Flashcards
Which three statements are true about a job chain? (Choose three.)
A. It can contain a nested chain of jobs.
B. It can be used to implement dependency-based scheduling.
C. It cannot invoke the same program or nested chain in multiple steps in the chain.
D. It cannot have more than one dependency.
E. It can be executed using event-based or time-based schedules.
A. It can contain a nested chain of jobs.
B. It can be used to implement dependency-based scheduling.
E. It can be executed using event-based or time-based schedules.
Examine the parameters for your database instance:
You execute the following command:
SQL> ALTER TABLESPACE undotbs1 RETENTION NOGUARANTEE;
Which statement is true in this scenario?
A. Undo data is written to flashback logs after 1200 seconds.
B. Inactive undo data is retained for 1200 seconds even if subsequent transactions fail due to lack of space
in the undo tablespace.
C. You can perform a Flashback Database operation only within the duration of 1200 seconds.
D. An attempt is made to keep inactive undo for 1200 seconds but transactions may overwrite the undo
before that time has elapsed.
D. An attempt is made to keep inactive undo for 1200 seconds but transactions may overwrite the undo before that time has elapsed.
As a user of the ORCL database, you establish a database link to the remote HQ database such that all users in the ORCL database may access tables only from the SCOTT schema in the HQ database.
SCOTT’s password is TIGER.
The service mane “HQ” is used to connect to the remote HQ database.
Which command would you execute to create the database link?
A. CREATE DATABASE LINK HQ USING ‘HQ’;
B. CREATE DATABASE LINK HQ CONNECT TO CURRENT_USER USING `HQ’;
C. CREATE PUBLIC DATABASE LINK HQ CONNECT TO scott IDENTIFIED BY tiger USING ‘HQ’;
D. CREATE DATABASE LINK HQ CONNECT TO scott IDENTIFIED BY tiger USING ‘HQ’;
C. CREATE PUBLIC DATABASE LINK HQ CONNECT TO scott IDENTIFIED BY tiger USING ‘HQ’;
You plan to create a database by using the Database Configuration Assistant (DBCA), with the following specifications:
- Applications will connect to the database via a middle tier.
- The number of concurrent user connections will be high.
- The database will have mixed workload, with the execution of complex BI queries scheduled at night.
Which DBCA option must you choose to create the database?
A. a General Purpose database template with default memory allocation
B. a Data Warehouse database template, with the dedicated server mode option and AMM enabled
C. a General Purpose database template, with the shared server mode option and Automatic Memory Management (AMM) enabled
D. a default database configuration
C. a General Purpose database template, with the shared server mode option and Automatic Memory Management (AMM) enabled
Which two statements correctly describe the relationship between data files and logical database structures? (Choose two.)
A. A segment cannot span data files.
B. A data file can belong to only one tablespace.
C. An extent cannot span data files.
D. The size of an Oracle data block in a data file should be the same as the size of an OS block.
B. A data file can belong to only one tablespace.
C. An extent cannot span data files.
Which two tasks can be performed on an external table? (Choose two.)
A. partitioning the table
B. creating an invisible index
C. updating the table by using an update statement
D. creating a public synonym
E. creating a view
D. creating a public synonym
E. creating a view
Which three factors influence the optimizer’s choice of an execution plan? (Choose three.)
A. the optimizer_mode initialization parameter
B. operating system (OS) statistics
C. cardinality estimates
D. object statistics in the data dictionary
E. fixed baselines
A. the optimizer_mode initialization parameter
C. cardinality estimates
D. object statistics in the data dictionary
Examine the resources consumed by a database instance whose current Resource Manager plan is displayed.
Which two statements are true? (Choose two.)
A. An attempt to start a new session by a user belonging to DSS_QUERIES fails with an error.
B. An attempt to start a new session by a user belonging to OTHER_GROUPS fails with an error.
C. The CPU_WAIT_TIME column indicates the total time that sessions in the consumer group waited for the CPU due to resource management.
D. The CPU_WAIT_TIME column indicates the total time that sessions in the consumer group waited for the CPU due to I/O waits and latch or enqueue contention.
E. A user belonging to the DSS__QUERIES resource consumer group can create a new session but the session will be queued.
C. The CPU_WAIT_TIME column indicates the total time that sessions in the consumer group waited for the CPU due to resource management.
E. A user belonging to the DSS__QUERIES resource consumer group can create a new session but the session will be queued.
Which action takes place when a file checkpoint occurs?
A. The checkpoint position is advanced in the checkpoint queue.
B. All buffers for a checkpointed file that were modified before a specific SCN are written to disk by DBWn and the SCN is stored in the control file.
C. The Database Writer process (DBWn) writes all dirty buffers in the buffer cache to data files.
D. The Log Writer process (LGWR) writes all redo entries in the log buffer to online redo log files.
C. The Database Writer process (DBWn) writes all dirty buffers in the buffer cache to data files.
Examine the structure of the sales table, which is stored in a locally managed tablespace with Automatic Segment Space Management (ASSM) enabled.
You want to perform online segment shrink to reclaim fragmented free space below the high water mark.
What should you ensure before the start of the operation?
A. Row movement is enabled.
B. Referential integrity constraints for the table are disabled.
C. No queries are running on this table.
D. Extra disk space equivalent to the size of the segment is available in the tablespace.
E. No pending transaction exists on the table.
A. Row movement is enabled.
Which statement is true regarding the startup of a database instance?
A. The instance does not start up normally and requires manual media recovery after a shutdown using the abort option.
B. Uncommitted transactions are rolled back during the startup of the database instance after a shutdown using the immediate option.
C. There is no difference in the underlying mechanics of the startup whether the database is shut down by using the immediate option or the abort option.
D. Media recovery is required when the database is shut down by using either the immediate option or the abort option.
E. Instance recovery is not required if the database instance was shut down by using SHUTDOWN IMMEDIATE.
E. Instance recovery is not required if the database instance was shut down by using SHUTDOWN IMMEDIATE.
Examine the memory-related parameters set in the SPFILE of an Oracle database:
Which statement is true?
A. Only SGA components are sized automatically.
B. Memory is dynamically re-allocated between the SGA and PGA as needed.
C. The size of the PGA cannot grow automatically beyond 500 MB.
D. The value of the MEMORY_TARGET parameter cannot be changed dynamically.
B. Memory is dynamically re-allocated between the SGA and PGA as needed.
Which two statements are true about extents? (Choose two.)
A. Blocks belonging to an extent can be spread across multiple data files.
B. Data blocks in an extent are logically contiguous but can be non-contiguous on disk.
C. The blocks of a newly allocated extent, although free, may have been used before.
D. Data blocks in an extent are automatically reclaimed for use by other objects in a tablespace when all the rows in a table are deleted.
B. Data blocks in an extent are logically contiguous but can be non-contiguous on disk.
C. The blocks of a newly allocated extent, although free, may have been used before.
You execute the commands:
Which two statements are true? (Choose two.)
A. The create user command fails if any role with the name Sidney exists in the database.
B. The user Sidney can connect to the database instance but cannot perform sort operations because no space quota is specified for the temp tablespace.
C. The user Sidney is created but cannot connect to the database instance because no profile is default.
D. The user Sidney can connect to the database instance but requires relevant privileges to create objects in the users tablespace.
E. The user Sidney is created and authenticated by the operating system.
A. The create user command fails if any role with the name Sidney exists in the database.
D. The user Sidney can connect to the database instance but requires relevant privileges to create objects in the users tablespace.
Your database supports a DSS workload that involves the execution of complex queries:
Currently, the library cache contains the ideal workload for analysis.
You want to analyze some of the queries for an application that are cached in the library cache.
What must you do to receive recommendations about the efficient use of indexes and materialized views to improve query performance?
A. Create a SQL Tuning Set (STS) that contains the queries cached in the library cache and run the SQL Tuning Advisor (STA) on the workload captured in the STS.
B. Run the Automatic Workload Repository Monitor (ADDM).
C. Create an STS that contains the queries cached in the library cache and run the SQL Performance Analyzer (SPA) on the workload captured in the STS.
D. Create an STS that contains the queries cached in the library cache and run the SQL Access Advisor on the workload captured in the STS.
D. Create an STS that contains the queries cached in the library cache and run the SQL Access Advisor on the workload captured in the STS.
Examine this command:
SQL > exec DBMS_STATS.SET_TABLE_PREFS (SH',
CUSTOMERS’, PUBLISH',
false’);
Which three statements are true about the effect of this command? (Choose three.)
A. Statistics collection is not done for the CUSTOMERS table when schema stats are gathered.
B. Statistics collection is not done for the CUSTOMERS table when database stats are gathered.
C. Any existing statistics for the CUSTOMERS table are still available to the optimizer at parse time.
D. Statistics gathered on the CUSTOMERS table when schema stats are gathered are stored as pending statistics.
E. Statistics gathered on the CUSTOMERS table when database stats are gathered are stored as pending statistics.
C. Any existing statistics for the CUSTOMERS table are still available to the optimizer at parse time.
D. Statistics gathered on the CUSTOMERS table when schema stats are gathered are stored as pending statistics.
E. Statistics gathered on the CUSTOMERS table when database stats are gathered are stored as pending statistics.
Examine the following impdp command to import a database over the network from a pre-12c Oracle database (source):
Which three are prerequisites for successful execution of the command? (Choose three.)
A. The import operation must be performed by a user on the target database by a user with the
DATAPUMP_IMP_FULL_DATABASE role, and the database link must connect to a user with the
DATAPUMP_EXP_FULL_DATABASE role on the source database.
B. All the user-defined tablespaces must be in read-only mode on the source database.
C. The export dump file must be created before starting the import on the target database.
D. The source and target database must be running on the same operating system (OS) with the same endianness.
E. The impdp operation must be performed by the same user that performed the expdp operation.
A. The import operation must be performed by a user on the target database by a user with the
DATAPUMP_IMP_FULL_DATABASE role, and the database link must connect to a user with the
DATAPUMP_EXP_FULL_DATABASE role on the source database.
B. All the user-defined tablespaces must be in read-only mode on the source database.
D. The source and target database must be running on the same operating system (OS) with the same endianness.
Which two are true concerning a multitenant container database with three pluggable database? (Choose two.)
A. All administration tasks must be done to a specific pluggable database.
B. The pluggable databases increase patching time.
C. The pluggable databases reduce administration effort.
D. The pluggable databases are patched together.
E. Pluggable databases are only used for database consolidation.
C. The pluggable databases reduce administration effort.
D. The pluggable databases are patched together.
Examine the current value for the following parameters in your database instance:
SGA\_MAX\_SIZE = 1024M SGA\_TARGET = 700M DB\_8K\_CACHE\_SIZE = 124M LOG\_BUFFER = 200M
You issue the following command to increase the value of DB_8K_CACHE_SIZE:
SQL> ALTER SYSTEM SET DB_8K_CACHE_SIZE=140M;
Which statement is true?
A. It fails because the DB_8K_CACHE_SIZE parameter cannot be changed dynamically.
B. It succeeds only if memory is available from the autotuned components if SGA.
C. It fails because an increase in DB_8K_CACHE_SIZE cannot be accommodated within SGA_TARGET.
D. It fails because an increase in DB_8K_CACHE_SIZE cannot be accommodated within SGA_MAX_SIZE.
B. It succeeds only if memory is available from the autotuned components if SGA.
Which three statements are true concerning unplugging a pluggable database (PDB)? (Choose three.)
A. The PDB must be open in read only mode.
B. The PDB must be dosed.
C. The unplugged PDB becomes a non-CDB.
D. The unplugged PDB can be plugged into the same multitenant container database (CDB)
E. The unplugged PDB can be plugged into another CDB.
F. The PDB data files are automatically removed from disk.
B. The PDB must be dosed.
D. The unplugged PDB can be plugged into the same multitenant container database (CDB)
E. The unplugged PDB can be plugged into another CDB.
You wish to enable an audit policy for all database users, except SYS, SYSTEM, and SCOTT.
You issue the following statements:
SQL> AUDIT POLICY ORA_DATABASE_PARAMETER EXCEPT SYS;
SQL> AUDIT POLICY ORA_DATABASE_PARAMETER EXCEPT SYSTEM;
SQL> AUDIT POLICY ORA_DATABASE_PARAMETER EXCEPT SCOTT;
For which database users is the audit policy now active?
A. All users except SYS
B. All users except SCOTT
C. All users except sys and SCOTT
D. All users except sys, system, and SCOTT
B. All users except SCOTT
On your Oracle 12c database, you invoked SQL *Loader to load data into the EMPLOYEES table in the HR schema by issuing the following command:
$> sqlldr hr/hr@pdb table=employees
Which two statements are true regarding the command? (Choose two.)
A. It succeeds with default settings if the EMPLOYEES table belonging to HR is already defined in the database.
B. It fails because no SQL *Loader data file location is specified.
C. It fails if the HR user does not have the CREATE ANY DIRECTORY privilege.
D. It fails because no SQL *Loader control file location is specified.
A. It succeeds with default settings if the EMPLOYEES table belonging to HR is already defined in the database.
C. It fails if the HR user does not have the CREATE ANY DIRECTORY privilege.
After implementing full Oracle Data Redaction, you change the default value for the NUMBER data type as follows:
After changing the value, you notice that FULL redaction continues to redact numeric data with zero.
What must you do to activate the new default value for numeric full redaction?
A. Re-enable redaction policies that use FULL data redaction.
B. Re-create redaction policies that use FULL data redaction.
C. Re-connect the sessions that access objects with redaction policies defined on them.
D. Flush the shared pool.
E. Restart the database instance.
E. Restart the database instance.
You must track all transactions that modify certain tables in the sales schema for at least three years.
Automatic undo management is enabled for the database with a retention of one day.
Which two must you do to track the transactions? (Choose two.)
A. Enable supplemental logging for the database.
B. Specify undo retention guarantee for the database.
C. Create a Flashback Data Archive in the tablespace where the tables are stored.
D. Create a Flashback Data Archive in any suitable tablespace.
E. Enable Flashback Data Archiving for the tables that require tracking.
D. Create a Flashback Data Archive in any suitable tablespace.
E. Enable Flashback Data Archiving for the tables that require tracking.










