Henderson Viscarra
Quiz por , criado 22 dias atrás

Database Administration

1
0
0
Henderson Viscarra
Criado por Henderson Viscarra 22 dias atrás
Fechar

1z0-082

Questão 1 de 36

1

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

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 2 de 36

1

Which statement is true about the INTERSECT operator used in compound queries?

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 3 de 36

1

Which three statements are true about advanced connection options supported by Oracle Net for connection to Oracle Database instances?
(Choose three).

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 4 de 36

1

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

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 5 de 36

1

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?

Selecione uma das seguintes:

  • In the undo tablespace

  • In the SYSAUX tablespace

  • In the SGA

  • In the PGA

  • In the temporary tablespace

Explicação

Questão 6 de 36

1

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?

Selecione uma das seguintes:

  • INTERVAL YEAR TO MONTH

  • INTERVAL DAY TO SECOND

  • TIMESTAMP WITH LOCAL TIMEZONE

  • TIMESTAMP

  • TIMESTAMP WITH TIMEZONE

Explicação

Questão 7 de 36

1

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?

Selecione uma das seguintes:

  • 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

Explicação

Questão 8 de 36

1

Which three statements are true concerning logical and physical database structures?
(Choose three).

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 9 de 36

1

Which two statements are true regarding a SAVEPOINT?
(Choose two).

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 10 de 36

1

Which three functions are performed by dispatchers in a shared server configuration?
(Choose three).

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 11 de 36

1

Which two statements are true about the SET VERIFY ON command?
(Choose two).

Selecione uma ou mais das seguintes:

  • 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 &&

Explicação

Questão 12 de 36

1

Which three statements are true about a self join?
(Choose three).

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 13 de 36

1

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?

Selecione uma das seguintes:

  • 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;

Explicação

Questão 14 de 36

1

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?

Selecione uma das seguintes:

  • 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_%';

Explicação

Questão 15 de 36

1

Examine this command:
ALTER DATABASE
MOVE DATAFILE '/u01/sales1.dbf'
TO '/u01/sales01.dbf'
REUSE;

Which two statements are true?
(Choose two).

Selecione uma ou mais das seguintes:

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

Explicação

Questão 16 de 36

1

Which three statements are true about dropping and unused columns in an Oracle database? (Choose three).

Selecione uma ou mais das seguintes:

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

Explicação

Questão 17 de 36

1

Which two statements are true regarding Oracle database space management within blocks managed by Automatic Segment Space Management (ASSM)?
(Choose two).

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 18 de 36

1

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

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 19 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 20 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 21 de 36

1

Which four account management capabilities can be configured using Oracle profiles?
(Choose four).

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 22 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 23 de 36

1

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?

Selecione uma das seguintes:

  • 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

Explicação

Questão 24 de 36

1

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

Selecione uma ou mais das seguintes:

  • 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

Explicação

Questão 25 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 26 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 27 de 36

1

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?

Selecione uma das seguintes:

  • INTERSECT

  • UNION ALL

  • UNION

  • SUBTRACT

  • MINUS

Explicação

Questão 28 de 36

1

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?

Selecione uma das seguintes:

  • 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

Explicação

Questão 29 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 30 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 31 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 32 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 33 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 34 de 36

1

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?

Selecione uma das seguintes:

  • 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

Explicação

Questão 35 de 36

1

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

Selecione uma ou mais das seguintes:

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

Explicação

Questão 36 de 36

1

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?

Selecione uma das seguintes:

  • 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 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;

Explicação