C create the createtest procedure with invokers

This preview shows page 35 - 37 out of 152 pages.

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. Correct Answer: C Section: (none) Explanation Explanation/Reference: Explanation: If a program unit does not need to be executed with the escalated privileges of the definer, you should specify that the program unit executes with the privileges of the caller, also known as the invoker. Invoker's rights can mitigate the risk of SQL injection. Incorrect: Not A: By default, stored procedures and SQL methods execute with the privileges of their owner, not their current user. Such definer-rights subprograms are bound to the schema in which they reside. not B: Using the GRANT option, a user can grant an Object privilege to another user or to PUBLIC. QUESTION 65 You created a new database using the "create database" statement without specifying the "ENABLE PLUGGABLE" clause. What are two effects of not using the "ENABLE PLUGGABLE database" clause? A. The database is created as a non-CDB and can never contain a PDB. B. The database is treated as a PDB and must be plugged into an existing multitenant container database (CDB). C. The database is created as a non-CDB and can never be plugged into a CDB. D. The database is created as a non-CDB but can be plugged into an existing CDB. E. The database is created as a non-CDB but will become a CDB whenever the first PDB is plugged in. Correct Answer: AD Section: (none) Explanation Explanation/Reference: Explanation: A (not B,not E): The CREATE DATABASE ... ENABLE PLUGGABLE DATABASE SQL statement creates a new CDB. If you do not specify the ENABLE PLUGGABLE DATABASE clause, then the newly created database is a non-CDB and can never contain PDBs. D: You can create a PDB by plugging in a Non-CDB as a PDB. The following graphic depicts the options for creating a PDB:
Image of page 35
Incorrect: Not E: For the duration of its existence, a database is either a CDB or a non-CDB. You cannot transform a non-CDB into a CDB or vice versa. You must define a database as a CDB at creation, and then create PDBs within this CDB. QUESTION 66 What is the effect of specifying the "ENABLE PLUGGABLE DATABASE" clause in a "CREATE DATABASE” 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. Correct Answer: B Section: (none) Explanation Explanation/Reference: Explanation: * The CREATE DATABASE ... ENABLE PLUGGABLE DATABASE SQL statement creates a new CDB. If you do not specify the ENABLE PLUGGABLE DATABASE clause, then the newly created database is a non-CDB and can never contain PDBs.
Image of page 36
Image of page 37

You've reached the end of your free preview.

Want to read all 152 pages?

  • Fall '19
  • Oracle Database

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors