The HR user creates a view with this command:  SQL> CREATE V

题目
单选题
The HR user creates a view with this command:  SQL> CREATE VIEW emp_v AS SELECT * FROM scott.emp;  Now HR wants to grant the SELECT privilege on the EMP_V view to the JIM user.  Which statement is true in this scenario?()
A

HR can grant the privilege to JIM but without GRANT OPTION.

B

HR can grant the privilege to JIM because HR is the owner of the view.

C

SCOTT has to grant the SELECT privilege on the EMP table to JIM before this operation.

D

HR needs the SELECT privilege on the EMP table with GRANT OPTION from SCOTT for this operation.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

View the Exhibit for some of the current parameter settings. A user logs in to the HR schema and issues the following commands:SQL> CREATE TABLE emp(empno NUMBER(3),ename VARCHAR2(20),sal NUMBER(8,2));SQL> INSERT INTO emp(empno,ename) VALUES(1,‘JAMES‘);At this moment, a second user also logs in to the HR schema and issues the following command:SQL> ALTER TABLE emp MODIFY sal NUMBER(10,2);What happens in the above scenario?()

A. The second user‘s session immediately produces the resource busy error.

B. The second user‘s command executes successfully.

C. The second user‘s session waits for a time period before producing the resource busy error.

D. A deadlock is created.


参考答案:C

第2题:

Which statement creates a new user?()

  • A、CREATE USER susan;
  • B、CREATE OR REPLACE USER susan;
  • C、CREATE NEW USER susan    DEFAULT;
  • D、CREATE USER susan    IDENTIFIED BY blue;
  • E、CREATE NEW USER susan   IDENTIFIED by blue;
  • F、CREATE OR REPLACE USER susan   IDENTIFIED BY blue;

正确答案:D

第3题:

The DBA issues this SQL command: CREATE USER scott IDENTIFIED by tiger; What privileges does the user Scott have at this point?()

A. no privileges

B. only the SELECT privilege

C. only the CONNECT privilege

D. all the privileges of a default user


参考答案:A

第4题:

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

第5题:

You need to perform certain data manipulation operations through a view called EMP_DEPT_VU, which you previously created. You want to look at the definition of the view (the SELECT statement on which the view was create.) How do you obtain the definition of the view? ()

  • A、Use the DESCRIBE command in the EMP_DEPT VU view.
  • B、Use the DEFINE VIEW command on the EMP_DEPT VU view.
  • C、Use the DESCRIBE VIEW command on the EMP_DEPT VU view.
  • D、Query the USER_VIEWS data dictionary view to search for the EMP_DEPT_VU view.
  • E、Query the USER_SOURCE data dictionary view to search for the EMP_DEPT_VU view.
  • F、Query the USER_OBJECTS data dictionary view to search for the EMP_DEPT_VU view.

正确答案:D

第6题:

On your Oracle 12c database, you invoked SQL *Loader to load data into the EMPLOYEES table in the HR schema by issuing the following command:$> sqlldr hr/hr@pdb table=employeesWhich two statements are true regarding the command?()

A. It succeeds with default settings if the EMPLOYEES table belonging to HR is already defined in the database.

B. It fails because no SQL *Loader data file location is specified.

C. It fails if the HR user does not have the CREATE ANY DIRECTORY privilege.

D. It fails because no SQL *Loader control file location is specified.


参考答案:A, C

第7题:

You are responsible for maintaining a SQL Server 2005 database. Business analysts in the company routinely use a view named v CustomerSales to join the Customers and Sales tables in the database. They use the view to aggregate total sales by customer by month. You need to increase the performance of the view. What should you do?()

  • A、Update the view to use an outer join between the Customers and Sales tables.
  • B、Create a clustered index on the v CustomerSales view.
  • C、Create two separate views that do not contain any joinsone view named Customers for the Customers table and another one named v Sales for the Sales table.
  • D、Create a stored procedure for the business analysts that uses the v CustomerSales view.

正确答案:B

第8题:

Which statement creates a new user? ()

A. CREATIVE USER susan;

B. CREATIVE OR REPLACE USER susan;

C. CREATE NEW USER susan DEFAULT

D. CREATE USER susan IDENTIFIED BY blue;

E. CREATE NEW USER susan IDENTIFIED BY blue;

F. CREATE OR REPLACE USER susan IDENTIFIED BY blue;


参考答案:D

第9题:

Which of the following DB2 tools allows a user to execute an SQL statement and view a graphical representation of the access plan?()

  • A、Task Center
  • B、Command Editor
  • C、Developer Workbench
  • D、Command Line Processor

正确答案:B

第10题:

Which statement creates a new user?()

  • A、CREATIVE USER susan;
  • B、CREATIVE OR REPLACE USER susan;
  • C、CREATE NEW USER susan DEFAULT
  • D、CREATE USER susan IDENTIFIED BY blue;
  • E、CREATE NEW USER susan IDENTIFIED BY blue;
  • F、CREATE OR REPLACE USER susan IDENTIFIED BY blue;

正确答案:D

更多相关问题