单选题In your multitenant container database (CDB) containing pluggable database (PDBs), the HR user executes the following commands to create and grant privileges on a procedure: CREATE OR REPLACE PROCEDURE create_test_v (v_emp_id NUMBER, v_ename VARCHAR2,v

题目
单选题
In your multitenant container database (CDB) containing pluggable database (PDBs), the HR user executes the following commands to create and grant privileges on a procedure: CREATE OR REPLACE PROCEDURE create_test_v (v_emp_id NUMBER, v_ename VARCHAR2,v_SALARY NUMBER, v_dept_id NUMBER) BEGIN INSERT INTO hr.test VALUES (V_emp_id, V_ename, V_salary, V_dept_id); END; / GRANT EXECUTE ON CREATE_TEST TO john, jim, smith, king; How can you prevent users having the EXECUTE privilege on the CREATE_TEST procedure from inserting values into tables on which they do not have any privileges?()
A

Create the CREATE_TEST procedure with definer’s rights.

B

Grant the EXECUTE privilege to users with GRANT OPTION on the CREATE_TEST procedure.

C

Create the CREATE_TEST procedure with invoker’s rights.

D

Create the CREATE_TEST procedure as part of a package and grant users the EXECUTE privilege the package.


相似考题
更多“单选题In your multitenant container database (CDB) containing pluggable database (PDBs), the HR user executes the following commands to create and grant privileges on a procedure: CREATE OR REPLACE PROCEDURE create_test_v (v_emp_id NUMBER, v_ename VARCHAR2,v”相关问题
  • 第1题:

    The HR user creates a stand-alone procedure as follows and grants the EXECUTE privilege on the procedureto many database users: CREATE OR REPLACE PROCEDURE create_dept ( v_deptno NUMBER, v_dname VARCHAR2, v_mgrNUMBER, v_loc NUMBER)BEGIN INSERT INTO hr.departments VALUES (v_deptno, v_dname, v_mgr, v_loc); END; The users having permission to execute the procedure are able to insert records into the DEPARTMENTS tableeven though they do not have the INSERT privilege on the table. You want only those users who haveprivileges on the DEPARTMENTS table to be able to execute the procedure successfully.  What would yousuggest to the PL/SQL developers to achieve this()

    • A、Create the procedure with definer’s right.
    • B、Create the procedure with invoker’s right.
    • C、Grant the EXECUTE privilege with GRANT OPTION on the procedure to selected users.
    • D、Create the procedure as part of a PL/SQL package and grant the EXECUTE privilege on the package toselected users

    正确答案:B

  • 第2题:

    The HR user creates a stand-alone procedure as follows and grants the EXECUTE privilege on theprocedure to many database users:  CREATE OR REPLACE PROCEDURE create_dept ( v_deptno NUMBER, v_dname VARCHAR2, v_mgr NUMBER, v_loc NUMBER) BEGIN  INSERT INTO hr.departments VALUES (v_deptno, v_dname, v_mgr, v_loc); END;  The users having permission to execute the procedure are able to insert records into the  DEPARTMENTStable even though they do not have the INSERT privilege on the table. You want only those users whohave privileges on the DEPARTMENTS table to be able to execute the procedure successfully.  What would you suggest to the PL/SQL developers to achieve this()

    • A、Create the procedure with definer’s right.
    • B、Create the procedure with invoker’s right.
    • C、Grant the EXECUTE privilege with GRANT OPTION on the procedure to selected users.
    • D、Create the procedure as part of a PL/SQL package and grant the EXECUTE privilege on the package to selected users

    正确答案:B

  • 第3题:

    In your multitenant container database (CDB) containing pluggable database (PDBs), the HR user executes the following commands to create and grant privileges on a procedure: CREATE OR REPLACE PROCEDURE create_test_v (v_emp_id NUMBER, v_ename VARCHAR2,v_SALARY NUMBER, v_dept_id NUMBER) BEGIN INSERT INTO hr.test VALUES (V_emp_id, V_ename, V_salary, V_dept_id); END; / GRANT EXECUTE ON CREATE_TEST TO john, jim, smith, king; How can you prevent users having the EXECUTE privilege on the CREATE_TEST procedure from inserting values into tables on which they do not have any privileges?()

    • A、Create the CREATE_TEST procedure with definer’s rights.
    • B、Grant the EXECUTE privilege to users with GRANT OPTION on the CREATE_TEST procedure.
    • C、Create the CREATE_TEST procedure with invoker’s rights.
    • D、Create the CREATE_TEST procedure as part of a package and grant users the EXECUTE privilege the package.

    正确答案:C

  • 第4题:

    In your multitenant container database (CDB) containing pluggable database (PDBs), you granted theCREATE TABLE privilege to the common user C # # A_ADMIN in root and all PDBs. You execute thefollowing command from the root container:SQL > REVOKE create table FROM C # # A_ADMIN;What is the result?()

    • A、It executes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in root only.
    • B、It fails and reports an error because the CONTAINER=ALL clause is not used.
    • C、It excludes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in root and all PDBs.
    • D、It fails and reports an error because the CONTAINER=CURRENT clause is not used.
    • E、It executes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in all PDBs.

    正确答案:A

  • 第5题:

    Flashback is enabled for your multitenant container database (CDB), which contains two pluggable database (PDBs). A local user was accidently dropped from one of the PDBs. You want to flash back the PDB to the time before the local user was dropped. You connect to the CDB and execute the following commands: SQL > SHUTDOWN IMMEDIATE SQL > STARTUP MOUNT SQL > FLASHBACK DATABASE to TIME “TO_DATE (‘08/20/12’ , ‘MM/DD/YY’)”; Examine following commands: 1. ALTER PLUGGABLE DATABASE ALL OPEN; 2. ALTER DATABASE OPEN; 3. ALTER DATABASE OPEN RESETLOGS; Which command or commands should you execute next to allow updates to the flashback back schema?()

    • A、Only 1
    • B、Only 2
    • C、Only 3
    • D、3 and 1
    • E、1 and 2

    正确答案:C

  • 第6题:

    In your multitenant container database (CDB) with two pluggable database (PDBs). You want to create a new PDB by using SQL Developer. Which statement is true?()

    • A、The CDB must be open.
    • B、The CDB must be in the mount stage.
    • C、The CDB must be in the nomount stage.
    • D、Alt existing PDBs must be closed.

    正确答案:A

  • 第7题:

    单选题
    In your multitenant container database (CDB) containing pluggable database (PDBs), you granted theCREATE TABLE privilege to the common user C # # A_ADMIN in root and all PDBs. You execute thefollowing command from the root container:SQL > REVOKE create table FROM C # # A_ADMIN;What is the result?()
    A

    It executes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in root only.

    B

    It fails and reports an error because the CONTAINER=ALL clause is not used.

    C

    It excludes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in root and all PDBs.

    D

    It fails and reports an error because the CONTAINER=CURRENT clause is not used.

    E

    It executes successfully and the CREATE TABLE privilege is revoked from C # # A_ADMIN in all PDBs.


    正确答案: A
    解析: 暂无解析

  • 第8题:

    多选题
    Your multitenant container database (CDB) contains some pluggable databases (PDBs), you execute the following command in the root container: Which two statements are true?()
    A

    Schema objects owned by the C# # A_ADMIN common user can be shared across all PDBs.

    B

    The C # # A_ADMIN user will be able to use the TEMP_TS temporary tablespace only in root.

    C

    The command will, create a common user whose description is contained in the root and each pdb.

    D

    The schema for the common user C # # A_ADMIN can be different in each container.

    E

    The command will create a user in the root container only because the container clause is not used


    正确答案: A,D
    解析: 暂无解析

  • 第9题:

    单选题
    Flashback is enabled for your multitenant container database (CDB), which contains two pluggable database (PDBs). A local user was accidently dropped from one of the PDBs. You want to flash back the PDB to the time before the local user was dropped. You connect to the CDB and execute the following commands: SQL > SHUTDOWN IMMEDIATE SQL > STARTUP MOUNT SQL > FLASHBACK DATABASE to TIME “TO_DATE (‘08/20/12’ , ‘MM/DD/YY’)”; Examine following commands: 1. ALTER PLUGGABLE DATABASE ALL OPEN; 2. ALTER DATABASE OPEN; 3. ALTER DATABASE OPEN RESETLOGS; Which command or commands should you execute next to allow updates to the flashback back schema?()
    A

    Only 1

    B

    Only 2

    C

    Only 3

    D

    3 and 1

    E

    1 and 2


    正确答案: E
    解析: 暂无解析

  • 第10题:

    单选题
    The HR user creates a stand-alone procedure as follows and grants the EXECUTE privilege on the procedureto many database users: CREATE OR REPLACE PROCEDURE create_dept ( v_deptno NUMBER, v_dname VARCHAR2, v_mgrNUMBER, v_loc NUMBER)BEGIN INSERT INTO hr.departments VALUES (v_deptno, v_dname, v_mgr, v_loc); END; The users having permission to execute the procedure are able to insert records into the DEPARTMENTS tableeven though they do not have the INSERT privilege on the table. You want only those users who haveprivileges on the DEPARTMENTS table to be able to execute the procedure successfully.  What would yousuggest to the PL/SQL developers to achieve this()
    A

    Create the procedure with definer’s right.

    B

    Create the procedure with invoker’s right.

    C

    Grant the EXECUTE privilege with GRANT OPTION on the procedure to selected users.

    D

    Create the procedure as part of a PL/SQL package and grant the EXECUTE privilege on the package toselected users


    正确答案: B
    解析: 暂无解析

  • 第11题:

    单选题
    Your multitenant container database (CDB) is running in ARCHIVELOG mode. You connect to the CDB RMAN. Examine the following command and its output: You execute the following command: RMAN > BACKUP DATABASE PLUS ARCHIVELOG; Which data files will be backed up?()
    A

    Data files that belong to only the root container

    B

    Data files that belong to the root container and all the pluggable databases (PDBs)

    C

    Data files that belong to only the root container and PDB$SEED

    D

    Data files that belong to the root container and all the PDBs excluding PDB$SEED


    正确答案: D
    解析: 暂无解析

  • 第12题:

    单选题
    The HR user creates a stand-alone procedure as follows and grants the EXECUTE privilege on theprocedure to many database users:  CREATE OR REPLACE PROCEDURE create_dept ( v_deptno NUMBER, v_dname VARCHAR2, v_mgr NUMBER, v_loc NUMBER) BEGIN  INSERT INTO hr.departments VALUES (v_deptno, v_dname, v_mgr, v_loc); END;  The users having permission to execute the procedure are able to insert records into the  DEPARTMENTStable even though they do not have the INSERT privilege on the table. You want only those users whohave privileges on the DEPARTMENTS table to be able to execute the procedure successfully.  What would you suggest to the PL/SQL developers to achieve this()
    A

    Create the procedure with definer’s right.

    B

    Create the procedure with invoker’s right.

    C

    Grant the EXECUTE privilege with GRANT OPTION on the procedure to selected users.

    D

    Create the procedure as part of a PL/SQL package and grant the EXECUTE privilege on the package to selected users


    正确答案: A
    解析: 暂无解析

  • 第13题:

    What is the effect of specifying the "ENABLE PLUGGABLE DATABASE" clause in a "CREATEDATABASE” statement?()

    • A、It will create a multitenant container database (CDB) with only the root opened.
    • B、It will create a CDB with root opened and seed read only.
    • C、It will create a CDB with root and seed opened and one PDB mounted.
    • D、It will create a CDB that must be plugged into an existing cdb.
    • E、It will create a CDB with root opened and seed mounted.

    正确答案:B

  • 第14题:

    Your multitenant container database (CDB) is running in ARCHIVELOG mode. You connect to the CDB RMAN. Examine the following command and its output: You execute the following command: RMAN > BACKUP DATABASE PLUS ARCHIVELOG; Which data files will be backed up?()

    • A、Data files that belong to only the root container
    • B、Data files that belong to the root container and all the pluggable databases (PDBs)
    • C、Data files that belong to only the root container and PDB$SEED
    • D、Data files that belong to the root container and all the PDBs excluding PDB$SEED

    正确答案:B

  • 第15题:

    Which three statements are true about the working of system privileges in a multitenant control database(CDB) that has pluggable databases (PDBs)?()

    • A、System privileges apply only to the PDB in which they are used.
    • B、Local users cannot use local system privileges on the schema of a common user.
    • C、The granter of system privileges must possess the set container privilege.
    • D、Common users connected to a PDB can exercise privileges across other PDBs.
    • E、System privileges with the with grant option container all clause must be granted to a common user before the common user can grant privileges to other users.

    正确答案:A,C,E

  • 第16题:

    You upgraded your database from pre-12c to a multitenant container database (CDB) containing pluggable databases (PDBs). Examine the query and its output: Which two tasks must you perform to add users with SYSBACKUP, SYSDG, and SYSKM privilege to the password file?()

    • A、Assign the appropriate operating system groups to SYSBACKUP, SYSDG, SYSKM.
    • B、Grant SYSBACKUP, SYSDG, and SYSKM privileges to the intended users.
    • C、Re-create the password file with SYSBACKUP, SYSDG, and SYSKM privilege and the FORCE argument set to No.
    • D、Re-create the password file with SYSBACKUP, SYSDG, and SYSKM privilege, and FORCE arguments set to Yes.
    • E、Re-create the password file in the Oracle Database 12c format.

    正确答案:B,D

  • 第17题:

    Your multitenant container database (CDB) contains pluggable databases (PDBs), you are connected to the HR_PDB. You execute the following command: SQL > CREATE UNDO TABLESPACE undotb01 DATAFILE ‘u01/oracle/rddb1/undotbs01.dbf’ SIZE 60M AUTOEXTEND ON; What is the result?()

    • A、It executes successfully and creates an UNDO tablespace in hr_pdb.
    • B、It falls and reports an error because there can be only one undo tablespace in a cdb.
    • C、It fails and reports an error because the CONTAINER=ALL clause is not specified in the command.
    • D、It fails and reports an error because the CONTAINER=CURRENT clause is not specified in the command.
    • E、It executes successfully but neither tablespace nor the data file is created.

    正确答案:E

  • 第18题:

    单选题
    Your multitenant container database (CDB) contains pluggable databases (PDBs), you are connected to the HR_PDB. You execute the following command: SQL > CREATE UNDO TABLESPACE undotb01 DATAFILE ‘u01/oracle/rddb1/undotbs01.dbf’ SIZE 60M AUTOEXTEND ON; What is the result?()
    A

    It executes successfully and creates an UNDO tablespace in hr_pdb.

    B

    It falls and reports an error because there can be only one undo tablespace in a cdb.

    C

    It fails and reports an error because the CONTAINER=ALL clause is not specified in the command.

    D

    It fails and reports an error because the CONTAINER=CURRENT clause is not specified in the command.

    E

    It executes successfully but neither tablespace nor the data file is created.


    正确答案: E
    解析: 暂无解析

  • 第19题:

    单选题
    What is the effect of specifying the "ENABLE PLUGGABLE DATABASE" clause in a "CREATEDATABASE” statement?()
    A

    It will create a multitenant container database (CDB) with only the root opened.

    B

    It will create a CDB with root opened and seed read only.

    C

    It will create a CDB with root and seed opened and one PDB mounted.

    D

    It will create a CDB that must be plugged into an existing cdb.

    E

    It will create a CDB with root opened and seed mounted.


    正确答案: B
    解析: 暂无解析

  • 第20题:

    多选题
    You upgraded your database from pre-12c to a multitenant container database (CDB) containing pluggable databases (PDBs). Examine the query and its output: Which two tasks must you perform to add users with SYSBACKUP, SYSDG, and SYSKM privilege to the password file?()
    A

    Assign the appropriate operating system groups to SYSBACKUP, SYSDG, SYSKM.

    B

    Grant SYSBACKUP, SYSDG, and SYSKM privileges to the intended users.

    C

    Re-create the password file with SYSBACKUP, SYSDG, and SYSKM privilege and the FORCE argument set to No.

    D

    Re-create the password file with SYSBACKUP, SYSDG, and SYSKM privilege, and FORCE arguments set to Yes.

    E

    Re-create the password file in the Oracle Database 12c format.


    正确答案: E,A
    解析: 暂无解析

  • 第21题:

    单选题
    Your multitenant container database (CDB) contains a pluggable database, HR_PDB. The default permanent tablespace in HR_PDB is USERDATA. The container database (CDB) is open and you connect RMAN. You want to issue the following RMAN command: RMAN > BACKUP TABLESPACE hr_pdb:userdata; Which task should you perform before issuing the command?()
    A

    Place the root container in ARHCHIVELOG mode.

    B

    Take the user data tablespace offline.

    C

    Place the root container in the nomount stage.

    D

    Ensure that HR_PDB is open.


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    In your multitenant container database (CDB) containing pluggable database (PDBs), the HR user executes the following commands to create and grant privileges on a procedure: CREATE OR REPLACE PROCEDURE create_test_v (v_emp_id NUMBER, v_ename VARCHAR2,v_SALARY NUMBER, v_dept_id NUMBER) BEGIN INSERT INTO hr.test VALUES (V_emp_id, V_ename, V_salary, V_dept_id); END; / GRANT EXECUTE ON CREATE_TEST TO john, jim, smith, king; How can you prevent users having the EXECUTE privilege on the CREATE_TEST procedure from inserting values into tables on which they do not have any privileges?()
    A

    Create the CREATE_TEST procedure with definer’s rights.

    B

    Grant the EXECUTE privilege to users with GRANT OPTION on the CREATE_TEST procedure.

    C

    Create the CREATE_TEST procedure with invoker’s rights.

    D

    Create the CREATE_TEST procedure as part of a package and grant users the EXECUTE privilege the package.


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    In your multitenant container database (CDB) with two pluggable database (PDBs). You want to create a new PDB by using SQL Developer. Which statement is true?()
    A

    The CDB must be open.

    B

    The CDB must be in the mount stage.

    C

    The CDB must be in the nomount stage.

    D

    Alt existing PDBs must be closed.


    正确答案: C
    解析: 暂无解析

  • 第24题:

    多选题
    In your multitenant container database (CDB) containing same pluggable databases (PDBs), you execute the following commands in the root container: Which two statements are true?()
    A

    The C # # ROLE1 role is created in the root database and all the PDBs.

    B

    The C # # ROLE1 role is created only in the root database because the container clause is not used.

    C

    Privileges are granted to the C##A_ADMIN user only in the root database.

    D

    Privileges are granted to the C##A_ADMIN user in the root database and all PDBs.

    E

    The statement for granting a role to a user fails because the CONTAINER clause is not used.


    正确答案: E,B
    解析: 暂无解析