047 -全中文解析 1~270题

很全的047答案以及解析,快来下载吧

1Z0-047 1-50

1. You need to load information about new customers from the NEW_CUST table into the tables CUST and CUST_SPECIAL. If a new customer has a credit limit greater than 10,000, then the details have to be inserted into CUST_SPECIAL. All new customer details have to be inserted into the CUST table. Which technique should be used to load the data most efficiently? A. external table B. the MERGE command C. the multitable INSERT command D. INSERT using WITH CHECK OPTION

答案: C 分析: 本题考点是multitable INSERT 题目要求将NEW_CUST表上所有的记录插入CUST表,credit limit大于10000的记录要同时插入CUST_SPECIAL表,应该使用有条件的insert命令,sql如下:

insert all when credit_limit>=10000 into CUST_SPECIAL

when 1=1 into CUST

A. 外部表是只读的,不能进行插入操作 B. merge命令只能针对一张表进行插入或者修改操作,不能针对多张表进行插入操作 D. insert命令没有with check option选项,with check option选项是create view时使用的

2. View the Exhibit and examine the description of the CUSTOMERS table. You want to add a constraint on the CUST_FIRST_NAME column of the CUSTOMERS table so that the value inserted in the column does not have numbers. Which SQL statement would you use to accomplish the task? A. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name CHECK(REGEXP_LIKE(cust_first_name,'^A-Z')) NOVALIDATE; B. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name CHECK(REGEXP_LIKE(cust_first_name,'^[0-9]')) NOVALIDATE; C. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name CHECK(REGEXP_LIKE(cust_first_name,'[[:alpha:]]'))NOVALIDATE; D. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name CHECK(REGEXP_LIKE(cust_first_name,'[[:digit:]]'))NOVALIDATE;

答案: C 分析: 本题考点是正则表达式/REGEXP 要在表CUSTOMERS的字段CUST_FIRST_NAME建个约束,使这个字段不能包含数字 A. 匹配开头是AZ的字符串。 B. 匹配开头是0或者是9的字符串。 C. 匹配包含字母的字符串。 D. 匹配包含数字的字符串。

3. Which three tasks can be performed using regular expression support in Oracle Database 10g? (Choose three.) A. It can be used to concatenate two strings. B. It can be used to find out the total length of the string. C. It can be used for string manipulation and searching operations. D. It can be used to format the output for a column or expression having string data. E. It can be used to find and replace operations for a column or expression having string data.

答案: CDE 分析: 本题考点是正则表达式/REGEXP Oracle 10g支持正则表达式的函数主要有REGEXP_LIKE、REGEXP_INSTR、REGEXP_SUBSTR、REGEXP_REPLACE,用来寻找或替换匹配的字符串 A. 连接两个字符串用符号||,正则表达式没有这个功能。 B. 字符串的长度是用length()函数,正则表达式没有这个功能。

4. View the Exhibit and examine the structure of the EMP table which is not partitioned and not an indexorganized table. Evaluate the following SQL statement:

ALTER TABLE emp DROP COLUMN first_name;

Which two statements are true regarding the above command? (Choose two.) A. The FIRST_NAME column would be dropped provided it does not contain any data. B. The FIRST_NAME column would be dropped provided at least one or more columns remain in the table. C. The FIRST_NAME column can be rolled back provided the SET UNUSED option is added to the above SQL statement. D. The FIRST_NAME column can be dropped even if it is part of a composite PRIMARY KEY provided the CASCADE option is used.

答案: BD 分析: 本题考点是set unused EMP表不是分区表也不是索引组织表,drop columns是物理删除,set unused是逻辑删除,两者都不可以通过rollback恢复,所有引用到该列的对象都会失败。 A. 不管列上有没有数据,删除列的命令都可以正常执行。 C. set unused的列无法访问,无法使用rollback撤销unused设置

5. Evaluate the CREATE TABLE statement:

CREATE TABLE products (product_id NUMBER(6) CONSTRAINT prod_id_pk PRIMARY KEY, product_name VARCHAR2(15));

Which statement is true regarding the PROD_ID_PK constraint? A. It would be created only if a unique index is manually created first. B. It would be created and would use an automatically created unique index. C. It would be created and would use an automatically created nonunique index. D. It would be created and remains in a disabled state because no index is specified in the command.

答案: B 分析: 本题考点是主键约束和唯一性约束自动建立索引 Oracle在创建主键约束或唯一性约束时,会自动检测该列是否创建过唯一性索引,如果有则不创建而直接使用,如果没有则自动隐式创建唯一性索引。 A. 创建主键约束不需要首先手动创建唯一性索引,Oracle会自动隐式创建唯一性索引 C. 创建主键约束时,Oracle会自动隐式创建的索引是唯一性索引 D. 创建主键约束时没有指定索引,Oracle会自动寻找唯一性索引,找不到则会自动创建唯一性索引。所有约束创建时默认都是自动生效的

6. Which two statements are true? (Choose two.) A. The USER_SYNONYMS view can provide information about private synonyms. B. The user SYSTEM owns all the base tables and useraccessible views of the data dictionary. C. All the dynamic performance views prefixed with V$ are accessible to all the database users. D. The USER_OBJECTS view can provide information about the tables and views created by the user. E. DICTIONARY is a view that contains the names of all the data dictionary views that the user can access.

答案: AE 分析: 本题考点是数据字典

047 -全中文解析 1~270题

/data dictionary B. system用户是操作系统管理员,sys才是数据库管理员,数据字典的所有基表和视图都属于sys用户。 C. v$为前缀的动态性能视图要有DBA权限才能访问。 D. USER_OBJECTS视图不仅包含用户的表、视图信息,还包括了其他对象如触发器、索引、过程等等。

Word文档免费下载Word文档免费下载:047 -全中文解析 1~270题 (共45页,当前第1页)

047 全中文解析 1~270题相关文档

最新文档

返回顶部