Choose the best answer. Examine this configuration:

1CDB1 is a container database.

2 DEFAULT_SHARING is METADATA.

3APP_ROOT is an application root contained in CDB1.

4APP_PDB1 is an application PDB contained in APP_ROOT.

5COMPANY

欢迎免费使用小程序搜题/刷题/查看解析,提升学历,成考自考报名,论文代写、论文查重请加客服微信skr-web

Choose the best answer. Examine this configuration:

1CDB1 is a container database.

2 DEFAULT_SHARING is METADATA.

3APP_ROOT is an application root contained in CDB1.

4APP_PDB1 is an application PDB contained in APP_ROOT.

5COMPANYAPP is an application contained in APP_ROOT.

6EMP is a common table created in APP_ROOT and all its application PDBs,

Created when version 1.0 of COMPANYAPP was installed.

You execute these commands:

$ sqlplus sys/orac1e@localhost:1521/cdb1 as sysdba

SQL> ALTER SYSTEM SET DEFAULT_SHARING=DATA;

System altered.

SQL> ALTER SESSION SET CONTAINER=app_root;

Session altered.

SQL> ALTER PLUGGABLE DATABASE APPLICATION companyapp BEGIN

UPGRADE '1.0' TO '2.0';

Pluggable database altered.

SQL> ALTER TABLE emp ADD (sal NUMBER NOT NULL) ;

Table altered.

SQL> ALTER PLUGGABLE DATABASE APPLICATION companyapp END

UPGRADE TO '2.0';

Pluggable database altered.

SQL> ALTER SESSION SET CONTAINER=app_pdb1;

Session altered.

SQL> DESC emp;

Name

Null?

Type

--------------------------------------------------------------

ENO

NUMBER

ENAME

VARCHAR2 (20)

SQL> SELECT * FROM emp;

ENO

ENAME

---------------------------------

100

Alan

200

Ben

SQL> ALTER PLUGGABLE DATABASE APPLICATION companyapp SYNC;

What will be the outcome and why?

A.

SAL will be added to APP_PDB1.EMP, with 0 in columns of existing rows.

B.

SAL will be added to APP_PDB1.EMP, with NULLs in columns of existing rows.

C.

It will return an error because the SYNC operation is not allowed when

Constraints are added to common objects.

D.

It will return an error because EMP is not empty in APP_ROOT.

E.It will return an error because EMP.SAL is empty in APP_ROOT.
正确答案D
访客
邮箱
网址

通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作


  • 自动写文案
  • 自动写小说
  • 马上扫码让Ai帮你完成工作
通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作

  • 自动写论文
  • 自动写软件
  • 我不是人,但是我比人更聪明,我是强大的Ai
Top