0% found this document useful (0 votes)
220 views36 pages

Oracle Certkey 1z0-082 v2021-04-27 by Lucas 58q

Uploaded by

emansaleh1306
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
220 views36 pages

Oracle Certkey 1z0-082 v2021-04-27 by Lucas 58q

Uploaded by

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

1z0-082.

exam

Number: 1z0-082
Passing Score: 800
Time Limit: 120 min
File Version: 1

1z0-082

Oracle Database Administration I

https://www.gratisexam.com/

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
Exam A

QUESTION 1
Evaluate these commands which execute successfully:

https://www.gratisexam.com/

Which two statements are true about the ORD_ITEMS table and the ORD_SEQ sequence? (Choose two.)

A. If sequence ORD_SEQ is dropped then the default value for column ORD_NO will be NULL for rows inserted into ORD_ITEMS
B. Any user inserting rows into table ORD_ITEMS must have been granted access to sequence ORD_SEQ
C. 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
D. Sequence ORD_SEQ cycles back to 1 after every 5000 numbers and can cycle 20 times

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
E. Sequence ORD_SEQ is guaranteed not to generate duplicate numbers

Correct Answer: BE
Section: (none)
Explanation

Explanation/Reference:

QUESTION 2
Which three instance situations are possible with the Oracle Database server without multi-tenant? (Choose three.)

A. two or more instances on separate servers all associated with one database
B. one instance on one server associated with one database
C. one instance on one server associated with two or more databases on the same server
D. one instance on one server not associated with any database
E. one instance on one server associated with two or more databases on separate servers

Correct Answer: CDE


Section: (none)
Explanation

Explanation/Reference:

QUESTION 3
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.)

A. Column positions must be used in the ORDER BY clause


B. Only column names from the first SELECT statement in the compound query are recognized
C. 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
D. Each SELECT statement in the compound query must have its own ORDER BY clause
E. Each SELECT statement in the compound query can have its own ORDER BY clause

Correct Answer: BE
Section: (none)
Explanation

Explanation/Reference:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
QUESTION 4
Which four account management capabilities can be configured using Oracle profiles? (Choose four.)

A. the number of hours for which an account is locked after the configured number of login attempts has been reached
B. the number of days for which an account may be inactive before it is locked
C. the maximum amount of CPU time allowed for a user’s sessions before their account is locked
D. the ability to prevent a password from ever being reused
E. the number of password changes required within a period of time before a password can be reused
F. the number of days for which an account is locked after the configured number of login attempts has been reached
G. the maximum number of sessions permitted for a user before the account is locked

Correct Answer: ADEF


Section: (none)
Explanation

Explanation/Reference:

QUESTION 5
Which three statements are true about single-row functions? (Choose three.)

A. They can be used only in the WHERE clause of a SELECT statement


B. The argument can be a column name, variable, literal or an expression
C. The data type returned can be different from the data type of the argument
D. They can be nested to any level
E. They can accept only one argument
F. They return a single result row per table

Correct Answer: BCD


Section: (none)
Explanation

Explanation/Reference:

QUESTION 6
You want to use table compression suitable for OLTP that will:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
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?

A. COLUMN STORE COMPRESS FOR QUERY LOW


B. ROW STORE COMPRESS BASIC
C. COLUMN STORE COMPRESS FOR ARCHIVE LOW
D. COLUMN STORE COMPRESS FOR ARCHIVE HIGH
E. ROW STORE COMPRESS ADVANCED

Correct Answer: E
Section: (none)
Explanation

Explanation/Reference:
Reference: https://www.oracle.com/technetwork/database/options/compression/advanced-compression-wp-12c-1896128.pdf

QUESTION 7
Which two statements are true about space-saving features in an Oracle Database? (Choose two.)

A. Private Temporary Tables (PTTS) store metadata in memory only


B. An index created with the UNUSABLE attribute has no segment
C. If they exist for a session, Private Temporary Tables (PTTs) are always dropped at the next COMMIT OR ROLLBACK statement
D. An index that is altered to be UNUSABLE will retain its segment
E. A table that is truncated will always have its segment removed

Correct Answer: BC
Section: (none)
Explanation

Explanation/Reference:

QUESTION 8
Which two statements are true about the PMON background process? (Choose two.)

A. It registers database services with all local and remote listeners known to the database instance
B. It frees resources held by abnormally terminated processes

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
C. It records checkpoint information in the control file
D. It frees unused temporary segments
E. It kills sessions that exceed idle time

Correct Answer: AB
Section: (none)
Explanation

Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14220/process.htm

QUESTION 9
In which three situations does a new transaction always start? (Choose three.)

A. when issuing a SELECT FOR UPDATE statement after a CREATE TABLE AS SELECT statement was issued in the same session
B. when issuing a TRUNCATE statement after a SELECT statement was issued in the same session
C. when issuing a CREATE TABLE statement after a SELECT statement was issued in the same session
D. when issuing the first Data Manipulation Language (DML) statement after a COMMIT OR ROLLBACK statement was issued in the same session
E. when issuing a CREATE INDEX statement after a CREATE TABLE statement completed successfully in the same session
F. when issuing a DML statement after a DML statement failed in the same session

Correct Answer: ADF


Section: (none)
Explanation

Explanation/Reference:

QUESTION 10
Examine the description of the SALES1 table:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
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?

A. INTERSECT
B. UNION ALL
C. UNION
D. SUBTRACT
E. MINUS

Correct Answer: E
Section: (none)
Explanation

Explanation/Reference:

QUESTION 11
Your database instance is started with a PFILE.

Examine these parameters:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
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?

A. The value is changed only in the PFILE and takes effect at the next instance startup
B. The value is changed for the current instance and in the PFILE
C. It fails because the SCOPE clause is missing
D. Change is applied to the current instance, but does not persist after instance restart

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:
Reference: https://docs.oracle.com/database/121/SQLRF/statements_2017.htm#SQLRF00902

QUESTION 12
Which three Oracle database space management features will work with both Dictionary and Locally managed tablespaces? (Choose three.)

A. Oracle Managed Files (OMF)


B. Online table segment shrink
C. Online index segment shrink
D. Automatic data file extension (AUTOEXTEND)
E. Capacity planning growth reports based on historical data in the Automatic Workload Repository (AWR)

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
Correct Answer: ADE
Section: (none)
Explanation

Explanation/Reference:

QUESTION 13
You execute this command:

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.)

A. You can no longer monitor it


B. You can reattach to it and monitor it
C. It is paused and can be resumed
D. It continues to run in the background
E. It terminates

Correct Answer: AE
Section: (none)
Explanation

Explanation/Reference:
Reference: https://blog.oracle48.nl/killing-and-resuming-datapump-expdp-and-impdp-jobs/

QUESTION 14
In one of your databases, you create a user, HR, and then execute this command:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
GRANT CREATE SESSION TO hr WITH ADMIN OPTION;

Which four actions can HR perform? (Choose four.)

A. Revoke the CREATE SESSION privilege from other users


B. Revoke the CREATE SESSION privilege from user HR
C. Log in to the database instance
D. Grant the CREATE SESSION privilege with ADMIN OPTION to other users
E. Execute DDL statements in the HR schema
F. Execute DML statements in the HR schema

Correct Answer: ABCD


Section: (none)
Explanation

Explanation/Reference:

QUESTION 15
Which two statements are true about the WHERE and HAVING clauses in a SELECT statement? (Choose two.)

A. Aggregating functions and columns used in HAVING clauses must be specified in the SELECT list of a query
B. WHERE and HAVING clauses can be used in the same statement only if applied to different table columns
C. The HAVING clause can be used with aggregating functions in subqueries
D. The WHERE clause can be used to exclude rows before dividing them into groups
E. The WHERE clause can be used to exclude rows after dividing them into groups

Correct Answer: CD
Section: (none)
Explanation

Explanation/Reference:

QUESTION 16
Which two statements are true about UNDO and REDO? (Choose two.)

A. The generation of UNDO generates REDO

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
B. DML modifies Oracle database objects and only generates UNDO
C. The generation of REDO generates UNDO
D. DML modifies Oracle database objects and only generates REDO
E. DML modifies Oracle database objects and generates UNDO and REDO

Correct Answer: AC
Section: (none)
Explanation

Explanation/Reference:

QUESTION 17
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?

A. as SCOTT in DALLAS_DB
B. as SCOTT in BOSTON_DB
C. as SCOTT in BOSTON_DB and SYS in DALLAS_DB
D. as SYS in both the databases
E. as SCOTT in both the databases

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 18
Which three statements are true about the DESCRIBE command? (Choose three.)

A. It displays the PRIMARY KEY constraint for any column or columns that have that constraint

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
B. It can be used from SQL Developer
C. It displays the NOT NULL constraint for any columns that have that constraint
D. It can be used to display the structure of an existing view
E. It displays all constraints that are defined for each column
F. It can be used only from SQL*Plus

Correct Answer: CDF


Section: (none)
Explanation

Explanation/Reference:

QUESTION 19
Examine the description of the CUSTOMERS table:

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?

A. 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;
B. SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT
FROM customers
WHERE cust_income_level != NULL
AND cust_credit_level !=NULL;
C. SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
FROM customers
WHERE cust_income_level <> NULL
AND due_amount <> NULL;
D. SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT
FROM customers
WHERE cust_income_level != NULL
AND due_amount != NULL;
E. 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;

Correct Answer: E
Section: (none)
Explanation

Explanation/Reference:

QUESTION 20
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.)

A. CONCAT (qty_sold, invoice_date) : requires explicit conversion


B. invoice_date = ’15-march-2019’ : uses implicit conversion
C. invoie_date > ’01-02-2019’ : uses implicit conversion
D. qty_sold BETWEEN ‘101’ AND ’110’ : uses implicit conversion
E. qty_sold = ‘0554982’ uses implicit conversion

Correct Answer: BD
Section: (none)
Explanation

Explanation/Reference:

QUESTION 21

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
Which three are types of segments in an Oracle Database? (Choose three.)

A. undo
B. index
C. stored procedures
D. sequences
E. tables
F. clusters

Correct Answer: BEF


Section: (none)
Explanation

Explanation/Reference:
Reference: http://www.adp-gmbh.ch/ora/concepts/segments.html

QUESTION 22
Which two statements are true about the results of using the INTERSECT operator in compound queries? (Choose two.)

A. Column names in each SELECT in the compound query can be different


B. The number of columns in each SELECT in the compound query can be different
C. Reversing the order of the intersected tables can sometimes affect the output
D. INTERSECT returns rows common to both sides of the compound query
E. INTERSECT ignores NULLs

Correct Answer: AE
Section: (none)
Explanation

Explanation/Reference:

QUESTION 23
Which two statements are true about single row functions? (Choose two.)

A. MOD : returns the quotient of a division operation


B. FLOOR : returns the smallest integer greater than or equal to a specified number
C. TRUNC : can be used with NUMBER and DATE values
D. CONCAT : can be used to combine any number of values

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
E. CEIL : can be used for positive and negative numbers

Correct Answer: AC
Section: (none)
Explanation

Explanation/Reference:
Reference: https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/Single-Row-Functions.html#GUID-B93F789D-B486-49FF-B0CD-0C6181C5D85C

QUESTION 24
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?

A. SELECT emp_id, ADD_MONTHS(hire_date, 6), NEXT_DAY(‘MONDAY’) FROM employees;


B. SELECT emp_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), ‘MONDAY’) FROM employees;
C. SELECT emp_id, NEXT_DAY(MONTHS_BETWEEN(hire_date, SYSDATE), 6) FROM employees;
D. SELECT emp_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), 1) FROM employees;

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 25
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);

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
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.)

A. Add a data file to DATA


B. Drop other U1 objects in DATA
C. Increase U1’s quota sufficiently in DATA
D. Set DEFERRED_SEGMENT_CREATION to TRUE
E. Grant UNLIMITED TABLESPACE to U1
F. Set AUTOEXTEND ON for data files in DATA

Correct Answer: BCE


Section: (none)
Explanation

Explanation/Reference:

QUESTION 26
Which three statements are true about the Oracle Data Dictionary? (Choose three.)

A. Data dictionary views are created by joins of dictionary base tables and DBA-defined tables
B. The data dictionary is created and maintained by the database administrator
C. Views with the same name but different prefixes, such as CDB, DBA, ALL and USER, reference the same base tables from the data dictionary
D. Base tables can be queried directly
E. It is owned by the SYSTEM user
F. Usernames of all users including database administrators are stored in the data dictionary

Correct Answer: CDF


Section: (none)
Explanation

Explanation/Reference:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
QUESTION 27
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?

A. It must be the value of the SERVICE_NAMES parameter on the client side


B. It must resolve to a valid connect descriptor in the server’s tnsnames.ora file
C. It must resolve to a valid connect descriptor in the client’s tnsnames.ora file
D. It must be the name of the database to whose instance HR wishes to connect
E. It must be the name of the server running the database to whose instance HR wishes to connect

Correct Answer: E
Section: (none)
Explanation

Explanation/Reference:

QUESTION 28
Which two statements are true about views used for viewing tablespace and datafile information? (Choose two.)

A. Tablespace free space can be viewed in V$TABLESPACE


B. V$TABLESPACE displays information that is contained in the controlfile about tablespaces
C. V$TABLESPACE displays information about tablespaces contained in the data dictionary
D. Tablespace free space can be viewed in DBA_TABLESPACES
E. 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

Correct Answer: BE
Section: (none)
Explanation

Explanation/Reference:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
QUESTION 29
Examine the description of the PROMOTIONS table:

You want to display the unique promotion costs in each promotion category.

Which two queries can be used? (Choose two.)

A. SELECT promo_cost, promo_category FROM promotions ORDER BY by 1;


B. SELECT DISTINCT promo_cost || ’ in ‘ || DISTINCT promo_category FROM promotions ORDER BY 1;
C. SELECT DISTINCT promo_category || ‘ has ‘ || promo_cost AS COSTS FROM promotions ORDER BY 1;
D. SELECT promo_category, DISTINCT promo_cost FROM promotions ORDER BY 2;
E. SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;

Correct Answer: DE
Section: (none)
Explanation

Explanation/Reference:

QUESTION 30
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.

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
What will happen when the next update is attempted by any transaction?

A. It succeeds and the generated undo is stored in SYSTEM.


B. It fails and returns the error message “ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS1'”.
C. It succeeds and the least recently written undo block of UNDOTBS1 is overwritten by the generated undo.
D. It succeeds and the generated undo is stored in SYSAUX.
E. It succeeds and the least recently read undo block of UNDOTBS1 is overwritten by the generated undo.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 31
Which two statements are true about the rules of precedence for operators? (Choose two.)

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

Correct Answer: CE
Section: (none)
Explanation

Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14200/operators001.htm

QUESTION 32
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:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
What must you do so that KING is authenticated by the OS when connecting to the database instance?

A. Set OS_AUTHENT_PREFIX to OPS$


B. Have the OS administrator add KING to the OSDBA group
C. Grant DBA to KING
D. Unset REMOTE_LOGIN_PASSWORDFILE
E. Alter user KING to be IDENTIFIED EXTERNALLY

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 33
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:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
Exhibit 1.

Exhibit 2.

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
What will be the result?

A. It gives an error because the ALL keyword is not valid


B. It gives an error because the GROUP BY clause is not valid
C. It executes successfully but does not give the required result
D. It executes successfully and gives the required result

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:

QUESTION 34
Which three statements are true about GLOBAL TEMPORARY TABLES? (Choose three.)

A. A TRUNCATE command issued in a session causes all rows in a GLOBAL TEMPORARY TABLE for the issuing session to be deleted.
B. GLOBAL TEMPORARY TABLE rows inserted by a session are available to any other session whose user has been granted select on the table.
C. GLOBAL TEMPORARY TABLE space allocation occurs at session start.
D. Any GLOBAL TEMPORARY TABLE rows existing at session termination will be deleted.
E. A GLOBAL TEMPORARY TABLE’S definition is available to multiple sessions.

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
F. A DELETE command on a GLOBAL TEMPORARY TABLE cannot be rolled back.

Correct Answer: ADE


Section: (none)
Explanation

Explanation/Reference:

QUESTION 35
Which two statements are true about trace files produced by the Oracle Database server? (Choose two.)

A. They can be written by server processes


B. Trace files are written to the Fast Recovery Area (FRA)
C. They can be written by background processes
D. All trace files contain error information that require contacting Oracle Support
E. Trace file names are based on the database name concatenated with a sequential number

Correct Answer: AC
Section: (none)
Explanation

Explanation/Reference:
Reference: https://gerardnico.com/db/oracle/trace_file

QUESTION 36
You need to calculate the number of days from 1st January 2019 until today.

Dates are stored in the default format of DD-MON-RR.

Which two queries give the required output? (Choose two.)

A. SELECT TO_CHAR(SYSDATE, ‘DD-MON-YYYY’) – ’01-JAN-2019’ FROM DUAL;


B. SELECT ROUND(SYSDATE – ’01-JAN-2019’) FROM DUAL;
C. SELECT ROUND(SYSDATE – TO_DATE(‘01/JANUARY/2019’)) FROM DUAL;
D. SELECT TO_DATE(SYSDATE, ‘DD/MONTH/YYYY’) – ‘01/JANUARY/2019’ FROM DUAL;
E. SELECT SYSDATE – TO_DATE(’01-JANUARY-2019’) FROM DUAL;

Correct Answer: CE

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
Section: (none)
Explanation

Explanation/Reference:

QUESTION 37
Which two statements are true regarding the UNION and UNION ALL operators? (Choose two.)

A. Duplicates are eliminated automatically by the UNION ALL operator


B. The number of columns selected in each SELECT statement must be identical
C. The names of columns selected in each SELECT statement must be identical
D. The output is sorted by the UNION ALL operator
E. NULLS are not ignored during duplicate checking

Correct Answer: BE
Section: (none)
Explanation

Explanation/Reference:

QUESTION 38
Which two statements are true about the Automatic Diagnostic Repository (ADR)? (Choose two.)

A. The ADR base defaults to $ORACLE_HOME/rdbms/admin if


neither DIAGNOSTIC_DEST nor ORACLE_BASE is set
B. The ADR base defaults to $ORACLE_HOME/dbs if the DIAGNOSTIC_DEST parameter and the ORACLE_BASE environment variable are not set
C. It supports diagnostics for Automatic Storage Management (ASM)
D. It supports diagnostics for Oracle Clusterware
E. It is held inside an Oracle database schema

Correct Answer: AE
Section: (none)
Explanation

Explanation/Reference:
Reference: https://docs.oracle.com/cd/E11882_01/install.112/e27508/admin.htm

QUESTION 39
https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
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.)

A. analysis of all privileges used by all users including administrative users in the database
B. analysis of all privileges used by all users but excluding administrative users in the database
C. analysis of privileges that a user has on their own schema objects that they did not use
D. analysis of privileges that a user has on their own schema objects that they did use
E. analysis of privileges granted directly to a role that are then used by a user who has been granted that role
F. analysis of privileges granted indirectly to a role that are then used by a user who has been granted that role

Correct Answer: ACF


Section: (none)
Explanation

Explanation/Reference:
Reference: https://docs.oracle.com/database/121/ARPLS/d_priv_prof.htm#ARPLS74328

QUESTION 40
Which three statements are true about undo segments and the use of undo by transactions in an Oracle database instance? (Choose three.)

A. An undo segment may be used by multiple transactions simultaneously


B. Undo segments can wrap around to the first extent when a transaction fills the last extend of the undo segment
C. Undo segments have a minimum of three extents
D. Undo segments can extend when a transaction fills the last extent of the undo segment
E. A single transaction may use multiple undo segments simultaneously
F. Undo segments must be stored in a BIGFILE tablespace
G. Undo segments must be stored in a SMALLFILE tablespace

Correct Answer: ADG


Section: (none)
Explanation

Explanation/Reference:

QUESTION 41

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
Which two statements are true about Enterprise Manager Database Express? (Choose two.)

A. It is available only when the database is open


B. It can be used to perform database recovery
C. The same port number can be used for Database Express configurations for databases on different hosts
D. It can be used to switch a database into ARCHIVELOGMODE
E. The same port number can be used for multiple Database Express configurations for multiple databases on the same host

Correct Answer: DE
Section: (none)
Explanation

Explanation/Reference:
Reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/admqs/getting-started-with-database-administration.html#GUID-EB851101-07BE-4038-
BB9D-06E01CC7F5D5

QUESTION 42
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:

Which two statements are true? (Choose two.)

A. Employee 100 will have SALARY set to the same value as the SALARY of employee 200
B. Employee 200 will have JOB_ID set to the same value as the JOB_ID of employee 100
C. Employee 200 will have SALARY set to the same value as the SALARY of employee 100

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
D. Employee 100 will have JOB_ID set to the same value as the JOB_ID of employee 200
E. Employees 100 and 200 will have the same JOB_ID as before the update command
F. Employees 100 and 200 will have the same SALARY as before the update command

Correct Answer: AB
Section: (none)
Explanation

Explanation/Reference:

QUESTION 43
Which two are true about a SQL statement using SET operators such as UNION? (Choose two.)

A. 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.
B. The number, but not names, of columns must be identical for all SELECT statements in the query.
C. The data type of each column returned by the second query must exactly match the data type of the corresponding column returned by the first query.
D. The names and number of columns must be identical for all SELECT statements in the query.
E. 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.

Correct Answer: AC
Section: (none)
Explanation

Explanation/Reference:

QUESTION 44
Which three statements are true about time zones, date data types, and timestamp data types in an Oracle database? (Choose three.)

A. The CURRENT_TIMESTAMP function returns data without time zone information


B. A TIMESTAMP WITH LOCAL TIMEZONE data type column is stored in the database using the time zone of the session that inserted the row
C. A TIMESTAMP data type column contains information about year, month, and day
D. The DBTIMEZONE function can return an offset from Universal Coordinated Time (UTC)
E. The SESSIONTIMEZONE function can return an offset from Universal Coordinated Time (UTC)

Correct Answer: ADE


Section: (none)
Explanation

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
Explanation/Reference:

QUESTION 45
Which three statements are true about inner and outer joins? (Choose three.)

A. A full outer join returns matched and unmatched rows


B. An inner join returns matched rows
C. Outer joins can only be used between two tables per query
D. A full outer join must use Oracle syntax
E. Outer joins can be used when there are multiple join conditions on two tables
F. A left or right outer join returns only unmatched rows

Correct Answer: ABE


Section: (none)
Explanation

Explanation/Reference:

QUESTION 46
Examine this description of the TRANSACTIONS table:

Which two SQL statements execute successfully? (Choose two.)

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

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
E. SELECT customer_id AS ‘CUSTOMER-ID’, transaction_date AS DATE, amount + 100 ‘DUES AMOUNT’ FROM transactions;

Correct Answer: BD
Section: (none)
Explanation

Explanation/Reference:

QUESTION 47
The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type NUMBER.

Which two queries execute successfully? (Choose two.)

A. SELECT NVL(cust_credit_limit * .15, ‘Not Available’) FROM customers;


B. SELECT NVL2(cust_credit_limit * .15, ‘Not Available’) FROM customers;
C. SELECT NVL(TO_CHAR(cust_credit_limit * .15), ‘Not Available’) FROM customers;
D. SELECT TO_CHAR(NVL(cust_credit_limit * .15, ‘Not Available’)) FROM customers;
E. SELECT NVL2(cust_credit_limit, TO_CHAR(cust_credit_limit * .15), ‘Not Available’) FROM customers;

Correct Answer: CE
Section: (none)
Explanation

Explanation/Reference:

QUESTION 48
Which statement is true about aggregate functions?

A. Aggregate functions can be nested to any number of levels


B. The AVG function implicitly converts NULLS to zero
C. Aggregate functions can be used in any clause of a SELECT statement
D. The MAX and MIN functions can be used on columns with character data types

Correct Answer: A
Section: (none)
Explanation

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
Explanation/Reference:

QUESTION 49
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.)

A. The online redo logs are opened


B. The online data files are opened
C. The alert log records the execution details
D. The Oracle background processes are started
E. The initialization parameter file is read
F. The control file is read

Correct Answer: DF
Section: (none)
Explanation

Explanation/Reference:

QUESTION 50
Which two are true about shrinking a segment online? (Choose two.)

A. It is not possible to shrink either indexes or Index Organized Tables (IOTs)


B. It always eliminates all migrated rows if any exist in the table
C. To shrink a table it must have a PRIMARY KEY constraint
D. To shrink a table it must have a UNIQUE KEY constraint
E. To shrink a table it must have row movement enabled
F. It must be in a tablespace that uses Automatic Segment Space Management (ASSM)

Correct Answer: CE
Section: (none)
Explanation

Explanation/Reference:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_3001.htm

QUESTION 51
Examine these commands:

Which two statements are true about the sqlldr execution? (Choose two.)

A. It overwrites data in EMP with data in EMP.DAT


B. It uses the database buffer cache to load data
C. It generates a log that contains control file entries, which can be used with normal SQL*Loader operations
D. It generates a sql script that it uses to load data from EMP.DAT to EMP
E. It appends data from EMP.DAT to EMP

Correct Answer: BD
Section: (none)
Explanation

Explanation/Reference:

QUESTION 52

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
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?

A. The command succeeds and HR will be connected to the orcl and abc.sql databases
B. The command succeeds and HR will be connected to the orcl database instance, and the abc.sql script will be executed
C. The command fails because the script must refer to the full path name
D. The command fails and reports an error because @ is used twice

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:

QUESTION 53
Which three statements are true regarding indexes? (Choose three.)

A. A UNIQUE index can be altered to be non-unique


B. A SELECT statement can access one or more indices without accessing any tables
C. A table belonging to one user can have an index that belongs to a different user
D. An update to a table can result in updates to any or all of the table’s indexes
E. When a table is dropped and is moved to the RECYCLE BIN, all indexes built on that table are permanently dropped
F. An update to a table can result in no updates to any of the table’s indexes

Correct Answer: ADE


Section: (none)
Explanation

Explanation/Reference:

QUESTION 54
Which three statements are true about Oracle synonyms? (Choose three.)

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
A. A synonym cannot be created for a PL/SQL package
B. A synonym can be available to all users
C. A SEQUENCE can have a synonym
D. A synonym created by one user can refer to an object belonging to another user
E. Any user can drop a PUBLIC synonym

Correct Answer: BCD


Section: (none)
Explanation

Explanation/Reference:
Reference: https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_7001.htm

QUESTION 55
View the Exhibit and examine the structure of the PRODUCTS table.

Which two tasks require subqueries? (Choose two.)

A. Display the number of products whose PROD_LIST_PRICE is more than the average PROD_LIST_PRICE
B. Display suppliers whose PROD_LIST_PRICE is less than 1000
C. Display products whose PROD_MIN_PRICE is more than the average PROD_LIST_PRICE of all products, and whose status is orderable

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
D. Display the total number of products supplied by supplier 102 which have a product status of obsolete
E. Display the minimum PROD_LIST_PRICE for each product status

Correct Answer: AC
Section: (none)
Explanation

Explanation/Reference:

QUESTION 56
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:

Which three statements must be true so that the SALES user can create tables in SALES_Q1? (Choose three.)

A. The sales user must have a quota on the TEMP tablespace


B. 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
C. The sales user must have been granted the CREATE SESSION privilege
D. The sales user must have their quota on the users tablespace removed
E. 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
F. The sales user must have been granted the CREATE TABLE privilege

Correct Answer: BDF


Section: (none)
Explanation

Explanation/Reference:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
QUESTION 57
Which three statements are true about table data storage in an Oracle Database? (Choose three.)

A. Data block headers contain their own Data Block Address (DBA)
B. A table row piece can be chained across several database blocks
C. Multiple row pieces from the same row may be stored in different database blocks
D. Multiple row pieces from the same row may be stored in the same block
E. Data block free space is always contiguous in the middle of the block
F. Index block free space is always contiguous in the middle of the block

Correct Answer: BCE


Section: (none)
Explanation

Explanation/Reference:
Reference: https://books.google.com.pk/books?id=lNtVjrmbzckC&pg=PA267&lpg=PA267&dq=Multiple+row+pieces+from+the+same+row+may+be+stored+in
+different+database
+blocks&source=bl&ots=lEIhFe2Q52&sig=ACfU3U1TETJPy194pARxfIJ5ROaQdySCMQ&hl=en&sa=X&ved=2ahUKEwivveLa97_mAhWOzaQKHahYAVEQ6AEwAn
oECAoQAQ#v=onepage&q=Multiple%20row%20pieces%20from%20the%20same%20row%20may%20be%20stored%20in%20different%20database%
20blocks&f=false

QUESTION 58
Examine the description of the BOOKS table:

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;

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2
DELETE FROM books;
ROLLBACK TO SAVEPOINT a;
ROLLBACK;

Which two statements are true? (Choose two.)

A. The second ROLLBACK command does nothing


B. The second ROLLBACK command replays the delete
C. The first ROLLBACK command restores the 101 rows that were deleted, leaving the inserted row still to be committed
D. The second ROLLBACK command undoes the insert
E. The first ROLLBACK command restores the 101 rows that were deleted and commits the inserted row

Correct Answer: DE
Section: (none)
Explanation

Explanation/Reference:

https://www.gratisexam.com/
885CB989129A5F974833949052CFB2F2

You might also like