Clone non-rac Grid Infrastructure
Posted: May 17, 2012 | Author: admin | Filed under: General DBA | Leave a comment »[oracle@my562b bin]$ perl clone.pl -silent ORACLE_BASE=/apps/oracle ORACLE_HOME=/apps/11.2.0/grid ORACLE_HOME_NAME=Ora11g_gridinfrahome1 INVENTORY_LOCATION=/apps/oraInventory
What a mess .. trying force delete and re-configuring GRID Home
$ORACLE_HOME/perl/bin/perl -I $ORACLE_HOME/perl/lib -I $ORACLE_HOME/crs/install $ORACLE_HOME/crs/install/roothas.pl -delete[oracle@my562b admin]$ asmcmd
Setting DISPLAY with X authority file utility – xauth
Posted: May 15, 2012 | Author: admin | Filed under: Linux, RAC | Tags: Display, Linux, Red Hat, X, xuath | Comments OffFrom the X Server where the VNC Server is at:
$: xauth list $DISPLAY
viscdb105.visctech.com:1 MIT-MAGIC-COOKIE-1 fc0f22b8861edcea596a68db0ec3059d
viscdb105.visctech.com/unix:1 MIT-MAGIC-COOKIE-1 fc0f22b8861edcea596a68db0ec3059d
Then you go to your database server where you will launch runInstaller from:
$: xauth add viscdb105.visctech.com:1 MIT-MAGIC-COOKIE-1 fc0f22b8861edcea596a68db0ec3059d
$: xauth add viscdb105.visctech.com/unix:1 MIT-MAGIC-COOKIE-1 fc0f22b8861edcea596a68db0ec3059d
Set your DISPLAY like you would normally do:
VPRD1 – oracle: xclock Error: Can’t open display:
viscdb007:/apps/oracle/software/11.2.0.3/grid
VPRD1 – oracle: export DISPLAY=viscdb105.visctech.com:1
viscdb007:/apps/oracle/software/11.2.0.3/grid
Test your connection
if you have xclock installed on the database server. If you do not have xclock, you can copy xclock from another machine that has it installed.
VPRD1 – oracle: xclock
Warning: Missing charsets in String to FontSet conversion
$: ./runInstaller
Starting Oracle Universal Installer…
Checking Temp space: must be greater than 120 MB. Actual 1810 MB Passed
Checking swap space: must be greater than 150 MB. Actual 32031 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,
Continue? (y/n) [n] y
>>> Ignoring required pre-requisite failures. Continuing…
Preparing to launch Oracle Universal Installer …
Create ASMLIB disks for EMC disks
Posted: May 15, 2012 | Author: admin | Filed under: ASM, Linux, RAC | Tags: ASMLIB, EMC, Linux | Comments OffCreate ASMLIB disks with /etc/init.d/oracleasm command.
You must be logged in as root:
- root: cat /proc/partitions |grep emcpower
- root: /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks:
You can verify the the disks on the other RAC nodes with the listdisks option:
- root: /etc/init.d/oracleasm listdisks
TRAX_PV101_DISK1
TRAX_PV101_DISK2
TRAX_PV101_DISK3
TRAX_PV101_DISK4
TRAX_PV101_DISK5
Access Control List in Oracle Database 11g
Posted: May 14, 2012 | Author: admin | Filed under: Uncategorized | Comments OffExadata single command to get all the hostnames and IP addresses of all the compute nodes
Posted: May 1, 2012 | Author: admin | Filed under: Exadata | Comments OffFrom the home directory where the dbs_group file resides:
dcli -g dbs_group -l oracle ‘grep -i `hostname` /etc/hosts’
On the half Rack Exadata, here’s the output that you would expect:
viscdb01: 10.0.0.70 viscdb01.visctech.com viscdb01
viscdb02: 10.0.0.71 viscdb02.visctech.com viscdb02
viscdb03: 10.0.0.72 viscdb03.visctech.com viscdb03
viscdb04: 10.0.0.73 viscdb04.visctech.com viscdb04
You can run a similar command to list all the cell nodes. You must do this part as root:
# /usr/local/bin/dcli -g cell_group -l root ‘grep -i `hostname` /etc/hosts’
visccel01: 10.0.10.174 visccel01.visctech.com visccel01
visccel02: 10.0.10.175 visccel02.visctech.com visccel02
visccel03: 10.0.10.176 visccel03.visctech.com visccel03
visccel04: 10.0.10.177 visccel04.visctech.com visccel04
visccel05: 10.0.10.178 visccel05.visctech.com visccel05
visccel06: 10.0.10.179 visccel06.visctech.com visccel06
visccel07: 10.0.10.180 visccel07.visctech.com visccel07
ODA Rant
Posted: April 28, 2012 | Author: admin | Filed under: RAC | Leave a comment »Oracle spends 4.5 billion on R&D. ODA is a 4u box Marketed as HA in a box.
You can license 2 cores up to 24 –> 3.06Ghz, 12 mb L3 of cache per socket (Intel XEON 5674)
Bottom node is Server node SN#0 –> have to run the install on the bottom node
Top node is Server node SN#1
Once you go to 8 cores, you cannot go back down
You have to generate a key and copy the paste
ODA Only runs enterprise edition
Triple (High Redundancy) only. Does not support Normal Redundancy
Will support TDE hardware accelerator (CPU has the capability)
Public network (bond 0) with gigabit ports (bottom right corner)
ILOM is above the public gigE ports
Just behind here are the 2 X 500GB drives
Bottom left corner
* Has 2 SAS ports that are intentionally dead
* Right above it has 2 x 10gigE Ports
* Then have 4 x 1gigE ports
96gb of RAM (12x8GB RAM) on each node
4 x 73GB SAS2 SSDs for redo
20 x 600GB SAS2 15k RPM disks
2 x 500GB SATA boot disks
Dual Intel 82571 GigE as Cluster interconnect
2 x onboard GigE per node
1 x Intel Quad GigE Northstar per node
1 x Intel 10GigE Niantic dual-ports per node
Oracle Appliance Manager software utility
Simple UI to manage the appliance
Also used to patch the software and diagnostic software
Can create ASR or call home
Can patch firmware
The command line interface is called ocli
Greate news is that ACFS is supported on ODA.
Tidbit about Licensing:
You have to lose 2 cores at a time and increment by 2 cores
VM World 2012 Call For Papers
Posted: April 19, 2012 | Author: admin | Filed under: Linux | Comments OffVM World 2012 Call for papers is now open until May 18.
VM World will be at San Francisco this year at the Moscone Center, August 27 – 30
| Education. Choose from more than 200 Breakout Sessions and Hands-on Labs covering topics such as the hybrid cloud, enabling IT as a service and delivering end-user freedom while maintaining IT control. |
Collaboration. Attend group discussions or meet one-on-one with Knowledge Experts to learn and share experiences about deploying virtualization and enabling your cloud. |
Networking. Engage with more than 200 technology partners to discuss new and innovative solutions to benefit your business. |
Best Practices for Gathering Optimizer Statistics
Posted: April 17, 2012 | Author: admin | Filed under: General DBA | Comments OffA must read for everyone: twp-bp-optimizer-stats-04042012-1577139.pdf
ASM Disk Group Configuration
Posted: April 16, 2012 | Author: admin | Filed under: ASM, Exadata, General DBA, Linux | Comments Off
ASM Disk Group Configuration |
|||
|
Everyone should be leveraging ASMLIB instead of using block devices to create our ASM disk groups Proper ASM configuration and standardization and following best practices is just as important in a virtualized environment as it is in a bare metal environment |
|||
First, create ASMLIB disks with oracleasm
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA501_disk003p1 -> ../dm-105
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA101_disk003p1 -> ../dm-100
lrwxrwxrwx 1 root root 8 Apr 28 16:22 DATA101_disk001p1 -> ../dm-99
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA101_disk002p1 -> ../dm-102
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA501_disk005p1 -> ../dm-110
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA101_disk004p1 -> ../dm-101
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA101_disk000p1 -> ../dm-104
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA501_disk006p1 -> ../dm-111
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA501_disk008p1 -> ../dm-107
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA501_disk004p1 -> ../dm-112
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA501_disk000p1 -> ../dm-108
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA501_disk002p1 -> ../dm-109
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA501_disk001p1 -> ../dm-103
lrwxrwxrwx 1 root root 9 Apr 28 16:22 DATA501_disk007p1 -> ../dm-106
Naming Convention Legend for Disks
As root: Make changes to the following lines:
# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER=”dm-”
# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE=”sd”
|
Important Notes:
RAID 10 /etc/init.d/oracleasm createdisk DATA101_DISK000 /dev/mapper/DATA101_disk000p1
/etc/init.d/oracleasm createdisk DATA101_DISK001 /dev/mapper/DATA101_disk001p1
/etc/init.d/oracleasm createdisk DATA101_DISK002 /dev/mapper/DATA101_disk002p1
/etc/init.d/oracleasm createdisk DATA101_DISK003 /dev/mapper/DATA101_disk003p1
/etc/init.d/oracleasm createdisk DATA101_DISK004 /dev/mapper/DATA101_disk004p1
RAID 5
——
/etc/init.d/oracleasm createdisk DATA501_DISK000 /dev/mapper/DATA501_disk000p1
/etc/init.d/oracleasm createdisk DATA501_DISK001 /dev/mapper/DATA501_disk001p1
/etc/init.d/oracleasm createdisk DATA501_DISK002 /dev/mapper/DATA501_disk002p1
/etc/init.d/oracleasm createdisk DATA501_DISK003 /dev/mapper/DATA501_disk003p1
/etc/init.d/oracleasm createdisk DATA501_DISK004 /dev/mapper/DATA501_disk004p1
/etc/init.d/oracleasm createdisk DATA501_DISK005 /dev/mapper/DATA501_disk005p1
/etc/init.d/oracleasm createdisk DATA501_DISK006 /dev/mapper/DATA501_disk006p1
/etc/init.d/oracleasm createdisk DATA501_DISK007 /dev/mapper/DATA501_disk007p1
/etc/init.d/oracleasm createdisk DATA501_DISK008 /dev/mapper/DATA501_disk008p1
/etc/init.d/oracleasm createdisk DATA501_DISK009 /dev/mapper/DATA501_disk009p1
SQL> alter system set asm_diskstring=’/dev/oracle’,'ORCL:PD*’;
System altered.
Add the following to the init+ASM1.ora on each node
For automatic mount of diskgroups
asm_diskgroups=’DATA03′,’DATA60′,’FRA03′,’FRA60′,’DATA101′,’DATA501′
#asm_diskstring=’/dev/oracle’
asm_diskstring=’/dev/oracle’,'ORCL:PD*’
For the time being, manually mount the diskgroups on each node:
SQL> alter system set asm_diskstring=’/dev/oracle’,'ORCL:PD*’;
System altered.
SQL> alter diskgroup DATA101 mount;
Diskgroup altered.
SQL> alter diskgroup DATA501 mount;
Diskgroup altered.
Creating ASM Disk Groups
RAID 10 DATA Disk Group
+ASM1 > cat cr_DATA101.sql create diskgroup DATA101 external redundancy disk ‘ORCL:DATA101_DISK000′,
‘ORCL:DATA101_DISK001′,
‘ORCL:DATA101_DISK002′,
‘ORCL:DATA101_DISK003′,
‘ORCL:DATA101_DISK004′
ATTRIBUTE ‘au_size’ = ’4M’,
‘compatible.rdbms’ = ’11.1′,
‘compatible.asm’ = ’11.1′;
RAID 5 DATA Disk Group create diskgroup DATA501 external redundancy disk ‘ORCL:DATA501_DISK000′,
‘ORCL:DATA501_DISK001′,
‘ORCL:DATA501_DISK002′,
‘ORCL:DATA501_DISK003′,
‘ORCL:DATA501_DISK004′,
‘ORCL:DATA501_DISK005′,
‘ORCL:DATA501_DISK006′,
‘ORCL:DATA501_DISK007′,
‘ORCL:DATA501_DISK008′,
‘ORCL:DATA501_DISK009′
ATTRIBUTE ‘au_size’ = ’4M’,
‘compatible.rdbms’ = ’11.1′,
‘compatible.asm’ = ’11.1′;
|
||
OOW 2012 Call for Papers
Posted: April 1, 2012 | Author: admin | Filed under: Exadata | Comments OffOn March 14, 2012, Oracle opened their call for paper for this year’s Oracle OpenWorld conference. The call for paper expired on April 9, 2012. Here’s the abstract that I submitted for Exadata with ZFS Storage Appliance.
Come learn how the industry’s leading supply contracting company, delivers unmatched savings to their customers leveraging Oracle engineered systems. This session will demonstrate how the ZFS Storage Appliance (ZFSSA) was coupled with the Exadata 1/2 Rack to achieve ultra high-availability and reduced capital and operational expenses for their enterprise backups, external tables, archiving, and data staging. We will reveal additional industry use cases for the ZFSSA. For Exadata customers, we will share tips and tricks to increase your space utilization. Lastly, we will share our lessons learned, RMAN backup strategies, direct NFS settings, and scripts used to drive throughput on the ZFSSA across all the compute nodes.