简单工厂:依据输入,简单工厂类控制产品线的具体产品。解释:将需求的变更分割为不同的子类,使得符合OCP。缺点:一个工厂生产不同的东西,工厂本身包含了判断逻辑,仍旧在一定程度上违反OCP。工厂方法模式:简单工厂的工厂类---->工厂接口+具体工厂的实现解释:将简单工厂方法的判断丢到不同的工厂的具体实现...
分类:
其他好文 时间:
2015-09-26 18:32:04
阅读次数:
180
32. Which CREATE TABLE statement is valid?A. CREATE TABLE ord_details (ord_no NUMBER(2) PRIMARY KEY, item_no NUMBER(3) PRIMARY KEY, ord_date DATE N...
分类:
其他好文 时间:
2015-09-26 10:32:40
阅读次数:
113
一下是Ocp考试指导中,对于oracle约束的描述:The constraint types supported by the Oracle database are as follows:UNIQUENOT NULLPRIMARY KEYFOREIGN KEYCHECKConstraints ha...
分类:
数据库 时间:
2015-09-24 12:34:08
阅读次数:
181
一直认为程序中的类有使用到封装继承多态就是面向对象设计,其实不然封装,继承,多态只是面向对象的三大特性,但是在设计程序的时候并不是说类的结构使用到了(或是体现出了)这三个特性就是面向对象,其实真正的面向对象设计是要符合下面的五大原则,面向对象的五大基本原则单一职责原则(SRP)开放封闭原则(OCP)...
分类:
其他好文 时间:
2015-09-23 23:13:49
阅读次数:
215
Your production database it functional on the SHOST1 host. You are backing up the production
database by using Recovery Manager (RMAN) with the recovery catalog. You want to replicate the
production...
分类:
其他好文 时间:
2015-09-21 19:39:42
阅读次数:
125
The environmental variable ORACLE-BASE is set. You want to check the diagnostic files created as
part of the Automatic Diagnostic Repository (ADR). View the Exhibit and note the various parameters set...
分类:
其他好文 时间:
2015-09-21 19:39:03
阅读次数:
134
Users are connected to a database instance that is using Automatic Storage Management (ASM).
The DBA executes the command as follows to shut down the ASM instance:
用户连接到一个数据库实例,使用自动存储管理(ASM)。DBA执行命令如下...
分类:
其他好文 时间:
2015-09-21 17:59:40
阅读次数:
176
View the Exhibit and examine the RMAN commands.
Which statement describes the effect of a backup retention policy on the backup of a backup set?
A.Either all the copies of a backup set are obsolete or...
分类:
其他好文 时间:
2015-09-21 17:59:29
阅读次数:
150
Your database is running in ARCHIVELOG mode. You have been taking backups of all the data files
and control files regularly.你的数据库运行在归档模式,并且定期备份了所有的数据文件和控制文件。
You are informed that some important tabl...
分类:
其他好文 时间:
2015-09-21 17:57:40
阅读次数:
152
You execute the following FLASHBACK TABLE command:
Which two statements are correct?(Choose two.)A.The EMP table that was dropped by mistake earlier is restored.B.The FLASHBACK TABLE statement is execu...
分类:
其他好文 时间:
2015-09-21 17:57:05
阅读次数:
141