单选题You execute the following set of commands to create a database user and to grant the system privileges in your production environment.  SQL CREATE USER user01  IDENTIFIED BY oracle DEFAULT TABLESPACE tbs1  TEMPORARY TABLESPACE temp PROFILE default  / 

题目
单选题
You execute the following set of commands to create a database user and to grant the system privileges in your production environment.  SQL> CREATE USER user01  IDENTIFIED BY oracle DEFAULT TABLESPACE tbs1  TEMPORARY TABLESPACE temp PROFILE default  /  SQL> GRANT create session, create table TO user01; While executing the command to create a table, the user gets the following error message and the CREATE TABLE.. command fails.  ERROR at line 1: ORA-01950: no privileges on tablespace  What could be the possible reason for this error message?()
A

The tablespace TBS1 is full.

B

The user is not the owner of the SYSTEM tablespace.

C

The user does not have quota on the TBS1 tablespace.

D

The user does not have sufficient system privileges to create table in the TBS1 tablespace.

E

The user does not have sufficient privileges to create table on the default permanent tablespace.

参考答案和解析
正确答案: C
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Twenty database users are connected to your database. Five of the users are running long queries involving sort operations. The TEMP tablespace is the default temporary tablespace for your database. You are performing offline tablespace backups of individual tablespaces and erroneously execute the following statement:   SQL>ALTER TABLSPACE temp OFFLINE NORMAL;   What is the result of this statement?()

  • A、 The TEMP tablespace is taken offline. The users using the TEMP tablespace for sorting are disconnected after their queries complete.
  • B、 The TEMP tablespace is taken offline. The users using the TEMP tablespace for sorting are disconnected and must re-execute their queries.
  • C、 The TEMP tablespace is taken offline. The users using the TEMP tablespace for sorting are not disconnected, but these users must re-execute their queries.
  • D、 The TEMP tablespace is not taken offline. The users using the TEMP tablespace for sorting are not disconnected, and their queries execute successfully.

正确答案:D

第2题:

You lost a temporary file that belongs to the default temporary tablespace in your database. From the options provided, which approach would you take to solve the problem? ()

  • A、flash back the database
  • B、import the temporary tablespace from the last export
  • C、restore all the data files and temporary files from the last full database backup and perform a recovery
  • D、not perform a recovery, but create a new temporary tablespace, make it the default temporary tablespace and then drop the old tablespace

正确答案:D

第3题:

A user executes a query on the EMP table, which contains thousands of rows, to get details about employees in one of the departments. The user receives the following error: SQL> SELECT ename FROM emp WHERE deptno=10 ORDER BY sal; SELECT ename FROM emp WHERE deptno=10 ORDER BY sal  *  ERROR at line 1:  ORA/x7f01157: cannot identify/lock data file 201 /x7f see DBWR trace file  ORA/x7f01110: data file 201: ’/u01/app/oracle/oradata/orcl/temp01.dbf’  What is a possible reason?()

  • A、The tempfile belonging to the default temporary tablespace is missing.
  • B、The database is opened in restricted mode, so queries are not allowed.
  • C、The default temporary tablespace required to execute the query is offline.
  • D、The default temporary tablespace required to execute the query is dropped.
  • E、The default temporary tablespace required to execute the query is read­only.

正确答案:A

第4题:

While creating a database using Database Configuration Assistant tool, you created a database default temporary tablespace. Which activity would cause the default temporary tablespace of the database to be used?()

  • A、the CREATE TABLE .. command
  • B、sorting of the SYSTEM tablespace’s data
  • C、sorting of data required by recursive SQL statements
  • D、the CREATE TABLE .. ORGANIZATION EXTERNAL .. command
  • E、sorting of data if the users have not been allocated temporary tablespace explicitly
  • F、sorting of data if the users have been allocated temporary tablespace explicitly

正确答案:E

第5题:

You are creating a recovery catalog for use with RMAN. You have issued these commands: SQL> CREATE TABLESPACE rman_ts DATAFILE  ’/DISK1/rman_ts01.dbf’ 2> SIZE 20M 3> DEFAULT STORAGE (initial 100K next 100K pctincrease 0); SQL> CREATE USER rman_db01 IDENTIFIED BY rman_db01 2> DEFAULT TABLESPACE rman_ts 3> QUOTA unlimited ON rman_ts;  Which command should you issue next?()

  • A、RESYNC CATALOG;
  • B、REGISTER DATABASE;
  • C、CREATE CATALOG TABLESPACE rman_ts;
  • D、GRANT recovery_catalog_owner TO rman_db01;

正确答案:C

第6题:

Consider the following command to create a tablespace in your production database (which is using an Automatic Storage Management [ASM] instance to manage the database files):  CREATE TABLESPACE user_tbsp  DATAFILE ’+dgroup3(user_temp)/user_files/user_tbsp’ SIZE 200M;  What would be the result of this command?()

  • A、It would result in an error because the template cannot be used along with the disk group.
  • B、It would result in an error because the path cannot be specified while creating a tablespace in a disk group.
  • C、It would create a tablespace with a data file that has an alias, and its attributes are set by the user-defined template.
  • D、It would create a tablespace with a data file that does not have an alias, and its attributes are set by the user-defined template.

正确答案:C

第7题:

You have three temporary tablespace groups named G1, G2, and G3 in your database. You are creating a new temporary tablespace as follows: CREATE TEMPORARY TABLESPACE TEMP1 TEMPFILE '/u1/data/temp1.dbf' SIZE 10M TABLESPACE GROUP ''; Which statement regarding the above command is correct?()

  • A、It will create the tablespace TEMP1 in group G1.
  • B、It will create the tablespace TEMP1 in group G3.
  • C、It will not add the tablespace TEMP1 to any group.
  • D、It will create the tablespace TEMP1 in the default group.

正确答案:C

第8题:

A user executes a query on the EMPtable, which contains thousands of rows, to get details about employees in one of the departments. The user receives the following error:  SQL> SELECT ename FROM emp WHERE deptno=10 ORDER BY sal;  SELECT ename FROM emp WHERE deptno=10 ORDER BY sal  ERROR at line 1:  ORA-01157: cannot identify/lock data file  201 - see DBWR trace file ORA-01110: data file 201:’/u01/app/oracle/oradata/orcl/temp01.dbf’  What is a possible reason?()

  • A、 The tempfile belonging to the default temporary tablespace is missing.
  • B、 The database is opened in restricted mode, so queries are not allowed
  • C、 The default temporary tablespace required to execute the query is offline.
  • D、 The default temporary tablespace required to execute the query is dropped.
  • E、 The default temporary tablespace required to execute the query is read-only.

正确答案:A

第9题:

You execute the following set of commands to create a database user and to grant the system privileges in your production environment.  SQL> CREATE USER user01  IDENTIFIED BY oracle DEFAULT TABLESPACE tbs1  TEMPORARY TABLESPACE temp PROFILE default  /  SQL> GRANT create session, create table TO user01; While executing the command to create a table, the user gets the following error message and the CREATE TABLE.. command fails.  ERROR at line 1: ORA-01950: no privileges on tablespace  What could be the possible reason for this error message?()

  • A、The tablespace TBS1 is full.
  • B、The user is not the owner of the SYSTEM tablespace.
  • C、The user does not have quota on the TBS1 tablespace.
  • D、The user does not have sufficient system privileges to create table in the TBS1 tablespace.
  • E、The user does not have sufficient privileges to create table on the default permanent tablespace.

正确答案:C

第10题:

You have been asked to create three users, PUB1, PUB2 and PUB3, for three newly hired employees and to allocate unlimited quota on their default tablespace PUBLISHER_TBS with no other privileges. After creating the users, which method can you use for granting the required privileges?()

  • A、grant CONNECT role to all of the three users
  • B、grant RESOURCE role to all of the three users
  • C、grant both CONNECT and RESOURCE role to all of the three users
  • D、execute ALTER USER .. QUOTA UNLIMITED ON publisher_tbs command for all of the three users
  • E、create role with UNLIMITED TABLESPACE system privilege and assign the role to all of the three users

正确答案:D

更多相关问题