# 55( 답: A,D,E,G )
Which four statements are true regarding primary and foreign key constraints and the effect they can have on table data? (Choose four.)
B. A table can have only one primary key and one foreign key --> There is no such restrictions
제한하는 걸로 느끼는 뉘앙스
# 81(답 : A, C,D 가 나의 의견)
Which three statements are true about table data storage in an Oracle Database? (Choose three.)
"Row pieces can span multiple blocks or be stored within the same block, depending on space availability and the size of the row."
(Oracle Documentation - Logical Storage Structures)
동일한 행의 여러 행 조각은 데이터 블록의 공간 가용성에 따라 동일한 블록에 저장될 수 있습니다.
A. "The header contains general block information, such as the block address and the type of segment (for example, data or index)."
B. the most granular unit of row is a single row piece. row piece can not be chained. a row can be chained by multiple row pieces + pointers. --> row piece가 체인화되는 게 아니라 row가 체인화되는 거라는 의견이 우세
D. Intra-block chaining e.g. table with more than 255 columns --> Intra-block chaining 현상이 있는듯한데 이게 19c부터는 해결이 됐다는 의견도 있다.
--ora.doc-- Oracle Database can only store 255 columns in a row piece. if you insert a row into a table that has 1000 columns, then the database creates 4 row pieces, typically chained over multiple blocks. --
# 82 (답 : C,D)
Examine the description of the BOOKS table:
100개 rows 가지고 있고 -- 100
새로운 세션에 INERT함 -- 100 + 1
SAVEPOINT a함 -- save
DELETE 데이터 다 지워버림 -- 0
SAVEPOINT a로 저장한 곳으로 rollback -- 100 + 1
ROLLBACK(전부 rollback ) -- 100개로 돌아감 -- 100
# 83( 답: A,C,E )
Which three statements are true about external tables in Oracle 18c and later releases? (Choose three.)
"The ORACLE_LOADER access driver cannot perform unloads; that is, it cannot move data from an internal table to an external table."
"The ORACLE_DATAPUMP access driver can perform both loads and unloads."
B. The ORACLE_LOADER는 unload 할 수 있는 기능이 없다. The ORACLE_PUMP써야한다.
D.As of Oracle Database 12c Release 2 (12.2.0.1), you can partition data contained in external tables, which allows you to take advantage of the same performance improvements provided when you partition tables stored in a database (for example, partition pruning).
# 84
Which three statements are true about the Oracle join and ANSI join syntax? (Choose three.)
# 85
Which two tasks can you perform using DBCA for databases? (Choose two.)
C. "Set this parameter at the time of database creation. Do not alter it afterward."
데이터베이스가 생성된 후에는 이 값을 변경할 수 없으므로, 기존 데이터베이스의 표준 블록 크기를 직접 변경하는 것은 불가능
# 86( 답: C )
You execute this query: SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd `Monday for` fmMonth rrrr') What is the result?
맞는 쿼리 문장 :
SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), 'MON'), 'dd "Monday for" fmMonth rrrr') FROM DUAL;
# 87 ( 답: B, D)
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.)
# 88( 답 : A, E, F, G 중 논란)
Which three statements are true about views in an Oracle database? (Choose three.)
A. CREATE OR REPLACE VIEW를 사용하여 뷰를 수정하면 이전에 부여된 권한이 유지
E, F "If a view is defined by a query that contains SET or DISTINCT operators, a GROUP BY clause, or a group function, then rows cannot be inserted into, updated in, or deleted from the base tables using the view."
이 말에 따르면 insert, update, delete 다 안되는 거 같은데?
E, F.
https://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_8004.htm#SQLRF01504
Notes on Updatable Views
The view must not contain any of the following constructs:
A set operatorA DISTINCT operatorAn aggregate or analytic functionA GROUP BY, ORDER BY, MODEL, CONNECT BY, or START WITH clauseA collection expression in a SELECT listA subquery in a SELECT listA subquery designated WITH READ ONLY
# 89( 답: E,F,G 그리고 A는 논란)
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.)
B.프리리스트(Freelists) : SEGMENT SPACE MANAGEMENT MANUAL을 지정했을 때 사용
C. "When adding a data file to a tablespace, you can specify its size independently of the existing data files."
추가되는 데이터 파일의 크기는 사용자가 자유롭게 설정할 수 있음
E. If you specify SEGMENT SPACE MANAGEMENT AUTO, then the tablespace is a locally managed tablespace (LMT) with segment space managed by bitmaps.
# 90 (답 : B )
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?
DEFERRED_SEGMENT_CREATION이 TRUE면 데이터가 INSERT될 때 세그먼트 생성 됨
# 91 ( 답: B, C, D )
Which three activities are recorded in the database alert log? (Choose three.)
Administering Oracle Database Classic Cloud Service
You can use DBaaS Monitor to review the alert log periodically to verify that your database system is operating normally.
docs.oracle.com
The alert log is a chronological log of messages including the following:
A. Nondefault initialization parameters used at startup
C, D. Internal errors (ORA-600), block corruption errors (ORA-1578), and deadlock errors (ORA-60)
- Administrative operations, such as STARTUP, SHUTDOWN, ARCHIVE LOG, RECOVER, and CREATE/ALTER/ DROP DATABASE/TABLESPACE
- Messages and errors relating to the functions of certain background processes, such as LGW
# 92 (답: C, E )
Which two statements are true about Enterprise Manager (EM) Express?
E. EM Express is available only when the database is open. This means that EM Express cannot be used to start up the database. --> 그래서 cannot start up a database한 게 맞지.
# 93 ( 답: A, B, C )
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.)
UNION은 첫번째 SELECT절의 컬럼으로 ORDER BY할 수 있다.
# 94 ( 답: C, D, E 중 논란)
Which two statements are true about the con guration and use of UNDO_RETENTION with GURANTEED RETENTION? (Choose two.)
D는 active undo에 관한 얘기가 아니라서 아니라는 사람이 있고
E.는 attemps가 아니기때문에..?
아직 풀리지 않음
#95 (답 : A, E)
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?
- 대부분의 집계 함수는 NULL 값을 무시합니다.
- COUNT(*)는 NULL 값을 포함하여 모든 행을 계산합니다.
- NULL 값을 포함한 연산을 원할 경우 NVL 또는 COALESCE 함수를 사용하여 처리합니다.
#96 ( 답 : B, D, E )
Which three files are used by conventional path SQL*Loader when the TABLE option is not specified? (Choose three.)
#97 (답: B, C, E)
Which three statements are true about the naming methods and their features supported by Oracle database used to resolve connection information? (Choose three.)
A. TNS_ADMIN 환경 변수는 Oracle Net 서비스 구성 파일(tnsnames.ora 등)이 위치한 디렉토리를 지정하기 위해 사용됩니다. 하지만 이 변수를 설정하지 않아도 Oracle Net은 기본 디렉토리에서 구성 파일을 찾습니다. --> TNS_ADMIN 설정은 선택 사항이지 필수가 아님.
B. Easy Connect 방법을 사용시 가능
# 98 (답: C, E)
Which two statements are true about User Authentication in an Oracle Database? (Choose two.)
E. "REMOTE_LOGIN_PASSWORDFILE specifies whether Oracle checks for a password file and how many databases can use the password file." -> Password File Authentication과 연관된 파라미터
# 99 (답 : D)
Which is the default column or columns for sorting output from compound queries using SET operators such as INTERSECT in a SQL statement?
# 100 (답: D, F)
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? (Choose two.)
# 108 (답: B, C )
The orders table has a column ORDER_DATE of data type DATE. The default display format for a date is DD-MON-RR. Which two WHERE conditions demonstrate the correct usage of conversion functions? (Choose two.)
ADD_MONTHS 함수는 날짜 데이터 유형을 필요로 하기 때문에, ADD_MONTHS 안에 문자열 리터럴인 'JAN 13 2018'을 사용하면 오류가 발생합니다. 이를 해결하려면, 문자열 리터럴을 TO_DATE를 사용하여 날짜로 변환해야 합니다.
A. ADD_MONTHS(SYSDATE, 6)는 이미 DATE 타입:
- ADD_MONTHS(SYSDATE, 6)는 DATE 데이터 타입을 반환합니다.
- 이 값을 다시 TO_DATE로 변환하려고 하면 불필요하거나 데이터 타입 불일치로 인해 오류가 발생할 수 있습니다.
D. 문자형이니까 부호가 불가 , 데이터 타입 비교는 동일한 데이터 타입이어야 해!
E. WHERE 절에서 IN은 **리스트(list)**와 함께 사용해야 하며, 괄호 안에 여러 값이 나열되어야 합니다.
D. IN 연산자와 데이터 타입 불일치 : IN 연산자는 동일한 데이터 타입을 비교해야 합니다.
***참고 예시 쿼리 ***
SELECT PARAMETER, VALUE
FROM NLS_DATABASE_PARAMETERS
WHERE PARAMETER = 'NLS_DATE_FORMAT';
SELECT hire_date FROM c##hr.employees
WHERE hire_date < TO_DATE(ADD_MONTHS(SYSDATE, 6),'MON DD YYYY'); -- 불가
SELECT hire_date
FROM c##hr.employees
WHERE hire_date < ADD_MONTHS(SYSDATE, 6);
SELECT hire_date FROM c##hr.employees
WHERE hire_date < TO_DATE('JUN 12 2012', 'MON DD YYYY'); -- 가능
SELECT hire_date FROM c##hr.employees
WHERE TO_CHAR(hire_date, 'MON DD YYYY') = 'JAN 13 2018'; -- 가능
SELECT hire_date FROM c##hr.employees
WHERE hire_date < TO_CHAR(ADD_MONTHS(SYSDATE, 6),'MON DD YYYY'); -- 불가
SELECT hire_date FROM c##hr.employees
WHERE hire_date IN (TO_DATE('JAN 13 2018','MON DD YYYY'), TO_CHAR('JUN 12 2012','MON DD YYYY'));
SELECT hire_date FROM c##hr.employees
WHERE hire_date IN TO_DATE('JAN 13 2018','MON DD YYYY'), TO_DATE('JUN 12 2012','MON DD YYYY'); --불가
SELECT hire_date
FROM c##hr.employees
WHERE hire_date IN (TO_DATE('JAN 13 2018', 'MON DD YYYY'), TO_DATE('JUN 12 2012', 'MON DD YYYY')); --가능
SELECT hire_date FROM c##hr.employees
WHERE hire_date = TO_DATE('JAN 13 2018','MON DD YYYY'); -- 가능
SELECT hire_date FROM c##hr.employees
WHERE hire_date > TO_DATE('JAN 13 2018','MON DD YYYY'); -- 가능
SELECT hire_date FROM c##hr.employees
WHERE hire_date > TO_CHAR('JAN 13 2018','MON DD YYYY'); -- 불가
SELECT hire_date FROM c##hr.employees
WHERE hire_date > TO_DATE(ADD_MONTHS('JAN 13 2018',6));
SELECT hire_date
FROM c##hr.employees
WHERE hire_date < ADD_MONTHS(TO_DATE('JAN 13 2018', 'MON DD YYYY'), 6); -- 가능
*******
# 125 (답: A, C )
Which two statements are true about views? (Choose two.)
Oracle 데이터베이스에서 일반 뷰는 실제 데이터를 저장하지 않는 논리적 구조이기 때문에, 직접적으로 인덱스를 생성할 수 없습니다.
그러나 **물리적으로 데이터를 저장하는 객체인 **머티리얼라이즈드 뷰(Materialized View)**에는 인덱스를 생성할 수 있습니다.
# 112
Which two queries execute successfully? (Choose two.)
- COALESCE 함수는 전달된 인수 중 NULL이 아닌 첫 번째 값을 반환
- NULLIF 함수는 두 인수가 같으면 NULL을 반환하고, 그렇지 않으면 첫 번째 인수를 반환
# 114 (답: B, D )
Which two are bene ts of external tables? (Choose two.)
"External tables are read-only. You can use only the SELECT statement on an external table. No DML operations (INSERT, UPDATE, DELETE, and MERGE) are allowed."
(Oracle Documentation - External Tables)
# 131 (답: B, D)
Which two statements are true regarding indexes? (Choose two.)
A. alter할 수는 없고 지웠다가 재생성을 해야해.
B. 테이블의 열 중 인덱스에 포함되지 않은 열을 업데이트하면, 인덱스는 변경되지 않습니다.
# 120 (답: B, D, E)
Which three statements are true about performing Data Manipulation Language (DML) operations on a view with no INSTEAD OF triggers de ned? (Choose three.)
B.
- WITH CHECK 절은 뷰에서 삽입(INSERT) 또는 업데이트(UPDATE) 작업 시 조건을 검증하여 허용되지 않는 데이터를 기본 테이블에 저장하지 못하도록 방지하는 역할을 합니다.
- 하지만, 삭제(DELETE) 작업에는 적용되지 않습니다. 즉, 뷰에서 삭제 작업을 수행할 때, WITH CHECK 절에 정의된 조건은 확인되지 않습니다.
E.예시
CREATE TABLE employees ( employee_id NUMBER NOT NULL, first_name VARCHAR2(50), last_name VARCHAR2(50) NOT NULL, salary NUMBER DEFAULT 5000 );
# 121( 답: A, C, E )
Which three statements are true about indexes and their administration in an Oracle database? (Choose three.)
A.
CREATE TABLE Books(
ID NUMBER PRIMARY KEY USING INDEX (CREATE INDEX idx_custom_books_id ON books (ID)),
Title VARCHAR2(100) NOT NULL,
Author VARCHAR2(100) NOT NULL,
PublishYear NUMBER NOT NULL
);
# 126( 답: A)
Which compression method is recommended for Direct-Path Insert operations?
A. Direct-Path Insert와의 관계
- Direct-Path Insert(INSERT /*+ APPEND */)를 사용하면, 압축된 상태로 데이터를 저장할 수 있음.
- 하지만 기존 데이터는 압축되지 않으며, 새로운 행만 압축됨
BASIC -> 무료, ADVANCED ->유료
# 130( 답: C, D)
In the promotions table, the PROMO_BEGIN_DATE column is of data type DATE and the default date format is DD-MON-RR. Which two statements are true about expressions using PROMO_BEGIN_DATE contained in a query? (Choose two.)
#132 (답: A, B, D)
Which three statements are true regarding single row subqueries? (Choose three.)
F. single-row subquery can return no row without raising an error SELECT ename, init, bdate FROM employees WHERE bdate > (SELECT bdate FROM employees WHERE empno = 99999);
서브쿼리가 값을 반환하지 않는 경우, SQL 문장은 에러가 발생하지 않고 대신 NULL로 평가됩니다.
# 133 (답: C, E )
Which two statements are true about Oracle synonyms? (Choose two.)
B. 객체 번호는 데이터베이스 시스템 내에서 각 객체를 고유하게 식별하기 위해 부여되는 번호입니다. 테이블, 뷰, 인덱스 등 실제 데이터를 저장하거나 처리하는 객체에 부여되는 것이 일반적입니다.
D. 동일한 스키마에서는 synonym의 이름이 서로 달라야하지만, 다른 스키마에서는 동일할 수 있다.(단, 그럴시 별칭으로 구분을 해주는 것이 좋다.)
# 134( 답: A, B)
Examine this command: SQL> ALTER TABLE ORDERS SHRINK SPACE COMPACT Which two statements are true? (Choose two.)
SHRINK 연산은 온라인으로 수행되므로, 데이터베이스 가동 중에도 실행할 수 있습니다.
B. The segment remains available for queries and DML during most of the operation, and no extra disk space need be allocated.
E. The database does not readjust the high water mark and does not release the space immediately.
# 135 ( 답: A, D )
The sales table has columns PROD_ID and QUANTITY_SOLD of data type number. Which two queries execute successfully? (Choose two.)
# 136 ( 답: A, E )
Examine the description of the PRODUCT_DETAILS table: Which two statements are true? (Choose two.)
D. Oracle 데이터베이스에서 EXPIRY_DATE 열에 기본값이 설정되지 않으면, 해당 열은 값이 지정되지 않을 때 NULL 값을 가집니다. 따라서, 기본값을 명시적으로 **SYSDATE**로 설정하지 않는 한, EXPIRY_DATE는 값이 할당되지 않을 경우 SYSDATE를 포함하지 않습니다.
an arithmetic expression : 산술 연산
E. PRODUCT_PRICE 열에 값이 저장되어 있지 않다면, 해당 열은 NULL 값을 가지게 됩니다. Oracle에서는 **산술 연산에서 피연산자 중 하나라도 NULL이면 결과는 항상 NULL**이 됩니다. 따라서, PRODUCT_PRICE에 값이 없을 때 산술 연산을 수행하면 결과는 NULL이 됩니다.
#137(답: A, F)
Which two statements are true about INTERVAL data types? (Choose two.)
#138 (답 A )
Examine the description of the EMPLOYEES table: NLS_DATE_FORMAT is set to DD-MON-YY. Which query requires explicit data type conversion?
#139 (답: D,E )
You start your database instance in NOMOUNT state. Which two actions are performed? (Choose two.)
#140 (답: C, E )
Which two statements are true about the PMON background process? (Choose two.)
#141 (답 C, D )
Which two statements are true about the Oracle join and ANSI join syntax? (Choose two.)
#142 ( 답: A, B )
Which two statements are true about single row functions? (Choose two.)
B. 모두(MOD) 나머지~
#143 ( 답: E )
What is true about non-equijoin statement performance?
E.
#144 ( 답: A, B)
Examine the description of the CUSTOMERS table: 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: Which two WHERE conditions give the required result? (Choose two.)
C. IN 연산자는 LIKE와 다르게 와일드카드(%)를 지원하지 않습니다.
# 145 ( 답: A, F)
Which two statements are true about substitution variables? (Choose two.)
A substitution variable 치환변수 : **치환 변수(substitution variable)**는 스크립트 실행 시 사용자로부터 값을 입력받아 SQL 문에 동적으로 삽입하는 데 사용됩니다. 이러한 변수는 & 또는 && 기호로 정의되며, 사용 방법에 따라 동작이 달라집니다.
&&로 시작하는 치환 변수는 **세션 변수(session variable)**로 간주되며, 한 번 값이 정의되면 해당 세션 동안 동일한 값을 유지합니다. 즉, 동일한 변수에 대해 한 번만 값을 입력받고, 이후에는 재입력을 요구하지 않습니다.
&&로 시작하는 치환 변수는 한 번 값이 정의되면, 해당 세션 동안 같은 값을 계속 사용합니다.
재입력을 방지하기 위해 사용되며, 필요할 경우 UNDEFINE 명령을 통해 값을 해제할 수 있습니다.
# 146 ( 답: D
The CUSTOMERS table has a CUST_LAST_NAME column of data type VARCHAR2. The table has two rows whose CUST_LAST_NAME values are Anderson and Ausson. Which query produces output for CUST_LAST_NAME containing Oder for the rst row and Aus for the second?
# 147 (답: C, D )
Which two statements are true about GLOBAL TEMPORARY TABLES? (Choose two.)
# 148 ( 답: A, E, F )
Which three statements are true about Resumable Space Allocation in Oracle databases? (Choose three.)
Resumable Space Allocation은 Oracle 데이터베이스에서 특정 트랜잭션이 공간 부족으로 인해 중단될 때, 해당 트랜잭션을 즉시 롤백시키는 대신 일시적으로 중단하고 나중에 공간이 확보되면 다시 재개할 수 있도록 하는 기능
- 일반적으로 AFTER SUSPEND 이벤트 트리거는 공간 부족으로 인해 중단되지 않습니다.
- 트리거 실행 중단은 트리거 로직의 문제나 데이터베이스 인스턴스의 문제로 인해 발생할 수 있습니다.
E. 사용자가 UNLIMITED TABLESPACE 권한을 가지고 있어도, 다음과 같은 조건에서는 세션이 일시 중단될 수 있습니다:
- 물리적인 디스크 공간 부족: 실제 디스크에 할당 가능한 공간이 없을 때.
- 테이블스페이스가 READ-ONLY 상태일 때
F. esumable Space Allocation은 세션별로 설정할 수 있는 기능이므로, 일부 세션에서만 활성화되고 다른 세션에서는 비활성화될 수 있습니다.
# 149( 답: B )
Examine the description of the PRODUCT_INFORMATION table: Which query retrieves the number of products with a null list price?
A. count(list_price)를 한다면 null이 아닌 값만 계산을 한다. count(*)로 해야지 null도 포함한다.
B. 치환을 하고 치환한 수를 count함
#150 ( 답: A, B )
Examine the description of the CUSTOMERS table:
You must determine if any customers' details have been entered more than once using a different CUSTINO, by listing all duplicate names. Which two methods can you use to get the required result? (Choose two.)
# 151 ( 답: B, D )
Which two statements are true about undo segments and the use of undo by transactions in an Oracle database instance? (Choose two.)
# 152 (답: C, D)
DATADIR1 and DATATDIR2 are database directory objects. Examine this command: Which two statements are true about the expdp operation? (Choose two.)
C. "For export jobs, the master table records the location of database objects within a dump file set. Export builds and maintains the master table for the duration of the job. At the end of an export job, the content of the master table is written to a file in the dump file set." --> 마스터 테이블은 기록한다 데이터베이스의 위치를 덤프 파일 셋에 있는.
# 153 ( 답: A, C )
Which two statements are true about Enterprise Manager Database Express? (Choose two.)
# 154 (답: A, D )
Examine these SQL statements which execute successfully: Which two statements are true after execution? (Choose two.)
D. ALTER TABLE emp ENABLE CONSTRAINT emp_emp_no_pk;
- 이 명령은 emp_emp_no_pk(PRIMARY KEY)를 다시 활성화합니다.
- 하지만, **emp_mgr_fk(FOREIGN KEY)**는 자동으로 활성화되지 않습니다.
- 외래 키 제약 조건을 다시 활성화하려면 별도로 명령을 실행해야 합니다.
#155 (답: D, E )
Which two statements are true about the ORDER BY clause? (Choose two.)
A. SELECT 리스트에 없는 열이라도 ORDER BY 절에서 정렬 기준으로 사용할 수 있습니다.
C.ORDER BY 절에서 NULL 값 처리 방식 (Oracle 기준)
Oracle에서 ORDER BY 절을 사용할 때 NULL 값의 정렬 순서는 기본적으로 최대값(Greatest Value)처럼 취급됩니다. 즉:
- ASC(오름차순) 정렬 시: NULL이 마지막(최하위)으로 배치됨.
- DESC(내림차순) 정렬 시: NULL이 첫 번째(최상위)로 배치됨.
그러나, NULL의 정렬 위치를 NULLS FIRST 또는 NULLS LAST로 직접 지정할 수 있음.
E. case-sensitive -> 대소문자를 구분한다는 의미
# 156 ( 답: A, F)
Examine this query: Which two methods should you use to prevent prompting for a hire date value when this query is executed? (Choose two.)
Substitution Variable : SQL 쿼리에서 값을 동적으로 변경하여 사용할 수 있도록 미리 정의해 놓은 변수
SET VERIFY OFF: 치환 변수 값의 출력을 숨깁니다.
&1: 단순 치환 변수입니다. 쿼리를 실행할 때마다 값을 입력해야 합니다.
&&1: 쿼리 실행 시 한 번만 값을 입력하면 이후 동일한 쿼리에서 재사용할 수 있는 영구적인 치환 변수입니다.
unde ne command : 정의된 치환 변수를 해제하는 명령입니다. 예를 들어, UNDEFINE &1은 &1 변수를 해제하여 더 이상 사용할 수 없도록 합니다.
A. 스크립트화하는 방법
# 157 ( 답: A, C, E )
You issued this command: DROP TABLE hr.employees; Which three statements are true? (Choose three.)
테이블 drop시, 테이블에 종속된 객체(trigger, index, constraints)는 같이 drop 됨.
# 158(답: A, D )
Examine the data in the CUST_NAME column of the CUSTOMERS table: You want to display the CUST_NAME values where the last name starts with Mc or MC. Which two WHERE clauses give the required result? (Choose two.)
B.
# 159 (답: A, D, E )
Which three statements are true about Data Manipulation Language (DML)? (Choose three.)
multiple conditions : WHERE절에 조건을 여러개 붙이는 것처럼 다중 조건을 의미
# 160 (답: A, D )
Which two statements are true about segment types in an Oracle Database? (Choose two.)
Cluster segments : 클러스터는 여러 테이블을 공통된 키를 기준으로 묶어서, 동일한 데이터 블록에 데이터를 저장하는 방식
C. "When the database instance starts, the database automatically selects the first available undo tablespace. If no undo tablespace is available, then the instance starts without an undo tablespace and stores undo records in the SYSTEM tablespace." --> SYSTEM 테이블스페이스에 저장될 수 있음
# 161 (답: A, D, E)
Which three tasks are performed by background processes in an Oracle database instance? (Choose three.)
A. DBWR
D. LGWR
E. PMON -> REGR
REGR는 Oracle 12c부터 도입되어 PMON의 일부 작업을 분담
# 162(답: A, D, F )
Which three statements are true about views in an Oracle Database? (Choose three.)
F. FORCE 옵션이 있음
- 기본적으로, 뷰는 정의 시점에 참조되는 테이블과 열이 존재해야 합니다.
- 예외적으로 CREATE FORCE VIEW를 사용하면 존재하지 않는 테이블을 참조하는 뷰를 생성할 수 있지만, 이 뷰는 테이블이 존재하지 않으면 사용할 수 없습니다.
# 163(답: A, D )
orcl.dmp contains a full export of the ORCL database. This command is executed to load data from orcl.dmp into the TESTDB database. Which two statements are true? (Choose two.)
A. EXCLUDE = index
D. TABLE_EXISTS_ACTION=replace
#164(답: B, C, D )
Which three statements are true about roles? (Choose three.)
D. 역할을 비활성화하면 세션 동안 해당 역할의 모든 권한이 제거됩니다.
# 165(답: E )
Examine this query: SELECT TRUNC(ROUND(156.00,-2),-1) FROM DUAL What is the result?
ROUND 음수: 소수점 왼쪽(정수 부분)에서 반올림.
# 166 (답: B, C, F)
Which three statements are true about the Oracle Database server during and immediately after SHUTDOWN TRANSACTIONAL? (Choose three.)
D. "The NORMAL, TRANSACTIONAL, and IMMEDIATE options all perform a clean close of the database. The ABORT option does not cleanly close the database; the database will perform instance recovery at startup."
SHUTDOWN TRANSACTIONAL은 a clean close니까 instance recovery 필요 없음.
# 167 (답: B, D, E)
Which three statements are true about Enterprise Manager Cloud Control? (Choose three.)
Oracle Enterprise Manager Cloud Control는 웹 기반 콘솔을 통해 Oracle 엔지니어드 시스템과 My Oracle Support를 포함한 다양한 Oracle 환경을 통합 관리할 수 있는 플랫폼입니다.
# 168 (답: 논란중. 볼수록 더 헷갈림 A, B, C, D, E..전부 )
Which three are bene ts of using temp UNDO when performing DML on global temporary tables? (Choose three.)
"Oracle database 12c Release 1 (12.1) introduced the concept of temporary undo, allowing the undo segments for global temporary tables to be stored in the temporary tablespace. This allows global temporary tables to be used in physical standby databases and read-only databases, as well as removing the need to create redo."
Oracle Database 12c부터 도입된 Temporary Undo 기능을 통해, 데이터베이스가 읽기 전용 모드로 열려 있어도 글로벌 임시 테이블(Global Temporary Tables)에서 DML 작업을 수행할 수 있습니다.
이 기능은 TEMP_UNDO_ENABLED 파라미터를 TRUE로 설정하여 활성화할 수 있습니다.
A. 임시 테이블스페이스는 REDO 로그를 생성하지 않으므로, DML 작업에서 생성되는 REDO 로그의 양이 크게 줄어듭니다.
"Temporary undo reduces the amount of undo and redo generated for changes made to global temporary tables because undo is stored in the temporary tablespace instead of the undo tablespace."
E. By splitting the undo stream of a transaction into two streams (temporary and permanent), a database can provide separate storage and retention model for these. This results in overall reduction in the size of undo log and redo log in the database
# 169( 답: C, D)
Examine the structure of the two tables: Which two queries execute successfully? (Choose two.)
# 170 (답: B, E )
Which two statements are true regarding non-equijoins? (Choose two.)
E.
#171(답: B, C, D )
Which three statements are true about an SPFILE? (Choose three.)
# 172 (답: A, B )
Which two statements are true about the COUNT function? (Choose two.)
# 173(답: C, D )
Which two tasks can be performed in the NOMOUNT state? (Choose two.)
# 174( 답 : B, D )
TBS1 is a permanent user-de ned tablespace. Oracle Managed Files (OMF) is not used in this database. Examine this command: DROP TABLESPACE tbsl; Which two will ensure that TBS1 is dropped and its data les are deleted from the le system? (Choose two.)
# 175( 답: A, D )
The PRODUCT_INFORMATION table has a UNIT_PRICE column of data type NUMBER (8, 2). Evaluate this SQL statement: SELECT TO_CHAR(unit_price, '$9,999') FROM product_information; Which two statements are true about the output? (Choose two.)
D. 소수의 경우, 지정한 형식 자릿수보다 길면 반올림 처리
# 176(답: A, B )
Which two statements are true about constraints? (Choose two.)
# 177(답: A, D )
Which two actions can you perform using DBCA for an existing database? (Choose two.)
D.**DBCA(Database Configuration Assistant)**를 사용하여 **데이터베이스 템플릿(template)**을 생성하면, 해당 템플릿을 사용하여 동일한 설정을 가진 새로운 데이터베이스를 클론(복제)할 수 있습니다.
"Manage Templates" 옵션을 선택한 후, "Create a database template"를 선택합니다.
# 178(답: A, C )
Which two statements are true about table data storage in an Oracle Database? (Choose two.)
'ORACLE DBMS' 카테고리의 다른 글
Shared Pool 개념 (0) | 2025.01.07 |
---|---|
SGA(System Global Area)의 개념 (0) | 2025.01.07 |
강남 아이티윌 'DBA 양성 과정' 후기 (0) | 2024.11.26 |
Data Pump(import & export) (1) | 2024.09.11 |
Time-Based Recovery(clone DB) using log miner(과정 생략) (1) | 2024.09.10 |