Sunday, April 7, 2013

OPN Certified Specialist , Oracle Certified Expert, Oracle Exadata Database Machine X3 Administrator (1Z0-027)

Exadata Database Machine Overview
  • Identify the benefits of using Database Machine for different application classes
  • Describe the integration of the Database Machine with Oracle Database Clusterware and ASM
  • Describe Exadata Storage Server and the different Database Machine configurations
  • Describe the key capacity and performance specifications for Database Machine
  • Describe the key benefits associated with Database Machine
Exadata Database Machine Architecture
  • Describe the Database Machine network architecture
  • Describe the Database Machine software architecture
  • Describe the Exadata Storage Server storage entities and their relationships
  • Describe how multiple Database Machines can be interconnected
  • Describe site planning requirements for Database Machine
  • Describe network requirements for Database Machine
Key Capabilities of Exadata Database Machine
  • Describe the key capabilities of Exadata Database Machine
  • Describe the Exadata Smart Scan capabilities
  • Describe the capabilities of hybrid columnar compression
  • Describe the capabilities and uses of the Smart Flash Cache
  • Describe the capabilities of the Smart Flash Log
  • Describe the purpose and benefits of Storage Indexes
  • Describe the capabilities and uses of Exadata Secure Erase
Exadata Database Machine Initial Configuration
  • Describe the installation and configuration process for Database Machine
  • Describe the default configuration for Database Machine
  • Describe supported and unsupported customizations for Database Machine
  • Describe database machine operating system options and configurations
Configure Exadata Storage Server
  • Configure Exadata software
  • Create and configure ASM disk groups using Exadata
  • Use the CellCLI Exadata administration tool
  • Describe Exadata Storage Server security
I/O Resource Management
  • Use Exadata Storage Server I/O Resource Management to manage workloads within a database and across multiple databases
  • Configure database resource management plans
  • Configure category plans
  • Configure inter-database plans
  • Describe and configure the I/O resource manager objectives
  • Monitor I/O using I/O Metrics
Recommendations for Optimizing Database Performance
  • Optimize database performance in conjunction with Exadata Database Machine
  • Monitor and configure table indexes, accounting for the presence of Exadata
Using Smart Scan
  • Describe Smart Scan and the query processing that can be offloaded to Exadata Storage Server
  • Describe the requirements for Smart Scan
  • Describe the circumstances that prevent using Smart Scan
  • Identify Smart Scan in SQL execution plan
  • Use database statistics and wait events to confirm how queries are processed
Consolidation Options and Recommendations
  • Describe the options for consolidating multiple databases on Database Machine
  • Describe the benefits and costs associated with different options
  • Identify the most appropriate approach for consolidation in different circumstances

Migrating Databases to Exadata Database Machine
  • Describe the steps to migrate your database to Database Machine
  • Explain the main approaches for migrating your database to  Database Machine
  • Identify the most appropriate approach for migration in different circumstances
  • Identify the most appropriate storage configuration for different circumstances
Bulk Data Loading using Oracle DBFS
  • Use Oracle DBFS for bulk data loading into Database Machine
  • Configure the Database File System (DBFS) feature for staging input data files
  • Use external tables based on input data files stored in DBFS to perform high-performance data loads
Exadata Database Machine Platform Monitoring
  • Describe the purpose and uses of SNMP for the Database Machine
  • Describe the purpose and uses of IPMI for the Database Machine
  • Describe the purpose and uses of ILOM for the Database Machine
Configuring Enterprise Manager Grid Control 11g to Monitor Exadata Database Machine
  • Describe the Enterprise Manager Grid Control architecture as it specifically applies to Exadata Database Machine
  • Describe the placement of agents, plug-ins and targets
  • Describe the recommended configuration for high availability
  • Describe the plug-ins associated with Exadata Database Machine and how they are configured
  • Use setupem.sh
  • Configure a dashboard for Exadata Database Machine
Monitoring Exadata Storage Servers
  • Describe Exadata Storage Server metrics, alerts and active requests
  • Identify the recommended focus areas for Exadata Storage Server monitoring
  • Monitor the recommended Exadata Storage Server focus areas
Monitoring Exadata Database Machine Database Servers
  • Describe the monitoring recommendations for Exadata Database Machine database servers
Monitoring the InfiniBand Network
  • Monitor InfiniBand switches
  • Monitor InfiniBand switch ports
  • Monitor InfiniBand ports on the database servers
  • Monitor the InfiniBand subnet master location
  • Monitor the InfiniBand network topology
Monitoring other Exadata Database Machine Components
  • Monitor Exadata Database Machine components: Cisco Catalyst Ethernet Switch, Sun Power Distribution Units, Avocent MergePoint Unity KVM Switch
Monitoring Tools
  • Use monitoring tools: Exachk, DiagTools, ADRCI, Imageinfo and Imagehistory, OSWatcher
Backup and Recovery 
  • Describe how RMAN backups are optimized using Exadata Storage Server
  • Describe the recommended approaches for disk-based and tape-based backups of databases on Database Machine
  • Describe the recommended best practices for backup and recovery on Database Machine
  • Perform backup and recovery
  • Connect a media server to the Database Machine InfiniBand network
Database Machine Maintenance tasks
  • Power Database Machine on and off
  • Safely shut down a single Exadata Storage Server
  • Replace a damaged physical disk on a cell
  • Replace a damaged flash card on a cell
  • Move all disks from one cell to another
  • Use the Exadata  cell software rescue procedure
Patching Exadata Database Machine
  • Describe how software is maintained on different Database Machine components
  • Locate recommended patches for Database Machine
  • Describe the recommended patching process for Database Machine
  • Describe the  characteristics of an effective test system
Database Machine Automated Support Ecosystem
  • Describe the Auto Service Request (ASR) function and how it relates to Exadata Database Machine
  • Describe the implementation requirements for ASR
  • Describe the ASR configuration process
  • Describe Oracle Configuration Manager (OCM) and how it relates to Exadata Database Machine
Quality of Service Management
  • Describe the purpose of Oracle Database Quality of Service (QoS) Management
  • Describe the benefits of using Oracle Database QoS Management
  • Describe the components of Oracle Database QoS Management
  • Describe the operations of Oracle Database QoS Management

Tuesday, April 2, 2013

Oracle RAC 11g R2 and Grid Infrastructure Administration (1z0-058)

1
Which three actions would be helpful in determining the cause of a node reboot?
A. determining the time of the node reboot by using the uptime command and subtracting the uptime from the current system time
B. looking for messages such as "Oracle CSSD failure. Rebooting for cluster integrity" in /var/log/messages
C. using the crsctl command to view tracing information
D. inspecting the ocssd log for "Begin Dump" or "End Dump" messages
E. inspecting the database alert log for reboot messages

Answer: A,B,D

2
After Oracle Grid Infrastructure has been installed, you should take a few moments to verify the
installation. Which two actions would be useful in verifying the installation?
A. Run the crsctl status resource –t command to confirm that all necessary cluster resources are online.
B. Use the operating system utilities to verify that your SCAN addresses are being properly resolved.
C. Start Oracle Enterprise Manager and check all monitored targets.
D. Run the cluvfy comp nodecon –n all –verbose command to verify the entire Grid Infrastructure installation.

Answer: A,B

3
Which two network addresses are required to be static, non-dhcp addresses when using the Grid Naming?
A. GNS VIP Address
B. SCAN VIP Address
C. Node VIP Address
D. Node Public Address
E. Node Private Address

Answer: A,D

4
You are in the planning stages for upgrading your Oracle RAC database from Oracle Database
10g Release 2 to Oracle Database 11g Release 2 to run under the Oracle Grid Infrastructure.
You decide to use an administrator-managed configuration because the cluster is fairly small.
Which statement is correct about this configuration?
A. A parent pool of the GENERIC server pool will be used.
B. You must define a new server pool called MANUAL.
C. A subpool of the GENERIC server pool will be used.
D. A subpool of the FREE server pool will be used.

Answer: C

5
The Instance Initialization parameters are set to:

DB_CREATE_FILE_DEST = +DATA
DB_CREATE_ONLlNE_LOG_DEST_l = +LOGS
DB_CREATE_ONLlNE_LOG_DEST_2 = + FRA
The SQL* Plus command “ALTER DATABASE ADD LOGFILE;” will create:

A. a new log file in the +DATA disk group, or a log file in the + FRA disk group, if +DATA is not available
B. a new log file in the +DATA disk group and a log file in the + FRA disk group
C. a new log file in the +LOGS disk group and a log file in the + FRA disk group
D. a new log file in the +LOGS disk group, or a log file in the +FRA dls* available
E. a new log file in the +DATA disk group, a log file in the +LOGS disk group, and a log file in the +FRA disk group
F. a new log file in the +LOGS disk group, or a log file in the +FRA disk group, if +LOGS is not available

Answer: C


6
Which three statements define a cluster?
A. is a group of independent, but interconnected computers that act as a single system
B. can be deployed to increase availability and performance
C. can be deployed to balance a dynamically changing workload
D. should appear to an application as multiple servers
Answer: A,B,C


7
You want to create an ACFS on an ADVM volume using a shell script and the appropriate command-line utilities.
These are the requirements:
1. The dynamic volume file must use space in the VOLFILE disk group with a size of 500 M and be called prodvol.
2. The mount point called /acfs already exists. Which four steps must be performed to achieve this?
A. As the Grid Infrastructure owner, run mount -t acfs /dev/asm/prodvol-417 /acfs to mount the file system.
B. As the Grid Infrastructure owner, run asmcmd volinfo -d volfile prodvol to determine the volume information.
C. As the Grid Infrastructure owner, run asmcmd volcreate -d volfile -s 500M prodvol to create the volume file.
D. As the Grid Infrastructure owner, run mkfs -t acfs /dev/asm/prodvol-417 to create the filesystem.
E. As root, run mount -t acfs /dev/asm/prodvol-417 /acfs to mount the file system.
F. As root, run mkfs -t acfs /dev/asm/prodvol-417 to create the file system.

Answer: B,C,E,F

8
Some new non-ASM shared storage has been made available by the storage administrator, and
the Oracle Grid Infrastructure administrator decides to move the voting disks, which do not reside
in ASM, to this new non-ASM location. How can this be done?
A. by running crsctl add css votedisk <path_to_new_location> followed by crsctl delete css –votedisk <path_to_old_location>
B. by running crsctl replace css votedisk <path_to_old_location,path_to_new_location>
C. by running srvctl replace css votedisk <path_to_old_location, path_to_new_location>
D. by running srvctl add css votedisk <path_to_new_location> followed by srvctl delete css votedisk <path_to_old_location>

Answer: A


9
Which three statements are true about using RMAN with ASM?
A. RMAN is the only supported method to back up database files stored in ASM.
B. RMAN is the only supported method to back up ACFS files.
C. RMAN can use ASM storage for backups.
D. RMAN cannot use ASM storage for backups.
E. Using RMAN, database files can be migrated to ASM from a file system.
F. Using RMAN, database files cannot be moved from ASM to a file system

Answer: A,C,E


10
Which two statements are true about ACFS snapshots?
A. They can be created for ACFS file systems only if the ASM disk group hosting the ADVM
volume file used by the file system has free space available.
B. They can be created for ACFS file systems only if the ADVM volume file used by the file system
has free space available.
C. They can be created only if the ASM disk group hosting the ADVM volume used by the file
system has no other ASM files contained in the disk group.
D. They can be created when ACFS is used both on clusters and on stand-alone servers.
E. They are accessible only on the cluster node that was used when creating the snapshot

Answer: B,D


11
Your cluster Is subject to a service-level agreement that allows for little scheduled down time You
want to use patching and maintenance methods that permit the Oracle Grid Infrastructure and
Oracle RAT Databases to be available as much as possible.
Which two techniques will work some or all of the time to provide you with minimum down time?
A. rolling upgradeable and in place patch sets
B. idling upgradeable and out of place patch bundles
C. rolling upgradeable and out of place patch sets
D. rolling upgradeable and in place patch bundles
E. rolling upgradeable and out of place one-off patches

Answer: C,D


12
Which two types of files can be stored In an ASM clustered file system?
A. OCR and Voting Disk files
B. data files for external tables
C. Oracle database executable
D. Grid Infrastructure executables
E. data files for tablespaces
F. archive log files

Answer: B,C

13
You want to reorganize the DATA diskgroup while continuing database operations. The DATA
diskgroup was created using normal redundancy having one disk per failure group. The two disks
used are /dev/sdal and /dev/sda2.
You plan to drop the existing disks and add the /dev/sdb1 and /dev/sdb2 disks to failure group
FG_C and the /dev/sdcl and /dev/sdc2 disks to failure group FG_D.
Which procedure would you use to minimize the effect of the I/Os of this reorganization on
ongoing database operations?
A.
Set rebalance power to 0 for diskgroup DATA.
Add failure group FG_C with all the /dev/sdb disks.
Add failure group FG_D with all the /dev/sdc disks.
Drop disks/dev/sda1 and /dev/sda2.
Set rebalance power to 1 for diskgroup DATA.
B.
Set rebalance power to 0 for diskgroup DATA.
Add failure group FG_C with all the /dev/sdb disks.
Add failure group FG_D with all the /dev/sdb disks.
Drop disks/dev/sda1 and /dev/sda2.
Set rebalance power to 9 for diskgroup DATA.
C.
Set rebalance power to 9 for diskgroup DATA.
Add failure group FG_C with all the /dev/sdb disks.
Add failure group FG_D with all the /dev/sdc disks.
Drop disks /dev/sda1 and /dev/sda2.
Set rebalance power to 0 for diskgroup DATA.
D.
Set rebalance power to 0 for diskgroup DATA
Drop disks /dev/sdal and /dev/sdb disks.
Add failure group FG_C with all the /dev/sdb disks.
Add failure group FG_D with all the /dev/sdc disks
Set rebalance power to 1 for diskgroup DATA.

Answer: A

14
Which two Cluster ware stack administration actions must be performed as the root user?
A. checking the health of the Clusterware on one node
B. starting the Clusterware manually on one node
C. disabling the Clusterware from automatic start at node reboot
D. checking the health and viability of the Clusterware on all nodes
E. listing the location of the voting disks

Answer: B,C

15
Which four statements are true about ADVM interoperability?
A. Using fdisk or similar disk utilities to partition ADVM-managed volumes is not supported
B. On Linux platforms, the raw utility can be used to map ADVM volume block devices to raw volume devices.
C. The creation of multipath devices over ADVM devices is not supported.
D. You may create ASMLIB devices over ADVM devices to simplify volume management.
E. ADVM does not support ASM storage contained in Exadata.
F. F. ADVM volumes cannot be used as a boot device or a root file system.

Answer: A,C,E,F


16
Your four-node cluster was originally purchased, installed, and configured three years ago. You
recently added another four nodes to the cluster.
Now you want to remove two of the older nodes that are still accessible to be redeployed
elsewhere in the data center. Which two are true regarding the procedure for removing one or
more cluster nodes?
A. The procedure requires that all commands be invoked from one of the surviving cluster nodes.
B. All commands are run as root regardless of which nodes are used to invoke them.
C. The procedure requires that some commands be invoked on the node or nodes to be removed
and that some be invoked from all surviving cluster nodes.
D. The procedure requires that some commands be invoked on the node or nodes to be removed
and that some be invoked from one surviving cluster node.
E. Some commands require that the name of the node or nodes to be removed are passed as
arguments, and some commands require the name of existing nodes to be passed.

Answer: D,E


17
Your production environment cluster is running Oracle Enterprise Linux and currently has four
nodes. You are asked to plan for extending the cluster to six nodes. Which three methods are
available to add the new nodes?
A. silent cloning using crsctl clone cluster and ssh
B. a GUI interface from Enterprise Manager
C. with the Oracle Universal Installer using runInstaller –clone <nodename>
D. silent cloning using perl clone.pl–silent either with parameters in a file or in line
E. using addNode.sh

Answer: B,D,E


18
The Oracle 11g Release 2 (version 11.2.0.1) ASM instance has a new diskgroup named DATA
that is currently not mounted. You log in to a cluster node as the Grid Infrastructure software
owner and set the environment variables to point to the ASM instance on that node. Using
SQL*Plus, you issue the commands:
CONNECT / AS SYSDBA
ALTER DISKGROUP DATA MOUNT;
The system response is:
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15260: permission denied on ASM disk group
How do you diagnose this error?
A. Check v$asm_operation for operations halted by the error.
B. Check v$asm_attributes to determine the asm.compatible setting.
C. Check v$asm_usergroup to determine the owning user group for this diskgroup.
D. Check v$xs_session_role to determine the role privileges of the current user.
E. Check the connect string for the privileged role.

Answer: E

19
You enter the following command:
crsctl status resource MyApp
You get this output:
NAME=MyApp
TYPE=cluster_resource TARGET=ONLINE STATE=ONLINE on RACNODE4
MyApp is a policy-managed resource using a server pool with two nodes called RACNODE3 and
RACNODE4 and has a cardinality of 1.
What are the meanings of the target and state status values?
A. MyApp is currently active on RACNODE4 and is meant to be active only on RACNODE4.
B. MyApp is meant to be active, is currently active on RACNODE4, but the Grid Infrastructure may
start MyApp on RACNODE3 due to failovers.
C. MyApp is active on RACNODE4 and was manually started.
D. MyApp should also be online on RACNODE3 because it is a cluster_resources type that must
be active on at least two nodes in the cluster, thereby overriding the CARDINALITY attribute.

Answer: B


20
After evaluating the various methods for extending a cluster, you decide to use addNode.sh.
The cluster originally consisted of four nodes: RACNODE1, RACNODE2, RACNODE3, and
RACNODE4. Now two nodes called RACNODES and RACNODE6 have been installed and
connected to the cluster by OS administrations.
Which three actions should be performed to check whether the new nodes are ready for running
addNode.sh and to help correct any problems?
A. cluvfy stage -pre crsinst -n RACNODE5/ RACNODE6 -C + DATA -q +VOTE -orainv
B. <oinstall group> -fixup -verbose
C. cluvfy stage -post hwos -n RACNODE5, RACNODE6 -verbose
D. cluvfy comp peer -refnode RACNODE1 -n RACNODE5, RACNODE6 -orainv <oinstall group> -osdba <asmdba group> -verbose
E. cluvfy stage -post hwos -n all -verbose
F. cluvfy stage -pre nodeadd -n RACNODE5, RACNODE6 -fixup
G. cluvfy comp peer -refnode RACNODES -n RACNODE6 -orainv <oinstall group> -osdba<asmdba group> -verbose

Answer: C,D,F


21
What are the default connect strings used by SQL*Plus and ASMCMD when connecting to ASM
instances?
A. operating system authentication for ASMCMD;
none for SQL*Plus
B. "/ AS SYSASM" for ASMCMD;
"/" for SQL*Plus
C. "SYS/ AS SYSASM" for ASMCMD;
"/ AS SYSDBA" for SQL*Pius
D. operating system authentication for ASMCMD;
operating system authentication for SQL*Plus
E. "/ AS SYSASM" for ASMCMD;
operating system authentication for SQL*Plus

Answer: B


22
You want to install a database patch on your eight-node cluster by using Opatch with, the
minimum amount of down time to your cluster nodes.
You have already been prompted for the first set of nodes and you replied with node names
RACNODE1 RACNODE2, and RACNODE3.
Which two statements are true about the procedure for minimizing down time?
A. The patch must be propagated to, applied, and the inventory updated on all the remaining
nodes before restarting the instances on the first set of nodes.
B. When the first set of nodes has been patched, the instances on the remaining nodes are shut
down automatically by opatch.
C. The instances must be started on the first set of nodes and then stopped on the remaining set
to make certain that some nodes are always available.
D. When the first set of nodes has been patched, the administrator is prompted to shut down the
instances on the remaining nodes.
E. The patch must be propagated to and the inventory updated on all the remaining nodes before
restarting the instances on the first set of nodes.

Answer: D,E


23
You are ready to add two new nodes called RACNODE5 and RACNODE6 to your existing fournode
cluster using addNode.sh
You have run cluvfy -peer to check the new nodes against a reference node.
When you originally created the cluster, the network administrators chose to statically define the
scan vip addresses in the corporate DNS server, and you installed the Oracle Grid Infrastructure
without using GNS.
What is the correct way to silently add the nodes? r
A. addNode . sh -silent "CLUSTER_NEW_nodes={ RACNODE5, RACNODEg > "
B. addNode . sh -silent "CLUSTER_NEW_VIRTUAL_HOSTNAMES=<(RACNODES -VI P,
RACNODE6-VIP) "
C. addNode. sh -silent "CLUSTER_NEW_NODES= { RACNODES, RACNODE6 } "
"CLUSTER_NEW_VlRTUAL_HOSTNAMES= RACNODE5-VIP, RACNODE6-VI P > "
D. addNode.sh -silent -responseFile mynewnodea . txt With the response file containing only
E. CLUSTER_NEW_NODES= {“RACNODE5, RACNODE6”)
F. addNode.sh -silent -responseFile mynewnodes . txt With the response file containing only
CLUSTER NEW VIRTUAL HOSTNAMES= { " RACNODE3-VI P , RACNODE4 -VI P >

Answer: C

24
Which four statements about mounting ASM cluster file systems are true?
A. An ACFS volume can be mounted by using ASMCA.
B. The standard Linux/UNIX mount command can be used to mount an ACFS volume, provided the ACFS type is specified; (mount -t acfs).
C. ACFS volumes can be mounted by using the ASMCMD utility.
D. The acfsmountvol command can be used to mount ACFS volumes on Windows platforms.
E. Oracle Enterprise Manager can be used to mount ACFS volumes.

Answer: A,B,D,E


25
You are allocating space from the ASM disk group for an ADVM volume. What will be the volume
extent and Volume Allocation Unit (VAU) if the stripe column is 4 and AU is 1 MB? Which are the
default values?
A. The volume extent is 64 MB and the VAU will be 512 MB.
B. The volume extent is 64 MB and the VAU will be 256 MB.
C. The volume extent is 32 MB and the VAU will be 256 MB.
D. It is not possible to calculate these values with the given information.

Answer: B

26
You are creating a resource definition called WEBAPP for a web-based application that requires
an application called WEBVIP.
Both WEBVIP and WEBAPP are normally active on a single node, but may fail over if required to
another cluster node in your eight-node cluster.
A second VIP application resource called appsvip exists, used by a second application resource
called secapp. webvip and webapp must start In the correct sequence.
Which two start dependencies would you use for the WEBAPP application resource definition?
A. hard(SECAPP)
B. pullup(SECAPP)
C. pullup (WEBVIP)
D. hard(WEBVlP)
E. dispersion(WEBVIP)
F. weak (WEBVIP)

Answer: C,D


27
The database administrator is tasked with creating an ASM disk group. Exadata is not being used.
If failure groups are not specified when creating an ASM disk group containing 10 disks, how
many failure groups are automatically created?
A. one
B. two
C. five
D. ten

Answer: D


28
The Oracle Grid Infrastructure administrator runs ocrconfig -backupioc <new_location> after
completing the installation of the Grid Infrastructure. What are the two reasons for doing this
A. The master node may change if the node running the master CRS daemon shuts down causing
another node to become the master. Because the default location is a nonshared storage, and
only the master node performs backups, the backups could be spread around on many nodes
making management or recovery more difficult.
B. The cluster node currently acting as the master node for CRS is the only node that backs up
the OCR to the default location, and by changing the location, all cluster nodes will then take
backups.
C. This is done to move the backup location into an ASM Cluster File System directory so that the
backups benefit from ASM striping and mirroring.
D. If for any reason CRS must be stopped on all nodes for a time spanning a scheduled backup,
then on restart, the backup timer will be reset. This could result in longer time duration between
automatic backups than the standard four-hour interval.

Answer: A,D

29
From a command line, you can create an ASM volume with the same properties by using either
SQL or ASMCMD. Which two commands will create a 500 MB volume called TESTVOL in the
ACFSDG ACFS diskgroup by storing only one copy of the volume file extents in the diskgroup
A. SQL> alter diskgroup ACFSDG add volume TESTVOL size 500M unprotected;
B. ASMCMD> volcreate -G ASMFS -s 500M
C. SQL> alter diskgroup ACFS add volume TESTVOL size 500M;
D. ASMCMD> volcreate -G ACFSDG -s 500M --redundancy unprotected TESTVOL
E. SQL> create volume TESTVOL diskgroup ACFSDG size 500M unprotected;

Answer: A,D

You installed the Oracle Grid Infrastructure on a four-node cluster before discussing the network
requirements with the network administrator who was on holiday.
You created a single scan named mydb-scan.myclust.example.com by adding this name to the
/etc/hosts file. As a result, the Grid Infrastructure has four node listeners and node VIP but only a
single SCAN listener and SCAN VIP.
The network administrator has returned and modified the corporate DNS server to associate three
IP addresses with the mydb-scan.myclust.example.com scan name. The SCAN VIPs are on the
same network as the node VIPs.
You now must replace the single SCAN VIP and listener with three of each for high availability
purposes and make certain that the SCANs and listeners are active. Which procedure will do this
properly if run as the root user?

A. srvctl stop scan_listener
srvctl stop scan
srvctl start scan
srvctl start scan_listener

B. srvctl stop scan_listener
srvctl stop scan
srvctl remove scan
srvctl add scan -n MYDB-SCAN.MYCLUST.EXAMPLE.COM
srvctl start scan
srvctl start scan_listener

C. srvctl add scan -n MYDB-SCAN.MYCLUST.EXAMPLE.COM
srvctl start scan
srvctl start scan_listener

D. srvctl stop scan_listener
srvctl stop scan
srvctl remove scan
srvctl add scan
srvctl start scan
srvctl start scan listener

Answer: B

31
Which three statements are true about the logging or tracing of Java-based Oracle tools?
A. By default, Oracle logs actions for DBCA and DBUA.
B. For tools such as SRVCTL and CLUVFY, tracing can be enabled by setting srvm trace = true
your shell environment before executing the commands.
C. The srvm_trace environment variable can be set only in the user's shell environment file.
D. To disable tracing for Java-based tools, unset the srvm_trace variable: export srvm_trace=

Answer: A,B,D

Thursday, March 21, 2013

Oracle Exadata Technical Deep Dive Session Presented @OTN Yathra @Chennai


http://www.otnyathra.com/images/presentations/Exadata%20Database%20Machine%20Technical%20Deep%20Dive%20-%20OTN%20Yathra.pdf

Friday, March 1, 2013

Flashback Primary Database In Physical Standby Configuration


1. Check open mode in Primary Database :

SQL> select open_mode,database_role from v$database;

OPEN_MODE            DATABASE_ROLE
-------------------- ----------------
READ WRITE           PRIMARY

SQL> archive log list;
Database log mode                  Archive Mode
Automatic archival                 Enabled
Archive destination                USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence         122
Next log sequence to archive       124
Current log sequence               124
 
SQL> alter system switch logfile;
SQL> alter system switch logfile;
2. Check Archive log status in Physical Standby Database :

SQL> alter database recover managed standby database cancel;
SQL> archive log list;
Database log mode                  Archive Mode
Automatic archival                 Enabled
Archive destination                USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence         123
Next log sequence to archive       0
Current log sequence               124

3. Insert Rows in Primary Database :

SQL> conn sys/oracle@db11g as sysdba
SQL> archive log list;
Database log mode                  Archive Mode
Automatic archival                 Enabled
Archive destination                USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence         124
Next log sequence to archive       126
Current log sequence               126
 
SQL> connect oracle/oracle@db11g
SQL> select * from oracle;

        NO
----------
         1
         3
         2

SQL> conn sys/oracle@db11g as sysdba
SQL> select current_scn from v$database;

CURRENT_SCN
------------
    1444475

SQL> connect oracle/oracle@db11g
SQL> insert into oracle values (4);
1 row created.

SQL> insert into oracle values (5);
1 row created.

SQL> commit;
Commit complete.

SQL> select * from oracle;

        NO
----------
         1
         3
         4
         5
         2

SQL> conn sys/oracle@db11g as sysdba
Connected.
 
SQL> alter system switch logfile;
System altered.

SQL> alter system switch logfile;
System altered.

SQL> archive log list;
Database log mode                Archive Mode
Automatic archival               Enabled
Archive destination              USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence       126
Next log sequence to archive     128
Current log sequence             128
 
Note : Check archive log files are applied to physical standby database.

4. Shutdown the Primary Database :

SQL> shu immediate;
 
5. Startup Primary Database in Mount Stage :

SQL> startup mount;
6. Flashback Primary Database to specified SCN

SQL> FLASHBACK DATABASE TO SCN 1444475;
Flashback complete.
 
7. Open Primary Database with Reset logs.

SQL> ALTER DATABASE OPEN RESETLOGS;
Database altered.

SQL> connect oracle/oracle@db11g
Connected.
 
SQL> select * from oracle;

        NO
----------
         1
         3
         2

Note : Check the rows @Specified SCN

SQL> conn sys/oracle@db11g as sysdba
Connected.
 
SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     2
Next log sequence to archive   4
Current log sequence           4

8. Cancel media recovery on the Physical Standby Database :

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

SQL> SELECT CURRENT_SCN FROM V$DATABASE;

CURRENT_SCN
-----------
    1445567

SQL> archive log list;
SQL> conn sys/oracle@db11gstd as sysdba
Connected.

SQL> alter database open read only;
Database altered.

SQL> conn oracle/oracle@db11gstd;
Connected.
 
SQL> select * from oracle;

        NO
----------
         1
         3
         4
         5
         2

SQL> conn sys/oracle@db11gstd as sysdba
Connected.
 
9. Flashback Physical Standby Database & Check the rows

SQL> FLASHBACK STANDBY DATABASE TO SCN 1444475;
Flashback complete.

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Database altered.

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
Database altered.

SQL> alter database open read only;
Database altered.

SQL> conn oracle/oracle@db11gstd;
Connected.
 
SQL> select * from oracle;

        NO
----------
         1
         3
         2

SQL> conn sys/oracle@db11gstd as sysdba
Connected.
 
SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     3
Next log sequence to archive   0
Current log sequence           4

10. After FlashBack, Again insert rows in Primary Database and check Physical Standby Database Configuration

SQL> conn sys/oracle@db11g as sysdba
Connected.
 
SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     2
Next log sequence to archive   4
Current log sequence           4
 
SQL> sho user
USER is "SYS"
 
SQL> conn oracle/oracle@db11g
Connected.
 
SQL> select * from oracle;

        NO
----------
         1
         3
         2

SQL> insert into oracle values (4);
1 row created.

SQL> commit;
Commit complete.

SQL> select * from oracle;

        NO
----------
         1
         3
         4
         2

SQL> conn sys/oracle@db11g as sysdba
Connected.
 
SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     2
Next log sequence to archive   4
Current log sequence           4
 
SQL> alter system switch logfile;
System altered.

SQL> alter system switch logfile;
System altered.

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     4
Next log sequence to archive   6
Current log sequence           6

11. Check the rows in Physical Standby Database:

SQL> conn sys/oracle@db11gstd as sysdba
Connected.
 
SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     3
Next log sequence to archive   0
Current log sequence           4

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Database altered.

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     4
Next log sequence to archive   0
Current log sequence           6
 
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
Database altered.

SQL> SELECT OPEN_MODE, DATABASE_ROLE FROM V$DATABASE;
OPEN_MODE            DATABASE_ROLE
-------------------- ----------------
READ ONLY            PHYSICAL STANDBY

SQL> conn oracle/oracle@db11gstd;
Connected.
 
SQL> select * from oracle;

        NO
----------
         1
         3
         4
         2


Saturday, February 9, 2013

Scheduled to give a speech @ OTN Yathra (Oracle Technology Network)


I am scheduled to give a speech @ OTN Yathra (Oracle Technology Network) Conducting by world famous Oracle ACE Directors namely Mr. Murali Vallath, Mr.Lucas Jellema, Mr.Hans Forbrich. It is happening in Anna University Campus In Chennai On 27th Feb 2013.

1. http://otnyatra.com/using-joomla/extensions/components/content-component/article-category-list/73-chennai

 
2. http://otnyatra.com/using-joomla/extensions/modules/content-modules/108-ravi1

Tuesday, December 11, 2012

How to Deinstall/Disable a specific licensable database option from already installed Oracle Database 11gR2 Home



Method:

Installation of Oracle Database 11g Release 2 Software installs all the licensable database options. Though installed, not all the licensable database options are enabled by default. During installation, installer gives an option for users to enable the licensable database options that are not enabled in a default installation. 

Users can also choose to disable some licensable database options that are enabled by default. 

Once the installation is done, users can still disable or enable some licensable database options. 

This article explains how to enable or disable a specific licensable database option from an already installed Oracle home.

Oracle Database 11g Release 2 (11.2.0.x), it is not possible to deinstall/remove a specific licensable database option from an already installed database Oracle home. However, users can choose to enable or disable a specific licensable database option using the chopt tool. 

The chopt tool is a command-line utility that is located in the ORACLE_HOME/bin directory. 

The syntax for chopt is:
 
chopt [ enable | disable] db_option

Example :  To enable the Oracle Partitioning option in your Oracle binary files, stop the database, run the following command, and start the database. 

chopt enable Partitioning

 

Friday, November 9, 2012

Product Licenses Oracle GoldenGate and Oracle Active DataGuard


Product Licenses Oracle GoldenGate and Oracle Active DataGuard

Oracle Golden Gate and Oracle Active Data Guard are strategic capabilities within Oracle's software portfolio and are complementary to each other. When used together, Oracle GoldenGate and Oracle Active Data Guard offer a unique data protection and information distribution solution not offered by any other product.

Note:
Oracle GoldenGate is an Oracle product sold independently of the Oracle Database for Oracle and third-party database management systems. It is available for both Oracle Database Enterprise Edition and Oracle Database Standard Edition. A license for Oracle GoldenGate includes a license for Oracle Active Data Guard.


Oracle Active Data Guard requires a separate license and can only be used with Oracle Database Enterprise Edition. It can be purchased as the Active Data Guard Option for Oracle Database Enterprise Edition. It is also included with Oracle GoldenGate. Basic Data Guard functionality does not require a separate license, and it is included with Oracle Enterprise Edition.

Oracle GoldenGate is Oracle's strategic product for data distribution and data integration.
 

Oracle GoldenGate supplements Active Data Guard with its heterogeneous and bidirectional replication capabilities to enable enterprise-wide information distribution, zero-downtime upgrades and migrations, query offloading to heterogeneous systems, and multimaster database solutions.

Depending on the business situation:
Choose Oracle Active Data Guard for a simple, high-performance, drop-in solution for disaster recovery, data protection, and high availability for the entire Oracle database.
 

Choose Oracle GoldenGate to set up a data distribution and data synchronization solution through this Oracle-Oracle replication configuration, or a more flexible multimaster HA solution.

Thursday, November 8, 2012

Comparative Study Between Oracle GoldenGate and Oracle DataGuard


Comparative Study Between Oracle GoldenGate and Oracle DataGuard


Technical Points   Oracle Dataguard / Oracle Active Dataguard   Oracle GoldenGate
         
Operating System   Primary Database and Standby Database Should be same. (But 11g Onwards it supports Heteregenous Data Guard Configurations.                       Example : We can imeplement Oracle Data Guard between Oracle Linux server 6.2 (x86_64)  and Microsoft Windows 2008 Server R2 (x64)   Primary Database and Standby Database need not be same.
         
Database   Should be Oracle Database in both Source and Target.   Database can be different in Source and Target. Example :Source database can be Oracle and Target database can be MY SQL/MS SQL server.
         
Database Version   Primary Database and Standby Database Should be same.   Primary Database and Standby Database need not be same. (Including Database Software).
         
Replication method   Data movement will be in-form of Log Files.   It moves Data Transaction wise through Extract and Replicat process from Source to Target, when commits.
         
Database mode    Source: Read write mode
Target:  Recovery Mode / Open Read Only.
  Source: Read write mode
Target:  Read write mode
         
Replication Type   Unidirectional. (Data movement will happen in single direction).   Multi-Directional.
         
Integrated Feature   No additional software to install. Oracle Data Guard /Active Data Guard includes in Enterprise Edition.   Oracle GoldenGate software to install in Source as well as Target.
         
License Cost   No additional license required for Oracle Data Guard to install. Oracle Active Data Guard is an enterprise option with Oracle Enterprise Edition.   Oracle GoldenGate Software Licence required in Source and Target Databases.
         
Database Edition   Source: Oracle Enterprise Edition
Target: Oracle Enterprise Edition.
  Source: Can be Oracle Enterprise Edition/Oracle Standard Edition/Oracle Standard Edition One
Target:  Oracle Enterprise Edition/Oracle Standard Edition/Oracle Standard Edition One

Tuesday, November 6, 2012

How to check which Enterprise Options are enabled in your Oracle Database


The following Oracle Database features will require additional enterprise option along with Oracle Enterprise Edition (EE).

1. Oracle Partitioning
2. Oracle OLAP
3. Oracle DataMining
4. Oracle OLTP Compression
5. Oracle Label Security
6. Oracle Advanced Security
7. Oracle RAC
8. Oracle Data Masking Pack
9. Oracle Flashback Data Archive
10. Oracle Active Data Guard

Before moving your databases to production environment, check the above Oracle options enabled in your Oracle Database. Based on Oracle License Options you can disable/enable the above Oracle Features.

Oracle has views to tell if you have been using specific extra cost Oracle features in your Oracle Database.

from which date.


Query :

Set feedback off
Set linesize 122
Col name                         format a45     heading "Feature"
Col version                    format a10     heading "Version"
Col detected_usages  format 999,990 heading "Detected|usages"
Col currently_used    format a06     heading "Curr.|used?"
Col first_usage_date  format a10     heading "First use"
Col last_usage_date   format a10     heading "Last use"
Col nop noprint
Break on nop skip 1 on name
SQL> Select decode(detected_usages,0,2,1) nop,
                          name, version, detected_usages, currently_used,
                          to_char(first_usage_date,'DD/MM/YYYY') first_usage_date, 
                          to_char(last_usage_date,'DD/MM/YYYY') last_usage_date
            from dba_feature_usage_statistics
           order by nop, 1, 2


Thursday, October 25, 2012

11.2.0.3.4 Patch Set Update for Oracle 11g R2 (11.2.0.3.0)



Database 11.2.0.3.4 PSU Patch 14275605
--------------------------------------------------------

To install the PSU 11.2.0.3.4 patch, the Oracle home must have the 11.2.0.3.0 Database installed. Subsequent PSU patches can be installed on Oracle Database 11.2.0.3.0

This patch is Oracle RAC Rolling Installable.

This patch is Data Guard Standby-First Installable.

You must use the OPatch utility version 11.2.0.3.0 or later to apply this patch. Oracle recommends that you use the latest released OPatch 11.2, which is available for download from My Oracle Support patch 6880880 by selecting the 11.2.0.0.0 release.

If you are installing the PSU to an environment that has a Grid Infrastructure home, note the following:

Patch 14275572: GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.3.4 (INCLUDES DB PSU 11.2.0.3.4)


Patch 14275605 - 11.2.0.3.4 Patch Set Update
--------------------------------------------------------------

Bugs Fixed by This Patch - This patch includes the following bug fixes.

1 CPU Molecules
------------------------


CPU molecules in PSU 11.2.0.3.4:

PSU 11.2.0.3.4 contains all molecules previously released in PSU 11.2.0.3.3 and the following new PSU 11.2.0.3.4 molecules:

14480674 - DB-11.2.0.3-MOLECULE-019-CPUOCT2012
14480675 - DB-11.2.0.3-MOLECULE-020-CPUOCT2012
14480676 - DB-11.2.0.3-MOLECULE-021-CPUOCT2012
14548763 - DB-11.2.0.3-MOLECULE-022-CPUOCT2012
14664355 - DB-11.2.0.3-MOLECULE-023-CPUOCT2012

2 Bug Fixes
----------------


See My Oracle Support Document 1449750.1 that documents all the non-security bugs fixed in each 11.2.0.4 Patch Set Update (PSU).
 

PSU 11.2.0.3.4 contains the following new fixes:
----------------------------------------------------------------- 
Advanced Queuing

13484963 - INVALID TTC BUFFER LENGTH IN CASE OF PROPAGATION MAY RAISE ORA-3146

Automatic Storage Management

13476583 - DROPPING OF A DISK CAN CAUSE DISMOUNT OF DISKGROUP IN OTHER ASM

Buffer Cache Management

13397104 - INSTANCE CRASH WITH ORA-600 [KJBLPKEYDRMQSCCHK:PKEY]
14409183 - SESSION HANGS ON GC BUFFER BUSY ACQUIRE

Generic

12693626 - HIGH CPU USAGE BY QUERY ON PARTITIONING KEY WITH INTERVAL PARTITIONING
12971775 - ORA-0600 WHILE RUNNING PARALLEL DML WHILE ONLINE INDEX IS CREATING
13059165 - EXEC OF UTLRP.SQL MAY RETURN INCORRECT COUNT FOR "OBJECTS WITH ERRORS" RESULT
13080778 - ORA-00942 RETURNED IN SQL ON MULTIPLE SCHEMAS DATABASE
13099577 - ORA-1460 WHEN PARALLEL QUERY SERVERS ARE USED
13250244 - ORA-4031 ERRORS SEEN WHEN PARAMETER _KGHDSIDX_COUNT IS SET TO >1 DUE TO MEM LEAK
13358781 - DBA_HIST_SQLSTAT SHOWS CCWAIT_DELTA ALWAYS = 0
13384182 - ORA-600 [DELROW:IOT1] RAISED FOR DELETE OR MERGE..DELETE SQL
13550185 - QUERIES ON V$SQLSTATS MAY CAUSE CRASH OR HANG
13566938 - DML WITH BINDS ON A REFERENCE PARTITIONED TABLE MAY RAISE ORA-600 [KCBGTCR_1]
13572659 - DBMS_REDEFINITION DISABLES FKS USED FOR REFERENCE PARTITIONING
13705338 - WRONG RESULTS ON IOT SECONDARY INDEX THROUGH JOIN
14076523 - ORA-600 [KGXRELEASE-BAD-HOLDER] FROM PROCESS WITH NO USER SESSION
14613900 - POSSIBLE CORE DUMP WHILE SCANNING FOR A CHILD FOR SHARABLE CURSOR

High Availability

12794305 - REDO SHIPMENT COULD FAIL AT THE STANDBY WITH ORA-600:[KRSR_PIC_COMPLETE.8]
13377816 - DON'T SEND IN DIA0 IF SOCKET CLOSED - HANDLE FAILURE APPROPRIATELY
13385346 - GCR0 TRACE FILES CONTINUOUSLY CREATED WITH KJGCR_DELETESO MESSAGES
13718279 - DB INSTANCE TERMINATED DUE TO ORA-29770 WHEN _GC_DEFER_TIME IS SET TO 1MS
13737746 - MRP0: BACKGROUND MEDIA RECOVERY TERMINATED

Oracle Security

11708510 - ORA-28267: INVALID NAMESPACE VALUE ERROR WHEN SQL USES DB LINK TO ACCESS 10G DB

Oracle Space Management

12583611 - EXCESSIVE ENQ:TX CONTENTION WITH HEAVY SECUREFILE INSERT WORKLOAD ON RAC
13464002 - PREFETCH INVOLVING TEMP OBJECTS MAY RAISE ORA-600[KCBCHG1_12]/[KDIFIND:KCBGET_24
13649031 - ORA-10637 OCCURS WHEN SHRINK ON PARTITIONED TABLE
13773133 - ORA-600 [KTSFLMERGE-CYCLE-1] DURING INSERTS INTO FREELIST MANAGED SEGMENT

Oracle Streams

12594032 - POSSIBLE MEMORY CORRUPTION WHEN USING CDC EXTEND_WINDOW OR EXTEND_WINDOW_LIST

Oracle Transaction Management

13430938 - ORA-4031 ERRORS WITH HIGH "KTC LATCH SUBH" MEMORY USAGE

Oracle Virtual Operating System Services

12585543 - RMAN BACKUP PERFORMANCE DROPS SIGNIFICANTLY AFTER UPGRADE TO 11.2

PL/SQL

13612575 - PROCEDURES RETURNING REFCURSOR BIND VARIABLES MAY HIT ORA-600 [15419]
13624984 - DATAPUMP HANGS ON PACKAGE BODY COMPILATION LIBRARY CACHE PIN
13804294 - INTERNAL ERRORS, CORRUPTIONS, USING PIPELINED FUNCTION WHOSE ROWS CAUSE ERRS

Server Manageability

13257247 - POPULATING WRH$_TEMPSTATXS MAY BE SLOW DUE TO INEFFICIENT QUERY EXECUTION PLAN
13699124 - AWR COMPARE PERIOD: SPINNING WHEN QUERYING DIFF OF KEY INSTANCE STATS