<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7103963156861640292</id><updated>2011-10-28T15:23:41.458-07:00</updated><category term='rman recover database'/><category term='Cloud Amazon'/><category term='restore database when missing archivelogs'/><category term='restore oracle database'/><category term='rman restore database'/><category term='Oracle Administration'/><category term='RAC'/><category term='rman oracle'/><category term='RMAN'/><category term='Monitoring'/><category term='Database Tuning'/><category term='ASM'/><category term='recover oracle database'/><title type='text'>Oracle DBA</title><subtitle type='html'>Oracle DBA tips and tricks</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-1855345256964545151</id><published>2011-10-28T14:47:00.000-07:00</published><updated>2011-10-28T15:21:16.926-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><category scheme='http://www.blogger.com/atom/ns#' term='Cloud Amazon'/><category scheme='http://www.blogger.com/atom/ns#' term='rman oracle'/><title type='text'>Oracle Database Cloud Backup to Amazon S3 using osbws</title><content type='html'>After registering with S3 check to ensure your S3 bucks are available.  &lt;br /&gt;I created 2 buckets 1 for the log and 1 for data.&lt;br /&gt;oracle-data-&lt;myuser&gt;-1&lt;br /&gt;oracle-log-&lt;myuser&gt;-1&lt;br /&gt;&lt;br /&gt;Ensure your database server can access s3.amazonaws.com&lt;br /&gt;&gt;&lt;i&gt;nslookup s3.amazonaws.com&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Non-authoritative answer:&lt;br /&gt;s3.amazonaws.com        canonical name = s3-1.amazonaws.com.&lt;br /&gt;Name:   s3-1.amazonaws.com&lt;br /&gt;Address: 72.21.203.145&lt;br /&gt;&lt;br /&gt;Ensure you have java installed on your database server&lt;br /&gt;java -version&lt;br /&gt;java version "1.6.0_27"&lt;br /&gt;Java(TM) SE Runtime Environment (build 1.6.0_27-b07)&lt;br /&gt;Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)&lt;br /&gt;&lt;br /&gt;Download osbws_install.jar from otn.oracle.com&lt;br /&gt;&lt;br /&gt;Create argFile , I called it awsrman&lt;br /&gt;&lt;i&gt;-AWSID &lt;yourawsid&gt;  -AWSKEY &lt;yourawskey&gt;  -otnUser &lt;yourotnuser&gt; -otnPass &lt; yourOTNpassword&gt; -walletDir /home/oracle/script/wallet -libDir /home/oracle/script -debug&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;java -jar osbws_install.jar -argFile ./awsrman&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Here is the output from the jar install&lt;br /&gt;Oracle Secure Backup Database Web-Service Install Tool, build 2011-02-04.0001&lt;br /&gt;Debug: os.name        = Linux&lt;br /&gt;Debug: os.arch        = amd64&lt;br /&gt;Debug: os.version     = 2.6.18-194.el5&lt;br /&gt;Debug: file.separator = /&lt;br /&gt;Debug: S3 ID:&lt;br /&gt;Debug: S3 Key:&lt;br /&gt;Debug: AWS Success, owner=sthenmoz, id=&lt;br /&gt;AWS credentials are valid.&lt;br /&gt;Debug: Platform = PLATFORM_LINUX64&lt;br /&gt;S3 user already registered.&lt;br /&gt;Registration ID: &lt;br /&gt;S3 Logging Bucket: oracle-log-&lt;user&gt;-1&lt;br /&gt;Validating log bucket location ...&lt;br /&gt;Debug: Get location HTTP response: 200 - OK&lt;br /&gt;Debug: log bucket location = []&lt;br /&gt;Validating license file ...&lt;br /&gt;Debug: Get license file HTTP response: 200 - OK&lt;br /&gt;Create credential oracle.security.client.connect_string1&lt;br /&gt;OSB web-services wallet created in directory /home/oracle/script/wallet.&lt;br /&gt;OSB web-services initialization file /opt/oracle/product/10.2.0/db_1/dbs/osbwsTST10G.ora created.&lt;br /&gt;Downloading OSB Web Services Software Library from file osbws_linux64.zip.&lt;br /&gt;Debug: Temp zip file = /tmp/osbws_linux644610275856950839391.zip&lt;br /&gt;Downloaded 16350454 bytes in 10 seconds. Transfer rate was 1635045 bytes/second.&lt;br /&gt;Download complete.&lt;br /&gt;Extracted file /home/oracle/script/libosbws11.so&lt;br /&gt;Debug: Delete RC = true&lt;br /&gt;&lt;br /&gt;Created a script to configure rman and placed in configure.rcv&lt;br /&gt;&lt;i&gt;configure CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=/home/oracle/script/libosbws11.so ENV=(OSB_WS_PFILE=/opt/oracle/product/10.2.0/db_1&lt;br /&gt;/dbs/osbwsTST10G.ora)';&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;rman target / @configure.rcv&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Output&lt;br /&gt;RMAN&gt; configure CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=/home/oracle/script/libosbws11.so ENV=(OSB_WS_PFILE=/opt/oracle/product/10.2.0/db_1/dbs/osbwsTST10G.ora)';&lt;br /&gt;using target database control file instead of recovery catalog&lt;br /&gt;new RMAN configuration parameters:&lt;br /&gt;CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS  'SBT_LIBRARY=/home/oracle/script/libosbws11.so ENV=(OSB_WS_PFILE=/opt/oracle/product/10.2.0/db_1/dbs/osbwsTST10G.ora)';&lt;br /&gt;new RMAN configuration parameters are successfully stored&lt;br /&gt;&lt;br /&gt;show all;&lt;br /&gt;CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';&lt;br /&gt;CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS  'SBT_LIBRARY=/home/oracle/script/libosbws11.so ENV=(OSB_WS_PFILE=/opt/oracle/product/10.2.0/db_1ee/dbs/osbwsTST10G.ora)';&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RMAN&gt; backup as compressed backupset database include current controlfile  plus archivelog;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-1855345256964545151?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/1855345256964545151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-database-cloud-backup-to-amazon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/1855345256964545151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/1855345256964545151'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-database-cloud-backup-to-amazon.html' title='Oracle Database Cloud Backup to Amazon S3 using osbws'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-2079618326163255272</id><published>2011-10-27T15:06:00.000-07:00</published><updated>2011-10-27T15:06:34.640-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Administration'/><title type='text'>Oracle 10g runInstaller OS check to install Oracle on redhat-5</title><content type='html'>If you need to install Oracle Database 10g on newer version of redhat and the runInstaller is complaining about OS pre-requisite checks there are 2 ways to work around this.&lt;br /&gt;&lt;br /&gt;1. One easy work around is to edit the oraparam.ini under database/install directory to add the OS.  In my case I added redhat-5&lt;br /&gt;&lt;br /&gt;[Certified Versions]&lt;br /&gt;Linux=redhat-3,SuSE-9,redhat-4,&lt;b&gt;redhat-5&lt;/b&gt;,asianux-1,asianux-2&lt;br /&gt;&lt;br /&gt;2. Is to do a silent install where you edit the response file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-2079618326163255272?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/2079618326163255272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-10g-runinstaller-os-check-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/2079618326163255272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/2079618326163255272'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-10g-runinstaller-os-check-to.html' title='Oracle 10g runInstaller OS check to install Oracle on redhat-5'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-2125578866580472184</id><published>2011-10-27T08:32:00.000-07:00</published><updated>2011-10-27T08:32:34.212-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Tuning'/><title type='text'>Oracle DBA Interview Questions focusing on Performance Tuning</title><content type='html'>Situational ( Performance Tuning )&lt;br /&gt;Q. Customer reports a application slowness issue, and you need to evaluate database performance.  What do you look at for 9i and for 11g.&lt;br /&gt;&lt;br /&gt;Possible answer:  On oracle 9i, look at the statspack report , on oracle 11g look at the AWR report.  In both reports look  top sqls listed in elapsed time or cpu time.   At sqlplus look sql_text from v$sql where disk_reads is high.&lt;br /&gt;&lt;br /&gt;Q.  You have found a long running sql in your evaluation of system health of database, what do you look for to determine why sql is slow?&lt;br /&gt;&lt;br /&gt;Possible answer:  Use explain plan to determine the execution plan of the sql.    When looking at execution plan look for indexes being used, full table scans on large tables.&lt;br /&gt;&lt;br /&gt;Q. You have a windows service is crashing, how can you determine the sqls related to the windows service?&lt;br /&gt;&lt;br /&gt;Possible answer: Use sql trace  to trace the username and program associated with the trace file.  Use tkprof to analyze the sql trace and determine the long running sqls.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-2125578866580472184?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/2125578866580472184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-dba-interview-questions-focusing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/2125578866580472184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/2125578866580472184'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-dba-interview-questions-focusing.html' title='Oracle DBA Interview Questions focusing on Performance Tuning'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-9145625107261343431</id><published>2011-10-26T12:32:00.000-07:00</published><updated>2011-10-27T08:25:31.937-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Monitoring'/><title type='text'>Database Check using Perl and Shell script</title><content type='html'>I ran into a host that did not support Oracle Grid Control Agent 12c since it is running Red Hat 3 OS so I needed to resort to old shell script for alert.&lt;br /&gt;&lt;br /&gt;I use a Perl script so that I can eventually put this into a Oracle User Defined Metric ( UDM ) for Grid Control.&lt;br /&gt;&lt;br /&gt;Here is the perl script and the shell script.&lt;br /&gt;The PERL script calls the Shell Script.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;#!/usr/local/bin/perl&lt;br /&gt;system ("/home/oracle/script/chkdbup.sh");&lt;br /&gt;$infile="/tmp/dbup.tmp";&lt;br /&gt;open(IN,"$infile") || die "cannot open $infile for reading: $!";&lt;br /&gt;$alert=0; # 0 = down, 1 = up&lt;br /&gt;while ( &lt;in&gt; ) {&lt;br /&gt;if (/PRODB/)  {&lt;br /&gt;print "1\n";&lt;br /&gt;$alert=1; &lt;br /&gt;} &lt;br /&gt;}&lt;br /&gt;if ( $alert == 0 ) {&lt;br /&gt;system ("/home/oracle/script/alert.sh");&lt;br /&gt;}&lt;br /&gt;close (IN);&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;&lt;b&gt;Shell Script&lt;/b&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;export ORACLE_SID=EMGC&lt;br /&gt;export db=PRODDB&lt;br /&gt;export ORAENV_ASK=NO&lt;br /&gt;. oraenv&lt;br /&gt;$ORACLE_HOME/bin/sqlplus /nolog &lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;&lt; &lt;i&gt; EOF&lt;br /&gt;set pagesize 0&lt;br /&gt;set echo off&lt;br /&gt;set feedback off&lt;br /&gt;conn dbsnmp/password@$db&lt;br /&gt;spool /tmp/dbup.tmp&lt;br /&gt;select global_name from global_name;&lt;br /&gt;spool off&lt;br /&gt;exit&lt;br /&gt;EOF&lt;br /&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-9145625107261343431?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/9145625107261343431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/database-check-using-perl-and-shell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/9145625107261343431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/9145625107261343431'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/database-check-using-perl-and-shell.html' title='Database Check using Perl and Shell script'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-4725774258001961349</id><published>2011-10-21T14:19:00.000-07:00</published><updated>2011-10-27T08:26:07.991-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>configuring oracle 11gR2 scan and troubleshooting nslookup hang</title><content type='html'>Today I was implement the scan IP for Oracle Grid 11gR2 and my nslookup tesst were hanging.  Turns out I just need to add entries into my /etc/resolv.conf for lookups.&lt;br /&gt;&lt;br /&gt;Here is an example of my resolve.conf&lt;br /&gt;search mycompany.com&lt;br /&gt;nameserver 4.x.x.x&lt;br /&gt;&lt;br /&gt;There is a good note explaining setup of the SCAN IP for 11gR2.  The note is 11gR2 Grid Infrastructure Single Client Access Name (SCAN) Explained [ID 887522.1].  &lt;br /&gt;&lt;br /&gt;Below is a summary of the note.&lt;br /&gt;Single client access name (SCAN) is the virtual name to provide for all clients connecting to the cluster instead of using server-vip addresses.&lt;br /&gt;&lt;br /&gt;SCAN is a domain name registered to at least one and up to three IP addresses, either in the domain name service (DNS) or the Grid Naming Service (GNS).  &lt;br /&gt;&lt;br /&gt;SCAN name must be unique to your network and at least one character long and no more than 15 characters in length, must be alphanumeric - cannot begin with a numeral and may contain hyphens (-). If you require a SCAN that is longer than 15 characters, then select an Advanced installation.&lt;br /&gt;&lt;br /&gt;SCAN VIP addresses must be on the same subnet as virtual IP addresses and public IP addresses.&lt;br /&gt;&lt;br /&gt;Don't use /etc/hosts to resolve SCAN, use DNS or GNS.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-4725774258001961349?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/4725774258001961349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/nslookup-hangs-check-resovleconf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/4725774258001961349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/4725774258001961349'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/nslookup-hangs-check-resovleconf.html' title='configuring oracle 11gR2 scan and troubleshooting nslookup hang'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-6476527391377536856</id><published>2011-10-19T14:00:00.000-07:00</published><updated>2011-10-27T08:26:29.280-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>Configuring 11gr2 Grid for RAC</title><content type='html'>One of the useful config files post install to review is:&lt;br /&gt;/u01/grid/crs/install/crsconfig_params&lt;br /&gt;Here is an example of the useful information in this config file.&lt;br /&gt;&lt;br /&gt;CLUSTER_NAME=abcgrid&lt;br /&gt;HOST_NAME_LIST=mynode1,mynode2&lt;br /&gt;NODE_NAME_LIST=mynode1,mynode2&lt;br /&gt;PRIVATE_NAME_LIST=&lt;br /&gt;VOTING_DISKS=NO_VAL&lt;br /&gt;#VF_DISCOVERY_STRING=%s_vfdiscoverystring%&lt;br /&gt;ASM_UPGRADE=false&lt;br /&gt;ASM_SPFILE=&lt;br /&gt;ASM_DISK_GROUP=DATADG&lt;br /&gt;ASM_DISCOVERY_STRING=&lt;br /&gt;ASM_DISKS=ORCL:ORA01,ORCL:ORA02,ORCL:ORA03&lt;br /&gt;ASM_REDUNDANCY=EXTERNAL&lt;br /&gt;CRS_STORAGE_OPTION=1&lt;br /&gt;CSS_LEASEDURATION=400&lt;br /&gt;CRS_NODEVIPS='mynode1-vip/255.255.0.0/bond0,mynode2-vip/255.255.0.0/eth0'&lt;br /&gt;NODELIST=mynode1,mynode2&lt;br /&gt;NETWORKS="eth1"/10.80.0.0:cluster_interconnect,"bond0"/168.11.111.0:public&lt;br /&gt;SCAN_NAME=mygrid-scan&lt;br /&gt;SCAN_PORT=1521&lt;br /&gt;GPNP_PA=&lt;br /&gt;OCFS_CONFIG=&lt;br /&gt;&lt;br /&gt;# GNS consts&lt;br /&gt;GNS_CONF=false&lt;br /&gt;GNS_ADDR_LIST=168.87.111.111&lt;br /&gt;GNS_DOMAIN_LIST=myhost.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-6476527391377536856?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/6476527391377536856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/configuring-11gr2-grid-for-rac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/6476527391377536856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/6476527391377536856'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/configuring-11gr2-grid-for-rac.html' title='Configuring 11gr2 Grid for RAC'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-8714594667247095995</id><published>2011-10-19T10:29:00.000-07:00</published><updated>2011-10-27T08:26:54.669-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RAC'/><title type='text'>oracle rac ntp pre-install check</title><content type='html'>Oracle RAC has a pre-install check for ntpd running with -x option&lt;br /&gt;&lt;br /&gt;Starting Linux NTP service:&lt;br /&gt;/sbin/service ntpd start | stop | restart&lt;br /&gt;Reference support.oracle.com Notid 551704.1&lt;br /&gt;cat /etc/sysconfig/ntpd&lt;br /&gt;&lt;br /&gt;&lt;i&gt;# Drop root to id 'ntp:ntp' by default.&lt;br /&gt;#OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid"&lt;br /&gt;OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"&lt;br /&gt;# Set to 'yes' to sync hw clock after successful ntpdate&lt;br /&gt;SYNC_HWCLOCK=no&lt;br /&gt;# Additional options for ntpdate&lt;br /&gt;NTPDATE_OPTIONS=""&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-8714594667247095995?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/8714594667247095995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-rac-ntp-requirement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/8714594667247095995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/8714594667247095995'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-rac-ntp-requirement.html' title='oracle rac ntp pre-install check'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-7506374645341294182</id><published>2011-10-13T17:10:00.000-07:00</published><updated>2011-10-27T08:27:22.330-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Monitoring'/><title type='text'>Migrating from EM Grid Control 11 to 12c Linux 64 bit</title><content type='html'>Oracle released Enterprise Manager ( EM ) 12c. Here is the procedure I used to migrate from EM 11g on Red Hat Linux 5 x64 to EM 12c.   &lt;br /&gt;&lt;br /&gt;The oracle online doc for EM 12c is available here:  &lt;a href="http://download.oracle.com/docs/cd/E24628_01/index.htm"&gt;http://download.oracle.com/docs/cd/E24628_01/index.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There are a few different upgrade options discussed in this section of the documentation.  None of the options met my needs so I followed the path of fresh install on new server and migrated the targets over from 11g to 12c over a week.  &lt;br /&gt;&lt;br /&gt;My reasons for approaching the upgrade in this fashion were:&lt;br /&gt;- I had a spare server available that was not being used&lt;br /&gt;- I wanted to get a feel for the 12c changes from 11 using my test/dev targets&lt;br /&gt;- I wanted to move production systems over 1 RAC cluster at a time so I could get the correct monitoring in place.&lt;br /&gt;&lt;br /&gt;If you are going to attempt upgrade, Oracle has documented a few methods found in link below.&lt;br /&gt;Below is the matrix of the upgrade paths.&lt;br /&gt;&lt;a href="http://download.oracle.com/docs/cd/E24628_01/upgrade.121/e22625/overview_upg_approaches.htm#CJAHJGJI"&gt;http://download.oracle.com/docs/cd/E24628_01/upgrade.121/e22625/overview_upg_approaches.htm#CJAHJGJI&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Preparation: Check for required packages for Oracle Management Service ( OMS ).&lt;br /&gt;make-3.81&lt;br /&gt;binutils-2.17.50.0.6&lt;br /&gt;gcc -4.1.1&lt;br /&gt;libaio-0.3.106&lt;br /&gt;glibc-common-2.3.4&lt;br /&gt;libstdc++ -4.1.1&lt;br /&gt;setarch-1.6&lt;br /&gt;sysstat-5.0.5&lt;br /&gt;rng-utils-2.0&lt;br /&gt;glibc-devel-2.5-49 ( 32bit and 64 bit )&lt;br /&gt;&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep glibc&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep make&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep binutils&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep gcc&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep libstdc++&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep glibc-common&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep sysstat&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep setarch&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep rng-utils&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep glibc-devel&lt;br /&gt;&lt;br /&gt;Preparation: Check for required packages for Oracle Management Agent ( OMA ).&lt;br /&gt;make-3.81&lt;br /&gt;binutils-2.17.50.0.6&lt;br /&gt;gcc -4.1.1&lt;br /&gt;libaio-0.3.106&lt;br /&gt;glibc-common-2.3.4&lt;br /&gt;libstdc++ -4.1.1&lt;br /&gt;setarch-1.6&lt;br /&gt;sysstat-5.0.5&lt;br /&gt;rng-utils-2&lt;br /&gt;&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep make&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep binutils&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep gcc&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep libstdc++&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep glibc-common&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep sysstat&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep setarch&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep rng-utils&lt;br /&gt;rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n" | grep libaio-0.3.106&lt;br /&gt;&lt;br /&gt;Set kernel.shmmax parameter to a value less than 4 GB&lt;br /&gt;&lt;i&gt;cat /proc/sys/kernel/shmmax&lt;br /&gt;Example: To set shmmax to 3.9 gb&lt;br /&gt;sysctl -w kernel.shmmax=33500744908&lt;br /&gt;cat /etc/sysctl.conf | grep kernel.shmmax&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Demo of a simple install from oraclelearning.&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=i7Zci4eNxW4&amp;NR=1"&gt;http://www.youtube.com/watch?v=i7Zci4eNxW4&amp;NR=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I performed an advanced install and found the installation process very smooth.  I placed the oms and database on same server.&lt;br /&gt;&lt;br /&gt;My start, stop, and status scripts for stopping oms just need the OMS path and agent path updated.&lt;br /&gt;&lt;br /&gt;When deploying the agents, I used the manual method.  Since I had 11g agents on my targets, I removed all the targets in 11g EM, stopped the agent, removed the host target from 11g EM and then un-installed the 11g agent using the below silent install method.&lt;br /&gt;&lt;br /&gt;This is documented in: How to Remove the 11.1.0.1.0 Grid Control Management Agent with the Silent Method ID 1068036.1&lt;br /&gt;&lt;i&gt;cd /opt/oracle/agent11g/oui/bin&lt;br /&gt;./runInstaller -silent -deinstall "REMOVE_HOMES={/opt/oracle/agent11g}" -removeallfiles&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Before installing the 12c agent using the manual method, I need to make 2 changes to the sudoers file, hashing out requiretty and setting visiblepw&lt;br /&gt;&lt;br /&gt;&lt;i&gt;/etc/sudoers&lt;br /&gt;#Defaults requiretty&lt;br /&gt;Defaults visiblepw&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;After those changes I re-added my database most of which are 10gR2 RAC where I just need to support the cluster name and the CRS HOME path.&lt;br /&gt;&lt;br /&gt;So far I am liking the interface changes in EM 12c and have not run into any bugs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-7506374645341294182?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/7506374645341294182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/migrating-from-em-grid-control-11-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/7506374645341294182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/7506374645341294182'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/migrating-from-em-grid-control-11-to.html' title='Migrating from EM Grid Control 11 to 12c Linux 64 bit'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-1483935023641262670</id><published>2011-10-12T10:21:00.000-07:00</published><updated>2011-10-27T08:31:53.448-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Administration'/><title type='text'>orale standard edition woes</title><content type='html'>Supporting a large database over 300gb with performance challenges on 10g standard edition oracle is a rough endeavor.  Here is a list of my favorite missing oracle features from enterprise edition.&lt;br /&gt;&lt;br /&gt;Parallel ( Backups using multiple channels, building indexes, running long running queries )&lt;br /&gt;&lt;br /&gt;RMAN Block Change Tracking File for fast incremental backups.&lt;br /&gt;&lt;br /&gt;Table Partitioning, I have a work around but it involves doing poor man partitioning like we did in Oracle 7.&lt;br /&gt;&lt;br /&gt;Bitmap Indexes, this is truly a missed feature that is hard to work around.&lt;br /&gt;&lt;br /&gt;Dataguard, I have a work around but it involes manually copying archive logs to standby and updating standby controlfile everytime I add a datafile on primary.&lt;br /&gt;&lt;br /&gt;Here is oracle's official list for 11g.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://download.oracle.com/docs/cd/B28359_01/license.111/b28287/editions.htm#CJACGHEB"&gt;http://download.oracle.com/docs/cd/B28359_01/license.111/b28287/editions.htm#CJACGHEB&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-1483935023641262670?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/1483935023641262670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/orale-standard-edition-woes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/1483935023641262670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/1483935023641262670'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/orale-standard-edition-woes.html' title='orale standard edition woes'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-3026959701915042100</id><published>2011-10-05T18:24:00.000-07:00</published><updated>2011-10-05T18:26:32.669-07:00</updated><title type='text'>Preparation for Oracle 11gR2 on Enterprise Linux 64 bit install</title><content type='html'>Here is the procedure I used for my last 11gr2 install.&lt;br /&gt;&lt;br /&gt;Requirements for Installing Oracle 11g r2 RDBMS on Oracle Unbreakable Linux&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Document sources for procedure: &lt;/b&gt;&lt;br /&gt;Requirements for Installing Oracle 11gR2 on RHEL 5 on IBM: Linux  [ID 1306889.1]&lt;br /&gt;How to Configure the DNS Server for SCAN VIP on Linux for 11gR2 [ID 1107295.1]&lt;br /&gt;Defining a "default RPMs" installation of the RHEL OS [ID 376183.1]&lt;br /&gt;Upon startup of Linux database get ORA-27102: out of memory Linux [ID 301830.1]&lt;br /&gt;RAC Assurance Support Team: RAC Starter Kit and Best Practices (Linux) [ID 811306.1]&lt;br /&gt;&lt;br /&gt;You can obtain more information about the Oracle Unbreakable Enterprise Kernel for&lt;br /&gt;Linux at the following URL:&lt;br /&gt;&lt;a href="http://www.oracle.com/us/technologies/linux/index.html"&gt;http://www.oracle.com/us/technologies/linux/index.html&lt;/a&gt;&lt;br /&gt;The Oracle Unbreakable Enterprise Linux kernel installs directly on top of Oracle&lt;br /&gt;Linux 5, or Red Hat Enterprise Linux 5, starting with Update 5, so you are not&lt;br /&gt;required to upgrade to a new major release of the operating system to obtain the&lt;br /&gt;benefits and features of this new kernel. You can obtain additional information and&lt;br /&gt;download the Oracle Unbreakable Enterprise Kernel for Linux at the following URL:&lt;br /&gt;&lt;a href="http://public-yum.oracle.com/"&gt;http://public-yum.oracle.com/&lt;/a&gt;&lt;br /&gt;Oracle Linux 5&lt;br /&gt;http://oss.oracle.com/el5/oracle-validated/&lt;br /&gt;If the Linux distribution is Oracle Linux, or Red Hat Enterprise Linux, and you are an Unbreakable Linux customer, then you can complete most preinstallation&lt;br /&gt;configuration tasks by using the Oracle Validated Configurations Setup RPM,&lt;br /&gt;available from the Unbreakable Linux Network (ULN), or available on the Oracle&lt;br /&gt;Linux DVD disks. When it is installed, the Oracle Validated Configuration RPM does the following:Automatically installs any additional packages needed for installing Oracle Grid Infrastructure and Oracle Database.&lt;br /&gt;&lt;br /&gt;Creates an oracle user, and creates the oraInventory (oinstall) and OSDBA&lt;br /&gt;(dba) groups for that user&lt;br /&gt;&lt;br /&gt;Sets and verifies sysctl.conf settings, system startup parameters, user limits, &lt;br /&gt;and driver parameters to values based on recommendations from the Oracle&lt;br /&gt;&lt;br /&gt;Validated Configurations program&lt;br /&gt;&lt;br /&gt;To become an Unbreakable Linux Network customer, contact your sales representative&lt;br /&gt;or purchase a license from the Unbreakable Linux store: &lt;br /&gt;&lt;a href="https://shop.oracle.com/product/oraclelinux"&gt;https://shop.oracle.com/product/oraclelinux&lt;/a&gt;&lt;br /&gt;To register your server on the Unbreakable Linux Network or to find out more&lt;br /&gt;information, go to:&lt;br /&gt;&lt;a href="https://linux.oracle.com"&gt;https://linux.oracle.com&lt;/a&gt;&lt;br /&gt;If you are using Oracle Linux 4.7 and later, or Oracle Linux 5.2 and later, then the&lt;br /&gt;Oracle Validated RPM is included on the installation media.&lt;br /&gt;&lt;br /&gt;Installing the Oracle Validated Configuration RPM from Unbreakable Linux Network&lt;br /&gt;Use the following procedure to subscribe to Oracle Unbreakable Linux channels and to&lt;br /&gt;add the Oracle Software for the Enterprise Linux channel that distributes the Oracle&lt;br /&gt;Validated Configurations Setup RPM:&lt;br /&gt;&lt;br /&gt;1. Complete a default Oracle Linux workstation installation or a default Red Hat&lt;br /&gt;Enterprise Linux installation.&lt;br /&gt;2. Register the server with the Unbreakable Linux Network (ULN). By default, you&lt;br /&gt;are registered for the Oracle Linux Latest channel for the operating system and&lt;br /&gt;hardware.&lt;br /&gt;3. Log in to ULN at:&lt;br /&gt;&lt;a href="https://linux.oracle.com"&gt;https://linux.oracle.com&lt;/a&gt;&lt;br /&gt;4. Click the Systems tab, and in the System Profiles list, select a registered server. The&lt;br /&gt;System Details window opens and displays the subscriptions for the server.&lt;br /&gt;5. From the Available Channels list, select the _base and _patch channels&lt;br /&gt;corresponding to your Oracle Linux distribution. For example, if your distribution&lt;br /&gt;is Oracle Linux 5 Update 5 for x86_64, then select the following:&lt;br /&gt;Oracle Linux 5 Update 5 installation media copy (x86_64)&lt;br /&gt;Oracle Linux 5 Update 5 Patch (x86_64)&lt;br /&gt;6. Click Subscribe.&lt;br /&gt;7. From a terminal session, as a root user, enter the following command:&lt;br /&gt;# up2date --nox --show-channels&lt;br /&gt;You should see output indicating that you have subscribed to the Oracle Linux&lt;br /&gt;channel, for example:&lt;br /&gt;el5_u5_i386_base&lt;br /&gt;el5_u5_x86_64_patch&lt;br /&gt;8. Open a terminal session as a root user, and install the Oracle Validated&lt;br /&gt;Configurations Setup RPM with up2date using the following command:&lt;br /&gt;# up2date --install oracle-validated&lt;br /&gt;Oracle Linux automatically creates a standard (not role-allocated) Oracle&lt;br /&gt;installation owner and groups, and sets up other kernel configuration settings as&lt;br /&gt;required for Oracle installations.&lt;br /&gt;Check the Oracle Validated Configuration RPM log file to&lt;br /&gt;review the system configuration changes:&lt;br /&gt;/var/log/oracle-validated/results/orakernel.log&lt;br /&gt;&lt;br /&gt;Minimum Hardware Requirements&lt;br /&gt;&lt;br /&gt;a.) At least 4.0 GB (4096 MB) of physical RAM &lt;br /&gt;b.) Swap disk space proportional to the system's physical memory as follows:&lt;br /&gt;&lt;br /&gt;grep MemTotal /proc/meminfo   32940856 kB  32 gb&lt;br /&gt;grep SwapTotal /proc/meminfo 34996216 Kb  32 gb&lt;br /&gt;&lt;br /&gt;RAM                        Swap Space&lt;br /&gt;Between 4 GB and 8 GB      2 x RAM &lt;br /&gt;Between 8 GB and 32 GB    1.5 x RAM &lt;br /&gt;greater than 32 Gb  32 Gb &lt;br /&gt;&lt;br /&gt;c.) approximately 5.5 GB of disk space for the Oracle Grid Infrastructure for a Grid&lt;br /&gt;Home for  Cluster and ASM Home (more than 1GB and less than 2Tb of disk space) in the /tmp directory. &lt;br /&gt;d.) approximately 4.6 GB of local disk space for the database software. &lt;br /&gt;e.) approximately 1.7 GB of disk space for a preconfigured database that uses file system storage (optional) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELinux may need to be disabled Please refer Note 454196.1 for more information.&lt;br /&gt;To check whether SELinux is Enabled or Disabled in a system, please refer Note 432988.1&lt;br /&gt;To disable SELinux, please refer Note 457458.1&lt;br /&gt;vi /etc/selinux/config&lt;br /&gt;SELINUX=disabled&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RPM Packages&lt;br /&gt;The following packages are required to be installed to have a supported to installation. It is recommended to choose a "default list of RPMs" listed in the document taken from 11gR2 linux install pdf chapter 2.&lt;br /&gt;Asianux Server 3, Oracle Linux 5, and Red HatEnterprise Linux 5&lt;br /&gt;binutils-2.17.50.0.6&lt;br /&gt;compat-libstdc++-33-3.2.3&lt;br /&gt;elfutils-libelf-0.125&lt;br /&gt;elfutils-libelf-devel-0.125&lt;br /&gt;elfutils-libelf-devel-static-0.125&lt;br /&gt;gcc-4.1.2&lt;br /&gt;gcc-c++-4.1.2&lt;br /&gt;glibc-2.5-24&lt;br /&gt;glibc-common-2.5&lt;br /&gt;glibc-devel-2.5&lt;br /&gt;glibc-headers-2.5&lt;br /&gt;kernel-headers-2.6.18&lt;br /&gt;ksh-20060214&lt;br /&gt;libaio-0.3.106&lt;br /&gt;libaio-devel-0.3.106&lt;br /&gt;libgcc-4.1.2&lt;br /&gt;libgomp-4.1.2&lt;br /&gt;libstdc++-4.1.2&lt;br /&gt;libstdc++-devel-4.1.2&lt;br /&gt;make-3.81&lt;br /&gt;numactl-devel-0.9.8.i386&lt;br /&gt;sysstat-7.0.2&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;Starting with Oracle Database 11g Release 2 (11.2.0.2), all the 32-bit&lt;br /&gt;packages, except for gcc-32bit-4.3, listed in the following&lt;br /&gt;table are no longer required for installing a database on Linux&lt;br /&gt;x86-64. Only the 64-bit packages are required. However, for any&lt;br /&gt;Oracle Database 11g release prior to 11.2.0.2, both the 32-bit and&lt;br /&gt;64-bit packages listed in the following table are required.&lt;br /&gt;If you are using Oracle Unbreakable Enterprise Kernel, then all&lt;br /&gt;required kernel packages are installed as part of the Oracle&lt;br /&gt;Unbreakable Enterprise Kernel installation.&lt;br /&gt;&lt;br /&gt;For example: rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-devel.&lt;br /&gt;# rpm --query --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" binutils compat-db compat-libstdc++ control-center gcc gcc-c++ glibc glibc-devel glibc-headers glibc-common ksh libaio libgcc libgnome libgnomeui libgomp libstdc++ libXp make sysstat  &lt;br /&gt;up2date -i libXp&lt;br /&gt;up2date -i glibc-headers&lt;br /&gt;up2date -i gcc&lt;br /&gt;up2date -i gcc-c++&lt;br /&gt;&lt;br /&gt;up2date -i glibc-devel --arch=i386&lt;br /&gt;up2date -i libaio-devel --arch=i386&lt;br /&gt;up2date -i unixODBC&lt;br /&gt;up2date -i unixODBC-devel&lt;br /&gt;up2date -i unixODBC --arch=i386&lt;br /&gt;up2date -i unixODBC-devel --arch=i386&lt;br /&gt;up2date -i libXp --arch=i386&lt;br /&gt;up2date -i unixODBC-devel --arch=x86_64&lt;br /&gt;up2date -i oracleasm-support oracleasmlib oracleasm-`uname -r`&lt;br /&gt;&lt;br /&gt;cd /var&lt;br /&gt;mkdir /var/oracle_packages&lt;br /&gt;tar -C /var/oracle_packages/ -xvf  /var/oracle_packages/oracle_linux_packages.tar&lt;br /&gt;&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/cvuqdisk-1.0.7-1.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/elfutils-libelf-devel-0.137-3.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/gcc-4.1.2-48.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/gcc-c++-4.1.2-48.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/glibc-devel-2.5-49.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/glibc-devel-2.5-49.i386.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/glibc-headers-2.5-49.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/kernel-headers-2.6.18-194.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/libaio-devel-0.3.106-5.i386.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/libaio-devel-0.3.106-5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/libgomp-4.4.0-6.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/libstdc++-devel-4.1.2-48.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/numactl-devel-0.9.8-11.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/oracleasmlib-2.0.4-1.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/oracleasm-support-2.1.3-1.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/strace-4.5.18-5.el5_4.1.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/sysstat-7.0.2-3.el5.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/unixODBC-2.2.11-7.1.i386.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/unixODBC-2.2.11-7.1.x86_64.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/unixODBC-devel-2.2.11-7.1.i386.rpm&lt;br /&gt;rpm -i --nodeps /var/oracle_packages/unixODBC-devel-2.2.11-7.1.x86_64.rpm&lt;br /&gt;&lt;br /&gt;Creating Grid and Oracle Users and directory for oracle software&lt;br /&gt;1) Create grid user&lt;br /&gt;a. groupadd –g 501 oinstall&lt;br /&gt;b. groupadd –g 502 dba&lt;br /&gt;c. groupadd –g 502 asmadmin&lt;br /&gt;d. groupadd –g 503 asmdba&lt;br /&gt;e. groupadd –g 504 asmoper&lt;br /&gt;f. useradd –u 504 -g500 -G501,502,503,504 -s /bin/bash -d  /home/grid grid&lt;br /&gt;i. or useradd -u 504 -g oinstall -G asmadmin,asmdba,asmoper grid&lt;br /&gt;g. passwd grid &lt; keypass &gt;&lt;br /&gt;2) Create oracle user&lt;br /&gt;a. useradd –u 500 -g500 -G501,503 -s /bin/bash -d  /home/oracle oracle&lt;br /&gt;i. or useradd -u 500 -g oinstall -G dba,asmdba oracle&lt;br /&gt;b. passwd oracle &lt; keypass &gt;&lt;br /&gt;3) mkdir -p /u00/app/&lt;br /&gt;a. chown -R grid:oinstall /u00/app/&lt;br /&gt;b. chmod -R 775 /u00/app/&lt;br /&gt;c. mkdir /u00/app/oracle&lt;br /&gt;d. mkdir /u00/app/oracle/zipfiles&lt;br /&gt;e. mkdir /u00/app/oracle/cluster_verify_util&lt;br /&gt;4) ssh presence setup &lt;br /&gt;a. NoteID: SSH without a password [ID 464238.1]&lt;br /&gt;b. Can also use /u00/app/grid/grid/sshsetup/sshUserSetup.sh&lt;br /&gt;i. sshUserSetup.sh -hosts "host1 host2" -user grid -advanced&lt;br /&gt;c. Also you can let installer setup ssh&lt;br /&gt;d. If doing ssh setup manually here are the steps&lt;br /&gt;i. as oracle and grid cd $HOME&lt;br /&gt;ii. mkdir .ssh&lt;br /&gt;iii. chmod 700 .ssh&lt;br /&gt;iv. cd .ssh&lt;br /&gt;v. ssh-keygen -t rsa&lt;br /&gt;vi. ssh-keygen -t dsa&lt;br /&gt;vii. scp ~/.ssh/id_dsa.pub grid@host1:~/.ssh/id_dsa.pub&lt;br /&gt;viii. scp ~/.ssh/id_rsa.pub grid@host1:~/.ssh/id_rsa.pub&lt;br /&gt;ix. ssh grid@carz0dbxd02&lt;br /&gt;x. cd .ssh&lt;br /&gt;xi. cat id_dsa.pub &gt;&gt; authorized_keys&lt;br /&gt;xii. cat id_rsa.pub &gt;&gt; authorized_keys&lt;br /&gt;xiii. chmod 640 authorized_keys&lt;br /&gt;&lt;br /&gt;Kernel Settings&lt;br /&gt;Modify your kernel settings in /etc/sysctl.conf  as follows. If the current value for any parameter is higher than the value listed in this table, do not change the value of that parameter.  Range values (such as net.ipv4.ip_local_port_range) must match exactly.  Use the below cat commands to validate the values.&lt;br /&gt;&lt;br /&gt;Automatic Memory Management&lt;br /&gt;Starting with Oracle Database 11g, the Automatic Memory Management feature&lt;br /&gt;requires more shared memory (/dev/shm)and file descriptors. The size of the shared&lt;br /&gt;memory must be at least the greater of the MEMORY_MAX_TARGET and MEMORY_&lt;br /&gt;TARGET parameters for each Oracle instance on the computer.&lt;br /&gt;Note: The MEMORY_MAX_TARGET and MEMORY_TARGET parameters&lt;br /&gt;cannot be used when the LOCK_SGA parameter is enabled, or with&lt;br /&gt;HugePages on Linux.&lt;br /&gt;&lt;br /&gt;In dev we are using 12928Mfor database memory, in prod 28928M&lt;br /&gt;Prod&lt;br /&gt;memory_max_target    28928M&lt;br /&gt;memory_target             28928M&lt;br /&gt;Dev&lt;br /&gt;memory_max_target    12928M&lt;br /&gt;memory_target             12928M&lt;br /&gt;&lt;br /&gt;To determine the amount of shared memory available, enter the following command:&lt;br /&gt;# df -h /dev/shm/&lt;br /&gt;&lt;br /&gt;Prod&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;tmpfs                  36G   17G   19G  48% /dev/shm&lt;br /&gt;&lt;br /&gt;Dev&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;tmpfs                  16G  6.5G  9.4G  41% /dev/shm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cat /proc/sys/net/core/rmem_default    &lt;br /&gt;cat /proc/sys/net/core/rmem_max    &lt;br /&gt;cat /proc/sys/net/core/wmem_default   &lt;br /&gt;cat /proc/sys/net/core/wmem_max    &lt;br /&gt;cat /proc/sys/kernel/shmmax    &lt;br /&gt;cat /proc/sys/kernel/shmmni    &lt;br /&gt;cat /proc/sys/kernel/shmall      &lt;br /&gt;cat /proc/sys/fs/file-max           &lt;br /&gt;cat /proc/sys/kernel/sem     &lt;br /&gt;cat /proc/sys/net/ipv4/ip_local_port_range  &lt;br /&gt;&lt;br /&gt;kernel.shmall = 6291456&lt;br /&gt;kernel.shmall = 3309568  ( can go as low as this since dev has 12 gb memory target )&lt;br /&gt;kernel.shmall = 4294967296 ( current set at this but this appears to high )&lt;br /&gt;Set shmall equal to the sum of all the SGAs on the system, divided by the page size, getconf PAGE_SIZE 4096 &lt;br /&gt;&lt;br /&gt;kernel.shmmax = 68719476736  ( 1/2 of physical RAM )&lt;br /&gt;kernel.shmmni = 4096 &lt;br /&gt;kernel.sem = 250 32000 100 128 &lt;br /&gt;fs.file-max = 6815744&lt;br /&gt;fs.aio-max-nr = 1048576&lt;br /&gt;net.ipv4.ip_local_port_range = 9000 65500 &lt;br /&gt;net.core.rmem_default = 262144  &lt;br /&gt;net.core.rmem_max = 4194304  &lt;br /&gt;net.core.wmem_default = 262144&lt;br /&gt;net.core.wmem_max = 1048576&lt;br /&gt;If these parameters need to be modified, edit /etc/sysctl.conf. To activate these new settings into the running kernel space, run the “sysctl –p” command as this will propagate the changes to the /proc/sys files listed above. If you modify the individual files, and not sysctl.conf, the changes will be lost at the next reboot.&lt;br /&gt;Network changes require reboot or restart of network service:  /etc/rc.d/init.d/network restart&lt;br /&gt;Examine /etc/sysctl.conf for the following entries:&lt;br /&gt;#cat /etc/sysctl.conf &lt;br /&gt;&lt;br /&gt;limits.conf&lt;br /&gt;- Add the following settings to /etc/security/limits.conf &lt;br /&gt;&lt;br /&gt;oracle soft nproc 2047 &lt;br /&gt;oracle hard nproc 16384 &lt;br /&gt;oracle soft nofile 1024&lt;br /&gt;oracle hard nofile 65536&lt;br /&gt;oracle hard stack 10240&lt;br /&gt;#&lt;br /&gt;grid hard nofile 65536&lt;br /&gt;grid soft nproc 2047&lt;br /&gt;grid hard nproc 16384&lt;br /&gt;grid soft nofile 1024&lt;br /&gt;&lt;br /&gt;pam.d/login&lt;br /&gt;- Add or edit the following line in the /etc/pam.d/login file, if it does not already exist: &lt;br /&gt;session required pam_limits.so&lt;br /&gt;&lt;br /&gt;# pam_selinux.so close should be the first session rule&lt;br /&gt;session    required     pam_selinux.so close&lt;br /&gt;session    include      system-auth&lt;br /&gt;session    required     pam_loginuid.so&lt;br /&gt;session    optional     pam_console.so&lt;br /&gt;# pam_selinux.so open should only be followed by sessions to be executed in the user context&lt;br /&gt;session    required     pam_selinux.so open&lt;br /&gt;session    optional     pam_keyinit.so force revoke&lt;br /&gt;&lt;br /&gt;profile&lt;br /&gt;- Verify that the below ulimits are set in either /etc/profile or in $ORACLE_HOME/oracle_env&lt;br /&gt;&lt;br /&gt;if [ $USER = "oracle" ] || [ $USER = "grid" ]; then    &lt;br /&gt;if [ $SHELL = "/bin/ksh" ]; then &lt;br /&gt;ulimit -p 16384 &lt;br /&gt;ulimit -n 65536 &lt;br /&gt;else &lt;br /&gt;ulimit -u 16384 -n 65536 &lt;br /&gt;fi &lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;Vi /etc/sudoers&lt;br /&gt;%dba            ALL=(ALL)       ALL&lt;br /&gt;%asmadmin       ALL=(ALL)       ALL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Storage Setup&lt;/b&gt;&lt;br /&gt;MultiPath or EMC PowerPath&lt;br /&gt;rpm -q device-mapper-multipath&lt;br /&gt;cat /etc/multipath.conf&lt;br /&gt;device {&lt;br /&gt;vendor                  "DGC"&lt;br /&gt;product                 ".*"&lt;br /&gt;product_blacklist       "LUNZ"&lt;br /&gt;getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"&lt;br /&gt;prio_callout            "/sbin/mpath_prio_emc /dev/%n"&lt;br /&gt;features                "1 queue_if_no_path"&lt;br /&gt;hardware_handler        "1 emc"&lt;br /&gt;path_grouping_policy    group_by_prio&lt;br /&gt;failback                immediate&lt;br /&gt;rr_weight               uniform&lt;br /&gt;no_path_retry           60&lt;br /&gt;rr_min_io               1000&lt;br /&gt;path_checker            emc_clariion&lt;br /&gt;&lt;br /&gt;modprobe dm-multipath&lt;br /&gt;service multipathd start&lt;br /&gt;multipath -v2&lt;br /&gt;chkconfig multipathd on&lt;br /&gt;service multipathd reload&lt;br /&gt;ls /dev | grep sd&lt;br /&gt;cd /sys/class/scsi_host/&lt;br /&gt;cat ./host3/device/fc_host\:host3/&lt;br /&gt;ls ./host3/device/fc_host\:host3/&lt;br /&gt;ls ./host3/device/fc_host\:host3/port_name&lt;br /&gt;cat ./host3/device/fc_host\:host3/port_name&lt;br /&gt;cat ./host3/device/fc_host\:host4/port_name&lt;br /&gt;cat ./host4/device/fc_host\:host4/port_name&lt;br /&gt;multipath -l&lt;br /&gt;multipathd -l&lt;br /&gt;service multipathd reload&lt;br /&gt;service multipathd restart&lt;br /&gt;multipath -v2&lt;br /&gt;reboot&lt;br /&gt;multipath -l&lt;br /&gt;chown grid /dev/dm-*&lt;br /&gt;chgrp asmadmin /dev/dm-*&lt;br /&gt;ll /dev | grep dm&lt;br /&gt;multipath –l&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Disk Setup&lt;/b&gt;&lt;br /&gt;Reference Doc Page 10 of RACGuides_Rac11gR2OnLinux.pdf&lt;br /&gt;Once the LUNs have been presented from the SAN to ALL servers in the cluster, partition the LUNs from one node only, run fdisk to create a single whole-disk partition with exactly 1 MB offset on each LUN to be used as ASM Disk.  From the fdisk prompt, type "u" to switch the display unit from cylinder to sector. Then create a single primary partition starting on sector 2048 (1MB offset assuming sectors of 512 bytes per unit).&lt;br /&gt;fdisk  /dev/dm&lt;br /&gt;Command (m for help): u&lt;br /&gt;Changing display/entry units to sectors&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;e extended&lt;br /&gt;p primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Partition number (1-4): 1&lt;br /&gt;First sector (61-1048575, default 61): 2048&lt;br /&gt;Last sector or +size or +sizeM or +sizeK (2048-1048575, default 1048575):&lt;br /&gt;Using default value 1048575&lt;br /&gt;Command (m for help): w&lt;br /&gt;The partition table has been altered!&lt;br /&gt;Calling ioctl() to re-read partition table.&lt;br /&gt;Syncing disks.&lt;br /&gt;Load the updated block device partition tables by running the following on ALL servers participating in the cluster:  sbin/partprobe&lt;br /&gt;&lt;br /&gt;ASM Setup &lt;br /&gt;The latest ASM RPMs can be downloaded from Oracle at: &lt;br /&gt;http://www.oracle.com/technology/tech/linux/asmlib/index.html&lt;br /&gt;NOTE: The below query listing the ASM RPMs is an example and is not meant to provide the correct version.  &lt;br /&gt;# rpm -qa | grep oracleasm | sort&lt;br /&gt;&lt;br /&gt;Do asm under grid control user ( grid )&lt;br /&gt;cd /etc/init.d/&lt;br /&gt;./oracleasm stop&lt;br /&gt;./oracleasm disable&lt;br /&gt;./oracleasm configure&lt;br /&gt;/etc/init.d/oracleasm enable&lt;br /&gt;./oracleasm configure&lt;br /&gt;&lt;br /&gt;Configuring the Oracle ASM library driver.&lt;br /&gt;Default user to own the driver interface []: grid&lt;br /&gt;Default group to own the driver interface []:asmadmin&lt;br /&gt;Start Oracle ASM library driver on boot (y/n) [n]: y&lt;br /&gt;Scan for Oracle ASM disks on boot (y/n) [y]: &lt;br /&gt;Writing Oracle ASM library driver configuration: done&lt;br /&gt;Initializing the Oracle ASMLib driver: [  OK  ]&lt;br /&gt;Scanning the system for Oracle ASMLib disks: [  OK  ]&lt;br /&gt;/etc/init.d/oracleasm createdisk ARCHIVE1 /dev/dm-6&lt;br /&gt;/etc/init.d/oracleasm createdisk DATA1 /dev/dm-7&lt;br /&gt;/etc/init.d/oracleasm createdisk OCR_VOTE1 /dev/dm-8&lt;br /&gt;/etc/init.d/oracleasm createdisk OCR_VOTE2 /dev/dm-2&lt;br /&gt;/etc/init.d/oracleasm createdisk OCR_VOTE3 /dev/dm-3&lt;br /&gt;/etc/init.d/oracleasm listdisks&lt;br /&gt;I should see disks now in /dev/oracleasm/disks/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-3026959701915042100?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/3026959701915042100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/install-oracle-11gr2-on-enterprise.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3026959701915042100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3026959701915042100'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/install-oracle-11gr2-on-enterprise.html' title='Preparation for Oracle 11gR2 on Enterprise Linux 64 bit install'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-6794623793055471947</id><published>2011-10-04T15:28:00.000-07:00</published><updated>2011-10-27T08:29:02.100-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cloud Amazon'/><title type='text'>Nice additions to Amazon RDS with 11.2.0.2v3 version</title><content type='html'>Thank up Amazon RDS team for giving us DBA's a little more power with 11.2.0.2v3 version.&lt;br /&gt;&lt;br /&gt;Execute privileges to a number of DBMS packages including DBMS_CRYPTO, DBMS_ALERT, DBMS_LOCK and DBMS_PIPE are now available.&lt;br /&gt;Privileges to grant DBA, CONNECT and RESOURCE roles to other users are also available.&lt;br /&gt;You can use the CTXAPP (Oracle Text) role and grant it to other users.&lt;br /&gt;The system privileges “RESTRICTED SESSION” and “GRANT ANY OBJECT".&lt;br /&gt;&lt;br /&gt;For the full announcement forum: &lt;a href="https://forums.aws.amazon.com/ann.jspa?annID=1186"&gt;https://forums.aws.amazon.com/ann.jspa?annID=1186&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-6794623793055471947?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/6794623793055471947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/nice-additions-to-amazon-rds-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/6794623793055471947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/6794623793055471947'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/nice-additions-to-amazon-rds-with.html' title='Nice additions to Amazon RDS with 11.2.0.2v3 version'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-227349310618652532</id><published>2011-10-04T14:36:00.000-07:00</published><updated>2011-10-27T08:29:21.991-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cloud Amazon'/><title type='text'>Amazon RDS Oracle Database and Alert and Listener Log</title><content type='html'>To see the oracle alert log and listener log data on Oracle RDS at Amazon RDS, we utilize sql.&lt;br /&gt;&lt;br /&gt;For Alert Log:&lt;br /&gt;select message_text from alertlog;&lt;br /&gt;&lt;br /&gt;For listener log&lt;br /&gt;select message_text from listenerlog;&lt;br /&gt;&lt;br /&gt;Note: only last 10 MB of entries in these files are available since oracle is rotating them at 10mb interval so if you need history this might be a good candidate for nightly job.&lt;br /&gt;&lt;br /&gt;More information can be found in AWS api rds-ug.pdf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-227349310618652532?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/227349310618652532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/amazon-ec2-oracle-database-and-alert.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/227349310618652532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/227349310618652532'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/amazon-ec2-oracle-database-and-alert.html' title='Amazon RDS Oracle Database and Alert and Listener Log'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-8882854121563802128</id><published>2011-10-04T14:16:00.000-07:00</published><updated>2011-10-27T08:32:11.311-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cloud Amazon'/><title type='text'>Oracle Dynamic Session Kill for sessions in Amazon RDS</title><content type='html'>For those folks running Oracle Databases in Amazon RDS environment, we can kill sessions using the Amazon API: rdsadmin.rdsadmin_util.kill&lt;br /&gt;&lt;br /&gt;select 'exec rdsadmin.rdsadmin_util.kill('|| sid ||',' || serial# || ');' &lt;br /&gt;from v$session where username in ('&amp;myUsername', '&amp;myOtherUserName'); &lt;br /&gt;&lt;br /&gt;Here is the link to the amazon API doc.  &lt;a href="http://awsdocs.s3.amazonaws.com/RDS/latest/rds-ug.pdf"&gt;awsdocs.s3.amazonaws.com/RDS/latest/rds-ug.pdf&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-8882854121563802128?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/8882854121563802128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-dynamic-session-kill-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/8882854121563802128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/8882854121563802128'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/oracle-dynamic-session-kill-for.html' title='Oracle Dynamic Session Kill for sessions in Amazon RDS'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-6727722216282138781</id><published>2011-10-04T10:02:00.000-07:00</published><updated>2011-10-27T08:28:21.788-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN Backup Monitoring</title><content type='html'>A good query to monitor your backups in your rman recovery catalog is.&lt;br /&gt;&lt;br /&gt;SELECT db_name, start_time, end_time, status&lt;br /&gt;FROM rcat.rc_rman_backup_job_details &lt;br /&gt;WHERE end_time &gt; sysdate -1&lt;br /&gt;&lt;br /&gt;TEST  10/4/2011 12:30:04 AM 10/4/2011 12:32:51 AM COMPLETED&lt;br /&gt;DEV1  10/4/2011 3:05:05 AM 10/4/2011 8:56:13 AM COMPLETED&lt;br /&gt;PROD1 10/3/2011 11:24:07 PM 10/4/2011 9:57:56 AM RUNNING&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-6727722216282138781?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/6727722216282138781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/10/rman-backup-monitoring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/6727722216282138781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/6727722216282138781'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/10/rman-backup-monitoring.html' title='RMAN Backup Monitoring'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-7366406620101627016</id><published>2011-09-29T14:25:00.000-07:00</published><updated>2011-10-27T08:28:35.110-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RMAN'/><title type='text'>RMAN Duplicate 10g</title><content type='html'>&lt;b&gt;I ran into oracle RMAN bug today and figured it was a good time to add a post on Oracle 10g RMAN duplicates and the work around for the bug I encountered.  &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The bug is documented on support.oracle.com in Note ID 1076816.1.  In short the problem as I was trying to restore up to a sequence time where the sequence had not been recorded in v$log_history or rc_log_history.  The work around is to restore to the sequence or a sequence that has been recorded in either v$log_history or rc_log_history.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For an overview of my duplicate procedure.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;There is a good note on support.oracle.com for rac database duplicate to asm.&lt;br /&gt;RMAN Duplicate Database From RAC ASM To RAC ASM [ID 461479.1]&lt;br /&gt;&lt;br /&gt;I create spfile from pfile and mount and edited pfile on my target server.  I then add a tns entry for the database I am cloning on the server where my clone is going to be hosted to allow me to communicate with the target database.&lt;br /&gt;&lt;br /&gt;I then create an rman script setting the new names of the files where I am placing them since I am restoring to a different asm disk group than target database uses.  This sql script is helpful to set the names for the restored data files.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;select 'set newname for datafile ' || file_id || ' to ''+DATA/test/' ||&lt;br /&gt;substr(file_name,instr(file_name,'/',-1)+1) || ''';'&lt;br /&gt;from dba_data_files &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;set newname for datafile 1 to '+DATA/test/system.311.750536617';&lt;br /&gt;set newname for datafile 3 to '+DATA/test/sysaux.342.750535475';&lt;br /&gt;&lt;br /&gt;Here is the sql script to get my max sequence# to restore to.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;select max(sequence#) from v$log_history where thread# =1;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Here is what my clone rman rcv script looks like.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;run&lt;br /&gt;{&lt;br /&gt;set until sequence 2727 thread 1;&lt;br /&gt;set newname for datafile 1 to '+DATA/test/system.311.750536617';&lt;br /&gt;set newname for datafile 3 to '+DATA/test/sysaux.342.750535475';&lt;br /&gt;... set newnames ...&lt;br /&gt;DUPLICATE TARGET DATABASE TO test;&lt;br /&gt;restore database;&lt;br /&gt;SWITCH DATAFILE ALL;&lt;br /&gt;recover database;&lt;br /&gt;}&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Now to run the duplicate, connect to rman on server hosting cloned database.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;rman target sys@mytargetdb auxiliary / catalog rmancat/rmancatpwd@emrep&lt;br /&gt;@duplicate.rcv&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-7366406620101627016?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/7366406620101627016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/09/rman-duplicate-10g.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/7366406620101627016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/7366406620101627016'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/09/rman-duplicate-10g.html' title='RMAN Duplicate 10g'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-3926784139625172906</id><published>2011-09-28T15:03:00.000-07:00</published><updated>2011-09-28T15:03:15.940-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASM'/><title type='text'>Move ASM spfile to different disk group</title><content type='html'>To move an asm spfile from one disk group to another, I recommend using the method create spfile from pfile, editing the pfile and then creating pfile from edited spfile.&lt;br /&gt;&lt;br /&gt;In my case the spfile was located in DATA01.  &lt;br /&gt;  ASMCMD&gt; ls DATA01/ASM/ASMPARAMETERFILE/&lt;br /&gt;          REGISTRY.253.762024745&lt;br /&gt;&lt;br /&gt;create pfile='/tmp/init+ASM.ora' from spfile;&lt;br /&gt;&lt;br /&gt;Edit the /tmp/init+ASM.ora and change entry +ASM.asm_diskgroups='DATA01'#Manual&lt;br /&gt;In my case I changed it to +ASM.asm_diskgroups='DATA1'&lt;br /&gt;&lt;br /&gt;create spfile '+DATA1' from pfile '/tmp/init+ASM.ora';&lt;br /&gt;&lt;br /&gt;Restart asm or in my case I just restarted all crs services.&lt;br /&gt;crs_stop -all&lt;br /&gt;crs_start -all&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-3926784139625172906?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/3926784139625172906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2011/09/move-asm-spfile-to-different-disk-group.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3926784139625172906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3926784139625172906'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2011/09/move-asm-spfile-to-different-disk-group.html' title='Move ASM spfile to different disk group'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-249277471133177545</id><published>2010-01-11T10:19:00.000-08:00</published><updated>2011-10-27T08:33:09.292-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Administration'/><title type='text'>Installing Oracle 11g 64 bit on Windows Server 2008</title><content type='html'>When installing Oracle 11.1.0.7 on Windows Server 2008 64 bit, the installer gave a an error saying the Operating System ( OS ) was not supporting.  In looking at the install log on c:\program files\oracle, I noticed the installer thinks the OS is windows vista.  &lt;br /&gt;&lt;br /&gt;To work around this error, I selected the check box for user verified and continued with the install.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-249277471133177545?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/249277471133177545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2010/01/installing-oracle-11g-64-bit-on-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/249277471133177545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/249277471133177545'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2010/01/installing-oracle-11g-64-bit-on-windows.html' title='Installing Oracle 11g 64 bit on Windows Server 2008'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-274717078573964176</id><published>2010-01-11T10:15:00.000-08:00</published><updated>2011-10-27T08:33:09.293-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Administration'/><title type='text'>Migrate Oracle Windows from 32 bit to 64 bit</title><content type='html'>Create the Oracle service on the 64bit system, using the ORADIM command. &lt;br /&gt;oradim –new –sid orcl –startmode auto –pfile c:\oracle\product\11.1.0\db_1\init.ora&lt;br /&gt;&lt;br /&gt;Run Sqlplus &lt;br /&gt;Issue the command: startup upgrade. &lt;br /&gt;&lt;br /&gt;Run the script: &lt;br /&gt;cd &lt;br /&gt;c:\oracle\product\11.1.0\db_1\rdbms\admin\&lt;br /&gt;--This script invalidates all the objects and change the word size&lt;br /&gt;@utlip.sql &lt;br /&gt;--This script recompiles the invalid objects&lt;br /&gt;@utlrp.sql&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-274717078573964176?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/274717078573964176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2010/01/migrate-oracle-windows-from-32-bit-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/274717078573964176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/274717078573964176'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2010/01/migrate-oracle-windows-from-32-bit-to.html' title='Migrate Oracle Windows from 32 bit to 64 bit'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-5461671771203740732</id><published>2009-12-17T11:04:00.000-08:00</published><updated>2011-10-27T08:30:11.662-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Tuning'/><title type='text'>sql trace and tkprof</title><content type='html'>Sql trace and tkprof are useful tools for understanding what sqls are being generated by a poorly performing report or application.&lt;br /&gt;&lt;br /&gt;To invoke sql trace you can either alter your session using sql command&lt;br /&gt;ALTER SESSION SET sql_trace = true;&lt;br /&gt;&lt;br /&gt;To invoke sql trace in other users/application sessions you can use plsql package&lt;br /&gt;dbms_system.set_sql_trace_in_session ( sid, serial#, TRUE 0 );&lt;br /&gt;&lt;br /&gt;To find out the users sid and serial we select from v$session&lt;br /&gt;select sid, serial# , status from v$session where program = &lt; ' The Relevant EXE ' &gt;;&lt;br /&gt;&lt;br /&gt;example: &lt;br /&gt;select  sid, serial# , status from v$session where program = 'BbTSMain.exe'  ;&lt;br /&gt;&lt;br /&gt;If there are multiple sessions as there are for BbTSMain.exe then I can dynamically build a sql trace for this&lt;br /&gt;&lt;br /&gt;example&lt;br /&gt;spool trace.sql&lt;br /&gt;select 'EXECUTE dbms_system.set_sql_trace_in_session (' ||sid || ','|| serial# || ', TRUE);' from v$session where program='BbTSMain.exe'&lt;br /&gt;/&lt;br /&gt;spool off&lt;br /&gt;&lt;br /&gt;This will generate a script like&lt;br /&gt;&lt;br /&gt;EXECUTE dbms_system.set_sql_trace_in_session (396,55252, TRUE);  &lt;br /&gt;&lt;br /&gt;@trace.sql                                                                                          &lt;br /&gt;Now that sql tracing is turned on, it is time to look for our trace directory and tracefile&lt;br /&gt;show parameter user_dump_dest&lt;br /&gt;&lt;br /&gt;sort the directory for the *.trc files being actively modified&lt;br /&gt;&lt;br /&gt;Now lets add some value to the sql trace by running the tracefile through the tkprof utility&lt;br /&gt;&lt;br /&gt;tkprof &lt;tracefile&gt; &lt;outfile&gt; explain=envision/&lt;pwd&gt;@envision&lt;br /&gt;&lt;br /&gt;example:  tkprofe bbts_ora_2160.trc k.out explain=envision/123@envision&lt;br /&gt;&lt;br /&gt;edit the outfile to see the sqls and the execution plans&lt;br /&gt;&lt;br /&gt;You have now successfully mined the underlying sqls for the application&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-5461671771203740732?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/5461671771203740732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2009/12/sql-trace-and-tkprof.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/5461671771203740732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/5461671771203740732'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2009/12/sql-trace-and-tkprof.html' title='sql trace and tkprof'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-3247998869799548072</id><published>2009-10-01T09:31:00.000-07:00</published><updated>2011-10-27T08:30:47.456-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Tuning'/><title type='text'>View Oracle Bind Variables version 10g 11g</title><content type='html'>Using grid control and v$sql you can see sql statements but to see the bind varibles in 10g and 11g you need to query the view v$sql_bind_capture.&lt;br /&gt;&lt;br /&gt;select&lt;br /&gt;  sql_id,&lt;br /&gt;  t.sql_text SQL_TEXT,&lt;br /&gt;  b.name BIND_NAME,&lt;br /&gt;  b.value_string BIND_STRING&lt;br /&gt;from&lt;br /&gt;  v$sql t&lt;br /&gt;  join v$sql_bind_capture b using (sql_id)&lt;br /&gt;where&lt;br /&gt;  b.value_string is not null&lt;br /&gt;  and sql_id='&amp;mysqlid'&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-3247998869799548072?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/3247998869799548072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2009/10/view-oracle-bind-variables-version-10g.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3247998869799548072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3247998869799548072'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2009/10/view-oracle-bind-variables-version-10g.html' title='View Oracle Bind Variables version 10g 11g'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-6498011893067689287</id><published>2009-09-23T13:06:00.000-07:00</published><updated>2011-10-27T08:30:47.457-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database Tuning'/><title type='text'>Find Oracle Trace File</title><content type='html'>When looking for an oracle trace file here are a 2 sqls that will help you out.  First ascertain the SID then run sql 1 to get the ospid.  Then run sql 2 to get the trace file.&lt;br /&gt;&lt;br /&gt;Sql 1&lt;br /&gt;select p.PID,p.SPID,s.SID &lt;br /&gt;from v$process p,v$session s&lt;br /&gt;where s.paddr = p.addr&lt;br /&gt;and s.sid = &amp;SESSION_ID&lt;br /&gt;/&lt;br /&gt;Then user the spid ( server process identifier ) to get the location of the tracefile.&lt;br /&gt;SELECT PID, PROGRAM, TRACEFILE FROM V$PROCESS where pid= &amp;spid&lt;br /&gt;&lt;br /&gt;To turn on trace event 10046 you can use the oradebug&lt;br /&gt;&lt;br /&gt;connect / as sysdba&lt;br /&gt;oradebug setospid &lt;spid&gt;&lt;br /&gt;oradebug unlimit&lt;br /&gt;oradebug event 10046 trace name context forever,level 12&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-6498011893067689287?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/6498011893067689287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2009/09/find-oracle-trace-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/6498011893067689287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/6498011893067689287'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2009/09/find-oracle-trace-file.html' title='Find Oracle Trace File'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-3878750117080474084</id><published>2009-09-18T08:37:00.001-07:00</published><updated>2011-10-27T08:33:22.023-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Administration'/><title type='text'>Clean Oracle 11g diag dir with adrci</title><content type='html'>Cleaning the diag directory in Oracle 11g can be done with using cronjob and with embedded adrci commands.  Adrci is Oracles new interface for working with and managing incidents.  To keep your diag directory from filling up you can set a default purge script.  An example is below&lt;br /&gt;&lt;br /&gt;Cronjob.&lt;br /&gt;02 04 * * * /var/opt/oracle/bin/clean_trc_adrci.sh &gt;/tmp/clean_trc_adrci.log 2&gt;&amp;1&lt;br /&gt;&lt;br /&gt;Script:&lt;br /&gt;#!/bin/bash&lt;br /&gt;export ORACLE_SID=test&lt;br /&gt;export ORAENV_ASK=NO&lt;br /&gt;# keep 7 days of incidents&lt;br /&gt;. oraenv&lt;br /&gt;$ORACLE_HOME/bin/adrci &lt;&lt; CMD&lt;br /&gt;set homepath diag/rdbms/test/test&lt;br /&gt;set home diag/rdbms/test/test&lt;br /&gt;purge -age 10080 &lt;br /&gt;CMD&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-3878750117080474084?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/3878750117080474084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2009/09/clean-oracle-11g-diag-dir-with-adrci.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3878750117080474084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3878750117080474084'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2009/09/clean-oracle-11g-diag-dir-with-adrci.html' title='Clean Oracle 11g diag dir with adrci'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-3611843924591932765</id><published>2009-06-13T21:06:00.001-07:00</published><updated>2011-10-27T08:33:22.024-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Administration'/><title type='text'>Perl Script Oracle Apps Clone CONTEXT_FILE</title><content type='html'>I was working on automating Rapid Clone for Oracle Apps 11.5 and need to script changes to CONTEXT_FILE.  Here is the perl script I used.&lt;br /&gt;&lt;br /&gt;$infile=$ENV{"CONTEXT_FILE"};&lt;br /&gt;print "infile is $infile \n";&lt;br /&gt;open(IN,"$infile") || die "cannot open $infile for reading: $!";&lt;br /&gt;$outfile="$infile" . "_new";&lt;br /&gt;print "outfile is $outfile \n";&lt;br /&gt;open(OUT,"&gt;$outfile") || die "cannot open $outfile for writing: $!";&lt;br /&gt;while (&lt;IN&gt;) {&lt;br /&gt;   if (/AF_CLASSPATH/) {&lt;br /&gt;     s/appsborg/appsborg2/;&lt;br /&gt;   }&lt;br /&gt;   if (/\&lt;oa_process_status oa_var=\"s_apcstatus\"\&gt;disabled/) {&lt;br /&gt;     s/disabled/enabled/;&lt;br /&gt;   }&lt;br /&gt;   if (/\&lt;oa_process_status oa_var=\"s_formsstatus\"\&gt;disabled/) {&lt;br /&gt;     s/disabled/enabled/;&lt;br /&gt;   }&lt;br /&gt;   if (/\&lt;oa_process_status oa_var=\"s_metcstatus\"\&gt;disabled/) {&lt;br /&gt;     s/disabled/enabled/;&lt;br /&gt;   }&lt;br /&gt;   if (/\&lt;oa_process_status oa_var=\"s_metsstatus\"\&gt;disabled/) {&lt;br /&gt;     s/disabled/enabled/;&lt;br /&gt;   }&lt;br /&gt;   if (/\&lt;oa_process_status oa_var=\"s_jtffsstatus\"\&gt;disabled/) {&lt;br /&gt;     s/disabled/enabled/;&lt;br /&gt;   }&lt;br /&gt;   print OUT $_;&lt;br /&gt;}&lt;br /&gt;close (IN);&lt;br /&gt;close (OUT);&lt;br /&gt;print "new context file is $outfile \n";&lt;br /&gt;&lt;br /&gt;Here is the shell script I  used a wrapper.&lt;br /&gt;perl chgcontext.pl&lt;br /&gt;diff $CONTEXT_FILE "$CONTEXT_FILE"_new&lt;br /&gt;cp $CONTEXT_FILE "$CONTEXT_FILE"_old&lt;br /&gt;cp "$CONTEXT_FILE"_new $CONTEXT_FILE&lt;br /&gt;diff $CONTEXT_FILE "$CONTEXT_FILE"_new&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-3611843924591932765?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/3611843924591932765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2009/06/perl-script-oracle-apps-clone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3611843924591932765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3611843924591932765'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2009/06/perl-script-oracle-apps-clone.html' title='Perl Script Oracle Apps Clone CONTEXT_FILE'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-2399287192541959440</id><published>2009-06-05T07:47:00.000-07:00</published><updated>2011-10-27T08:31:25.871-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Monitoring'/><title type='text'>Database Health Check List</title><content type='html'>&lt;strong&gt;Daily Checks&lt;/strong&gt;&lt;br /&gt;Alert Log&lt;br /&gt;Jobs ( DBMS_JOBS, Scheduler, CronJobs )&lt;br /&gt;Invalid_Objects&lt;br /&gt;Grid Control Alerts&lt;br /&gt;AWR Report&lt;br /&gt;DashBoard&lt;br /&gt;Backup successful&lt;br /&gt;Standby lag is ok&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Weekly Check&lt;/strong&gt;&lt;br /&gt;All the above daily&lt;br /&gt;Dashboards Enhancement&lt;br /&gt;Bad Queries evaluated with explain plan&lt;br /&gt;Daily checks are automated&lt;br /&gt;Job logs are being monitored for success/failurs&lt;br /&gt;Dashboard updated and email is sent and enhanced&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Monthly Check&lt;/strong&gt;&lt;br /&gt;All daily/weekly checks&lt;br /&gt;Password file up to date&lt;br /&gt;Any Oracle issues have updated SR&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Quarterly Check&lt;/strong&gt;&lt;br /&gt;Oracle patches are reviewed&lt;br /&gt;Database DB and APP diagrams are up to date&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-2399287192541959440?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/2399287192541959440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2009/06/database-health-check-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/2399287192541959440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/2399287192541959440'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2009/06/database-health-check-list.html' title='Database Health Check List'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7103963156861640292.post-3411370461850145538</id><published>2009-02-24T11:52:00.000-08:00</published><updated>2009-03-10T15:25:58.588-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='restore oracle database'/><category scheme='http://www.blogger.com/atom/ns#' term='rman restore database'/><category scheme='http://www.blogger.com/atom/ns#' term='restore database when missing archivelogs'/><category scheme='http://www.blogger.com/atom/ns#' term='rman recover database'/><category scheme='http://www.blogger.com/atom/ns#' term='rman oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='recover oracle database'/><title type='text'>Restore and Recover Inconsistent rman backup</title><content type='html'>Have you ever had to restore an oracle database when you did not have all the archived redo logs that occurred during the backup?  Well I did and it was an interesting day that required an escalated SR to oracle support.  Here is how I recovered.&lt;br /&gt;&lt;br /&gt;I restored the tape backup using rman and a backup of the snapshot control file found in my $ORACLE_HOME/dbs directory.&lt;br /&gt;&lt;br /&gt;cp $ORACLE_HOME/dbs/snapcf_mydb.f /ora01/mydb.ctl&lt;br /&gt;&lt;br /&gt;I mounted the controlfile&lt;br /&gt;startup mount&lt;br /&gt;&lt;br /&gt;I connected to rman&lt;br /&gt;rman target /&lt;br /&gt;&lt;br /&gt;I restored my inconsistent backup &lt;br /&gt;restore database;&lt;br /&gt;&lt;br /&gt;I tried to recover my database but could not since I am missing archived redo logs during the backup.&lt;br /&gt;recover database;&lt;br /&gt;&lt;br /&gt;I tried opening the database with alter database resetlogs but could not since system datafile was inconsistent.&lt;br /&gt;&lt;br /&gt;I changed init.ora parameter to add the following parameters per Oracle Support recommendation and then restarted the database in mount mode.&lt;br /&gt;_ALLOW_RESETLOGS_CORRUPTION = TRUE&lt;br /&gt;_minimum_giga_scn=6884&lt;br /&gt;_allow_error_simulation=true&lt;br /&gt;_CORRUPTED_ROLLBACK_SEGMENTS=(_SYSSMU1$,_SYSSMU2$, _SYSSMU3$,_SYSSMU4$, _SYSSMU5$,_SYSSMU6$,_SYSSMU7$, _SYSSMU8$,_SYSSMU9$, _SYSSMU10$,SYSSMU11$,_SYSSMU12$,_SYSSMU13$,_SYSSMU14$,_SYSSMU15$, _SYSSMU16$,_SYSSMU17$, _SYSSMU18$,_SYSSMU19$,_SYSSMU20$,_SYSSMU21$, SYSSMU22$,_SYSSMU23$,_SYSSMU24$, _SYSSMU25$, _SYSSMU26$,_SYSSMU27$,_SYSSMU28$,_SYSSMU29$, _SYSSMU30$,_SYSSMU31$)&lt;br /&gt;undo_management=manual&lt;br /&gt;&lt;br /&gt;In sqlplus I could then do&lt;br /&gt;alter database open resetlogs;&lt;br /&gt;&lt;br /&gt;I then created a shell database using dbca&lt;br /&gt;&lt;br /&gt;I then exported the full database using&lt;br /&gt;exp system/manager full=y file=full.dmp log=full.log&lt;br /&gt;&lt;br /&gt;Next I imported my full export into my new shell database&lt;br /&gt;imp system/manager file=full.dmp log=impfull.log commit=y ingore=yes destroy=no&lt;br /&gt;&lt;br /&gt;I then put the new database in archivelog mode so I do not have this problem again.&lt;br /&gt;shutdown immediate;&lt;br /&gt;startup mount;&lt;br /&gt;alter database archivelog;&lt;br /&gt;alter database open;&lt;br /&gt;&lt;br /&gt;I then created a full backup and archive log backups through grid control.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7103963156861640292-3411370461850145538?l=maheritc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maheritc.blogspot.com/feeds/3411370461850145538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://maheritc.blogspot.com/2009/02/recovering-oracle-database-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3411370461850145538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7103963156861640292/posts/default/3411370461850145538'/><link rel='alternate' type='text/html' href='http://maheritc.blogspot.com/2009/02/recovering-oracle-database-from.html' title='Restore and Recover Inconsistent rman backup'/><author><name>Kevin Maher</name><uri>http://www.blogger.com/profile/10387647269246228953</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://3.bp.blogspot.com/_-Btq0yyqNdA/SaREB1Rp0PI/AAAAAAAAABw/sR4MfNDYV_Q/S220/kev5.jpg'/></author><thr:total>0</thr:total></entry></feed>
