多选题A database user SMITH tries to query the V$SESSION view and fails to access it as follows: SQL> connect smith/smith  Connected.  SQL> SELECT * FROM v$session;  SELECT * FROM v$session *  ERROR at line 1:  ORA-00942: table or view does not exist  Which 

题目
多选题
A database user SMITH tries to query the V$SESSION view and fails to access it as follows: SQL> connect smith/smith  Connected.  SQL> SELECT * FROM v$session;  SELECT * FROM v$session *  ERROR at line 1:  ORA-00942: table or view does not exist  Which are the two possible solutions to enable SMITH to query the data in V$SESSION()
A

granting SELECT privilege to SMITH on V$SESSION

B

granting SELECT privilege to SMITH on V_$SESSION

C

asking the user SMITH to run the catalog.sql script

D

granting SELECT privilege to SMITH on V$FIXED_TABLES

E

setting the O7_DICTIONARY_ACCESSIBILITY parameter to TRUE

F

creating a view based on V$SESSION and granting SELECT privilege to SMITH on the view that was created


相似考题
更多“多选题A database user SMITH tries to query the V$SESSION view and fails to access it as follows: SQL connect smith/smith  Connected.  SQL SELECT * FROM v$session;  SELECT * FROM v$session *  ERROR at line 1:  ORA-00942: table or view does not exist  Which ar”相关问题
  • 第1题:

    Click the Exhibit button and examine the data from the ORDERS and CUSTOMERS tables.Evaluate the SQL statement:SELECT *FROM ordersWHERE cust_id = (SELECT cust_idFROM customersWHERE cust_name = ‘Smith‘);What is the result when the query is executed?()

    A.A

    B.B

    C.C

    D.D

    E.E


    参考答案:A

  • 第2题:

    A new report process containing a complex query is written, with high impact on the database. You wantto collect basic statistics about query, such as the level of parallelism, total database time, and the number of I/O requests. For the database instance STATISTICS_LEVEL, the initialization parameter is set to TYPICAL and theCONTROL_MANAGEMENT_PACK_ACCESS parameter is set to DIAGNOSTIC+TUNING. What should you do to accomplish this task?()

    • A、Execute the query and view Active Session History (ASH) for information about the query.
    • B、Enable SQL trace for the query.
    • C、Create a database operation, execute the query, and use the DBMS_SQL_MONITOR. REPORT_SQL_MONITOR function to view the report.
    • D、Use the DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS procedure to monitor query execution and view the information from the V$SESSION_LONGOPS view.

    正确答案:C

  • 第3题:

    Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL FIRST_NAME VARCHAR2(30) DEPT_ID NUMBER(2) Which statement produces the number of different departments that have employees with last name Smith?()

    • A、SELECT COUNT(*) FROM employees WHERE last_name='Smith';
    • B、SELECT COUNT(dept_id) FROM employees WHERE last_name='Smith';
    • C、SELECT DISTINCT(COUNT(dept_id)) FROM employees WHERE last_name='Smith';
    • D、SELECT COUNT(DISTINCT dept_id) FROM employees WHERE last_name='Smith';
    • E、SELECT UNIQUE(dept_id) FROM employees WHERE last_name='Smith';

    正确答案:D

  • 第4题:

    Examine the following commands executed in your database: SQL> ALTER SESSION RECYCLEBIN=ON; Session altered  SQL> CREATE TABLE emp TABLESPACE tbsfd AS SELECT * FROM hr.employees;  Table created.  Further, you executed the following command to drop the table:  SQL> DROP TABLE emp; Table dropped.  What happens in this scenario? ()

    • A、The table is moved to the SYSAUX tablespace.
    • B、The table is moved to the SYSTEM tablespace.
    • C、The table is removed from the database permanently.
    • D、The table is renamed and remains in the TBSFD tablespace.

    正确答案:D

  • 第5题:

    A database user SMITH tries to query the V$SESSION view and fails to access it as follows: SQL> connect smith/smith  Connected.  SQL> SELECT * FROM v$session;  SELECT * FROM v$session *  ERROR at line 1:  ORA-00942: table or view does not exist  Which are the two possible solutions to enable SMITH to query the data in V$SESSION()

    • A、granting SELECT privilege to SMITH on V$SESSION
    • B、granting SELECT privilege to SMITH on V_$SESSION
    • C、asking the user SMITH to run the catalog.sql script
    • D、granting SELECT privilege to SMITH on V$FIXED_TABLES
    • E、setting the O7_DICTIONARY_ACCESSIBILITY parameter to TRUE
    • F、creating a view based on V$SESSION and granting SELECT privilege to SMITH on the view that was created

    正确答案:B,F

  • 第6题:

    In what view are you likely to see the following output?()   SID SERIAL# EVENT SECONDS_IN_WAIT  121 269 RMAN backup & recovery I/O 2  129 415 SQL*Net message from client 63 130 270 SQL*Net message from client  

    • A、 V$SESSION_EVENT
    • B、 V$SESSION
    • C、 V$WAITS
    • D、 V$WAITSTAT
    • E、 V$SYSSTAT

    正确答案:B

  • 第7题:

    Your database operates in ARCHIVELOG mode. User-managed consistent backups are performed every  Sunday night. On Tuesday, client A drops a table at 8:00 a.m. as follows:  SQL> DROP TABLE cust_ord PURGE;  Table dropped.  Client B executes a query at 9:00 a.m. on the same table as follows:  SQL> SELECT * FROM cust_ord;  SELECT * FROM cust_ord  *ERROR at line 1:ORA-00942: table or view does not exist  Client B needs the dropped table and reports the problem to you.With reference to this scenario, which action should you take?()

    • A、 retrieve the table by using the flashback feature
    • B、 restore all the data files from last Sunday’s backup and then perform a time-based recovery
    • C、 restore all the data files from last Sunday’s backup and then perform a log sequence recovery
    • D、 restore all the data files from last Sunday’s backup and then perform a cancel-based recovery
    • E、 restore from last Sunday’s backup only data files that belong to the tablespace in which the table was stored and then perform a complete recovery

    正确答案:B

  • 第8题:

    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK,or any data definition language (DDL) command:  SQL> SELECT job FROM emp  2  WHERE job=’CLERK’ FOR UPDATE OF empno;  SCOTT has opened another session to work with the database. Which three operations would wait when issued in SCOTT’s second session?()

    • A、LOCK TABLE emp IN SHARE MODE;
    • B、LOCK TABLE emp IN EXCLUSIVE MODE;
    • C、DELETE FROM emp WHERE job=’MANAGER’;
    • D、INSERT INTO emp(empno,ename) VALUES (1289,’Dick’);
    • E、SELECT job FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno;

    正确答案:A,B,E

  • 第9题:

    单选题
    In what view are you likely to see the following output?()   SID SERIAL# EVENT SECONDS_IN_WAIT  121 269 RMAN backup & recovery I/O 2  129 415 SQL*Net message from client 63 130 270 SQL*Net message from client
    A

     V$SESSION_EVENT

    B

     V$SESSION

    C

     V$WAITS

    D

     V$WAITSTAT

    E

     V$SYSSTAT


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

  • 第10题:

    单选题
    Examine the following commands executed in your database: SQL> ALTER SESSION RECYCLEBIN=ON; Session altered  SQL > CREATE TABLE emp TABLESPACE tbsfd AS SELECT * FROM hr.employees;  Table created.  Further, you executed the following command to drop the table:  SQL> DROP TABLE emp;Table dropped.  What happens in this scenario?()
    A

    The table is moved to the SYSAUX tablespace.

    B

    The table is moved to the SYSTEM tablespace.

    C

    The table is removed from the database permanently.

    D

    The table is renamed and remains in the TBSFD tablespace.


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

  • 第11题:

    单选题
    A user named Arren is executing this query:   select table_name,operation,undo_sql  from  flashback_transaction_query t,  (select versions_xid as xid  from employees versions between scn minvalue and maxvalue  where employee_id = 123) e  where t.xid = e.xid;   When the query runs,he receives an ORA-01031: insufficient privileges error. Since the user owns the employees table,you know that it is not the problem.  Which of the following SQL statements will correct this problem?()
    A

     GRANT SELECT ANY TRANSACTION TO ARREN

    B

     GRANT SELECT ON FLASHBACK_TRANSACTION_QUERY TO ARREN

    C

     GRANT SELECT_ANY_TRANSACTION TO ARREN

    D

     GRANT FLASHBACK TO ARREN

    E

     GRANT SELECT ANY VIEW TO ARREN


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

  • 第12题:

    单选题
    Your database interface is running. A user SCOTT starts a SQL *Plus session, and issues the following query:   SQL> SELECT * FROM sales;   Which process would retrieve the result from the database and return it to the client program?()
    A

     User process

    B

     Server process

    C

     System Monitor (SMON)

    D

     Process Monitor (PMON)

    E

     Checkpoint process (CKPT)


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

  • 第13题:

    Your database interface is running. A user SCOTT starts a SQL *Plus session, and issues the following query: SQL> SELECT * FROM sales; Which process would retrieve the result from the database and return it to the client program?()

    • A、User process
    • B、Server process
    • C、System Monitor (SMON)
    • D、Process Monitor (PMON)
    • E、Checkpoint process (CKPT)

    正确答案:B

  • 第14题:

    Your database operates in ARCHIVELOG mode. User/x7fmanaged consistent backups are performed every Sunday night.  On Tuesday, client A drops a table at 8:00 a.m. as follows:  SQL> DROP TABLE cust_ord PURGE;  Table dropped.  Client B executes a query at 9:00 a.m. on the same table as follows:  SQL> SELECT * FROM cust_ord; SELECT * FROM cust_ord *  ERROR at line 1:  ORA/x7f00942: table or view does not exist  Client B needs the dropped table and reports the problem to you. With reference to this scenario, which action should you take?()

    • A、retrieve the table by using the flashback feature
    • B、restore all the data files from last Sunday’s backup, and then perform a time­based recovery
    • C、restore all the data files from last Sunday’s backup, and then perform a log sequence recovery
    • D、restore all the data files from last Sunday’s backup, and then perform a cancel­based recovery
    • E、restore from last Sunday’s backup only data files that belong to the tablespace in which the table was stored, and then perform a complete recovery

    正确答案:B

  • 第15题:

    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.

    正确答案:D

  • 第16题:

    You execute the following commands to audit database activities: SQL > ALTER SYSTEM SET AUDIT_TRIAL=DB, EXTENDED SCOPE=SPFILE; SQL > AUDIT SELECT TABLE, INSERT TABLE, DELETE TABLE BY JOHN By SESSION WHENEVER SUCCESSFUL; Which statement is true about the audit record that generated when auditing after instance restarts?()

    • A、One audit record is created for every successful execution of a SELECT, INSERT OR DELETE command on a table, and contains the SQL text for the SQL Statements.
    • B、One audit record is created for every successful execution of a SELECT, INSERT OR DELETE command, and contains the execution plan for the SQL statements.
    • C、One audit record is created for the whole session if john successfully executes a SELECT, INSERT, or DELETE command, and contains the execution plan for the SQL statements.
    • D、One audit record is created for the whole session if JOHN successfully executes a select command, and contains the SQL text and bind variables used.
    • E、One audit record is created for the whole session if john successfully executes a SELECT, INSERT,or DELETE command on a table, and contains the execution plan, SQL text, and bind variables used.

    正确答案:A

  • 第17题:

    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, or any data definition language (DDL) command: SQL> SELECT ename FROM emp  2 WHERE job=’CLERK’ FOR UPDATE OF empno;  SCOTT has opened another session to work with the database instance.  Which three operations wouldwait when issued in SCOTT’s second session()

    • A、LOCK TABLE emp IN SHARE MODE;
    • B、LOCK TABLE emp IN EXCLUSIVE MODE;
    • C、UPDATE emp SET sal=sal*1.2 WHERE job=MANAGER;
    • D、INSERT INTO emp(empno,ename) VALUES (1289,’Harry’);
    • E、SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno;

    正确答案:A,B,E

  • 第18题:

    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, orany data definition language (DDL) command: SQL> SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno; SCOTT has opened another session to work with the database instance.  Which three operations would waitwhen issued in SCOTT’s second session()

    • A、LOCK TABLE emp IN SHARE MODE;
    • B、LOCK TABLE emp IN EXCLUSIVE MODE;
    • C、UPDATE emp SET sal=sal*1.2 WHERE job=ANAGER?UPDATE emp SET sal=sal*1.2 WHERE job=?ANAGER?
    • D、INSERT INTO emp(empno,ename) VALUES (1289,’Harry’);
    • E、SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno

    正确答案:A,B,E

  • 第19题:

    当需要返回当前用户的名字,可以执行如下()SQL语句。

    • A、SELECT user FROM V$DBA
    • B、SELECT user FROM dual
    • C、SELECT name FROM dual
    • D、SELECT name FROM V$DBA

    正确答案:B

  • 第20题:

    TestKing.com uses SQL Server 2005. A user reports that an order processing application stopped responding in the middle of an order transaction. The users SQL Server session ID is 54. You need to find out if session 54 is blocked by another connection. If it is,you need to identify the blocking session ID. What are two possible ways to achieve this goal?()

    • A、In SQL Server Management Studio, open the Activity Monitor. Open the Process Info page. View the blockedBy column for session 54.
    • B、In SQL Server Management Studio,open the Activity Monitor. Open the Locks by Process page. View the Request Mode column for session 54.
    • C、In SQL Server Management Studio, open a new query window and execute the following statement.SELECT * FROM sys.dm exec requests WHERE session id = 54View the blocking session id column.
    • D、In SQL Server Management Studio, open a new query window and execute the following statement.SELECT * FROM sys.dm exec sessionsWHERE session id = 54View the status column.

    正确答案:A,C

  • 第21题:

    多选题
    TestKing.com uses SQL Server 2005. A user reports that an order processing application stopped responding in the middle of an order transaction. The users SQL Server session ID is 54. You need to find out if session 54 is blocked by another connection. If it is,you need to identify the blocking session ID. What are two possible ways to achieve this goal?()
    A

    In SQL Server Management Studio, open the Activity Monitor. Open the Process Info page. View the blockedBy column for session 54.

    B

    In SQL Server Management Studio,open the Activity Monitor. Open the Locks by Process page. View the Request Mode column for session 54.

    C

    In SQL Server Management Studio, open a new query window and execute the following statement.SELECT * FROM sys.dm exec requests WHERE session id = 54View the blocking session id column.

    D

    In SQL Server Management Studio, open a new query window and execute the following statement.SELECT * FROM sys.dm exec sessionsWHERE session id = 54View the status column.


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

  • 第22题:

    单选题
    Your database interface is running. A user SCOTT starts a SQL *Plus session, and issues the following query: SQL> SELECT * FROM sales; Which process would retrieve the result from the database and return it to the client program?()
    A

    User process

    B

    Server process

    C

    System Monitor (SMON)

    D

    Process Monitor (PMON)

    E

    Checkpoint process (CKPT)


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

  • 第23题:

    多选题
    A database user SMITH tries to query the V$SESSION view and fails to access it as follows: SQL> connect smith/smith  Connected.  SQL> SELECT * FROM v$session;  SELECT * FROM v$session *  ERROR at line 1:  ORA-00942: table or view does not exist  Which are the two possible solutions to enable SMITH to query the data in V$SESSION()
    A

    granting SELECT privilege to SMITH on V$SESSION

    B

    granting SELECT privilege to SMITH on V_$SESSION

    C

    asking the user SMITH to run the catalog.sql script

    D

    granting SELECT privilege to SMITH on V$FIXED_TABLES

    E

    setting the O7_DICTIONARY_ACCESSIBILITY parameter to TRUE

    F

    creating a view based on V$SESSION and granting SELECT privilege to SMITH on the view that was created


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

  • 第24题:

    多选题
    User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK,or any data definition language (DDL) command:  SQL> SELECT job FROM emp  2  WHERE job=’CLERK’ FOR UPDATE OF empno;  SCOTT has opened another session to work with the database. Which three operations would wait when issued in SCOTT’s second session?()
    A

    LOCK TABLE emp IN SHARE MODE;

    B

    LOCK TABLE emp IN EXCLUSIVE MODE;

    C

    DELETE FROM emp WHERE job=’MANAGER’;

    D

    INSERT INTO emp(empno,ename) VALUES (1289,’Dick’);

    E

    SELECT job FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno;


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