option
Questions
ayuda
daypo
search.php

ERASED TEST, YOU MAY BE INTERESTED ON Test 082

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
Test 082

Description:
Test 082 Nhu Dinh Hoa

Author:
AVATAR
Nhu Dinh Hoa
Other tests from this author

Creation Date: 31/10/2024

Category: Others

Number of questions: 144
Share the Test:
New CommentNuevo Comentario
No comments about this test.
Content:
Which two statements are true about the Oracle Data Dictionary? It is owned by the sys user Data dictionary base tables can be queried directly. It is owned by the system user Data dictionary views are always created with queries that join two or more base tables All data dictionary view joins base tables to dynamic performance views.
Which two statements are true about views used for viewing tablespace and datafile information? (Choose two.) 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.
Which three statements are true about table data storage in an Oracle Database? (Choose three.) 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.
Which two statements are true about segment types in an Oracle Database? Table segments always have two or more extents. Temporary segments are only stored in a temporary tablespace. Undo segments are only stored in an undo tablespace Cluster segments may contain data from multiple tables. Index segments always have two or more extents.
Which three Oracle database space management features will work with both Dictionary and Locally managed tablespaces? (Choose three.) 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).
Examine the description of the EMPLOYEES table:Which query is valid? (A). 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;.
Which three statements are true about connection strings and service names used to connect to an Oracle database instance? A single database instance can support connections for multiple service names. A service name is created by a listener. A single connection string can refer to multiple database instances. A connection string including a service name must be defined in the cnsnames.ora file. A connection string must include the SID of a database Instance. Different connection strings in the same tnsnames.ora file can contain the same service name, host and port parameters.
Which three statements are true regarding single row subqueries? They must be placed on the right side of the comparison operator or condition They must be placed on the left side of the comparison operator or condition They can be used in the where clause. A SQL statement may have multiple single row subquery blocks. They must return a row to prevent errors in the SQL statement. They can be used in the having.
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.) 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.
Examine this command and some partial output: Why does the DB01.abc.com service show unknown status? 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.
Examine this command: Which two statements are true? Compressed objects in SALES01.DBF will be uncompressed In SALES02.DBF after the move DML may be performed on tables with one or more extents in this data file during the execution of this command It overwrites any existing file with the name SALES02.DBF.dbf in /u02 by default The "to" clause containing the new file name must be specified even if Oracle Managed Files (OMF) is used Tables with one or more extents in this data file may be queried during the execution of this command.
Which is the default column or columns for sorting output from compound queries using SET operators such as intersect In a SQL statement? the first column in the first select of the compound query the first varchab2 column in the first select of the compound query 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.
Which two statements are true about the SET VERIFY ON command? (Choose two.) 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 &&.
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? 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.
Which two statements are true regarding a SAVEPOINT? (Choose two.) 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.
Which two statements are true about the configuration and use of UNDO_RETENTION with GURANTEED RETENTION? (Choose two.) 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. .
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? 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.
Which four statements are true regarding primary and foreign key constraints and the effect they can have on table data? (Choose four.) 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.
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? SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNTFROM customersWHERE cust_income_level IS NOT NULLAND due_amount IS NOT NULL; SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNTFROM customersWHERE cust_income_level != NULLAND cust_credit_level !=NULL; SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNTFROM customersWHERE cust_income_level <> NULLAND due_amount <> NULL; SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNTFROM customersWHERE cust_income_level != NULLAND due_amount != NULL; SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNTFROM customersWHERE cust_income_level IS NOT NULLAND cust_credit_limit IS NOT NULL;.
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.) 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.
You have been tasked to create a table for a banking application. One of the columns must meet three requirements: Be stored in a format supporting date arithmetic without using conversion functions Store a loan period of up to 10 years Be used for calculating interest for the number of days the loan remains unpaid Which data type should you use? INTERVAL YEAR TO MONTH INTERVAL DAY TO SECOND TIMESTAMP WITH LOCAL TIMEZONE TIMESTAMP TIMESTAMP WITH TIMEZONE.
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.) 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.
Which two statements are true about the PMON background process? (Choose two.) 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.
Which two tasks can you perform using DBCA for databases? (Choose two.) 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.
Which two statements are true regarding the UNION and UNION ALL operators? (Choose two.) 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.
Which three statements are true about GLOBAL TEMPORARY TABLES? (Choose three.) 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.
Examine this description of the books table containing 100 rows: Now examine this sequence of statements Issued In a new session; Examine this description of the books table containing 100 rows: Which three statements are true? The second rollback command restores the row that was inserted. The first rollback command leaves the table's 100 original rows locked. The second rollback command rolls back the rollback to savepoint a command. The first rollback command leaves the inserted row locked. The first RollBack command restores the row that was inserted. The second rollback command restores the 100 rows that were in the table originally. The first rollback command restores the 100 rows that were in the table originally.
Which three statements are true about inner and outer joins? (Choose three.) 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.
Which three statements are true about external tables in Oracle 18c and later releases? (Choose three.) 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.
Which three statements are true about a self join? (Choose three.) 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.
Which three statements are true about the Automatic Diagnostic Repository (ADR)? It Is held Inside an Oracle database schema. The ADR base is specified In the diagnostic_dest database parameter. It is only used for Oracle Database diagnostic information. It is a file-based repository held outside any database. It can be used for problem diagnosis of a database when that database's instance is down.
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.) 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.
Which three statements are true about advanced connection options supported by Oracle Net for connection to Oracle Database instances? (Choose three.) 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.
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? in the undo tablespace in the SYSAUX tablespace in the SGA in the PGA in the temporary tablespace.
Which two statements are true about single row functions? (Choose two.) 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.
An Oracle database session has an uncommitted transaction in progress which updated 5000 rows in a table. Which three situations does the transaction complete thereby committing the updates? when a DBA issues a successful SHUTDOWN TRANSACTIONAL statement and the user then issues a COMMIT when a CREATE INDEX statement is executed successfully in the same session when a COMMIT statement is issued by the same user from another session in the same database instance when the session logs out successfully when a DBA issues a successful SHUTDOWN IMMEDIATE statement and the user then issues a COMMIT when a CREATE TABLE AS SELECT statement is executed unsuccessfully in the same session.
Which three statements are true regarding indexes? (Choose three.) 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.
Which three statements are true about Oracle synonyms? (Choose three.) 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.
Which three statements are true about single-row functions? (Choose three.) 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.
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.) 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.
Which two statements are true? SALES1 has not NULL constraints on any selected columns which had those constraints in the sales table. SALES1 has primary key and unique constraints on any selected columns which had those constraints in the sales table. SALES1 is created with 55,000 rows. SALES1 is created with no rows. SALES1 is created with 1 row.
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? INTERSECT UNION ALL UNION SUBTRACT MINUS.
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.) WHERE (borrowed_date = SYSDATE AND transaction_type = 'RM*) OR member_id IN ('A101','A102'); WHERE borrowed_date = SYSDATE AND {transaction_type = 'RM* AND (raeraber_id = 'A101' OR member_id = 'A102)); WHERE borrowed_date = SYSDATE AND (transaction_ype = 'RM' AND .-neraber_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', 'A102');.
Which three statements are true about data block storage in an Oracle Database? A block header contains a row directory pointing to all rows in the block. An index block can contain row data. Row data is stored starting at the end of the block. A data block header is of a fixed length. A table block must always contain row data.
You currently have an active transaction in your session and have been granted select access to vstransaction. Executing: SELECT xid, status FROM v$transaction; in your session returns: XID STATUS -------------------- ------- 0A0007000A070000 ACTIVE In which three situations will re-executing this query still return a row but with a different XID, indicating a new transaction has started? (Choose three.) after successfully executing a commit or rollback followed by a select statement after successfully executing a create table as select statement followed by a select for update statement after successfully executing a commit or rollback followed by a DML statement after successfully executing a create table statement followed by a create index statement after successfully executing a DML statement following a failed DML statement after successfully executing a truncate statement followed by a DML statement.
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? WHERE UPPER(cust_last_name) IN (‘AX’, ‘B%’) AND cust_credit_limit < 1000; WHERE (UPPER(cust_last_name) LIKE ‘A%’ OR UPPER(cust_last_name) LIKE ‘B%’) AND ROUND(cust_credit_limit) < 1000; WHERE UPPER(cust_last_name) BETWEEN UPPER(‘A%’ AND ‘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) LIKE INITCAP(‘A’) OR UPPER(cust_last_name) LIKE INITCAP(‘B’)) AND ROUND(cust_credit_limit) < ROUND(1000);.
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.) 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.
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 Which two SQL statements execute successfully? (Choose two.) 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;.
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.) 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.
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? 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.
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? in the SPFILE, SPFILE, and memory in the SPFILE and in memory only In the SPFILE in the SPFILE and SPFILEc only in memory.
Which two statements are true regarding Oracle database space management within blocks managed by Automatic Segment Space Management (ASSM)? (Choose two.) 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.
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.) 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.
Which two statements are true about Enterprise Manager Database Express? (Choose two.) 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.
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? to_numberipromo_begin_date) - s will return a number. PROMO_ BEGIN_DATE - sysdate will return a number. PROMO_ BEGIN_DATE - sysdate will return an error. PROMO_ BEGIN_DATE - 5 will return a date. TO_date(PROMO_ BEGIN_DATE * 5| will return a date.
Which two statements are true about the results of using the INTERSECT operator in compound queries? (Choose two.) 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.
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? 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.
Which two statements are true about the rules of precedence for operators? (Choose two.) 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.
Which two statements are true about Enterprise Manager (EM) Express? 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.
Which statement is true about aggregate functions? 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 type.
Which three statements are true about the Oracle Data Dictionary? (Choose three.) 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 USER, 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.
Examine this command: ALTER DATABASE MOVE DATAFILE '\u01/sales1.dbf' TO '\u01/sales01.dbf' REUSE; Which two statements are true? (Choose two.) 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 locationThe file is renamed and stored in the same location.
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.) 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;.
Which three statements are true about dropping and unused columns in an Oracle database? (Choose three.) 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.
Which three activities are recorded in the database alert log? (Choose three.) Data Definition Language (DDL) statements non-default database parameters block corruption errors deadlock errors session logins and logouts.
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.) d3_32k_cache_size should be set to a value greater than db_cache_size db_32k_cache_size must be set to a value that can be accommodated in the SGA db_32r_cache_si2e must be less than db_ca=he_size. db_cache_s:ze must be set to a size that is smaller than db_32k_cache_size The /u02 file system must have at least lOOg space for the datafile The operating system must use a 32k block size.
While one of your databases was in mount state, the datafiles were renamed because they had been moved to a new file system. The database was then opened. Which two statements are true? DBA_DATA_FILES displays the original name for the data files V$DATAFILE displays the new names for the data files DBA_DATA _FILES displays both the new name and the old name for the data files DBA_DATA_FILES displays the new name for the data files. DBA_DATA_FILES must be resynchronized manually with the control file an order to have it display the new file names.
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? 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.
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? SELECT join_date FROM employees WHERE join_date > '10-02-2018'; SELECT join_date I I ' ' II salary FROM employees; SELECT SUBSTR<join_date, 1, 2) - 10 FROM employees; SELECT join_date + '20' FROM employees; SELECT salary * '120.50' FROM employees;.
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? WHERE MON'THS_BETWEEN (SYSDATE, start_date) <= 25 WHERE ADD_MONTHS<start_date, 25) <= SYSDATE WHERE TO_XUMBER(start_date - SYSDATE) <= 25 WHERE MON'THS_BETWEEN (start_date, SYSDATE) <= 25.
Which three statements are true about sequences in a single instance Oracle database? Sequences can always have gaps. A sequence can Issue duplicate values. A sequence's unallocated cached values are lost if the instance shuts down. Two or more tables cannot have keys generated from the same sequence. A sequence can only be dropped by a DBA. A sequence number that was allocated can be rolled back if a transaction fails.
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.) 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.
Which two statements are true about substitution variables? A substitution variable prefixed with & always prompts only once for a value in a session. A substitution variable prefixed with && prompts only once for a value in a session unless it is set to undefined in the session A substitution variable can be used only in a select statement. A substitution variable used to prompt for a column name must be enclosed in single quotation marks. 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.
In which three situations does a new transaction always start? (Choose three.) 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.
Which two statements are true about Oracle synonyms? A synonym has an object number. A synonym can be created on an object in a package. A synonym can have a synonym. All private synonym names must be unique in the database. Any user can create a PUBLIC synonym.
Which three instance situations are possible with the Oracle Database server without multitenant? (Choose three.) 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.
Examine the description of the PRODUCT_DETAILS table: Which two statements are true? (Choose two.) NAME NULL TYPE ---------------- ----------- ---------------- PRODUCT_ID NOT NULL NUMBER(2) PRODUCT_NAME NOT NULL VARCHAR2(25) PRODUCT_PRICE NOT NULL NUMBER(8,2) EXPIRY_DATE NULL DATE PRODUCT_ID can be assigned the PRIMARY KEY constraint. PRODUCT _price contains the value zero by default if no value is assigned to it PRODUCT _price contains the value zero by default if no value is assigned to it EXPIRY_ DATE contains the sysdate by default if no date is assigned to it. PRODUCT_NAKE cannot contain duplicate values. EXPIRY_ DATE cannot be used in arithmetic expressions.
Examine these commands: Which two statements are true about the sqlldr execution? (Choose two.) [oracle@host01 ~]$ sqlplus ul/oracle SQL> SELECT * FROM emp; ENO ENAME DN ------ -------- -------- 1 Alan 2 2 Ben 2 SQL> exit [oracle@host01 ~]$ cat emp.dat 3,Cur1,4 4, Bob, 4 [oracle@host01 ~]$ sqlldr ul/oracle TABLE=emp 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.
Which three functions are performed by dispatchers in a shared server configuration? (Choose three.) 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.
Which three statements are true about the Oracle join and ANSI join syntax? (Choose three.) 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.
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))); 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.
Examine the partial query: Table COSTS Name Null? Type PROD_ID NOT NULL NUMBER TIME_ID NOT NULL DATE PROMO_ID NOT NULL NUMBER CHANNEL_ID NOT NULL NUMBER UNIT_COST NOT NULL NUMBER(10,2) UNIT_PRICE NOT NULL NUMBER(10,2) SELECT city, last__name 1NAME 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? ORDER BY 1, LNAME DESC ORDER BY 1, 2 WHERE city LIKE *%AN%* WHERE city = =%AN%' WHERE city IN (*%AN%') ORDER BY last_narae DESC, city ASC.
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.) ORDER BY "Last Name" ORDER BY 2, 1 ORDER BY 2, cust_id ORDER BY CUST_NO ORDER BY "CUST_NO".
View the Exhibit and examine the structure of the PRODUCTS table. Which two tasks require subqueries? (Choose two.) 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.
Which compression method is recommended for Direct-Path Insert operations? COLUMN STORE COMPRESS BASIC COLUMN STORE COMPRESS ADVANCED RON STORE COMPRESS BASIC ROW STORE COMPRESS ADVANCED.
Which two statements are true about UNDO and REDO? (Choose two.) 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.
Which three statements are true about the naming methods and their features supported by Oracle database used to resolve connection information? Local naming can be used if Connect-Time Failover Is required. A client can connect to an Oracle database instance even If no client side network admin has been configured. Directory Naming requires setting the TNS_ADMIN environment variable on the client side. Local Naming requires setting the TNS_ADMIN environment variable on the client side. Directory Naming can be used if Connect-Time Failover is required. Easy Connect supports TCP/IP and SSL.
Which three are types of segments in an Oracle Database? (Choose three.) undo index stored procedures sequences tables clusters.
You execute this query: SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr') What is the result? 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.
Which two statements are true about User Authentication in an Oracle Database? Operating System authentication may be used for system-privileged administrative users. REKOTE_LOGIN_PASSMOREFiLE must be set to exclusive to permit password changes for systemprivileged administrative users. Password authentication must be used for system-privileged administrative users. Password File authentication must be used for system-privileged administrative users. Password File authentication is supported for any type of database user.
Which four account management capabilities can be configured using Oracle profiles? (Choose four.) 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.
Which two statements are true about undo and undo tablespaces? There can be only one undo tablespace created in a database. An instance will crash if the active undo tablespace is lost. An undo tablespace may be owned by only one instance. undo segments are owned by SYSTEM. undo segments are owned by SYSBACKUP.
Examine this command: SQL> ALTER TABLE ORDERS SHRINK SPACE COMPACT Which two statements are true? The high-water mark (HWM) of orders is adjusted. Only queries are allowed on ORDERS while the shrink is executing. Queries and DML statements are allowed on ORDERS while the shrink is executing. The shrink operation causes rows to be moved to empty space starting from the beginning of the orders segment. Dependent indexes become UNUSABLE. The shrink operation causes rows to be moved to empty space starting toward the end of the orders segment.
Which three files are used by conventional path SQL*Loader when the TABLE option is not specified? (Choose three.) dump files control files password files bad files input files.
Which three statements are true about Deferred Segment Creation in Oracle databases? It Is supported for Index Organized Tables (IOTs) contained in locally managed tablespaces. Sessions may dynamically switch back and forth from deferred to immediate segment creation. It Is the default behavior for tables and indexes. It is supported for SYS-owned tables contained in locally managed tablespaces. Indexes inherit the deferred or immediate segment creation attribute from their parent table.
You want to use table compression suitable for OLTP that will: Compress rows for all DML statements on that table Minimize the overheads associated with compression Which compression option is best suited for this? 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.
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.) 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.
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.) 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.
Which statement is true about the INTERSECT operator used in compound queries? 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.
You start your database instance in NOMOUNT state. Which two actions are performed? The control files are opened. The consistency of the database is checked. All required background processes are started. SYS can access the database. Memory is allocated for the SG1.
Your database instance is started with a PFILE. Examine these parameters: Bảng 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? 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.
In the spfile of a single instance database, LOCAL_LISTENER is set to LISTENER_1. The TNSNAMES.ORA file in $ORACLE_HOME/network/admin in the database home contains: LISTENER_1 = (ADDRESS = (PROTOCOL = TCP) (HOST = host1.abc.com) (PORT = 1521) ) Which statement is true? 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.
You execute this SQL statement: sql INSERT INTO sales VALUES ( 23, 2300, SYSDATE, (SELECT channel_id FROM channels WHERE channel_desc = 'Direct Sales'), 12, 1, 500); Which three statements are true? (Choose three.) The statement will fall if a row already exists in the sales table for product 23. The sales table has five foreign keys. A product can have a different unit price at different times. A customer can exist in many countries. The statement will execute successfully and a new row will be inserted into the sales table. The statement will fail because a subquery may not be contained in a values clause.
In one of your databases, you create a user, HR, and then execute this command: GRANT CREATE SESSION TO hr WITH ADMIN OPTION; Which three actions can HR perform? (Choose three.) 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.
Which three statements are true about the tools used to configure Oracle Net Services? (Choose three.) 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.
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.) 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.
Which three statements are true concerning logical and physical database structures? (Choose three.) 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.
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? SELECT &&col1, &&col2FROM &tableWHERE &&condition = &&cond; SELECT &col1, &col2FROM &&tableWHERE &condition; SELECT &col1, &col2FROM "&table"WHERE &condition; SELECT '&&col1', '&&col2'FROM &tableWHERE '&&condition' = '&cond'; SELECT &&col1, &&col2FROM &tableWHERE &&condition;.
Which two statements are true about the Automatic Diagnostic Repository (ADR)? (Choose two.) The ADR base defaults to $ORACLE_HOME/rdbms/admin ifneither 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.
Which two statements are true about space-saving features in an Oracle Database? (Choose 2 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.
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.) 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;.
The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type NUMBER. Which two queries execute successfully? (Choose two.) 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;.
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? 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.
Which two statements are true about the DUAL table? (Choose two.) 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.
Which two statements are true about trace files produced by the Oracle Database server? (Choose two.) 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.
The sales table has columns prod_id and quantity_sold of data type number In two queries execute successfully? SELECT prod_id FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id HAVING COUNT(-) > 10; SELECT prod_id FROM sales WHERE quantity_sold > 5S000 AND COUNT(-) > 10 GROUP BY prod_id HAVING COUNT(-) > 10; SELECT COUNT|prod_id> FROM sales WHERE quantity_sold > 55000 GROUP BY prod_id; SELECT COUNTlprod_id> FROM sales GROUP BY prod_id WHERE quantity_Sold > 55000; SELECT prod_id FROM sales WHERE quantity_scld > 55000 AND COUNT(-) > 10 GROUP BY COUNT(-) > 10;.
Which two statements are true about the SET VERIFY ON command? (Choose two.) 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 &&.
Which two actions can you perform using DBCA for an existing database? Create a template that can be used to clone the database. Change the server mode from dedicated to shared, and vice versa. Change the character set. Create an additional listener. Create nonstandard block size tablespaces.
Which three statements are true about the Automatic Diagnostic Repository (ADR)? It Is held Inside an Oracle database schema. The ADR base is specified In the diagnostic_dest database parameter. It is only used for Oracle Database diagnostic information. It is a file-based repository held outside any database. It can be used for problem diagnosis of a database when that database's instance is down.
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? 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_%';.
Which three statements are true about using SQL*Plus? It has its own commands that are separate from any SQL statements. It must be downloaded from the Oracle Technology Network (OTN). It can run scripts entered at the SQL prompt. It can run Recovery Manager (RMAN) commands. It has both command-line and graphical user interfaces (GUI). It can run scripts passed to it by a shell script.
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.) 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 cycles back to 1 after every 5000 numbers and can cycle 20 times.
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? 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;.
Which three statements are true about views in an Oracle database? (Choose three.) 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.
Which three statements are true about time zones, date data types, and timestamp data types in an Oracle database? (Choose three.) 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).
Which two queries execute successfully? SELECT NULLIF(NULL, 100) FROM DUAL; SELECT COALESCE (100, 'AM FROM DUAL; SELECT 2TOLLIF(100, 'A') FROM DUAL; SELECT NULLIF(100,100) FROM DUAL; SELECT COALESCE(100, NULL, 200) FROM DUAL;.
The customers table has a cust_last_name column of data type varchar2. The table has two rows whose "jst_last_name values are Andersen and Ausson. Which query produces output for cust_last_xame containing Oder for the first row and Aus for the second? SELECT REPLACE<TRIM<TRAILING 'son* FROM cust_last_name), 'An', *O'> FROM customers; SELECT REPLACE(SUBSTR(cust_last_name, -3), 'An', 'O') FROM customers; SELECT REPLACE(REPLACE(cust_last_name, 'son', ''), 'An', 'O'> FROM customers; SELECT INITCAP (REPLACE(TRIM('son' FROM cust_last_name), 'An', 'O*)) FROM customers;.
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/3/6 14:45:17 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.) 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.
Which three statements are true about the DESCRIBE command? (Choose three.) 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.
Which three statements are true about undo segments and the use of undo by transactions in an Oracle database instance? (Choose three.) 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.
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,Curl,4 4,Bob,4 [oracle@host01 ~]$ sqlldr u1/oracle TABLE=emp Which two statements are true about the sqlldr execution? (Choose two.) It generates a sqi script that it uses to load data from EMP.DAT TO EMP. it overwrites the data for Alan and adds data for Curl and Bob It appends data from EMP.DAT TO EMP. It overwrites all data in emp with data from emp.dat. It generates a log that contains control file entries, which can be used with normal SQL'Loader operations.
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: What must you do so that KING is authenticated by the OS when connecting to the database instance? 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.
Which two are true about a SQL statement using SET operators such as UNION? (Choose two.) 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.
Which two statements are true about Database Instances and Real Application Clusters (RAC)? A RAC database can have one Instance. A RAC database can have instances on separate servers. Two RAC databases can share their instances. A RAC database must have three or more Instances. A RAC database must have two or more instances.
Examine the description of the PRODUCT_STATUS table: The status column contains the values 'in stock' or 'out of stock' for each row. Which two queries will execute successfully? SELECT prod_id Il q"'s not available" FROM product_status where status = 'OUT OF STOCK'; SELECT prod_id II q'l's not available)' FROM product_status WHERE status = 'OUT OF STOCK'; SELECT prod_id "CURRENT AVAILABILITY" II q'<'s not available)' FROM product_status WHERE status = 'OUT OF STOCK SELECT prod_id I I q' (*s not available)' "CURRENT AVAILABILITY" FROM product_status WHERE status = 'OUT OF STOCK SELECT prod_id I I 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*;.
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; DELETE FROM books; ROLLBACK TO SAVEPOINT a; ROLLBACK; Which two statements are true? (Choose two.) 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.
Which two are true about shrinking a segment online? (Choose two.) 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).
Which two statements are true about interval data types? INTERVAL year TO month columns support yearly intervals. The value in an interval day to SECOND column can be copied into an interval year to month column. INTERVAL day to second columns support fractions of seconds. INTERVAL year to month columns only support monthly Intervals within a single year. INTERVAL year to month columns only support monthly intervals within a range of years. The year field in an interval year to month column must be a positive value.
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? WHERE order_date > TO_CHAR(ADD_MONTHS(SYSDATE, 6), 'MON DD YYYY') WHERE TO_CHAR(order_date, 'MON DD YYYY') = 'JAN 20 2019' WHERE order_date > TO_DATE<ADD_MONTHS(SYSDATE, c) , 'MON DD YYYY') WHERE order_date IN (TO_DATE ('Oct 21 2018', 'Mon DD YYYY'), TC_CHAR('Nov 21 2018', 'Mon DD YYYY')) WHERE order date > TO DATE('JUL 10 2018', *MON DD YYYY').
What is true about non-equijoin statement performance? (Choose two.) 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.
Which statement is true about database links? Private database link creation requires the same user to exist in both the local and the remote databases. A public database link can be created only by sys. A database link can be created only between two Oracle databases. 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 database link created in a database allows a connection from that database's instance to the target database's Instance, but not vice versa.
Which two statements are true about the WHERE and HAVING clauses in a SELECT statement? (Choose two.) 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.
Which three statements are true about roles? All roles granted to a user are set on by default when the user logs in, Object privileges may not be granted to roles. The SET ROLE statement can disable one or more roles for a session. Roles must be password protected. Roles may be granted to roles. The SET ROLE statement can enable one or more roles for a session.
Which two statements are true after execution? 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. The primary key constraint will be enabled and immediate.
Report abuse