Upgrade Oracle9i/10g OCA to Oracle Database 11g OCP v6.0 (1z0-034)

Page:    1 / 10   
Total 148 questions

You work with a newly created database. Presently, there is no application load on the database instance. You want to create a baseline for tuning the application, so you decide to collect recommendations that can be implemented to improve application performance.
What action must you take to achieve this?

  • A. Run Segment Advisor.
  • B. Run the SQL Tuning Advisor (STA).
  • C. Run the Automatic Workload Repository (AWR) report.
  • D. Run the SQL Access Advisor with a hypothetical workload.


Answer : D

Because of a logical corruption in your production database, you wanted to perform
Tablespace Point in TimeRecovery (TSPITR). But before you start the recovery, you queried the TS_PITR_OBJECTS_TO_BE_DROPPEDview and realized that there are a large number of objects that would be dropped when you start the recoveryby using this method. You want to preserve these objects. Which option must you use to perform
TSPITR andpreserve the object?

  • A. Perform Export before TSPITR and Import after TSPITR
  • B. Move objects to another schema that has the same tablespace assigned
  • C. Perform Incomplete Recovery before TSPITR with the Log Sequence Number (LSN)
  • D. Perform Incomplete Recovery before TSPITR with the System Change Number (SCN)


Answer : A

View the following SQL statements:

Transaction T1 -

SQL> INSERT INTO hr.regions -
2 VALUES (5,'Pole');
3 COMMIT;

Transaction T2 -

SQL> UPDATE hr.regions -
2 SET region_name='Poles'
3 WHERE region_id = 5;
4 COMMIT;

Transaction T3 -

SQL> UPDATE hr.regions -
2 SET region_name='North and South Poles'
3 WHERE region_id = 5;
You want to back out transaction T2. Which option would you use?

  • A. It is possible, but transaction T3 also backs out.
  • B. It is possible with the NOCASCADE_FORCE option.
  • C. It is possible with the NONCONFLICT_ONLY option.
  • D. It is not possible because it has conflicts with transaction T3.


Answer : B

Explanation:
Table 12-2 Flashback TRANSACTION_BACKOUT Options

CASCADE -
Backs out specified transactions and all dependent transactions in a post-order fashion
(that is, children arebacked out before parents are backed out).
Without CASCADE, if any dependent transaction is not specified, an error occurs.

NOCASCADE -
Default. Backs out specified transactions, which are expected to have no dependent transactions. Firstdependent transactions causes an error and appears in
*_FLASHBACK_TXN_REPORT.

NOCASCADE_FORCE -
Backs out specified transactions, ignoring dependent transactions. Server runs undo SQL statements forspecified transactions in reverse order of commit times.If no constraints break and you are satisfied with the result, you can commit the changes; otherwise, you canroll them back.

NONCONFLICT_ONLY -
Backs out changes to nonconflicting rows of the specified transactions. Database remains consistent, buttransaction atomicity is lost.

Which data dictionary view would you query to find the name of the default permanent tablespace of the database?

  • A. DICTIONARY
  • B. DBA_TABLESPACES
  • C. DBA_DIRECTORIES
  • D. DBA_STORED_SETTINGS
  • E. DATABASE_PROPERTIES
  • F. DBA_TABLESPACE_GROUPS


Answer : E

Explanation: SQL*Plus: Release 10.2.0.1.0 Production on Sat Feb 4 20:31:26 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.

SQL> conn / as sysdba -
Connected.

SQL>desc DATABASE_PROPERTIES -

Name Null? Type -
PROPERTY_NAME NOT NULL
VARCHAR2(30)
PROPERTY_VALUE VARCHAR2(4000)
DESCRIPTION VARCHAR2(4000)
SQL> SELECT PROPERTY_NAME, PROPERTY_VALUE
2 FROM DATABASE_PROPERTIES
3WHERE PROPERTY_NAME=DEFAULT_PERMANENT_TABLESPACE;

PROPERTY_NAME PROPERTY_VALUE -
- -
DEFAULT_PERMANENT_TABLESPACE USERS

You issued the following commands to configure settings in RMAN:
RMAN> CONFIGURE DEVICE TYPE sbt PARALLELISM 1;
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO Sbt;
RMAN> CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE sbt TO 2;
RMAN> CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE sbt TO 2;
RMAN> CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
Then you issued the following command to take the backup:
RMAN> BACKUP DATABASE PLUS ARCHIVELOG;
Which statement is true about the execution of the above command?

  • A. The backup will terminate because the FORMAT clause was not configured for the channel
  • B. It backs up two copies of data files to tape and disk, and two copies of archived log file on tape
  • C. It backs up the data files and archived log files to disk, making two copies of each data file and archived logfile
  • D. It backs up the data files and archived log files to tape, making two copies of each data file and archived logfile


Answer : D

After you have restored and recovered a database to a new host by using a previously performed Recovery Manager (RMAN) backup, which is the best option you would consider for the new database?

  • A. Opening the database in RESTRICTED mode
  • B. Opening the database with the RESETLOGS option
  • C. Setting a new DBID for the newly restored database
  • D. Restoring the server parameter file (SPFILE) to the new host


Answer : B

You are in the process of creating a Virtual Private Catalog (VPC) in your Oracle Database l1g database .The PROD1, PROD2, and PROD3 Oracle Database 10g databases are registered in the base recovery catalog. The database user who owns the base recovery catalog is CATOWNER.CATOWNER executes the following command to grant privileges to a new user vpc1 using Oracle Database 11g RMAN executables:
RMAN> GRANT CATALOG FOR DATABASE prod1, prod2 TO vpc1;
Then you issue the following commands:
RMAN> CONNECT CATALOG vpc1/oracle@catdb;
RMAN> SQL "EXEC catowner.dbms_rcvcat.create_virtual_catalog;"
What is the outcome of the above commands?

  • A. They execute and create a virtual catalog for pre-Oracle 11g clients.
  • B. They produce an error because PROD1 and PROD2 databases belong to the older version.
  • C. They produce an error because you need to connect as CATOWNER to execute this packaged procedure.
  • D. They produce an error because you need to connect to the target database to execute this packaged procedure.


Answer : A

Examine the following command for RMAN backup:
RMAN> RUN {
ALLOCATE CHANNEL c1 DEVICE TYPE sbt;
ALLOCATE CHANNEL c2 DEVICE TYPE sbt;
ALLOCATE CHANNEL c3 DEVICE TYPE sbt;

BACKUP -

INCREMENTAL LEVEL = 0 -
(DATAFILE 1,4,5 CHANNEL c1)
(DATAFILE 2,3,9 CHANNEL c2)
(DATAFILE 6,7,8 CHANNEL c3);
SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
Which statement is true regarding the approach in the command?

  • A. The RMAN multiplexing level is 4.
  • B. It is the use of asynchronous I/O by RMAN.
  • C. It is a case of parallelization of the backup set.
  • D. It is an implementation of a multisection backup.


Answer : C

Which two statements are true about the duplexing of the backups taken by RMAN?

  • A. It's only supported for the backups performed on the tape
  • B. It is not supported for backup operations that produce image copies
  • C. Duplex backups need a parallelism for the device to be equal to number of copies
  • D. Duplex backups can be performed to either disk or tape, but cannot be performed on tape and disk simultaneously


Answer : B,D

To enable faster incremental backups, you enabled block change tracking for the database.
Which two statements are true about the block change tracking file? (Choose two.)

  • A. Multiple change tracking files can be created for a database.
  • B. The change tracking file must be created after the first level 0 backup.
  • C. RMAN does not support backup and recovery of the change tracking file.
  • D. The database clears the change tracking file and starts tracking changes again, after whole database restore and recovery operations.


Answer : C,D

You are using Recovery Manager (RMAN) for backup and recovery operations with a recovery catalog. You have been taken database backups every evening. On November
15, 2007, at 11:30 AM, you were informed that the USER_DATA tablespace was accidentally dropped. On investigation, you found that the tablespace existed until 11:00
AM, and important transactions were done after that.
So you decided to perform incomplete recovery until 11:00 AM. All the archive logs needed to perform recovery are intact. In NOMOUNT state you restored the control file that has information about the USER_DATA tablespace from the latest backup. Then you mounted the database. Identify the next set of commands that are required to accomplish the task?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : A

Which statement is true about a running session that belongs to the online transaction processing (OLTP) group?

  • A. It permanently switches to the low_group consumer group if the session exceeds 10,000 I/O requests or 2,500 MB of data transfer.
  • B. It performs the first 10000 I/O requests or 2,500 MB of data transfer in the LOW-GROUP consumer group, and then switches to the original group.
  • C. It switches to the LOW_GROUP consumer group if the session exceeds 10000 I/O requests or 2500 MB of data transfer and returns to the original group after the operation.
  • D. It switches to the LOW_GROUP consumer group if the session exceeds 10000 I/O requests or 2500 MB of data transfer for queries, but not for data manipulation language (DML) operations.


Answer : C

View the Exhibit to examine the replay settings for replay parameters.
What is the implication for setting the values for replay parameters? (Choose all that apply.)
Exhibit:


  • A. The COMMIT order in the captured workload is preserved during replay.
  • B. The value 100 in the THINK_TIME_SCALE parameter attempts to make the replay client shorten the think time between calls.
  • C. The value 100 in the CONNECT_TIME_SCALE parameter attempts to connect all sessions as captured.
  • D. The value 100 in the THINK_TIME_SCALE parameter attempts to match the captured user think time while replaying.
  • E. The value 100 in the CONNECT_TIME_SCALE parameter attempts to connect all sessions immediately as soon as the replay begins.


Answer : A,C,D

In your production database, users report that they are unable to generate reports on an important table because it does not contain any data. While investigating the reason, you realize that another user executed the TRUNCATE TABLE command, which accidentally caused the data to be lost. Now you want to recover the lost data of the table without affecting objects in other schemas.
Which method must you use to recover the lost data?

  • A. Complete Recovery with online redo log
  • B. Complete Recovery with archived redo log
  • C. Tablespace Point-in-Time Recovery (TSPITR)
  • D. Incomplete Recovery with system change number (SCN)


Answer : C

Evaluate the following block of code:
What is the outcome of the above code?

  • A. It produces an error because a fully qualified host name needs to be specified.
  • B. It produces an error because the range of ports associated with the hosts has not been specified.
  • C. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT and RESOLVE privileges.
  • D. It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT privilege but not the RESOLVE privilege.


Answer : C

Page:    1 / 10   
Total 148 questions