Henderson Viscarra
Quiz von , erstellt am vor 22 Tage

Database Administration

1
0
0
Henderson Viscarra
Erstellt von Henderson Viscarra vor 22 Tage
Schließen

1z0-082

Frage 1 von 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).

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 2 von 36

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 3 von 36

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 4 von 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).

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 5 von 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?

Wähle eine der folgenden:

  • In the undo tablespace

  • In the SYSAUX tablespace

  • In the SGA

  • In the PGA

  • In the temporary tablespace

Erklärung

Frage 6 von 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?

Wähle eine der folgenden:

  • INTERVAL YEAR TO MONTH

  • INTERVAL DAY TO SECOND

  • TIMESTAMP WITH LOCAL TIMEZONE

  • TIMESTAMP

  • TIMESTAMP WITH TIMEZONE

Erklärung

Frage 7 von 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?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 8 von 36

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 9 von 36

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 10 von 36

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 11 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 12 von 36

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 13 von 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?

Wähle eine der folgenden:

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

Erklärung

Frage 14 von 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?

Wähle eine der folgenden:

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

Erklärung

Frage 15 von 36

1

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

Which two statements are true?
(Choose two).

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 16 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 17 von 36

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 18 von 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).

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 19 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 20 von 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).

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 21 von 36

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 22 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 23 von 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?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 24 von 36

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 25 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 26 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 27 von 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?

Wähle eine der folgenden:

  • INTERSECT

  • UNION ALL

  • UNION

  • SUBTRACT

  • MINUS

Erklärung

Frage 28 von 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?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 29 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 30 von 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).

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 31 von 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).

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 32 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 33 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 34 von 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?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 35 von 36

1

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

Wähle eine oder mehr der folgenden:

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

Erklärung

Frage 36 von 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?

Wähle eine der folgenden:

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

Erklärung