1z0-082

Description

Database Administration
Henderson Viscarra
Quiz by Henderson Viscarra, updated 3 months ago
Henderson Viscarra
Created by Henderson Viscarra 4 months ago
62
0

Resource summary

Question 1

Question
You execute this command: CREATE BIGFILE TABLESPACE big_tbs DATAFILE '/u01/oracle/data/big_f1.dbf' SIZE 20G; Sufficient storage is available in filesystem /u01. Which two statements are true about the BIG_TBS tablespace? (Choose two).
Answer
  • AUTOEXTEND is possible for the datafile
  • It must be bigger than the largest SMALLFILE tablespace
  • Additional data files may not be added
  • It will be a dictionary-managed tablespace by default
  • It will always have a 32K blocksize

Question 2

Question
Which statement is true about the INTERSECT operator used in compound queries?
Answer
  • Multiple INTERSECT operators are not possible in the same SQL statement
  • It processes NULLs in the selected columns
  • INTERSECT is of lower precedence than UNION or UNION ALL
  • It ignores NULLs

Question 3

Question
Which three statements are true about advanced connection options supported by Oracle Net for connection to Oracle Database instances? (Choose three).
Answer
  • Connect Time Failover requires the use of Transparent Application Failover (TAF)
  • Source Routing requires the use of a name server
  • Source Routing enables the use of Connection Manager (CMAN) which enables network traffic to be routed through a firewall
  • Load Balancing can balance the number of connections to dispatchers when using a Shared Server configuration
  • Load Balancing requires the use of a name server
  • Connect Time Failover requires the connect string to have two or more listener addresses configured

Question 4

Question
Which two statements are true about date/time functions in a session where NLS_DATE_FORMAT is set to DD-MON-YYYY HH24:MI:SS? (Choose two).
Answer
  • CURRENT_TIMESTAMP returns the same date and time as SYSDATE with additional details of fractional seconds
  • SYSDATE can be queried only from the DUAL table
  • CURRENT_DATE returns the current date and time as per the session time zone
  • SYSDATE can be used in expressions only if the default date format is DD-MON-RR
  • SYSDATE and CURRENT_DATE return the current date and time set for the operating system of the database server
  • CURRENT_TIMESTAMP returns the same date as CURRENT_DATE

Question 5

Question
A database is configured to use automatic undo management with temporary undo enabled. An UPDATE is executed on a temporary table. Where is the UNDO stored?
Answer
  • In the undo tablespace
  • In the SYSAUX tablespace
  • In the SGA
  • In the PGA
  • In the temporary tablespace

Question 6

Question
You have been tasked to create a table for a banking application. One of the columns must meet three requirements: 1. Be stored in a format supporting date arithmetic without using conversion functions 2. Store a loan period of up to 10 years 3. Be used for calculating interest for the number of days the loan remains unpaid Which data type should you use?
Answer
  • INTERVAL YEAR TO MONTH
  • INTERVAL DAY TO SECOND
  • TIMESTAMP WITH LOCAL TIMEZONE
  • TIMESTAMP
  • TIMESTAMP WITH TIMEZONE

Question 7

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 = 5121) ) Which statement is true?
Answer
  • Dynamic service registration cannot be used for this database instance
  • The LREG process registers services dynamically with the LISTENER_1 listener
  • LISTENER_1 must also be defined in the LISTENER.ORA file to enable dynamic service registration
  • There are two listeners named LISTENER and LISTENER_1 running simultaneously using port 1521 on the same host as the database instances
  • The definition for LISTENER_1 requires a CONNECT_DATA section to enable dynamic service registration

Question 8

Question
Which three statements are true concerning logical and physical database structures? (Choose three).
Answer
  • All tablespaces may have one or more data files
  • The extents of a segment must always reside in the same datafile
  • A smallfile tablespace might be bigger than a bigfile tablespace
  • A segment can span multiple data files in some tablespaces
  • A segment's blocks can be of different sizes
  • A segment might have only one extent
  • Segments can span multiple tablespaces

Question 9

Question
Which two statements are true regarding a SAVEPOINT? (Choose two).
Answer
  • Rolling back to a SAVEPOINT can undo a CREATE INDEX statement
  • Rolling back to a SAVEPOINT can undo a TRUNCATE statement
  • Only one SAVEPOINT may be issued in a transaction
  • A SAVEPOINT does not issue a COMMIT
  • Rolling back to a SAVEPOINT can undo a DELETE statement

Question 10

Question
Which three functions are performed by dispatchers in a shared server configuration? (Choose three).
Answer
  • Writing inbound request to the common request queue from all shared server connections
  • Checking for outbound shared server responses on the common outbound response queue
  • Receiving inbound requests from processes using shared server connections
  • Sending each connection input request to the appropriate shared server input queue
  • Broadcasting shared server session responses back to requesters on all connections
  • Sending shared server session responses back to requesters on the appropriate connection

Question 11

Question
Which two statements are true about the SET VERIFY ON command? (Choose two).
Answer
  • It can be used only in SQL*Plus
  • It displays values for variables used only in the WHERE clause of a query
  • It can be used in SQL Developer and SQL*Plus
  • It displays values for variables created by the DEFINE command
  • It displays values for variables prefixed with &&

Question 12

Question
Which three statements are true about a self join? (Choose three).
Answer
  • The ON clause must be used
  • The query must use two different aliases for the table
  • It must be an equijoin
  • It must be an inner join
  • The ON clause can be used
  • It can be an outer join

Question 13

Question
You want to write a query that prompts for two column names and the WHERE condition each time it is executed in a session but only prompts for the table name the first time it is executed. The variables used in your query are never undefined in your session. Which query can be used?
Answer
  • SELECT &&col1, &&col2 FROM &table WHERE &&condition = &&cond;
  • SELECT &col1, &col2 FROM &&table WHERE &condition;
  • SELECT &col1, &col2 FROM ג€&tableג€ WHERE &condition;
  • SELECT '&&col1', '&&col2' FROM &table WHERE '&&condition' = '&cond';
  • SELECT &&col1, &&col2 FROM &table WHERE &&condition;

Question 14

Question
Examine the description of the CUSTOMERS table: Name Null? Type --------------------------- -------------- ------------ CUST_ID NOT NULL VARCHAR2(6) FIRST_NAME VARCHAR2(50) LAST_NAME NOT NULL VARCHAR2(50) ADDRESS VARCHAR2(50) CITY VARCHAR2(25) You want to display details of all customers who reside in cities starting with the letter D followed by at least two characters. Which query can be used?
Answer
  • SELECT * FROM customers WHERE city LIKE 'D_%';
  • SELECT * FROM customers WHERE city = '%D_';
  • SELECT * FROM customers WHERE city LIKE 'D_';
  • SELECT * FROM customers WHERE city = 'D_%';

Question 15

Question
Examine this command: ALTER DATABASE MOVE DATAFILE '/u01/sales1.dbf' TO '/u01/sales01.dbf' REUSE; Which two statements are true? (Choose two).
Answer
  • DML may be performed on tables with one or more extents in this data file during the execution of this command.
  • The tablespace containing SALES1.DBF must be altered READ ONLY before executing the command.
  • The tablespace containing SALES1.DBF must be altered OFFLINE before executing the command.
  • If Oracle Managed Files (OMF) is used, then the file is renamed but moved to DB_CREATE_FILE_DEST.
  • The file is renamed and stored in the same location.

Question 16

Question
Which three statements are true about dropping and unused columns in an Oracle database? (Choose three).
Answer
  • A primary key column referenced by another column as a foreign key can be dropped if using the CASCADE option.
  • An UNUSED column's space is reclaimed automatically when the block containing that column is next queried.
  • An UNUSED column's space is reclaimed automatically when the row containing that column is next queried.
  • Partition key columns cannot be dropped.
  • A DROP COLUMN command can be rolled back.
  • A column that is set to UNUSED still counts towards the limit of 1000 columns per table.

Question 17

Question
Which two statements are true regarding Oracle database space management within blocks managed by Automatic Segment Space Management (ASSM)? (Choose two).
Answer
  • PCTFREE defaults to 10% for all blocks in all segments for all compression methods.
  • ASSM assigns blocks to one of four fullness categories based on what percentage of the block is allocated for rows.
  • Update operations always attempt to find blocks with free space appropriate to the length of the row being updated.
  • Insert operations always attempt to find blocks with free space appropriate to the length of the row being inserted.
  • A block will always be eligible for inserts if the row is short enough to fit into the block

Question 18

Question
Evaluate these commands which execute successfully: CREATE SEQUENCE ord_seq INCREMENT BY 1 START WITH 1 MAXVALUE 100000 CYCLE CACHE 5000; CREATE TABLE ord _items( ord_no NUMBER(4) DEFAULT ord_seq NEXTVAL NOT NULL, item_no NUMBER(3), qty NUMBER(3), expiry_date DATE, CONSTRAINT it _pk PRIMARY KEY (ord_no, item_no), CONSTRAINT ord_fk FOREIGN KEY (ord_no) REFERENCES orders (ord _no)); Which two statements are true about the ORD_ITEMS table and the ORD_SEQ sequence? (Choose two).
Answer
  • If sequence ORD_SEQ is dropped then the default value for column ORD_NO will be NULL for rows inserted into ORD_ITEMS.
  • Any user inserting rows into table ORD_ITEMS must have been granted access to sequence ORD_SEQ.
  • Column ORD_NO gets the next number from sequence ORD_SEQ whenever a row is inserted into ORD_ITEMS and no explicit value is given for ORD_NO.
  • Sequence ORD_SEQ cycles back to 1 after every 5000 numbers and can cycle 20 times.
  • Sequence ORD_SEQ is guaranteed not to generate duplicate numbers

Question 19

Question
Which three instance situations are possible with the Oracle Database server without multi-tenant? (Choose three).
Answer
  • Two or more instances on separate servers all associated with one database.
  • One instance on one server associated with one database.
  • One instance on one server associated with two or more databases on the same server.
  • One instance on one server not associated with any database
  • One instance on one server associated with two or more databases on separate servers.

Question 20

Question
Which two statements are true about the ORDER BY clause when used with a SQL statement containing a SET operator such as UNION? (Choose two).
Answer
  • Column positions must be used in the ORDER BY clause.
  • Only column names from the first SELECT statement in the compound query are recognized.
  • The first column in the first SELECT of the compound query with the UNION operator is used by default to sort output in the absence of an ORDER BY clause.
  • Each SELECT statement in the compound query must have its own ORDER BY clause.
  • Each SELECT statement in the compound query can have its own ORDER BY clause.

Question 21

Question
Which four account management capabilities can be configured using Oracle profiles? (Choose four).
Answer
  • The number of hours for which an account is locked after the configured number of login attempts has been reached.
  • The number of days for which an account may be inactive before it is locked.
  • The maximum amount of CPU time allowed for a user's sessions before their account is locked.
  • The ability to prevent a password from ever being reused.
  • The number of password changes required within a period of time before a password can be reused.
  • The number of days for which an account is locked after the configured number of login attempts has been reached.
  • The maximum number of sessions permitted for a user before the account is locked

Question 22

Question
Which three statements are true about single-row functions? (Choose three).
Answer
  • They can be used only in the WHERE clause of a SELECT statement.
  • The argument can be a column name, variable, literal or an expression.
  • The data type returned can be different from the data type of the argument.
  • They can be nested to any level.
  • They can accept only one argument.
  • They return a single result row per table.

Question 23

Question
You want to use table compression suitable for OLTP that will: 1. Compress rows for all DML statements on that table 2. Minimize the overheads associated with compression Which compression option is best suited for this?
Answer
  • COLUMN STORE COMPRESS FOR QUERY LOW
  • ROW STORE COMPRESS BASIC
  • COLUMN STORE COMPRESS FOR ARCHIVE LOW
  • COLUMN STORE COMPRESS FOR ARCHIVE HIGH
  • ROW STORE COMPRESS ADVANCED

Question 24

Question
Which two statements are true about space-saving features in an Oracle Database? (Choose two).
Answer
  • Private Temporary Tables (PTTS) store metadata in memory only
  • An index created with the UNUSABLE attribute has no segment
  • If they exist for a session, Private Temporary Tables (PTTs) are always dropped at the next COMMIT OR ROLLBACK statement
  • An index that is altered to be UNUSABLE will retain its segment
  • A table that is truncated will always have its segment removed

Question 25

Question
Which two statements are true about the PMON background process? (Choose two).
Answer
  • It registers database services with all local and remote listeners known to the database instance.
  • It frees resources held by abnormally terminated processes.
  • It records checkpoint information in the control file.
  • It frees unused temporary segments.
  • It kills sessions that exceed idle time.

Question 26

Question
In which three situations does a new transaction always start? (Choose three).
Answer
  • When issuing a SELECT FOR UPDATE statement after a CREATE TABLE AS SELECT statement was issued in the same session.
  • When issuing a TRUNCATE statement after a SELECT statement was issued in the same session.
  • When issuing a CREATE TABLE statement after a SELECT statement was issued in the same session.
  • When issuing the first Data Manipulation Language (DML) statement after a COMMIT OR ROLLBACK statement was issued in the same session.
  • When issuing a CREATE INDEX statement after a CREATE TABLE statement completed successfully in the same session.
  • When issuing a DML statement after a DML statement failed in the same session.

Question 27

Question
Examine the description of the SALES1 table: Name Null Type ------------------------ ------------- ------------ SALES_ID NOT NULL NUMBER STORE_ID NOT NULL NUMBER ITEMS_ID NUMBER QUANTITY NUMBER SALES_DATE DATE SALES2 is a table with the same description as SALES1. Some sales data is duplicated in both tables. You want to display the rows from the SALES1 table which are not present in the SALES2 table. Which set operator generates the required output?
Answer
  • INTERSECT
  • UNION ALL
  • UNION
  • SUBTRACT
  • MINUS

Question 28

Question
Your database instance is started with a PFILE. Examine these parameters: Name Type Value ------------------------------ --------------- ------ memory_max_target big integer 0 memory_target big integer 0 sga_max_size big integer 2G sga_target big integer 2G You want to increase the size of the buffer cache. Free memory is available to increase the size of the buffer cache. You execute the command: SQL> ALTER SYSTEM SET DB_CACHE_SIZE=1024M; What is the outcome?
Answer
  • The value is changed only in the PFILE and takes effect at the next instance startup.
  • The value is changed for the current instance and in the PFILE.
  • It fails because the SCOPE clause is missing.
  • Change is applied to the current instance, but does not persist after instance restart

Question 29

Question
Which three Oracle database space management features will work with both Dictionary and Locally managed tablespaces? (Choose three).
Answer
  • Oracle Managed Files (OMF)
  • Online table segment shrink
  • Online index segment shrink
  • Automatic data file extension (AUTOEXTEND)
  • Capacity planning growth reports based on historical data in the Automatic Workload Repository (AWR)

Question 30

Question
You execute this command: [oracle@host01 ~]$ expdp system/oracle \ > FULL=Y \ > DUMPFILE=exp_db_full.dmp \ > PARALLEL=4 \ > LOGFILE=exp_dp_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? (Choose two).
Answer
  • You can no longer monitor it.
  • You can reattach to it and monitor it.
  • It is paused and can be resumed.
  • It continues to run in the background.
  • It terminates.

Question 31

Question
In one of your databases, you create a user, HR, and then execute this command: GRANT CREATE SESSION TO hr WITH ADMIN OPTION; Which four actions can HR perform? (Choose four).
Answer
  • Revoke the CREATE SESSION privilege from other users.
  • Revoke the CREATE SESSION privilege from user HR.
  • Log in to the database instance.
  • Grant the CREATE SESSION privilege with ADMIN OPTION to other users.
  • Execute DDL statements in the HR schema.
  • Execute DML statements in the HR schema.

Question 32

Question
Which two statements are true about the WHERE and HAVING clauses in a SELECT statement? (Choose two).
Answer
  • Aggregating functions and columns used in HAVING clauses must be specified in the SELECT list of a query.
  • WHERE and HAVING clauses can be used in the same statement only if applied to different table columns.
  • The HAVING clause can be used with aggregating functions in subqueries.
  • The WHERE clause can be used to exclude rows before dividing them into groups.
  • The WHERE clause can be used to exclude rows after dividing them into groups.

Question 33

Question
Which two statements are true about UNDO and REDO? (Choose two).
Answer
  • The generation of UNDO generates REDO.
  • DML modifies Oracle database objects and only generates UNDO.
  • The generation of REDO generates UNDO.
  • DML modifies Oracle database objects and only generates REDO.
  • DML modifies Oracle database objects and generates UNDO and REDO.

Question 34

Question
The SCOTT/TIGER user exists in two databases, BOSTON_DB and DALLAS_DB, in two different locations. Each database has a tnsnames.ora file defining DALLAS_DB as a service name. Examine this command: CREATE DATABASE LINK dblink1 CONNECT TO scott IDENTIFIED BY tiger USING 'dallas_db'; How do you execute the command so that only SCOTT in BOSTON_DB can access the SCOTT schema in DALLAS_DB?
Answer
  • as SCOTT in DALLAS_DB
  • as SCOTT in BOSTON_DB
  • as SCOTT in BOSTON_DB and SYS in DALLAS_DB
  • as SYS in both the databases
  • as SCOTT in both the databases

Question 35

Question
Which three statements are true about the DESCRIBE command? (Choose three).
Answer
  • It displays the PRIMARY KEY constraint for any column or columns that have that constraint.
  • It can be used from SQL Developer.
  • It displays the NOT NULL constraint for any columns that have that constraint.
  • It can be used to display the structure of an existing view.
  • It displays all constraints that are defined for each column.
  • It can be used only from SQL*Plus.

Question 36

Question
Examine the description of the CUSTOMERS table: Name Null? Type -------------------------------------- ------------------- ------------ CUST_ID NOT NULL NUMBER CUST_FIRST_NAME NOT NULL VARCHAR2(20) CUST_LAST_NAME NOT NULL VARCHAR2(30) CUST_INCOME_LEVEL VARCHAR2(30) CUST_CREDIT_LIMIT NUMBER For customers whose income level has a value, you want to display the first name and due amount as 5% of their credit limit. Customers whose due amount is null should not be displayed. Which query should be used?
Answer
  • SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level IS NOT NULL AND due_amount IS NOT NULL;
  • SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level != NULL AND cust_credit_level !=NULL;
  • SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level <> NULL AND due_amount <> NULL;
  • SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level != NULL AND due_amount != NULL;
  • SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level IS NOT NULL AND cust_credit_limit IS NOT NULL;

Question 37

Question
The INVOICE table has a QTY_SOLD column of data type NUMBER and an INVOICE_DATE column of data type DATE. NLS_DATE_FORMAT is set to DD-MON-RR. Which two are true about data type conversions involving these columns in query expressions? (Choose two). ==> 3
Answer
  • CONCAT (qty_sold, invoice_date) : requires explicit conversion
  • invoice_date = '15-march-2019' : uses implicit conversion
  • invoie_date > '01-02-2019' : uses implicit conversion
  • qty_sold BETWEEN '101' AND '110' : uses implicit conversion
  • qty_sold = '0554982' uses implicit conversion

Question 38

Question
Which three are types of segments in an Oracle Database? (Choose three).
Answer
  • undo
  • index
  • stored procedures
  • sequences
  • tables
  • clusters

Question 39

Question
Which two statements are true about the results of using the INTERSECT operator in compound queries? (Choose two).
Answer
  • Column names in each SELECT in the compound query can be different.
  • The number of columns in each SELECT in the compound query can be different.
  • Reversing the order of the intersected tables can sometimes affect the output.
  • INTERSECT returns rows common to both sides of the compound query.
  • INTERSECT ignores NULLs.

Question 40

Question
Which two statements are true about single row functions? (Choose two).
Answer
  • MOD : returns the quotient of a division operation
  • FLOOR : returns the smallest integer greater than or equal to a specified number
  • TRUNC : can be used with NUMBER and DATE values
  • CONCAT : can be used to combine any number of values
  • CEIL : can be used for positive and negative numbers

Question 41

Question
The EMPLOYEES table contains columns EMP_ID of data type NUMBER and HIRE_DATE of data type DATE. You want to display the date of the first Monday after the completion of six months since hiring. The NLS_TERRITORY parameter is set to AMERICA in the session and, therefore, Sunday is the first day on the week. Which query can be used?
Answer
  • SELECT emp_id, ADD_MONTHS(hire_date, 6), NEXT_DAY('MONDAY') FROM employees;
  • SELECT emp_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), 'MONDAY') FROM employees;
  • SELECT emp_id, NEXT_DAY(MONTHS_BETWEEN(hire_date, SYSDATE), 6) FROM employees;
  • SELECT emp_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), 1) FROM employees;

Question 42

Question
The ORCL database has RESUMABLE__TIMEOUT = 7200 and DEFERRED_SEGMENT_CREATION = FALSE User U1 has a 1 MB quota in tablespace DATA. U1 executes this command: SQL> CREATE TABLE t1 AS (SELECT object_name, sharing, created FROM dba_objects); U1 complains that the command is taking too long to execute. In the alert log, the database administrator (DBA) finds this: 2017-03-06T12:15:17.183438+05:30 statement in resumable session 'User U1(136), Session 1, Instance 1' was suspended due to ORA-01536: space quota exceeded for tablespace 'DATA' Which are three actions any one of which the DBA could take to resume the session? (Choose three).
Answer
  • Add a data file to DATA.
  • Drop other U1 objects in DATA.
  • Increase U1's quota sufficiently in DATA.
  • Set DEFERRED_SEGMENT_CREATION to TRUE.
  • Grant UNLIMITED TABLESPACE to U1.
  • Set AUTOEXTEND ON for data files in DATA.

Question 43

Question
Which three statements are true about the Oracle Data Dictionary? (Choose three).
Answer
  • Data dictionary views are created by joins of dictionary base tables and DBA-defined tables.
  • The data dictionary is created and maintained by the database administrator.
  • Views with the same name but different prefixes, such as CDB, DBA, ALL and SER, reference the same base tables from the data dictionary.
  • Base tables can be queried directly.
  • It is owned by the SYSTEM user.
  • Usernames of all users including database administrators are stored in the data dictionary

Question 44

Question
In one of your databases, the user HR has the password HRMGR. You want to connect to a database instance whose listener listens on port 1531 by using this statement: CONNECT HR/HRMGR@orcl - No name server is used. Which statement is true about ORCL?
Answer
  • It must be the value of the SERVICE_NAMES parameter on the client side.
  • It must resolve to a valid connect descriptor in the server's tnsnames.ora file
  • It must resolve to a valid connect descriptor in the client's tnsnames.ora file
  • It must be the name of the database to whose instance HR wishes to connect
  • It must be the name of the server running the database to whose instance HR wishes to connect

Question 45

Question
Which two statements are true about views used for viewing tablespace and datafile information? (Choose two).
Answer
  • Tablespace free space can be viewed in V$TABLESPACE.
  • V$TABLESPACE displays information that is contained in the controlfile about tablespaces.
  • V$TABLESPACE displays information about tablespaces contained in the data dictionary.
  • Tablespace free space can be viewed in DBA_TABLESPACES.
  • A datafile can be renamed when the database is in MOUNT state and the new file name is displayed when querying DBA_DATA_FILES after the database is opened.

Question 46

Question
Examine the description of the PROMOTIONS table: Name Null? Type ----------------------------------------------------------------------- PROMO_ID NOT NULL NUMBER(6) PROMO_NAME NOT NULL VARCHAR2(30) PROMO_CATEGORY NOT NULL VARCHAR2(30) PROMO_COST NOT NULL NUMBER(10,2) You want to display the unique promotion costs in each promotion category. Which two queries can be used? (Choose two).
Answer
  • SELECT promo_cost, promo_category FROM promotions ORDER BY by 1;
  • SELECT DISTINCT promo_cost || ' in ' || DISTINCT promo_category FROM promotions ORDER BY 1;
  • SELECT DISTINCT promo_category || ' has ' || promo_cost AS COSTS FROM promotions ORDER BY 1;
  • SELECT promo_category, DISTINCT promo_cost FROM promotions ORDER BY 2;
  • SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;

Question 47

Question
In the ORCL database, UNDOTBS1 is the active undo tablespace with these properties: 1. A size of 100 MB 2. AUTOEXTEND is off 3. UNDO_RETENTION is set to 15 minutes 4. It has RETENTION GUARANTEE UNDOTBS1 fills with uncommitted undo 10 minutes after the database opens. What will happen when the next update is attempted by any transaction?
Answer
  • It succeeds and the generated undo is stored in SYSTEM.
  • It fails and returns the error message ג€ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1'ג€.
  • It succeeds and the least recently written undo block of UNDOTBS1 is overwritten by the generated undo.
  • It succeeds and the generated undo is stored in SYSAUX.
  • It succeeds and the least recently read undo block of UNDOTBS1 is overwritten by the generated undo.

Question 48

Question
Which two statements are true about the rules of precedence for operators? (Choose two).
Answer
  • The concatenation operator | | is always evaluated before addition and subtraction in an expression.
  • NULLS influence the precedence of operators in an expression.
  • The + binary operator has the highest precedence in an expression in a SQL statement.
  • Arithmetic operators with equal precedence are evaluated from left to right within an expression.
  • Multiple parentheses can be used to override the default precedence of operators in an expression.

Question 49

Question
In one of your databases, user KING is: 1. Not a DBA user 2. An operating system (OS) user Examine this command and its output: SHOW PARAMETER OS_AUTHENT_PREFIX NAME TYPE VALUE -------------------------------------------------------- os_authent_prefix string What must you do so that KING is authenticated by the OS when connecting to the database instance?
Answer
  • Set OS_AUTHENT_PREFIX to OPS$
  • Have the OS administrator add KING to the OSDBA group
  • Grant DBA to KING
  • Unset REMOTE_LOGIN_PASSWORDFILE
  • Alter user KING to be IDENTIFIED EXTERNALLY

Question 50

Question
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?
Answer
  • It gives an error because the ALL keyword is not valid.
  • It gives an error because the GROUP BY clause is not valid.
  • It executes successfully but does not give the required result.
  • It executes successfully and gives the required result.

Question 51

Question
Which three statements are true about GLOBAL TEMPORARY TABLES? (Choose three).
Answer
  • A TRUNCATE command issued in a session causes all rows in a GLOBAL TEMPORARY TABLE for the issuing session to be deleted.
  • GLOBAL TEMPORARY TABLE rows inserted by a session are available to any other session whose user has been granted select on the table.
  • GLOBAL TEMPORARY TABLE space allocation occurs at session start.
  • Any GLOBAL TEMPORARY TABLE rows existing at session termination will be deleted.
  • A GLOBAL TEMPORARY TABLE'S definition is available to multiple sessions.
  • A DELETE command on a GLOBAL TEMPORARY TABLE cannot be rolled back.

Question 52

Question
Which two statements are true about trace files produced by the Oracle Database server? (Choose two).
Answer
  • They can be written by server processes.
  • Trace files are written to the Fast Recovery Area (FRA).
  • They can be written by background processes.
  • All trace files contain error information that require contacting Oracle Support.
  • Trace file names are based on the database name concatenated with a sequential number.

Question 53

Question
You need to calculate the number of days from 1 January 2019 until today. Dates are stored in the default format of DD-MON-RR. Which two queries give the required output? (Choose two).
Answer
  • SELECT TO_CHAR(SYSDATE, 'DD-MON-YYYY') - '01-JAN-2019' FROM DUAL;
  • SELECT ROUND(SYSDATE - '01-JAN-2019') FROM DUAL;
  • SELECT ROUND(SYSDATE - TO_DATE('01/JANUARY/2019')) FROM DUAL;
  • SELECT TO_DATE(SYSDATE, 'DD/MONTH/YYYY') - '01/JANUARY/2019' FROM DUAL;
  • SELECT SYSDATE - TO_DATE('01-JANUARY-2019') FROM DUAL;

Question 54

Question
Which two statements are true about the DUAL table? (Choose two).
Answer
  • It can be accessed only by the SYS user.
  • It consists of a single row and single column of VARCHAR2 data type.
  • It can display multiple rows but only a single column.
  • It can be used to display only constants or pseudo columns.
  • It can be accessed by any user who has the SELECT privilege in any schema.
  • It can display multiple rows and columns.

Question 55

Question
Which four statements are true regarding primary and foreign key constraints and the effect they can have on table data? (Choose four).
Answer
  • A table can have only one primary key but multiple foreign keys.
  • A table can have only one primary key and one foreign key.
  • The foreign key columns and parent table primary key columns must have the same names.
  • It is possible for child rows that have a foreign key to remain in the child table at the time the parent row is deleted.
  • It is possible for child rows that have a foreign key to be deleted automatically from the child table at the time the parent row is deleted.
  • Only the primary key can be defined at the column and table level.
  • Primary key and foreign key constraints can be defined at both the column and table level.

Question 56

Question
Examine the description of the EMPLOYEES table: Name Null? Type ---------------------------------------------------- EMP_ID NOT NULL NUMBER EMP_NAME VARCHAR2(40) DEP_ID NUMBER(2) SALARY NUMBER(8,2) JOIN_DATE DATE Which query is valid?
Answer
  • SELECT dept_id, AVG(MAX(salary)) FROM employees GROUP BY dept_id;
  • SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id;
  • SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id, join_date;
  • SELECT dept_id, MAX(AVG(salary)) FROM employees GROUP BY dept_id;

Question 57

Question
What is true about non-equijoin statement performance? (Choose two).
Answer
  • Table aliases can improve performance.
  • The BETWEEN condition always performs better than using the >= and <= conditions.
  • The join syntax used makes no difference to performance.
  • The BETWEEN condition always performs less well than using the >= and <= conditions.
  • The Oracle join syntax performs better than the SQL:1999 compliant ANSI join syntax.

Question 58

Question
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? (Choose two).
Answer
  • Ensure that DB_RECOVERY_FILE_DEST and DB_CREATE_FILE_DEST each specify with at least 50 Mb of available space.
  • Specify a path in the DATAFILE clause of the command specifying a location with at least 100M of available space.
  • Ensure that DB_CREATE_FILE_DEST specifies a location with at least 100 Mb of available space.
  • Add the AUTOEXTEND ON clause with NEXT set to 100M.
  • Ensure that DB_RECOVERY_FILE_DEST and DB_CREATE_FILE_DEST each specify locations with at least 50 Mb of available space.

Question 59

Question
Examine this command and some partial output: LSNRCTL> start LISTENER_1 Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=PROTOCOL=tcp) (HOST=host01.abc.com) (PORT=1562)) Services Summary... Service "DB01.abc.com" has 1 instance(s). Instance "DB01" status UNKNOWN, has 1 handler(s) for this service... The command completed successfully Why does the DB01.abc.com service show unknown status?
Answer
  • The service DB01.abc.com is dynamically registered.
  • The LOCAL_LISTENER database parameter is not set to a service name that refers to LISTENER_1.
  • The service DB01.abc.com is statically registered.
  • The listener is not listening on the default port 1521.
  • The SID_LIST_LISTENER section is not contained in the LISTENER.ORA file

Question 60

Question
Which three statements are true about the tools used to configure Oracle Net Services? (Choose three).
Answer
  • The Oracle Net Configuration Assistant is only used when running the Oracle installer.
  • Oracle Net Manager can be used to centrally configure listeners on any database server target.
  • The lsnrctl utility requires a listener.ora file to exist before it is started.
  • Oracle Net Manager can be used to locally configure naming methods on a database server.
  • Enterprise Manager Cloud Control can be used to centrally configure listeners on any managed database server.
  • Enterprise Manager Cloud Control can be used to centrally configure net service names for any database server target

Question 61

Question
Which two statements are true regarding the UNION and UNION ALL operators? (Choose two).
Answer
  • Duplicates are eliminated automatically by the UNION ALL operator.
  • The number of columns selected in each SELECT statement must be identical.
  • The names of columns selected in each SELECT statement must be identical.
  • The output is sorted by the UNION ALL operator.
  • NULLS are not ignored during duplicate checking

Question 62

Question
Which two statements are true about the Automatic Diagnostic Repository (ADR)? (Choose two).
Answer
  • The ADR base defaults to $ORACLE_HOME/rdbms/admin if neither DIAGNOSTIC_DEST nor ORACLE_BASE is set.
  • The ADR base defaults to $ORACLE_HOME/dbs if the DIAGNOSTIC_DEST parameter and the ORACLE_BASE environment variable are not set.
  • It supports diagnostics for Automatic Storage Management (ASM).
  • It supports diagnostics for Oracle Clusterware.
  • It is held inside an Oracle database schema

Question 63

Question
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 three types of analyses can be done using the DBMS_PRIVILEGE_CAPTURE package? (Choose three).
Answer
  • Analysis of all privileges used by all users including administrative users in the database.
  • Analysis of all privileges used by all users but excluding administrative users in the database.
  • Analysis of privileges that a user has on their own schema objects that they did not use.
  • Analysis of privileges that a user has on their own schema objects that they did use.
  • Analysis of privileges granted directly to a role that are then used by a user who has been granted that role.
  • Analysis of privileges granted indirectly to a role that are then used by a user who has been granted that role.

Question 64

Question
Which three statements are true about undo segments and the use of undo by transactions in an Oracle database instance? (Choose three).
Answer
  • An undo segment may be used by multiple transactions simultaneously.
  • Undo segments can wrap around to the first extent when a transaction fills the last extend of the undo segment.
  • Undo segments have a minimum of three extents.
  • Undo segments can extend when a transaction fills the last extent of the undo segment.
  • A single transaction may use multiple undo segments simultaneously.
  • Undo segments must be stored in a BIGFILE tablespace.
  • Undo segments must be stored in a SMALLFILE tablespace

Question 65

Question
Which two statements are true about Enterprise Manager Database Express? (Choose two).
Answer
  • It is available only when the database is open.
  • It can be used to perform database recovery.
  • The same port number can be used for Database Express configurations for databases on different hosts.
  • It can be used to switch a database into ARCHIVELOGMODE.
  • The same port number can be used for multiple Database Express configurations for multiple databases on the same host

Question 66

Question
Table EMPLOYEES contains columns including EMPLOYEE_ID, JOB_ID and SALARY. Only the EMPLOYEE_ID column is indexed. Rows exist for employees 100 and 200. Examine this statement: UPDATE employees SET (job_id, salary) = (SELECT job_id, salary FROM employees WHERE employee_id = 200) WHERE employee_id = 100; Which two statements are true? (Choose two).
Answer
  • Employee 100 will have SALARY set to the same value as the SALARY of employee 200.
  • Employee 200 will have JOB_ID set to the same value as the JOB_ID of employee 100.
  • Employee 200 will have SALARY set to the same value as the SALARY of employee 100.
  • Employee 100 will have JOB_ID set to the same value as the JOB_ID of employee 200.
  • Employees 100 and 200 will have the same JOB_ID as before the update command.
  • Employees 100 and 200 will have the same SALARY as before the update command.

Question 67

Question
Which two are true about a SQL statement using SET operators such as UNION? (Choose two).
Answer
  • The data type group of each column returned by the second query must match the data type of the corresponding column returned by the first query.
  • The number, but not names, of columns must be identical for all SELECT statements in the query.
  • 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.
  • The names and number of columns must be identical for all SELECT statements in the query.
  • The data type of each column returned by the second query must be implicitly convertible to the data type of the corresponding column returned by the first query.

Question 68

Question
Which three statements are true about time zones, date data types, and timestamp data types in an Oracle database? (Choose three).
Answer
  • The CURRENT_TIMESTAMP function returns data without time zone information.
  • A TIMESTAMP WITH LOCAL TIMEZONE data type column is stored in the database using the time zone of the session that inserted the row.
  • A TIMESTAMP data type column contains information about year, month, and day.
  • The DBTIMEZONE function can return an offset from Universal Coordinated Time (UTC).
  • The SESSIONTIMEZONE function can return an offset from Universal Coordinated Time (UTC)

Question 69

Question
Which three statements are true about inner and outer joins? (Choose three).
Answer
  • A full outer join returns matched and unmatched rows.
  • An inner join returns matched rows.
  • Outer joins can only be used between two tables per query.
  • A full outer join must use Oracle syntax.
  • Outer joins can be used when there are multiple join conditions on two tables.
  • A left or right outer join returns only unmatched rows

Question 70

Question
Examine this description of the TRANSACTIONS table: Name Null? Type ------------------------------------------------------------------------------- TRANSACTION_ID NOT NULL VARCHAR2(6) TRANSACTION_DATE DATE AMOUNT NUMBER(10,2) CUSTOMER_ID VARCHAR2(6) Which two SQL statements execute successfully? (Choose two).
Answer
  • SELECT customer_id AS "CUSTOMER-ID", transaction_date AS DATE, amount + 100 "DUES" FROM transactions;
  • SELECT customer_id AS "CUSTOMER-ID", transaction_date AS "DATE", amount + 100 DUES FROM transactions;
  • SELECT customer_id AS CUSTOMER-ID, transaction_date AS TRANS_DATE, amount + 100 "DUES AMOUNT" FROM transactions;
  • SELECT customer_id CUSTID, transaction_date TRANS_DATE, amount + 100 DUES FROM transactions;
  • SELECT customer_id AS 'CUSTOMER-ID', transaction_date AS DATE, amount + 100 'DUES AMOUNT' FROM transactions;

Question 71

Question
The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type NUMBER. Which two queries execute successfully? (Choose two).
Answer
  • SELECT NVL(cust_credit_limit * .15, 'Not Available') FROM customers;
  • SELECT NVL2(cust_credit_limit * .15, 'Not Available') FROM customers;
  • SELECT NVL(TO_CHAR(cust_credit_limit * .15), 'Not Available') FROM customers;
  • SELECT TO_CHAR(NVL(cust_credit_limit * .15, 'Not Available')) FROM customers;
  • SELECT NVL2(cust_credit_limit, TO_CHAR(cust_credit_limit * .15), 'Not Available') FROM customers;

Question 72

Question
Which statement is true about aggregate functions?
Answer
  • Aggregate functions can be nested to any number of levels.
  • The AVG function implicitly converts NULLS to zero.
  • Aggregate functions can be used in any clause of a SELECT statement.
  • The MAX and MIN functions can be used on columns with character data types.

Question 73

Question
Your database instance was shut down normally and then started in NOMOUNT state. You then execute this command: ALTER DATABASE MOUNT; Which two actions are performed? (Choose two).
Answer
  • The online redo logs are opened.
  • The online data files are opened.
  • The alert log records the execution details.
  • The Oracle background processes are started.
  • The initialization parameter file is read.
  • The control file is read.

Question 74

Question
Which two are true about shrinking a segment online? (Choose two).
Answer
  • It is not possible to shrink either indexes or Index Organized Tables (IOTs).
  • It always eliminates all migrated rows if any exist in the table.
  • To shrink a table it must have a PRIMARY KEY constraint.
  • To shrink a table it must have a UNIQUE KEY constraint.
  • To shrink a table it must have row movement enabled
  • It must be in a tablespace that uses Automatic Segment Space Management (ASSM)

Question 75

Question
Examine these commands: [oracle@host01 ~]$ sqlplus u1/oracle SQL> SELECT * FROM emp; ENO ENAME DN -------------------------------- 1 Alan 2 2 Ben 2 SQL> exit [oracle@host01 ~] cat emp.dat 3,Culr,4 4,Bob,4 [oracle@host01 ~] sqlldr u01/oracle TABLE=emp Which two statements are true about the sqlldr execution? (Choose two).
Answer
  • It overwrites data in EMP with data in EMP.DAT
  • It uses the database buffer cache to load data.
  • It generates a log that contains control file entries, which can be used with normal SQL*Loader operations.
  • It generates a sql script that it uses to load data from EMP.DAT to EMP
  • It appends data from EMP.DAT to EMP

Question 76

Question
A script abc.sql must be executed to perform a job. A database user HR, who is defined in this database, executes this command: $ sqlplus hr/hr@orcl @abc.sql What will happen upon execution?
Answer
  • The command succeeds and HR will be connected to the orcl and abc.sql databases.
  • The command succeeds and HR will be connected to the orcl database instance, and the abc.sql script will be executed.
  • The command fails because the script must refer to the full path name.
  • The command fails and reports an error because @ is used twice.

Question 77

Question
Which three statements are true regarding indexes? (Choose three).
Answer
  • A UNIQUE index can be altered to be non-unique.
  • A SELECT statement can access one or more indices without accessing any tables.
  • A table belonging to one user can have an index that belongs to a different user.
  • An update to a table can result in updates to any or all of the table's indexes.
  • When a table is dropped and is moved to the RECYCLE BIN, all indexes built on that table are permanently dropped.
  • An update to a table can result in no updates to any of the table's indexes.

Question 78

Question
Which three statements are true about Oracle synonyms? (Choose three).
Answer
  • A synonym cannot be created for a PL/SQL package.
  • A synonym can be available to all users.
  • A SEQUENCE can have a synonym.
  • A synonym created by one user can refer to an object belonging to another user.
  • Any user can drop a PUBLIC synonym

Question 79

Question
View the Exhibit and examine the structure of the PRODUCTS table. Which two tasks require subqueries? (Choose two).
Answer
  • Display the number of products whose PROD_LIST_PRICE is more than the average PROD_LIST_PRICE.
  • Display suppliers whose PROD_LIST_PRICE is less than 1000.
  • Display products whose PROD_MIN_PRICE is more than the average PROD_LIST_PRICE of all products, and whose status is orderable.
  • Display the total number of products supplied by supplier 102 which have a product status of obsolete.
  • Display the minimum PROD_LIST_PRICE for each product status.

Question 80

Question
The SALES_Q1 and USERS tablespaces exist in one of your databases and TEMP is a temporary tablespace. Segment creation is not deferred. You execute this command: CREATE USER sales IDENTIFIED BY sales_123 DEFAULT TABLESPACE sales_q1 TEMPORARY TABLESPACE temp QUOTA 5M ON users; Which three statements must be true so that the SALES user can create tables in SALES_Q1? (Choose three).
Answer
  • The sales user must have a quota on the TEMP tablespace.
  • The sales user must have a quota on the SALES_Q1 tablespace to hold the initial extends of all tables they plan to create in their schema.
  • The sales user must have been granted the CREATE SESSION privilege.
  • The sales user must have their quota on the users tablespace removed.
  • The sales user must have a quota on the SALES_Q1 tablespace to hold all the rows to be inserted into any table in their schema.
  • The sales user must have been granted the CREATE TABLE privilege.

Question 81

Question
Which three statements are true about table data storage in an Oracle Database? (Choose three).
Answer
  • Data block headers contain their own Data Block Address (DBA).
  • A table row piece can be chained across several database blocks.
  • Multiple row pieces from the same row may be stored in different database blocks.
  • Multiple row pieces from the same row may be stored in the same block.
  • Data block free space is always contiguous in the middle of the block.
  • Index block free space is always contiguous in the middle of the block

Question 82

Question
Examine the description of the BOOKS table: Name Null? Type ---------------------------------------------------------------------- TRANSACTION_ID NOT NULL VARCHAR2(6) TRANSACTION_DATE DATE AMOUNT NUMBER(10,2) CUSTOMER_ID VARCHAR2(6) The table has 100 rows. Examine this sequence of statements issued in a new session: INSERT INTO books VALUES ('ADV112', 'Adventures of Tom Sawyer', NULL, NULL); SAVEPOINT a; DELETE FROM books; ROLLBACK TO SAVEPOINT a; ROLLBACK; Which two statements are true? (Choose two).
Answer
  • The second ROLLBACK command does nothing.
  • The second ROLLBACK command replays the delete.
  • The first ROLLBACK command restores the 101 rows that were deleted, leaving the inserted row still to be committed.
  • The second ROLLBACK command undoes the insert.
  • The first ROLLBACK command restores the 101 rows that were deleted and commits the inserted row

Question 83

Question
Which three statements are true about external tables in Oracle 18c and later releases? (Choose three).
Answer
  • External table files can be used for other external tables in a different database.
  • The ORACLE_LOADER access driver can be used to unload data from a database into an external table.
  • The ORACLE_DATAPUMP access driver can be used to unload data from a database into an external table.
  • They cannot be partitioned.
  • The ORACLE_DATAPUMP access driver can be used to load data into a database from an external table.
  • They support UPDATEs but not INSERTs and DELETEs

Question 84

Question
Which three statements are true about the Oracle join and ANSI join syntax? (Choose three).
Answer
  • The Oracle join syntax supports creation of a Cartesian product of two tables.
  • The Oracle join syntax performs better than the SQL:1999 compliant ANSI join syntax.
  • The SQL:1999 compliant ANSI join syntax supports natural joins.
  • The SQL:1999 compliant ANSI join syntax supports creation of a Cartesian product of two tables.
  • The Oracle join syntax only supports right outer joins.
  • The Oracle join syntax supports natural joins.
  • The Oracle join syntax performs less well than the SQL:1999 compliant ANSI join syntax

Question 85

Question
Which two tasks can you perform using DBCA for databases? (Choose two).
Answer
  • Configure a nonstandard block size for a new database.
  • Register a new database with an available Enterprise Manager Management server.
  • Change the standard block size of an existing database.
  • Configure incremental backups for a new database.
  • Enable flashback database for an existing database.

Question 86

Question
You execute this query: SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr') FROM DUAL; What is the result?
Answer
  • It executes successfully but does not return any result.
  • It returns the date for the first Monday of the next month.
  • It generates an error.
  • It returns the date for the last Monday of the current month

Question 87

Question
Examine this command: CREATE UNDO TABLESPACE undotbs01 DATAFILE 'undotbs_01.dbf' SIZE 100M AUTOEXTEND ON; Which two actions must you take to ensure UNDOTBS01 is used as the default UNDO tablespace? (Choose two).
Answer
  • Add the SEGMENT SPACE MANAGEMENT AUTO clause.
  • Set UNDO_TABLESPACE to UNDOTBS01.
  • Add the NOLOGGING clause.
  • Make certain that the database operates in automatic undo management mode.
  • Add the ONLINE clause

Question 88

Question
Which three statements are true about views in an Oracle database? (Choose three).
Answer
  • Views can be updated without the need to re-grant privileges on the view.
  • Tables in the defining query of a view must always exist in order to create the view.
  • The WITH CHECK clause prevents certain rows from being displayed when querying the view.
  • Data Manipulation Language (DML) can always be used on views.
  • Inserting one or more rows using a view whose defining query contains a GROUP BY clause will cause an error.
  • Deleting one or more rows using a view whose defining query contains a GROUP BY clause will cause an error.
  • The WITH CHECK clause prevents certain rows from being updated or inserted

Question 89

Question
You execute this command: CREATE SMALLFILE TABLESPACE sales DATAFILE '/u01/app/oracle/sales01.dbf SIZE 5G SEGMENT SPACE MANAGEMENT AUTO; Which two statements are true about the SALES tablespace? (Choose two).
Answer
  • It must be smaller than the smallest BIGFILE tablespace.
  • Free space is managed using freelists.
  • Any data files added to the tablespace must have a size of 5 gigabytes.
  • It uses the database default blocksize.
  • It is a locally managed tablespace.

Question 90

Question
In the SALES database, DEFERRED_SEGMENT_CREATION is TRUE. Examine this command: SQL> CREATE TABLE T1(c1 INT PRIMARY KEY, c2 CLOB); Which segment or segments, if any, are created as a result of executing the command?
Answer
  • T1, an index segment for the primary key, a LOB segment, and a lobindex segment.
  • No segments are created
  • T1 only
  • T1 and an index segment created for the primary key only
  • T1, an index segment for the primary key, and a LOB segment only

Question 91

Question
Which three activities are recorded in the database alert log? (Choose three).
Answer
  • Data Definition Language (DDL) statements
  • Non-default database parameters
  • Block corruption errors
  • Deadlock errors
  • Session logins and logouts

Question 92

Question
Which two statements are true about Enterprise Manager (EM) Express?
Answer
  • You can use a single instance of EM Express to manage multiple database running on the same server.
  • EM Express uses a separate repository database to store target database metadata.
  • By default, EM express is available for a database after database creation using DBCA.
  • You can shut down a database instance using EM Express.
  • You cannot start up a database instance using EM Express.

Question 93

Question
Examine this SQL statement: SELECT cust_id, cust_last_name "Last Name" FROM customers WHERE country_id = 10 UNION SELECT cust_id CUST_NO, cust_last_name FROM customers WHERE country_id = 30 Identify three ORDER BY clauses, any one of which can complete the query successfully. (Choose three).
Answer
  • ORDER BY "Last Name"
  • ORDER BY 2, 1
  • ORDER BY 2, cust_id
  • ORDER BY CUST_NO
  • ORDER BY "CUST_NO"

Question 94

Question
Which two statements are true about the configuration and use of UNDO_RETENTION with GURANTEED RETENTION? (Choose two).
Answer
  • UNDO_RETENTION specifies for how long Oracle attempts to keep expired and unexpired UNDO.
  • UNDO_RETENTION specifies how long all types of UNDO are retained.
  • Unexpired UNDO is always retained.
  • Active UNDO is always retained.
  • UNDO_RETENTION specifies for how long Oracle attempts to keep unexpired UNDO.

Question 95

Question
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?
Answer
  • Statement 1 returns only one row of output.
  • Statement 2 returns only one row of output.
  • Both statements will return NULL if either UNIT_PRICE or QUANTITY contains NULL.
  • Both the statements give the same output.
  • Statement 2 may return multiple rows of output.

Question 96

Question
Which three files are used by conventional path SQL*Loader when the TABLE option is not specified? (Choose three).
Answer
  • Dump files
  • Control files
  • Password files
  • Bad files
  • Input files

Question 97

Question
Which three statements are true about the naming methods and their features supported by Oracle database used to resolve connection information? (Choose three).
Answer
  • Local Naming requires setting the TNS_ADMIN environment variable on the client side.
  • A client can connect to an Oracle database instance even if no client side network admin has been configured.
  • Directory Naming can be used if Connect-Time Failover is required.
  • Easy Connect supports TCP/IP and SSL.
  • Local naming can be used if Connect-Time Failover is required.
  • Directory Naming requires setting the TNS_ADMIN environment variable on the client side.

Question 98

Question
Which two statements are true about User Authentication in an Oracle Database? (Choose two).
Answer
  • Password authentication must be used for system-privileged administrative users.
  • Password File authentication must be used for system-privileged administrative users.
  • Operating System authentication may be used for system-privileged administrative users.
  • Password File authentication is supported for any type of database user.
  • REMOTE_LOGIN_PASSWORDFILE must be set to exclusive to permit password changes for system-privileged administrative users.

Question 99

Question
Which is the default column or columns for sorting output from compound queries using SET operators such as INTERSECT in a SQL statement?
Answer
  • The first NUMBER column in the first SELECT of the compound query.
  • The first NUMBER or VARCHAR2 column in the last SELECT of the compound query.
  • The first column in the last SELECT of the compound query.
  • The first column in the first SELECT of the compound query.
  • The first VARCHAR2 column in the first SELECT of the compound query.

Question 100

Question
Examine the description of the PRODUCT_STATUS table: Name Null? Type ----------------------------------------------------------- PROD_ID NOT NULL VARCHAR2(6) STATUS NOT NULL DATE The STATUS column contains the values 'IN STOCK' or 'OUT OF STOCK' for each row. Which two queries will execute successfully? (Choose two).
Answer
  • SELECT prod_id "CURRENT AVAILABILITY" || q'('s not available)' FROM product_status WHERE status = 'OUT OF STOCK';
  • SELECT prod_id q's not available" FROM product_status WHERE status = 'OUT OF STOCK';
  • SELECT prod_id || q'('s not available)' 'CURRENT AVAILABILITY' FROM product_status WHERE status = 'OUT OF STOCK';
  • SELECT prod_id || q'('s not available)' FROM product_status WHERE status = 'OUT OF STOCK';
  • SELECT prod_id || q"'s not available" FROM product_status WHERE status = 'OUT OF STOCK';
  • SELECT prod_id || q'('s not available)' "CURRENT AVAILABILITY" FROM product_status WHERE status = 'OUT OF STOCK';

Question 101

Question
Which two statements are true about UNDO and UNDO tablespaces? (Choose two).
Answer
  • There can be only one UNDO tablespace created in a database.
  • UNDO segments are owned by SYSTEM.
  • UNDO segments are owned by SYSBACKUP.
  • An UNDO tablespace may be owned by only one instance.
  • An instance will crash if the active undo tablespace is lost.

Question 102

Question
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? (Choose two).
Answer
  • DB_32K_CACHE_SIZE must be less than DB_CACHE_SIZE.
  • DB_32K_CACHE_SIZE must be set to a value that can be accommodated in the SGA.
  • DB_32K_CACHE_SIZE should be set to a value greater than DB_CACHE_SIZE.
  • The /u02 file system must have at least 100g space for the datafile.
  • The operating system must use a 32k block size.
  • DB_CACHE_SIZE must be set to a size that is smaller than DB_32K_CACHE_SIZE.

Question 103

Question
Examine the description of the PRODUCTS table: Name Null? Type ------------------------------------------------------------------------ PROD_ID NOT NULL NUMBER PROD_NAME VARCHAR2(40) COST NUMBER(8,2) RELEASE_DATE DATE Which query is valid?
Answer
  • SELECT prod_id, release_date, SUM(cost) FROM products GROUP BY prod_id;
  • SELECT prod_id, release_date, SUM(cost) FROM products GROUP BY prod_id, release_date;
  • SELECT prod_id, AVG(MAX(cost)) FROM products GROUP BY prod_id;
  • SELECT prod_id, MAX(AVG(cost)) FROM products GROUP BY prod_id;

Question 104

Question
Which two statements are true about the Oracle Data Dictionary? (Choose two).
Answer
  • All data dictionary view join base tables to dynamic performance views.
  • Data dictionary base tables can be queried directly.
  • It is owned by the SYS user.
  • It is owned by the SYSTEM user.
  • Data dictionary views are always created with queries that join two or more base tables.

Question 105

Question
Which two Oracle database space management features require the use of locally managed tablespaces? (Choose two).
Answer
  • Automatic data file extension (AUTOEXTEND).
  • Server-generated tablespace space alerts.
  • Online segment shrink.
  • Free space management with bitmaps.
  • Oracle Managed Files (OMF)

Question 106

Question
Which three statements are true about connection strings and service names used to connect to an Oracle database instance? (Choose three).
Answer
  • A connection string must include the SID of a database instance.
  • A connection string including a service name must be defined in the tnsnames.ora file.
  • A single database instance can support connections for multiple service names.
  • A single connection string can refer to multiple database instances.
  • A service name is created by a listener.
  • Different connection strings in the same tnsnames.ora file can contain the same service name, host and port parameters.

Question 107

Question
Which three statements are true about using SQL*Plus? (Choose three).
Answer
  • It has both command-line and graphical user interfaces (GUI).
  • It must be downloaded from the Oracle Technology Network (OTN).
  • It can run Recovery Manager (RMAN) commands.
  • It has its own commands that are separate from any SQL statements.
  • It can run scripts entered at the SQL prompt.
  • It can run scripts passed to it by a shell script.

Question 108

Question
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? (Choose two).
Answer
  • WHERE order_date > TO_DATE(ADD_MONTHS(SYSDATE, 6), 'MON DD YYYY')
  • WHERE order_date > TO DATE('JUL 10 2018', 'MON DD YYYY')
  • WHERE TO_CHAR(order date, 'MON DD YYYY') = 'JAN 20 2019'
  • WHERE order_date > TO_CHAR(ADD_MONTHS(SYSDATE, 6), 'MON DD YYYY')
  • WHERE order_date IN (TO_DATE('Oct 21 2018', 'Mon DD YYYY'), TO_CHAR('Nov 21 2018', 'Mon DD YYYY'))

Question 109

Question
Which three statements are true about the Automatic Diagnostic Repository (ADR)? (Choose three).
Answer
  • It can be used for problem diagnosis of a database when that database's instance is down.
  • The ADR base is specified in the DIAGNIOSTIC_DEST database parameter.
  • It is held inside an Oracle database schema.
  • It is a file-based repository held outside any database.
  • It is only used for Oracle Database diagnostic information.

Question 110

Question
Which two statements are true about a self join? (Choose two).
Answer
  • It can be an inner join.
  • It can be a left outer join.
  • It must be an equijoin.
  • The join key column must have an index.
  • It must be a full outer join.

Question 111

Question
Which statement is true about database links?
Answer
  • Private database link creation requires the same user to exist in both the local and the remote databases.
  • 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.
  • 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.
  • A public database link can be created only by SYS.
  • A database link can be created only between two Oracle databases.

Question 112

Question
Which two queries execute successfully? (Choose two).
Answer
  • SELECT NULLIF(NULL, 100) FROM DUAL;
  • SELECT NULLIF(100, 'A') FROM DUAL;
  • SELECT COALESCE(100, 'A') FROM DUAL;
  • SELECT COALESCE(100, NULL, 200) FROM DUAL;
  • SELECT NULLIF(100, 100) FROM DUAL;

Question 113

Question
Which three statements are true about data block storage in an Oracle Database? (Choose three).
Answer
  • An index block can contain row data.
  • A data block header is of a fixed length.
  • Row data is stored starting at the end of the block.
  • A table block must always contain row data.
  • A block header contains a row directory pointing to all rows in the block.

Question 114

Question
Which two are benefits of external tables? (Choose two).
Answer
  • They support DELETES which transparently deletes records in the file system as if they were table rows.
  • They can be queried, transformed, and joined with other tables without having to load the data first.
  • They support UPDATES which transparently updates records in the file system as if they were table rows.
  • The results of a complex join or aggregating function or both can be unloaded to a file for transportation to another database.
  • They can be queried while the database is in the MOUNT state like dynamic performance views.

Question 115

Question
Examine the description of the MEMBERS table: Name Null? Type ---------------------------------------------------- MEMBER_ID NOT NULL VARCHAR2(6) FIRST_NAME VARCHAR2(50) LAST_NAME NOT NULL VARCHAR2(50) ADDRESS VARCHAR2(50) CITY VARCHAR2(25) 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? (Choose two).
Answer
  • ORDER BY 1, 2
  • WHERE city = '%AN%'
  • WHERE city LIKE '%AN%'
  • ORDER BY last_name DESC, city ASC
  • WHERE city IN ('%AN%')
  • ORDER BY 1, LNAME DESC

Question 116

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

Question 117

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 is the value changed?
Answer
  • In the SPFILE, PFILE, and memory
  • In the SPFILE and in memory
  • Only in the SPFILE
  • Only in memory
  • In the SPFILE and PFILE

Question 118

Question
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 can be done using the DBMS_PRIVILEGE_CAPTURE package? (Choose two).
Answer
  • Analysis of privileges that a user has on other schema’s objects.
  • Analysis of privileges that a user has on their own schema objects.
  • Analysis of all privileges used by the sys user.
  • Analysis of privileges granted indirectly to a role that are then used by a user who has been granted that role.
  • Analysis of privileges granted directly to a role that are then used by a user who has been granted that role.

Question 119

Question
Examine the description of the SALES table: Name Null? Type -------------------------------------------------------------- PRODUCT_ID NOT NULL NUMBER(10) CUSTOMER_ID NOT NULL NUMBER(10) TIME_ID NOT NULL DATE CHANNEL_ID NOT NULL NUMBER(5) PROMO_ID NOT NULL NUMBER(5) QUANTITY_SOLD NOT NULL NUMBER(10,2) PRICE NUMBER(10,2) AMOUNT_SOLD NOT NULL NUMBER(10,2) 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? (Choose two).
Answer
  • SALES1 is created with l row.
  • SALES1 is created with no rows.
  • SALES1 has primary KEY and UNIQUE constraints on any selected columns which had those constraints in the SALES table.
  • SALES1 has NOT NULL constraints on any selected columns which had those constraints in the SALES table.
  • SALES1 is created with 55,000 rows.

Question 120

Question
Which three statements are true about performing Data Manipulation Language (DML) operations on a view with no INSTEAD OF triggers defined? (Choose three).
Answer
  • Views cannot be used to query rows from an underlying table if the table has a PRIMARY KEY and the PRIMARY KEY columns are not referenced in the defining query of the view.
  • The WITH CHECK clause has no effect when deleting rows from the underlying table through the view.
  • Delete statements can always be done on a table through a view.
  • Views cannot be used to add or modify rows in an underlying table if the defining query of the view contains the DISTINCT keyword.
  • Views cannot be used to add rows to an underlying table if the table has columns with NOT NULL constraints lacking default values which are not referenced in the defining query of the view.
  • Insert statements can always be done on a table through a view.

Question 121

Question
Which three statements are true about indexes and their administration in an Oracle database? (Choose three).
Answer
  • An index can be created as part of a CREATE TABLE statement.
  • If a query filters on an indexed column, then it will always be used during execution of the query.
  • A descending index is a type of function-based index.
  • A DROP INDEX statement always prevents updates to the table during the drop operation.
  • A UNIQUE and non-unique index can be created on the same table column.
  • An INVINSIBLE INDEX is not maintained when Data Manipulation Language (DML) is performed on its underlying table.

Question 122

Question
Which three actions are ways to apply the principle of least privilege? (Choose three).
Answer
  • Setting the O7_DICTIONARY_ACCESSIBILITY parameter to true.
  • Setting the REMOTE_OS_AUTHENT parameter to true.
  • Revoking execute privilege on UTL_SMTP, UTL_TCP, UTL_HTTP, and UTL_FILE from the SYSTEM user,
  • Enabling Unified Auditing.
  • Using Access Control Lists (ACLs).
  • Revoking execute privilege on UTL_SMTP, UTL_TCP, UTL_HTTP, and UTL_FILE from the public user

Question 123

Question
The STORES table has a column START_DATE of data type DATE, containing the date the row was inserted. You only want to display details of rows where START_DATE is within the last 25 months. Which WHERE clause can be used?
Answer
  • WHERE ADD_MONTHS(start_date, 25) <= SYSDATE
  • WHERE MONTHS_BETWEEN(start_date, SYSDATE) <= 25
  • WHERE MONTHS_BETWEEN(SYSDATE, start_date) <=25
  • WHERE TO_NUMBER(start date - SYSDATE) <= 25

Question 124

Question
Examine the description of the BOOKS_TRANSACTIONS table: Name Null? Type ------------------------------------------------------------------------- TRANSACTION_ID NOT NULL VARCHAR2(6) TRANSACTION_TYPE VARCHAR2(3) BORROWED_DATE DATE BOOK_ID VARCHAR2(6) MEMBER_ID VARCHAR2(6) Examine this partial SQL statement: SELECT * FROM books_transactions Which two WHERE conditions give the same result? (Choose two).
Answer
  • WHERE borrowed_date = SYSDATE AND (transaction_type = 'RM' AND member_id = 'A101' OR member_id = 'A102');
  • WHERE borrowed_date = SYSDATE AND transaction_type = 'RM' OR member_id IN ('A101', 'A102');
  • WHERE borrowed_date = SYSDATE AND (transaction_type = 'RM' AND (member_id = 'A101' OR member_id = 'A102'));
  • WHERE borrowed_date = SYSDATE AND (transaction_type = 'RM' OR member_id IN ('A101', 'A102'));
  • WHERE (borrowed_date = SYSDATE AND transaction_type - 'RM') OR member_id IN ('A101', VA102');

Question 125

Question
Which two statements are true about views? (Choose two).
Answer
  • The WITH CHECK clause prevents certain rows from being updated or inserted in the underlying table through the view.
  • The WITH CHECK clause prevents certain rows from being displayed when querying the view.
  • Views can be updated without the need to re-grant privileges on the view.
  • A view must only refer to tables in its defining query.
  • Views can be indexed.

Question 126

Question
Which compression method is recommended for Direct-Path Insert operations?
Answer
  • ROW STORE COMPRESS BASIC
  • ROW STORE COMPRESS ADVANCED
  • COLUMN STORE COMPRESS ADVANCED
  • COLUMN STORE COMPRESS BASIC

Question 127

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

Question 128

Question
Examine these statements executed in a single Oracle session: CREATE TABLE product (pcode NUMBER(2), pname VARCHAR2(20)); INSERT INTO product VALUES(1,'pen'); INSERT INTO product VALUES(2,'pencil'); INSERT INTO product VALUES(3,'fountain pen'); SAVEPOINT a; UPDATE product SET pcode = 10 WHERE pcode = 1; COMMIT; DELETE FROM product WHERE pcode = 2; SAVEPOINT b; UPDATE product SET pcode = 30 WHERE pcode = 3; SAVEPOINT c; DELETE FROM product WHERE pcode = 10; ROLLBACK TO SAVEPOINT b; COMMIT; Which three statements are true? (Choose three).
Answer
  • The code for pen is 10.
  • There is no row containing fountain pen.
  • There is no row containing pen.
  • The code for fountain pen is 3.
  • The code for pen is 1.
  • There is no row containing pencil.

Question 129

Question
Examine the description of the SALES1 table: Name Null? Type ---------------------------------------------------- SALES_ID NOT NULL NUMBER STORE_ID NOT NULL NUMBER ITEMS_ID NUMBER QUANTITY NUMBER SALES_DATE DATE 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?
Answer
  • UNION ALL
  • SUBTRACT
  • MINUS
  • UNION
  • INTERSECT

Question 130

Question
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? (Choose two).
Answer
  • TO_NUMBER(PROMO_BEGIN_DATE) - 5 will return a number.
  • PROMO_BEGIN_DATE - SYSDATE will return an error.
  • PROMO_BEGIN_DATE - SYSDATE will return a number.
  • PROMO_BEGIN_DATE - 5 will return a date.
  • TO_DATE(PROMO_BEGIN_DATE * 5) will return a date.

Question 131

Question
Which two statements are true regarding indexes? (Choose two).
Answer
  • A non-unique index can be altered to be unique.
  • An update to a table can result in no updates to any of the table's indexes.
  • The RECYCLE BIN never contains indexes.
  • An update to a table can result in updates to any or all of the table's indexes.
  • A table belonging to one user cannot have an index that belongs to a different user.

Question 132

Question
Which three statements are true regarding single row subqueries? (Choose three).
Answer
  • A SQL statement may have multiple single row subquery blocks.
  • They can be used in the WHERE clause.
  • They must be placed on the left side of the comparison operator or condition.
  • They can be used in the HAVING clause.
  • They must be placed on the right side of the comparison operator or condition.
  • They must return a row to prevent errors in the SQL statement.

Question 133

Question
Which two statements are true about Oracle synonyms? (Choose two).
Answer
  • Any user can create a public synonym.
  • A synonym has an object number.
  • A synonym can be created on an object in a package.
  • All private synonym names must be unique in the database.
  • A synonym can have a synonym.

Question 134

Question
Examine this command: SQL> ALTER TABLE ORDERS SHRINK SPACE COMPACT Which two statements are true? (Choose two).
Answer
  • The SHRINK operation causes rows to be moved to empty space starting from the beginning of the ORDERS segment.
  • Queries and DML statements are allowed on ORDERS while the SHRINK is executing.
  • Dependent indexes become UNUSABLE.
  • Only queries are allowed on ORDERS while the shrink is executing.
  • The high-water mark (HWM) of ORDERS is adjusted.
  • The SHRINK operation causes rows to be moved to empty space starting toward the end of the ORDERS segment.

Question 135

Question
The sales table has columns PROD_ID and QUANTITY_SOLD of data type number. Which two queries execute successfully? (Choose two).
Answer
  • SELECT COUNT(prod_id) FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id;
  • SELECT COUNT(prod_id) FROM sales GROUP BY prod_id WHERE quantity_sold > 55000;
  • SELECT prod_id FROM sales WHERE quantity_sold > 55000 AND COUNT(*) > 10 GROUP BY COUNT(*) > 10;
  • SELECT prod_id FROM sales WHERE quantity_sold > 55000 GROUP BY proa_id HAVING COUNT(*) > 10;
  • SELECT prcd_id FROM sales WHERE quantity_sold > 55000 AND COUNT (*) > 10 GROUP BY prod_id HAVING COUNT(*) > 10;

Question 136

Question
Examine the description of the PRODUCT_DETAILS table: Name Null? Type ------------------------------------------------------------------------- PRODUCT_ID NOT NULL NUMBER(2) PRODUCT_NAME NOT NULL VARCHAR2(25) PRODUCT_PRICE NUMBER(8,2) EXPIRY_DATE DATE Which two statements are true? (Choose two).
Answer
  • PRODUCT_ID can be assigned the PRIMARY KEY constraint.
  • EXPIRY_DATE cannot be used in arithmetic expressions.
  • PRODUCT_NAME cannot contain duplicate values.
  • EXPIRY_DATE contains the SYSDATE by default if no date is assigned to it.
  • PRODUCT_PRICE can be used in an arithmetic expression even if it has no value stored in it.
  • PRODUCT_PRICE contains the value zero by default if no value is assigned to it.

Question 137

Question
Which two statements are true about INTERVAL data types? (Choose two).
Answer
  • INTERVAL DAY TO SECOND columns support fractions of seconds.
  • The YEAR field in an INTERVAL YEAR TO MONTH column must be a positive value.
  • The value in an INTERVAL DAY TO SECOND column can be copied into an INTERVAL YEAR TO MONTH column.
  • INTERVAL YEAR TO MONTH columns only support monthly intervals within a range of years.
  • INTERVAL YEAR TO MONTH columns only support monthly intervals within a single year.
  • INTERVAL YEAR TO MONTH support yearly intervals.

Question 138

Question
Examine the description of the EMPLOYEES table: Name Null? Type ---------------------------------------------------- EMP_ID NOT NULL NUMBER EMP_NAME VARCHAR2(10) DEPT_ID NUMBER(2) SALARY NUMBER(8,2) JOIN_DATE DATE NLS_DATE_FORMAT is set to DD-MON-YY. Which query requires explicit data type conversion?
Answer
  • SELECT join_date FROM employees WHERE join_date > '10-02-2018';
  • SELECT join_date + '20' FROM employees;
  • SELECT salary + '120.50' FROM employees;
  • SELECT SUBSTR(join_date, 1, 2) - 10 FROM employees;
  • SELECT join_date || ' ' || salary FROM employees;

Question 139

Question
You start your database instance in NOMOUNT state. Which two actions are performed? (Choose two).
Answer
  • SYS can access the database.
  • The consistency of the database is checked.
  • The control files are opened.
  • All required background processes are started.
  • Memory is allocated for the SGA.

Question 140

Question
Which two statements are true about the PMON background process? (Choose two).
Answer
  • It registers database services with all local and remote listeners known to the database instance.
  • It frees unused temporary segments.
  • It rolls back transactions when a process fails.
  • It records checkpoint information in the control file.
  • It frees resources held by abnormally terminated processes.

Question 141

Question
Which two statements are true about the Oracle join and ANSI join syntax? (Choose two).
Answer
  • The Oracle join syntax performs less well than the SQL:1999 compliant ANSI join syntax.
  • The Oracle join syntax lacks the ability to do outer joins.
  • The SQL:1999 compliant ANSI join syntax supports creation of a Cartesian product of two tables.
  • The Oracle join syntax supports creation of a Cartesian product of two tables.
  • The Oracle join syntax performs better than the SQL:1999 compliant ANSI join syntax.

Question 142

Question
Which two statements are true about single row functions? (Choose two).
Answer
  • CEIL : can be used for positive and negative numbers.
  • MOD : returns the remainder of a division operation.
  • CONCAT : can be used to combine any number of values.
  • FLOOR : returns the smallest integer greater than or equal to a specified number.
  • TRUNC : can be used only with NUMBER data types.

Question 143

Question
What is true about non-equijoin statement performance?
Answer
  • The BETWEEN condition used with a non-equijoin always performs better than when using the >= and <= conditions.
  • The BETWEEN condition used with a non-equijoin sometimes performs better than using the >= and <= conditions.
  • The Oracle join syntax performs better than the SQL:1999 compliant ANSI join syntax.
  • The Oracle join syntax performs less well than the SQL:1999 compliant ANSI join syntax.
  • The join syntax used makes no difference to performance.

Question 144

Question
Examine the description of the CUSTOMERS table: Name Null? Type ---------------------------------------------------- CUST_ID NOT NULL VARCHAR2(2) CUST_LAST_NAME VARCHAR2(30) CITY VARCHAR2(10) CUST_CREDIT_LIMIT NUMBER(6,2) 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? (Choose two).
Answer
  • WHERE (UPPER(cust_last_name) LIKE 'A%' OR UPPER(cust_last_name) LIKE 'B%') AND ROUND(cust_credit_limit) < 1000;
  • WHERE (INITCAP(cust_last_name) LIKE 'A%' OR INITCAP(cust_last_name) LIKE 'B%') AND cust_credit_limit < 1000;
  • WHERE UPPER(cust_last_name) IN ('A%', 'B%') AND cust_credit_limit < 1000;
  • WHERE (UPPER(cust_last_name) LIKE INITCAP('A') OR UPPER(cust_last_name) LIKE INITCAP('B')) AND ROUND(cust_credit_limit) < ROUND(1000);
  • WHERE UPPER(cust_last_name) BETWEEN UPPER('A%' AND 'B%') AND ROUND(cust_credit_limit) < 1000;

Question 145

Question
Which two statements are true about substitution variables? (Choose two).
Answer
  • A substitution variable can be used with any clause in a SELECT statement.
  • A substitution variable used to prompt for a column name must be enclosed in double quotation marks.
  • A substitution variable used to prompt for a column name must be enclosed in single quotation marks.
  • A substitution variable prefixed with & always prompts only once for a value in a session.
  • A substitution variable can be used only in a SELECT statement.
  • A substitution variable prefixed with && prompts only once for a value in a session unless it is set to undefined in the session.

Question 146

Question
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?
Answer
  • SELECT REPLACE(SUBSTR(cust_last_name, -3), 'An', 'O') FROM customers;
  • SELECT REPLACE(TRIM(TRAILING 'son' FROM cust_last_name), 'An', 'O') FROM customers;
  • SELECT INITCAP(REPLACE(TRIM('son' FROM cust_last_name), 'An', 'O')) FROM customers;
  • SELECT REPLACE(REPLACE(cust_last_name, 'son', ''), 'An', 'O') FROM customers;

Question 147

Question
Which two statements are true about GLOBAL TEMPORARY TABLES? (Choose two).
Answer
  • GLOBAL TEMPORARY TABLE space allocation occurs at session start.
  • GLOBAL TEMPORARY TABLE rows inserted by a session are available to any other session whose user has been granted select on the table.
  • A TRUNCATE command issued in a session causes all news in a GLOBAL TEMPORARY TABLE for the issuing session to be deleted.
  • A GLOBAL TEMPORARY TABLE 's definition is available to multiple sessions.
  • A DELETE command on a GLOBAL TEMPORARY TABLE cannot be rolled back.

Question 148

Question
Which three statements are true about Resumable Space Allocation in Oracle databases? (Choose three).
Answer
  • A user's session may be suspended and resumed multiple times.
  • The AFTER SUSPEND event trigger can itself be suspended due to space conditions.
  • All sessions must have the same timeout value when waiting for resumable space allocations.
  • Resumable space allocation is only possible with locally managed tablespaces.
  • A user's session may be suspended even if the user has the UNLTMTTED TABLESPACE system privilege.
  • Resumable space allocation may be enabled for some sessions and not others.

Question 149

Question
Examine the description of the PRODUCT_INFORMATION table: Name Null? Type -------------------------------------------------------------------- PROD_ID NOT NULL NUMBER(2) PROD_NAME VARCHAR2(10) LIST_PRICE NUMBER(6,2) Which query retrieves the number of products with a null list price?
Answer
  • SELECT COUNT(list_price) FROM product_information WHERE list_price IS NULL;
  • SELECT COUNT(NVL(list_price, 0)) FROM product_information WHERE list_price IS NULL;
  • SELECT COUNT(DISTINCT list price) FROM product_information WHERE list_price IS NULL;
  • SELECT COUNT(list_price) FROM product_information WHERE list_price = NULL;

Question 150

Question
Examine the description of the CUSTOMERS table: Name Null? Type -------------------------------------------------------------------------------- CUSTINO NOT NULL NUMBER(3) CUSTNAME NOT NULL VARCHAR2(25) CUSTADDRESS VARCHAR2(35) CUST_CREDIT_LIMIT NUMBER(5) CUSTINO is the PRIMARY KEY You must determine if any customers' details have been entered more than once using a different CUSTINO, by listing all duplicate names. Which two methods can you use to get the required result? (Choose two).
Answer
  • Subquery
  • Self join
  • LEFT OUTER JOIN with self join
  • RIGHT OUTER JOIN with self join
  • FULL OUTER JOIN with self join

Question 151

Question
Which two statements are true about undo segments and the use of undo by transactions in an Oracle database instance? (Choose two).
Answer
  • Undo segments can be stored in the SYSAUX tablespace.
  • Undo segments can wrap around to the first extent when a transaction fills the last extend of the undo segment.
  • A single transaction may use multiple undo segments simultaneously.
  • Undo segments can extend when a transaction fills the last extent of the undo segment.
  • Undo segments can be stored in the SYSTEM tablespace.

Question 152

Question
DATADIR1 and DATATDIR2 are database directory objects. Examine this command: [oracle@host01 ~] expdp system/oracle \ > FULL=y \ > DUMPFILE=datadir1:full$U.dmp,datadir2:full2$U.dmp > FILESIZE=2G \ > PARALLEL=4 \ > LOGFILE=datadir1:/expfull.log \ > JOB_NAME=expfull Which two statements are true about the expdp operation? (Choose two).
Answer
  • It fails if the total size of the dump file is more than 2GB.
  • It starts only when four worker processes are available.
  • It creates a master table to store details of the export operation.
  • It creates dump files for the entire database.
  • It creates dump files only for objects in the SYSTEM schema.

Question 153

Question
Which two statements are true about Enterprise Manager Database Express? (Choose two).
Answer
  • It is available only when the database is open.
  • It can be used to perform database recovery when the database is opened.
  • The same port number can be used for Database Express configurations for databases on different hosts.
  • It can be used to switch a database into ARCHIVELOGMODE.
  • The same port number can be used for multiple Database Express configurations for multiple databases on the same host.
  • It can be used to perform database recovery when the database is mounted

Question 154

Question
Examine these SQL statements which execute successfully: CREATE TABLE emp (emg_no NUMBER (2) CONSTRAINT emp_emp_no_pk PRIMARY KEY, ename VARCHAR2 (15), salary NUMBER (8,2), mgr_no NUMBER (2)); ALTER TABLE emp ADD CONSTRAINT emp_mgr_fk FOREIGN KEY (mgr_no) REFERENCES emp (emp_no) ON DELETE SET NULL; ALTER TABLE emp DISABLE CONSTRAINT emp_emp_no_pk CASCADE; ALTER TABLE emp ENABLE CONSTRAINT emp_emp_no_prk; Which two statements are true after execution? (Choose two).
Answer
  • The primary key constraint will be enabled and IMMEDIATE.
  • The primary key constraint will be enabled and DEFERRED.
  • The foreign key constraint will be enabled and DEFERRED.
  • The foreign key constraint will be disabled.
  • The foreign key constraint will be enabled and IMMEDIATE.

Question 155

Question
Which two statements are true about the ORDER BY clause? (Choose two).
Answer
  • Only columns that are specified in the SELECT list can be used in the ORDER BY clause.
  • Numeric values are displayed in descending order if they have decimal positions.
  • NULLS are not included in the sort operation.
  • Column aliases can be used in the ORDER BY clause.
  • In a character sort, the values are case-sensitive.

Question 156

Question
Examine this query: SELECT employee_id, first_name, salary FROM employees WHERE hire_date > '&1'; Which two methods should you use to prevent prompting for a hire date value when this query is executed? (Choose two).
Answer
  • Store the query in a script and pass the substitution value to the script when executing it.
  • Execute the SET verify off command before executing the query.
  • Use the undefine command before executing the query.
  • Execute the SET VERIFY ON command before executing the query.
  • Replace '&1' with '&&1' in the query.
  • Use the define command before executing the query.

Question 157

Question
You issued this command: DROP TABLE hr.employees; Which three statements are true? (Choose three).
Answer
  • All indexes defined on HR.EMPLOYEES are dropped.
  • Synonyms for HR.EMPLOYEES are dropped.
  • The HR.EMPLOYEES table may be moved to the recycle bin.
  • Sequences used to populate columns in the HR.EMPLOYEES table are dropped.
  • All constraints defined on HR.EMPLOYEES are dropped.
  • Views referencing HR.EMPLOYEES are dropped.

Question 158

Question
Examine the data in the CUST_NAME column of the CUSTOMERS table: CUST_NAME ========== Renske Ladwing Jason Mallin Samuel McCain Allan McEwen Irene Mikkilineni Julia Nayer You want to display the CUST_NAME values where the last name starts with Mc or MC. Which two WHERE clauses give the required result? (Choose two).
Answer
  • WHERE UPPER (SUBSTR (cust_name, INSTR (cust_name, ' ') + 1)) LIKE UPPER ('MC%')
  • WHERE SUBSTR(cust_name, INSTR(cust_name, ' ') + 1 ) LIKE 'Mc%' OR 'MC%'
  • WHERE SUBSTR(cust_name, INSTR(cust_name, ' ') +1) LIKE 'Mc%'
  • WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name, ' ') +1)) LIKE 'Mc%'
  • WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name, ' ') +1)) IN (MC%', 'Mc%)
Show full summary Hide full summary

Similar

Diapositivas de Topología de Redes
lisi_98
Elementos que conforman a google chrome
juan carlos hernandez morales
FLAT FILE VS RELATIONAL DATABASE
rosiejones
Construcción de software
CRHISTIAN SUAREZ
Sistema de Gestor de Base de Datos MongoDB
Edwin Herlop
administración en el siglo XXI
ARa Cabrera Escalante
TRABAJO DE TOPOLOGÍA DE REDES
lisi_98
Arquitecturas de Sistemas Distribuidos
Edisson Reinozo
OCR gcse computer science
Jodie Awthinre