100% found this document useful (2 votes)
8K views25 pages

Oracle Database Administration I Exam Number: 1Z0-082

The document contains multiple choice questions about Oracle database concepts. It covers topics such as the Oracle data dictionary, data types, subqueries, joins, dates, listeners, server architecture, transactions, operators, connection strings, constraints, and SET operators. The correct answers are indicated by letters A through F for each question.

Uploaded by

郭嘉龍
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
8K views25 pages

Oracle Database Administration I Exam Number: 1Z0-082

The document contains multiple choice questions about Oracle database concepts. It covers topics such as the Oracle data dictionary, data types, subqueries, joins, dates, listeners, server architecture, transactions, operators, connection strings, constraints, and SET operators. The correct answers are indicated by letters A through F for each question.

Uploaded by

郭嘉龍
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

1. Which two statements are true about the Oracle Data Dictionary?

A. It is owned by the sys user.


B. Data dictionary base tables can be queried directly.
C. It is owned by the SYSTEM user.
D. dictionary views are always created with queries that join two or more base
tables
E. All data dictionary view join base tables to dynamic performance views.

2. Which query requires explicit data type conversion?


A. SELECT join date FROM employees WHERE join date > '10-02-2018' ;
B. SELECT join date + '20' FROM employees;
C. SELECT SUBSTR(join date, 1, 2) - 10 FROM employees;
D. SELECT salary + '120.50' FROM employees;

3. Which three statements are true regarding single row subqueries?


A. They must return a row to prevent errors in the SQL statement.
B. They can be used in the HAVING clause.
C. They must be placed on the left side of the comparison operator or condition.
D. A SQL statement may have multiple single row subquery blocks.
E. They must be placed on the right side of the comparison operator or condition.
F. They can be used in the WHERE clause.

4. Which two statements are true about the Oracle join and ANSI join syntax?
A. The Oracle join syntax supports creation of a Cartesian product of two tables.
B. The SQL: 1999 compliant ANSI join syntax supports creation of a Cartesian
product of two tables.
C. The Oracle join syntax lacks the ability to do outer joins.
D. The Oracle join syntax performs better than the SQL: 1999 compliant ANSI join
syntax.
E. The Oracle join syntax performs less well than the SQL: 1999 compliant ANSI
join syntax.
5. In the PROMOTIONS table, the PROMO_BEGIN_DATE column is of data type
DATE and the default date format is DD-MON-RR.
Which two statements are true about expressions using PROMO_BEGIN_DATE
contained in a query?
A. TO_NUMBER (PROMO_BEGIN_DATE) - 5 will return a number.
B. PROMO_BEGIN_DATE - SYSDATE will return an error.
C. PROMO_BEGIN_DATE - 5 will return a date.
D. PROMO_BEGIN_DATE - SYSDATE will return a number.
E. TO_DATE (PROMO_BEGIN_DATE * 5) will return a date.

6. 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?
A. LISTENER_1 must also be defined in the LISTENER. ORA file to enable
dynamic service registration.
B. The definition for LISTENER_1 requires a CONNECT_DATA section to enable
dynamic service registration.
C. The LREG process registers services dynamically with the LISTENER_1
listener.
D. Dynamic service registration cannot be used for this database instance.
E. There are two listeners named LISTENER and LISTENER_ 1 running
simultaneously using port 1521 on the same host as the database instances.
7. Which four statements are true about the Oracle Server architecture?
A. A session represents the state of a user's login to an instance.
B. A connection represents the state of a user's login to an instance.
C. A person or program can have more than one session with an instance by logging
in with different usernames.
D. Each server process and background process has their own Program Global Area
(PGA).
E. The buffer cache and the redo log buffer are held in the large pool.
F. The entire data dictionary is always cached in the shared pool to improve
performance.
G. A person or program can have more than one session with an instance by logging
in with the same username.

8. Which three actions are ways to apply the principle of least privilege?
A. enabling Unified Auditing
B. revoking execute privilege on UTL_SMTP, UTL_TCP, UTL_HTTP, and UTL_
FILE from the PUBLIC user
C. setting the O7_DICTIONARY_ ACCESSIBILITY parameter to true
D. revoking execute privilege on UTL_SMTP, UTL_TCP, UTL_HITP , and
UTL_FILE from the SYSTEM user
E. using Access Control Lists (ACLs)
F. setting the REMOTE_ OS_ AUTHENT parameter to true

9. Examine this query:


SELECT TRUNC (ROUND(156.00,-2) ,-1) FROM DUAL;
What is the result?
A. 160
B. 100
C. 16
D. 200
E. 150
10. Which two are true about transactions in the Oracle Database?
A. DML statements always start new transactions.
B. A session can see uncommitted updates made by the same user in a different
session.
C. DDL statements automatically commit only data dictionary updates caused by
executing the DDL.
D. An uncommitted transaction is automatically committed when the user exits
SQL*Plus.
E. A DDL statement issued by a session with an uncommitted transaction
automatically commits that transaction.

11. Which two statements are true about the rules of precedence for operators?
A. The concatenation operator | | is always evaluated before addition and subtraction
in an expression.
B. The + binary operator has the highest precedence in an expression in a SQL
statement.
C. Multiple parentheses can be used to override the default precedence of operators
in an expression.
D. NULLs influence the precedence of operators in an expression.
E. Arithmetic operators with equal precedence are evaluated from left to right
within an expression.

12. Which three statements are true about connection strings and service names used
to connect to an Oracle database instance?
A. A connection string including a service name must be defined in the
tnsnames.ora file.
B. A service name is created by a listener.
C. Different connection strings in the same tnsnames.ora file can contain the same
service name, host and port parameters.
D. A single database instance can support connections for multiple service names.
E. A connection string must include the SID of a database instance.
F. A single connection string can refer to multiple database instances.
13. Examine the description of the PRODUCT DETAILS table:

Which two statements are true?


A. PRODUCT_PRICE can be used in an arithmetic expression even if it has no
value stored in it.
B. PRODUCT_NAME cannot contain duplicate values.
C. EXPIRY_DATE cannot be used in arithmetic expressions.
D. PRODUCT_ID can be assigned the PRIMARY_KEY constraint.
E. PRODUCT_PRICE contains the value zero by default if no value is assigned to
it.
F. EXPIRY_DATE contains the SYSDATE by default if no date is assigned to it.

14. Which statement is true about database links?


A. A database link created in a database allows a connection from that database's
instance to the target database's instance, but not vice versa.
B. A database link can be created only between two Oracle databases.
C. Private database link creation requires the same user to exist in both the local and
the remote databases.
D. A public database link can be used by a user connected to the local database
instance to connect to any schema in the remote database instance.
E. A public database link can be created only by SYS.

15. Which three statements are true?(未完整)


A. There is no row containing fountain pen.
B. There is no row containing penci1.
C. There is no row containing pen.
D. The code for pen is 1.
E. The code for pen is 10.
F. The code for fountain pen is 3.
16. Table ORDER_ITEMS contains columns ORDER_ID, UNIT_PRICE and
QUANTITY, of data type NUMBER.
Examine these SQL statements:
Statement 1:
SELECT MAX(unit_price * quantity) "Maximum Order"
FROM order_items;
Statement 2:
SELECT MAX(unit_price * quantity) "Maximum Order"
FROM order_items
GROUP BY order_id;
Which two statements are true?
A. Both the statements give the same output.
B. Both statements will return NULL if either UNIT_PRICE or QUANTITY
contains NULL.
C. Statement 2 may return multiple rows of output.
D. Statement 2 returns only one row of output.
E. Statement 1 returns only one row of output.

17. Which two tasks can you perform using DBCA for databases?
A. Register a new database with an available Enterprise Manager Management
server.
B. Enable flashback database for an existing database.
C. Configure a nonstandard block size for a new database.
D. Change the standard block size of an existing database.
E. Configure incremental backups for a new database.

18. Which three statements are true about the Automatic Diagnostic
Repository(ADR)?
A. It is only used for Oracle Database diagnostic information.
B. The ADR base is specified in the DIAGNOSTIC_DEST database parameter.
C. It is held inside an Oracle database schema.
D. It is a file-based repository held outside any database.
E. It can be used for problem diagnosis of a database when that database's instance
is down.
19. Which two statements are true about the SET VERIFY ON command?
A. It can be used in SQL Developer and SQL*Plus.
B. It can be used only in SQL*Plus.
C. It displays values for variables prefixed with & & .
D. It displays values for variables created by the DEFINE command.
E. It displays values for variables used only in the WHERE clause of a query.

20. Which two statements are true about UNDO and REDO?
A. The generation of REDO generates UNDO.
B. DML modifies Oracle database objects and only generates REDO.
C. DML modifies Oracle database objects and only generates UNDO.
D. The generation of UNDO generates REDO.
E. DML modifies Oracle database objects and generates UNDO and REDO.

21. Which two are true about a SQL statement using SET operators such as UNION?
A. The data type group of each column returned by the second query must match
the data type group of the corresponding column returned by the first query.
B. The names and number of columns must be identical for all SELECT statements
in the query.
C. The data type of each column returned by the second query must exactly match
the data type of the corresponding column returned by the first query.
D. The number, but not names, of columns must be identical for all SELECT
statements query.
E. The data type of each column returned by the second query is automatically
converted to the data type of the corresponding column returned by the first
query.

22. Which compression method is recommended for Direct-Path Insert operations?


A. COLUMN STORE COMPRESS ADVANCED
B. ROW STORE COMPRESS ADVANCED
C. ROW STORE COMPRESS BASIC
D. COLUMN STORE COMPRESS BASIC
23. Which two are benefits of external tables?
A. They support DELETES which transparently deletes records in the file system as
if they were table rows.
B. The results of a complex join or aggregating function or both can be unloaded to
a file for transportation to another database.
C. They support UPDATES which transparently updates records in the file system
as if they were table rows.
D. They can be queried while the database is in the MOUNT state like dynamic
performance views.
E. They can be queried, transformed, and joined with other tables without having to
load the data first.

24. Which two statements are true about undo segments and the use of undo by
transactions in an Oracle database instance?
A. A single transaction may use multiple undo segments simultaneously.
B. Undo segments can be stored in the SYSAUX tablespace.
C. Undo segments can be stored in the SYSTEM tablespace.
D. Undo segments can wrap around to the first extent when a transaction fills the
last extend of the undo segment.
E. Undo segments can extend when a transaction fills the last extent of the undo
segment.
25.

The SALES table has 55,000 rows.


Examine this statement:
CREATE TABLE sales1 (prod_id, cust_id, quantity_sold, price)
AS
SELECT product_id, customer_id, quantity_sold, price
FROM sales
WHERE 1 = 1;
Which two statements are true?
A. SALES1 has not NULL constraints on any selected columns which had those
constraints in the SALES table.
B. SALES1 has PRIMARY REY and UNIQUE constraints on any selected columns
which had those constraints in the SALES table.
C. SALES1 is created with 1 row.
D. SALES1 is created with 55,000 rows.
E. SALES1 is created with no rows.

26. You want to apply the principle of Least Privilege in all your live databases.
One of your requirements is to revoke unnecessary privileges from all users who have
them using Privilege Analysis.
Which two are types of analyses that can be done using the
DBMS_PRIVILEGE_CAPTURE package?
A. analysis of privileges that a user has on other schema's objects
B. analysis of all privileges used by the sys user.
C. analysis of privileges granted indirectly to a role that are then used by a user who
has been granted that role
D. analysis of privileges that a user has on their own schema objects
E. analysis of privileges granted directly to a role that are then used by a user who
has been granted that role
27. You need to calculate the number of days from 1st January 2019 until today.
Dates are stored in the default format of DD-MON-RR.
Which two queries give the required output?
A. SELECT TO_DATE(SYSDATE, 'DD/MONTH/YYYY') - '01/JANUARY/2019'
FROM DUAL;
B. SELECT ROUND(SYSDATE - '01-JAN-2019') FROM DUAL;
C. SELECT SYSDATE - TO DATE('01-JANUARY-2019') FROM DUAL;
D. SELECT ROUND (SYSDATE - TO DATE('01/JANUARY/2019')) FROM
DUAL;
E. SELECT TO_CHAR(SYSDATE, 'DD-MON-YYYY') - '01-JAN-2019' FROM
DUAL;

28.

You need to display last names and credit limits of all customers whose last name
starts with A or B in lower or upper case, and whose credit limit is below 1000.
Examine this partial query:
SELECT cust_last name, cust_credit_limit FROM customers
Which two WHERE conditions give the required result?
A. WHERE (INITCAP(cust_last_name) LIKE 'A%' OR INITCAP(cust_last_name)
LIKE 'B%')
AND cust_credit_limit < 1000;
B. WHERE UPPER(cust_last_name) BETWEEN UPPER(' A%' AND ' B%')
AND ROUND(cust_credit_limit) < 1000;
C. WHERE (UPPER(cust_last_name) LIKE ' A%' OR UPPER(cust_last_name)
LIKE ' B%')
AND ROUND(cust_credit_limit) < 1000;
D. WHERE UPPER(cust_last name) IN (' A%', ' B%')
AND cust_credit_limit < 1000;
E. WHERE (UPPER(cust_credit_limit) LIKE INITCAP('A') OR UPPER(cust_last
name) LIKE INIICAP('B'))
AND ROUND(cust_credit_limit) < ROUND (1000);
29. Which two statements are true about single row functions?
A. TRUNC : can be used only with NUMBER data types.
B. MOD : returns the remainder of a division operation.
C. FLOOR : returns the smallest integer greater than or equal to a specified number.
D. CONCAT : can be used to combine any number of values.
E. CEIL : can be used for positive and negative numbers.

30. The ORDERS table has a column ORDER_DATE of data type DATE.
The default display format for a date is DD-MON-RR.
Which two WHERE conditions demonstrate the correct usage of conversion
functions?
A. WHERE order_date > TO_CHAR(ADD_MONTHS(SYSDATE, 6), 'MON DD
YYYY')
B. WHERE order_date > TO_DATE('JUL 10 2018', 'MON DD YYYY')
C. WHERE TO_CHAR(order_date, 'MON DD YYYY') = 'JAN 20 2019'
D. WHERE order_date IN (TO_DATE('Oct 21 2018', 'Mon DD YYYY'), TO
CHAR('Nov 21 2018', Mon DD YYYY'))
E. WHERE order_date > TO_DATE(ADD_MONTHS(SYSDATE, 6), 'MON DD
YYYY')

31. View the Exhibits and examine the structure of the COSTS and PROMOTIONS
tables.
You want to display PROD_IDs whose promotion cost is less than the highest cost
PROD_ID in a promotion time interval.
Examine this SQL statement:
SELECT prod_id
FROM costs
WHERE promo_id IN
(SELECT promo_id
FROM promotions
WHERE promo_cost < ALL
(SELECT MAX(promo_cost)
FROM promotions
GROUP BY (promo_end_date - promo_begin_date)));
What will be the result?
A. It gives an error because the ALL keyword is not valid.
B. It gives an error because the GROUE BY clause is not valid.
C. It executes successfully but does not give the required result.
D. It executes successfully and gives the required result.

32. You execute this command:


[oracle@host01 ~]$ expdp system/oracle \
> FULL-Y \
> DUMPFILE-exp_db full.dmp \
> PARALLEL=4 \
> LOGEILE-exp_DB_full.log \
> JOB_NAME=exp_db_full
During the export operation, you detach from the job by using CTRL+C and then
execute this command:
Export> STOP_JOB=immediate
Are you sure you wish to stop the job ([yes]/no): yes
Which two statements are true about the job?
A. It terminates.
B. You can reattach to it and monitor it.
C. It continues to run in the background.
D. It is paused and can be resumed.
E. You can reattach to it but not monitor it.

33. Which two statements are true about GLOBAL TEMPORARY TABLES?
A. A DELETE command on a GLOBAL TEMPORARY TABLE cannot be rolled
back.
B. A GLOBAL TEMPORARY TABLE'S definition is available to multiple
sessions.
C. GLOBAL TEMPORARY TABLE space allocation occurs at session start.
D. A TRUNCATE command issued in a session causes all rows in a GLOBAL
TEMPORARY TABLE for the issuing session to be deleted.
E. GLOBAL TEMPORARY TABLE rows inserted by a session are available to any
other session whose user has been granted select on the table.
34.

Examine the partial query:


SELECT city, last_name LNAME FROM members ... ;
You want to display all cities that contain the string AN. The cities must be returned in
ascending order, with the last names further sorted in descending order.
Which two clauses must you add to the query?
A. ORDER BY last_name DESC, city ASC
B. WHERE city IN ('%AN%')
C. WHERE city = '%AN%'
D. WEERE city LIKE '%AN%'
E. ORDER BY 1, LNAME DESC
F. ORDER BY I, 2

35. Which three statements are true about the naming methods and their features
supported by Oracle database used to resolve connection information?
A. Directory Naming can be used if Connect-Time Failover is required.
B. Local naming can be used if Connect-Time Failover is required.
C. Local Naming requires setting the TNS_ ADMIN environment variable on the
client side.
D. A client can connect to an Oracle database instance even if no client side network
admin has been configured.
E. Easy Connect supports TCP/IP and SSL.
F. Directory Naming requires setting the TNS_ADMIN environment variable on
the client side.
36. You must create a tablespace of non-standard block size in a new file system and
plan to use this command:
CREATE TABLESPACE ns_tbs
DATAFILE'/u02/oracle/data/nstbs_f01.dbf'
SIZE 100G
BLOCKSIZE 32K;
The standard block size is 8k but other non-standard block sizes will also be used.
Which two are requirements for this command to succeed?
A. DB_32K_CACHE_SIZE must be set to a value that can be accommodated in the
SGA.
B. DB_32K_CACHE_SIZE must be less than DB_CACHE_SIZE.
C. The operating system must use a 32k block size.
D. DB_32K_CACHE_SIZE should be set to a value greater than
DB_CACHE_SIZE.
E. DB_CACHE_SIZE must be set to a size that is smaller than
DB_32K_CACHE_SIZE
F. The /u02 file system must have at least 100g space for the datafile.

37. Which two statements are true about the DUAL table?
A. It can be used to display only constants or pseudo columns.
B. It can be accessed by any user who has the SELECT privilege in any schema.
C. It can be accessed only by the SYS user.
D. It can display multiple rows but only a single column.
E. It can display multiple rows and columns.
F. It consists of a single row and single column of VARCHAR2 data type.

38. Examine this command:


SQL> ALTER TABLE ORDERS SHRINK SPACE COMPACT
Which two statements are true?
A. Only queries are allowed on ORDERS while the SHRINK is executing.
B. The high-water mark (HWM) of ORDERS is adjusted.
C. Queries and DML statements are allowed on ORDERS while the SHRINK is
executing.
D. Dependent indexes become UNUSABLE.
E. The SHRINK operation causes rows to be moved to empty space starting toward
the end of the ORDERS segment.
F. The SHRINK operation causes rows to be moved to empty space starting from
the beginning of the ORDERS segment.
39. Which three statements are true about the DESCRIBE command?
A. It displays the NOT NULL constraint for any columns that have that constraint.
B. It displays all constraints that are defined for each column.
C. It displays the PRIMARY KEY constraint for any column or columns that have
that constraint.
D. It can be used from SQL Developer.
E. It can be used only from SQL*Plus.
F. It can be used to display the structure of an existing view.

40. Which two statements are true about uno and UNDO tablespaces?
A. There can be only one UNDO tablespace created in a database.
B. An UNDO tablespace may be owned by only one instance.
C. An instance will crash if the active undo tablespace is lost.
D. UNDO segments are owned by SYSTEM.
E. UNDO segments are owned by SYSBACKUP.

41. Which three statements are true about data block storage in an Oracle Database?
A. A block header contains a row directory pointing to all rows in the block.
B. An index block can contain row data.
C. A data block header is of a fixed length.
D. Row data is stored starting at the end of the block.
E. A table block must always contain row data.

42. Which two statements are true about views?


A. The WITH CHECK clause prevents certain rows from being displayed when
querying the view.
B. A view must only refer to tables in its defining query.
C. Views can be indexed.
D. Views can be updated without the need to re-grant privileges on the view.
E. The WITH CHECK clause prevents certain rows from being updated or inserted
in the underlying table through the view.
43. Which two statements are true about Enterprise Manager (EM) Express?
A. You can use a single instance of EM Express to manage multiple databases
running on the same server.
B. By default, EM Express is available for a database after database creation using
DBCA.
C. You can shut down a database instance using EM Express.
D. You cannot start up a database instance using EM Express.
E. EM Express uses a separate repository database to store target database
metadata.

44. Which two statements are true about Oracle synonyms?


A. Any user can create a PUBLIC synonym.
B. All private synonym names must be unique in the database.
C. A synonym can have a synonym.
D. A synonym can be created on an object in a package.
E. A synonym has an object number.

45. Which two statements are true about INTERVAL data types?
A. INTERVAL YEAR TO MONTH columns support yearly intervals.
B. INTERVAL YEAR TO MONTH columns only support monthly intervals within
a range of years.
C. INTERVAL DAY TO SECOND columns support fractions of seconds.
D. INTERVAL YEAR TO MONTH columns only support monthly intervals within
a single year.
E. The YEAR field in an INTERVAL YEAR TO MONTH column must be a
positive value.
F. The value in an INTERVAL DAY TO SECOND column can be copied into an
INTERVAL YEAR TO MONTH column.
46. The SALES table has columns PROD_ID and QUANTITY_SOLD of data type
NUMBER.
Which two queries execute successfully?
A. SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*)
> 10 GROUP BY prod_id HAVING COUNT(*) > 10;
B. SELECT COUNT(prod_id) FROM sales GROUP BY prod_id WHERE
quantity_sold > 55000;
C. SELECT prod_id FROM sales WHERE quantity_sold > 55000 GROUP BY
prod_id HAVING COUNT(*) > 10;
D. SELECT COUNT(prod_id) FROM sales WHERE quantity_sold > 55000
GROUP BY prod_ id;
E. SEIECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*)
> 10 GROUP BY COUNT(*) > 10;

47. Which two statements are true about a self join?


A. It can be an inner join.
B. The join key column must have an index.
C. It can be a left outer join.
D. It must be a full outer join.
E. It must be an equijoin.

48. Which three statements are true about a self join?


A. The on clause must be used.
B. It must be an inner join.
C. The query must use two different aliases for the table.
D. It can be an outer join.
E. The on clause can be used.
F. It must be an equijoin.

49. Which two statements are true about User Authentication in an Oracle Database?
A. REMOTE_LOGIN_PASSWORDFILE must be set to exclusive to permit
password changes for system-privileged administrative users.
B. Password authentication must be used for system-privileged administrative users.
C. Password File authentication is supported for any type of database user.
D. Password File authentication must be used for system-privileged administrative
users.
E. Operating System authentication may be used for system-privileged
administrative users.
50. Which two queries execute successfully?
A. SELECT COALESCE(100, NULL, 200) FROM DUAL;
B. SELECT NULLIF(100, 'A') FROM DUAL;
C. SELECT NULLIF(100, 100) FROM DUAL;
D. SELECT NULLIF(NULL, 100) FROM DUAL;
E. SELECT COALESCE(100, 'A') FROM DUAL;

51. Which is the default column or columns for sorting output from compound queries
using SET operators such as INTERSECT in a SQL statement?
A. the first column in the last SELECT of the compound query
B. the first NUMBER column in the first SELECT of the compound query
C. the first VARCHAR2 column in the first SELECT of the compound query
D. the first NUMBER or VARCHAR2 column in the last SELECT of the compound
query
E. the first column in the first SELECT of the compound query

52. You start your database instance in NOMOUNT state.


Which two actions are performed?
A. All required background processes are started.
B. The consistency of the database is checked.
C. Memory is allocated for the SGA.
D. SYS can access the database.
E. The control files are opened.

53. Which two statements are true about substitution variables?


A. A substitution variable used to prompt for a column name must be enclosed in
double quotation marks.
B. A substitution variable can be used with any clause in a SELECT statement.
C. A substitution variable prefixed with && prompts only once for a value in a
session unless it is set to undefined in the session.
D. A substitution variable used to prompt for a column name must be enclosed in
single quotation marks.
E. A substitution variable prefixed with & always prompts only once for I value in a
session.
F. A substitution variable can be used only in a SELECT statement.
54. Which three statements are true about using SQL *Plus?
A. It must be downloaded from the Oracle Technology Network (OTN).
B. It can run Recovery Manager (RMAN) commands.
C. It has both command-line and graphical user interfaces (GUI).
D. It has its own commands that are separate from any SQL statements.
E. It can run scripts entered at the SQL prompt.
F. It can run scripts passed to it by a shell script.

55.

Examine this partial SQL statement:


SELECT * FROM books_transactions
Which two WHERE conditions give the same result?
A. WHERE (borrowed_date = SYSDATE AND transaction_type = 'RM') OR
member_id IN ('A101', 'A102 ');
B. WHERE borrowed_date = SYSDATE AND (transaction_type = 'RM' OR
member_id IN ('A101', 'A102'));
C. WHERE borrowed_date = SYSDATE AND (transaction_type = 'RM' AND
member_id = 'A101' OR member id = 'A102');
D. WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' OR
member_id IN ('A101', 'A102');
E. WHERE borrowed_date = SYSDATE AND (transaction_type = 'RM' AND
(member_id = 'A101' OR member_id = 'A102'));

56. Which two statements are true regarding indexes?


A. A non-unique index can be altered to be unique.
B. The RECYCLE BIN never contains indexes.
C. An update to a table can result in updates to any or all of the table's indexes.
D. An update to a table can result in no updates to any of the table's indexes.
E. A table belonging to one user cannot have an index that belongs to a different
user.
57. What is true about non-equijoin statement performance?
A. The BETWEEN condition used with an non-equijoin sometimes performs better
than using the >= and <= conditions.
B. The Oracle join syntax performs less well than the SQL: 1999 compliant ANSI
join syntax.
C. The BETWEEN condition used with an non-equijoin always performs better
than when using the >= and <= conditions.
D. The Oracle join syntax performs better than the SQL: 1999 compliant ANSI join
syntax.
E. The join syntax used makes no difference to performance.

58. In your data center, Oracle Managed Files (OMF) is used for all databases.
All tablespaces are smallfile tablespaces.
SALES_Q1 is a permanent user-defined tablespace in the SALES database
Examine this command which is about to be issued by a DBA logged in to the SALES
database:
ALTER TABLESPACE sales_q1 ADD DATAFILE;
Which are two actions, either one of which you could take to ensure that the
command executes successfully?
A. Specify a path in the DATAFILE clause of the command specifying a location
with at least 100M of available space.
B. Add the AUTOEXTEND ON clause with NEXT set to 100M.
C. Ensure that DB_CREATE_FILE_DEST specifies a location with at least 100 Mb
of available space.
D. Ensure that DB_RECOVERY_FILE_DEST and DB_CREATE_FILE_DEST
each specify locations with at least 50 Mb of available space.
E. Ensure that DB_RECOVERY_FILE_DEST and DB_CREATE_FIZE_DEST
each specify locations with at least 50 Mb of available space.
59.

Which two SQL statements execute successfully?


A. SELECT customer_id CUSTID, transaction_date TRANS_DATE, amount + 100
DUES FROM transactions;
B. SELECT customer_id AS "CUSTOMER-ID", transaction_date AS "DATE",
amount + 100 DUES FROM transactions;
C. SELECT customer_id AS "CUSTOMER-ID", transaction_date AS DATE
amount + 100 "DUES" FROM transactions;
D. SELECT customer_id AS 'CUSTOMER-ID', transaction_date AS DATE, amount
+ 100 'DUES' FROM transactions;
E. SELECT customer_id AS CUSTOMER-ID, transaction_date AS
TRANS_DATE, amount + 100 "DUES AMOUNT" FROM transactions;

60. Which three statements are true about sequences in a single instance Oracle
database?
A. A sequence's unallocated cached values are lost if the instance shuts down.
B. Sequences can always have gaps.
C. Two or more tables cannot have keys generated from the same sequence.
D. A sequence can issue duplicate values.
E. A sequence number that was allocated can be rolled back if a transaction fails.
F. A sequence can only be dropped by a DBA.

61. Your database instance is started with an SPFILE.


A PEILE is also available.
You execute this command:
ALTER SYSTEM SET DB_CACHE_SIZE=100K;
Where is the value changed?
A. only in memory
B. in the SPEILE and in memory
C. in the SPFILE, PFILE, and memory
D. in the SPFILE and PFILE
E. only in the SPFILE
62. Which three are types of segments in an Oracle Database?
A. tables
B. views
C. clusters
D. sequences
E. stored procedures
F. undo

63. In one of your databases, you create a user, HR, and then execute this command:
GRANT CREATE SESSION TO hr WITH ADMIN OPTION;
Which three actions can HR perform?
A. Execute DDL statements in the HR schema.
B. Grant the CREATE SESSION privilege with ADMIN OPTION to other users.
C. Revoke the CREATE SESSION privilege from other users.
D. Execute DML statements in the HR schema.
E. Revoke the CREATE SESSION privilege from user HR.
F. Log in to the database instance.

64.

SALES2 is a table with the same description as SALES1.


Some sales data is contained erroneously in both tables.
You must display rows from SALES1 and SALES2 and wish to see the duplicates too.
Which set operator generates the required output?
A. UNION ALL
B. UNION
C. INTERSECT
D. SUBTRACT
E. MINUS
65. Which three statements are true about inner and outer joins?
A. Outer joins can only be used between two tables per query.
B. A full outer join must use Oracle syntax.
C. An inner join returns matched rows.
D. Outer joins can be used when there are multiple join conditions on two tables.
E. A left or right outer join returns only unmatched rows.
F. A full outer join returns matched and unmatched rows.

66.

Which query is valid?


A. SELECT prod_id, release_date, SUM(cost) FROM products GROUP BY
prod_id;
B. SELECT prod_id, MAX(AVG(cost)) FROM products GROUP BY prod_id;
C. SELECT prod_id, release_date, SUM(cost) FROM products GROUR BY
prod_id, release_date;
D. SELECT prod_id, AVG(MAX(cost)) FROM products GROUP BY prod_id;

67. The CUSTOMERS table has a CUST_LAST_NAME column of data type


VARCHAR2.
The table has two rows whose CUST_LAST_NAME values are Anderson and
Ausson.
Which query produces output for CUST_LAST_NAME containing Oder for the first
row and Aus for the second?
A. SELECT REPLACE(TRIM(TRAILING 'son' FROM cust_last_ame), 'An', 'O')
FROM ustomers;
B. SELECT REPLACE(REPLACE(cust_last_ame, 'son', ' '),'An', 'O') FROM
customers;
C. SELECT INITCAP(REPLACE(TRIM('son' FROM cust_last_name), 'An', 'O'))
FROM customers;
D. SELECT REPLACE(SUBSTR(cust_last_name, -3), 'An', 'O') FROM customers;
68.

The status column contains the values 'IN STOCK' or 'out OF STOCK' for each row.
Which two queries will execute successfully?
A. SELECT prod_id || q'('s not available)' FROM product_status WHERE status =
'OUT OF STOCK' ;
B. SELECT prod_id || q'('s not available)' "CURRENT AVAILABILITY" FROM
product_status WHERE status = 'OUT OF STOCK' ;
C. SELECT prod_ id || q" 's not available" FROM product_status WHERE status =
'OUT OF STOCK';
D. SELECT prod_id || q'('s not available)' 'CURRENT AVAILABILITY' FROM
product_status WHERE status = 'OUT OF STOCK' ;
E. SELECT prod_id "CURRENT AVAILABILITY" || q'('s not available)' FROM
Product_status WHERE status = 'OUT OF STOCK';
F. SELECT prod_id q 's not available" FROM product_status WHERE status =
'OUT OF STOCK';

69. Which two statements are true about the configuration and use of
UNDO_RETENTION with no GUARANTEED RETENTION?
A. UNDO_RETENTION specifies for how long Oracle attempts to keep unexpired
UNDO.
B. Unexpired UNDO is always retained.
C. Active UNDO is always retained.
D. UNDO_ RETENTION specifies for how long Oracle attempts to keep expired
and unexpired UNDO.
E. UNDO_ RETENTION specifies how long all types of UNDO are retained.

70. Which three statements are true about Deferred Segment Creation in Oracle
databases?
A. Sessions may dynamically switch back and forth from DEFERRED to
IMMEDIATE segment creation.
B. Indexes inherit the DEFERRED or IMMEDIATE segment creation attribute
from their parent table.
C. It is supported for Index Organized Tables (IOTs) contained in locally managed
tablespaces.
D. It is the default behavior for tables and indexes.
E. It is supported for SYS-owned tables contained in locally managed tablespaces.

71. Which two statements are true about the PMON background process?
A. It records checkpoint information in the control file.
B. It rolls back transactions when a process fails
C. It frees resources held by abnormally terminated processes.
D. It registers database services with all local and remote listeners known to the
database instance.
E. It frees unused temporary segments.

72. Which two Oracle database space management features require the use of locally
managed tablespaces?
A. Automatic data file extension (AUTOEXTEND)
B. Oracle Managed Files (OMF)
C. Free space management with bitmaps
D. Server-generated tablespace space alerts
E. Online segment shrink

You might also like