OCP 1Z0 052 182
2014-06-23 17:51
169 查看
182. Which two statements are true regarding a PL/SQL package body? (Choose two.)
A.It cannot be created without a package specification.
B.It cannot invoke subprograms defined in other packages.
C.It can contain only the subprograms defined in the package specification.
D.It can be changed and recompiled without making the package specification invalid.
Answer: AD
package可以调用其它package中的过程。
package body 可以定义package specification中没有声明的过程。也就私有过程,仅供内部调用。
Data security
The methods of package definition enable you to specify which variables, cursors, and procedures are public and
private. Public means that it is directly accessible to the user of a package.
Private means that it is hidden from the user of a package.
http://docs.oracle.com/cd/E11882_01/server.112/e40540/srvrside.htm#CNCPT88935
A package body can be replaced and recompiled without affecting the specification. As a result, schema objects that reference a package's constructs (always
through the specification) need not be recompiled unless the package specification is also replaced. By using packages, unnecessary recompilations can be minimized, resulting in less impact on overall database performance.
You create a package in two parts: the specification and the body. The package specification declares all public constructs of the package, whereas thebody defines
all constructs (public and private) of the package.
A.It cannot be created without a package specification.
B.It cannot invoke subprograms defined in other packages.
C.It can contain only the subprograms defined in the package specification.
D.It can be changed and recompiled without making the package specification invalid.
Answer: AD
package可以调用其它package中的过程。
package body 可以定义package specification中没有声明的过程。也就私有过程,仅供内部调用。
Data security
The methods of package definition enable you to specify which variables, cursors, and procedures are public and
private. Public means that it is directly accessible to the user of a package.
Private means that it is hidden from the user of a package.
http://docs.oracle.com/cd/E11882_01/server.112/e40540/srvrside.htm#CNCPT88935
A package body can be replaced and recompiled without affecting the specification. As a result, schema objects that reference a package's constructs (always
through the specification) need not be recompiled unless the package specification is also replaced. By using packages, unnecessary recompilations can be minimized, resulting in less impact on overall database performance.
Creation of PL/SQL Packages
You create a package in two parts: the specification and the body. The package specification declares all public constructs of the package, whereas thebody definesall constructs (public and private) of the package.
相关文章推荐
- OCP-1Z0-052-V8.02-182题
- OCP-1Z0-052-V8.02-153题
- OCP-1Z0-052-V8.02-133题
- OCP-1Z0-052-V8.02-98题
- OCP-1Z0-052-V8.02-105题
- OCP-1Z0-052-V8.02-70题
- OCP-1Z0-052-V9.02-116题
- OCP 1Z0 052 9
- OCP 1Z0 052 25
- OCP 1Z0 052 40
- OCP 1Z0 052 56
- OCP 1Z0 052 71
- OCP 1Z0 052 86
- OCP 1Z0 052 102
- OCP 1Z0 052 116
- OCP 1Z0 052 128
- OCP 1Z0 052 143
- OCP 1Z0 052 154
- OCP 1Z0 052 167
- OCP 1Z0 052 180