网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
You executed the following commands:   SQL> ALTER SESSION SET OPTIMIZER_USE_PENDING_STATISTICS = false; SQL> EXECUTE DBMS_STATS.SET_TABLE_PREFS(’SH’, ’CUSTOMERS’, ’PUBLISH’,’false’); SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS(’SH’, ’CUSTOMERS’);   Which statement is correct regarding the above statistics collection on the SH.CUSTOMERS table in the above session?()
A

 The statistics are stored in the pending statistics table in the data dictionary.

B

 The statistics are treated as the current statistics by the optimizer for all sessions.

C

 The statistics are treated as the current statistics by the optimizer for the current sessions only.

D

 The statistics are temporary and used by the optimizer for all sessions until this session terminates.


参考答案

参考解析
解析: 暂无解析
更多 “单选题You executed the following commands:   SQL ALTER SESSION SET OPTIMIZER_USE_PENDING_STATISTICS = false; SQL EXECUTE DBMS_STATS.SET_TABLE_PREFS(’SH’, ’CUSTOMERS’, ’PUBLISH’,’false’); SQL EXECUTE DBMS_STATS.GATHER_TABLE_STATS(’SH’, ’CUSTOMERS’);   Which statement is correct regarding the above statistics collection on the SH.CUSTOMERS table in the above session?()A  The statistics are stored in the pending statistics table in the data dictionary.B  The statistics are treated as the current statistics by the optimizer for all sessions.C  The statistics are treated as the current statistics by the optimizer for the current sessions only.D  The statistics are temporary and used by the optimizer for all sessions until this session terminates.” 相关考题
考题 You executed the following commands in a database session:What could have caused the recycle bin to clean up?() A. There is demand for space from the new table从B. The undo tablespace does not have sufficient free spaceC. The new table name is the same as the table name in the recycle binD. The temporary tablespace that is assigned to you does not have sufficient free space

考题 You executed the following commands:Which statement is correct regarding the above statistics collection on the SH.CUSTOMERS table in the above session?() A. The statistics are stored in the pending statistics table in the data dictionary.B. The statistics are treated as the current statistics by the optimizer for all sessions.C. The statistics are treated as the current statistics by the optimizer for the current sessions only.D. The statistics are temporary and used by the optimizer for all sessions until this session terminates.

考题 Which one of the following commands would you enter to terminate a VTY line session?()A、closeB、disableC、disconnectD、suspendE、exitF、None of the above

考题 You executed the following command to perform a backup of the USERS tablespace:  SQL ALTER TABLESPACE users BEGIN BACKUP; ALTER TABLESPACE users BEGIN BACKUP *  ERROR at line 1:  ORA-01123: cannot start online backup; media recovery not enabled  What could be the reason for this error()A、The MTTR Advisor is disabled.B、The database is in NOARCHIVELOG mode.C、The tablespace is already in backup mode.D、The Flash Recovery Area is not configured.

考题 You executed the following command to back up the control file: ALTER DATABASE BACKUP CONTROLFILE TO TRACE; What do you find in the trace file?()A、Image of the control fileB、Location of the control fileC、Contents of the control file in text formatD、SQL command to re-create the databaseE、SQL command to re-create the control fileF、Contents of the control file in binary format

考题 Which of the following commands cannot be executed when the database open?()A、RECOVER DATABASEB、RECOVER TABLESPACEC、RECOVER DATAFILED、ALTER DATABASE RECOVER DATAFILE

考题 What is the correct order of the following commands if you wanted to restore datafile 4, which was accidentally removed from the file system?()   a. sql ’alter database datafile 4 online’ b. restore datafile 4 c. recover datafile 4  d. sql ’alter database datafile 4 offline’ e. startup  f. shutdownA、 a, c, b, dB、 d, b, c, aC、 f, d, b, c, a, eD、 c, a, b, d, fE、 a, b, d, e

考题 You executed the following commands:   SQL ALTER SESSION SET OPTIMIZER_USE_PENDING_STATISTICS = false; SQL EXECUTE DBMS_STATS.SET_TABLE_PREFS(’SH’, ’CUSTOMERS’, ’PUBLISH’,’false’); SQL EXECUTE DBMS_STATS.GATHER_TABLE_STATS(’SH’, ’CUSTOMERS’);   Which statement is correct regarding the above statistics collection on the SH.CUSTOMERS table in the above session?()A、 The statistics are stored in the pending statistics table in the data dictionary.B、 The statistics are treated as the current statistics by the optimizer for all sessions.C、 The statistics are treated as the current statistics by the optimizer for the current sessions only.D、 The statistics are temporary and used by the optimizer for all sessions until this session terminates.

考题 You are managing a single instance Oracle 10g database that utilizes the following parameters:  Which of the following set of commands must you execute to enable Flashback Database?()A、  STARTUP MOUNT EXCLUSIVE  ALTER DATABASE FLASHBACK ON;  ALTER DATABASE OPEN;B、  STARTUP MOUNT  ALTER DATABASE FLASHBACK ON;  ALTER DATABASE OPEN RESETLOGS;C、  STARTUP MOUNT EXCLUSIVE  ATLER DATABASE ARCHIVELOG;  ALTER DATABASE FLASHBACK ON;  ALTER DATABASE OPEN RESETLOGS;D、  STARTUP MOUNT  ALTER DATABASE ARCHIVELOG;  ALTER DATABASE FLASHBACK ON;  ALTER DATABASE OPEN;

考题 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.

考题 You discover an out-of-space condition in the database. You decide to suspend a session for five minutes. You issue the following command to suspend the session:   ALTER SESSION ENABLE RESUMABLE;   Which command could you issue to enable the resumable space allocation feature at the session level?()  A、 ALTER SESSION ENABLE RESUMABLE_TIMEOUT = 5;B、 ALTER SYSTEM ENABLE RESUMABLE_TIMEOUT = 5;C、 ALTER SESSION ENABLE RESUMABLE_TIMEOUT = 300;D、 ALTER SYSTEM ENABLE RESUMABLE TIMEOUT = 300;

考题 单选题Which one of the following commands would you enter to terminate a VTY line session?()A closeB disableC disconnectD suspendE exitF None of the above

考题 单选题Your Oracle10g database contains a table with a TIMESTAMP TO LOCAL TIME ZONE column. There are about two hundred column values for the column. You issued the following statement:   SQL ALTER DATABASE SET TIME_ZONE =’Europe/London’;   What will be the result of issuing the above statement?()A  The statement will be executed successfully, and a new time zone will be set for the database.B  The statement will be executed successfully, but a new time zone will not be set for the database.C  The statement will not be executed successfully because the SET TIME_ZONE clause can be used only with the ALTER SESSION statement.D  The statement will not be executed successfully because the ALTER DATABASE SET TIME_ZONE statement is used only when the database contains no table with the TIMESTAMP TO LOCAL TIME ZONE column.

考题 单选题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.

考题 单选题You execute the following command to enable a session in resumable mode:  SQL ALTER SESSION ENABLE RESUMABLE TIMEOUT 60;  What is the impact of a timeout on the statements being suspended?()A The statements remain suspended for at least 60 seconds.B The statements are suspended for 60 seconds and then they are executed.C The suspended statements error out if the problem is not rectified within 60 seconds.D The statements are automatically suspended 60 seconds after an error is received, and then attempt toexecute normally again.

考题 单选题In your test database, you find that a user’s session is executing a lot of SQL statements, resulting in the generation of a large number of trace files. While investigating the reason, you find that SQL trace has been enabled at the instance level.  You want to disable SQL trace, remotely, only for that user session to reduce the volume of trace data being generated.  How do you achieve this objective?()A by setting the SQL_TRACE parameter to FALSE in the parameter fileB by using DBMS_MONITOR.SESSION_TRACE_DISABLE to disable the tracing for the user sessionC by setting the SQL_TRACE parameter to FALSE by using the ALTER SYSTEM command in the user sessionD by setting the SQL_TRACE parameter to FALSE by using the ALTER SESSION command in the user session

考题 单选题To make audit information more productive, the DBA executes the following command before starting an auditoperation: SQL ALTER SYSTEM SET AUDIT_TRAIL=DB,EXTENDED SCOPE=SPFILE; Which statement is true regarding the audit record generated when auditing starts after restarting Thedatabase()A It contains only the plan for the SQL statement executed by the user.B It contains the SQL text executed by the user and the bind variables used with it.C It contains the plan and statistics associated with the SQL statement executed by the user.D It contains the plan for the SQL statement executed by the user and the bind variables used with it

考题 单选题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 1B Only 2C Only 3D 3 and 1E 1 and 2

考题 单选题You execute the following command to audit the database activities:  SQL AUDIT DROP ANY TABLE BY scott BY SESSION WHENEVER SUCCESSFUL;  What is the effect of this command?()A One audit record is created for the whole session if user SCOTT successfully drops one or more tables in his session.B One audit record is created for every session when any user successfully drops a table owned by SCOTT.C One audit record is created for each successful DROP TABLE command executed by any user to drop tables owned by SCOTT.D One audit record is generated for the session when SCOTT grants the DROP ANY TABLE privilege to other users in his session.E One audit record is created for each successful DROP TABLE command executed in the session of SCOTT.

考题 单选题You execute the following command to enable a session in resumable mode:  SQL ALTER SESSION ENABLE RESUMABLE TIMEOUT 60;  What is the impact of a timeout on the statements being suspended?()A  The statements remain suspended for at least 60 seconds.B  The statements are suspended for 60 seconds and then they are executed.C  The suspended statements error out if the problem is not rectified within 60 seconds.D  The statements are automatically suspended 60 seconds after an error is received, and then attempt to execute normally again.

考题 单选题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.

考题 单选题You created the ORDERS table in your database by using the following code:   SQL CREATE TABLE ORDERS (ORDER_DATE TIMESTAMP(0) WITH TIME ZONE);   Then, you inserted data in the ORDERS table and saved it by issuing the following statements:SQL INSERT INTO ORDERS VALUES(’18-AUG-00 10:26:44 PM America/New_York’);   SQL INSERT INTO ORDERS VALUES(’23-AUG-02 12:46:34 PM America/New_York’);   SQL COMMIT;   Next, you issued the following statement to change the time zone for the database:   SQL ALTER DATABASE SET TIME_ZONE=’Europe/London’;   What will be the result of executing the above statement?()A  The statement will fail.B  The statement will be executed successfully, and the new time zone will be set for the database.C  The statement will be executed successfully, but the new time zone will be set for the current session.D The statement will be executed successfully, but the new time zone will neither be set for the database nor for a specific session.

考题 单选题You executed the following commands in an RMAN session for your database instance that has failures: RMAN LIST FAILURE; After some time, you executed the following command in the same session: RMAN ADVISE FAILURE; But there are new failures recorded in the Automatic Diagnostic Repository (ADR) after the execution of the last LIST FAILURE command. Which statement is true for the above ADVISE FAILURE command in this scenario?()A It produces a warning for new failures before advising for CRITICAL and HIGH failures.B It ignores new failures and considers the failures listed in the last LIST FAILURE command only.C It produces an error with recommendation to run the LIST FAILURE command before the ADVISE FAILURE command.D It produces advice only for new failures and the failures listed in the last LIST FAILURE command are ignored.

考题 单选题You are managing a single instance Oracle 10g database that utilizes the following parameters:  Which of the following set of commands must you execute to enable Flashback Database?()A   STARTUP MOUNT EXCLUSIVE  ALTER DATABASE FLASHBACK ON;  ALTER DATABASE OPEN;B   STARTUP MOUNT  ALTER DATABASE FLASHBACK ON;  ALTER DATABASE OPEN RESETLOGS;C   STARTUP MOUNT EXCLUSIVE  ATLER DATABASE ARCHIVELOG;  ALTER DATABASE FLASHBACK ON;  ALTER DATABASE OPEN RESETLOGS;D   STARTUP MOUNT  ALTER DATABASE ARCHIVELOG;  ALTER DATABASE FLASHBACK ON;  ALTER DATABASE OPEN;

考题 单选题All the database users are presently connected to the database instance and working. The HR user hasopened three database sessions and executed the following command in one of his sessions:SQL UPDATE persons SET ccode=’U031’ WHERE ccode=’U029’; 123 rows updated.SQL DELETE FROM persons WHERE exp=’Y’;3 rows deleted. The SYS user opens a new session after HR executed the above commands.  Which sessions can see theeffect of the UPDATE and DELETE commands()A All sessions of the HR user onlyB All sessions of the HR user and the SYS userC The session of the HR user that executed the commandsD All the sessions for which the database users have access privilege to the PERSONS table

考题 单选题You discover an out-of-space condition in the database. You decide to suspend a session for five minutes. You issue the following command to suspend the session:   ALTER SESSION ENABLE RESUMABLE;   Which command could you issue to enable the resumable space allocation feature at the session level?()A  ALTER SESSION ENABLE RESUMABLE_TIMEOUT = 5;B  ALTER SYSTEM ENABLE RESUMABLE_TIMEOUT = 5;C  ALTER SESSION ENABLE RESUMABLE_TIMEOUT = 300;D  ALTER SYSTEM ENABLE RESUMABLE TIMEOUT = 300;