Less known helpers: Linux sg3_utils

The linux sg3_utils are small tools intended for working with FC / SCSI / SATA / SAS hard driv.es. They can be used to send SCSI commands (for instance INQUIRY, LOG SENSE, …) to these devices.

sg3_utils can be found on freshmeat.

An in-depth description can be found here.

Posted in Oracle in general | Leave a comment

ASM witth Oracle 11g Release 2 – Best Practises revisited

Starting with 11g Release 2 it is possible to store voting disks and OCR in ASM. But how does this affect ASM best practises?

Martin Decker found the updated Oracle document about this issue.

.

Posted in Oracle in general | 2 Comments

Using Large Pages for Oracle on Windows 64-bit (ORA_LPENABLE)

For using Large Pages on Windows some settings are needed:

1.  Start > Settings > Control Panel
2.  click Administrative Tools.
3.  click Local Security Policy.
4.  Expand Local Policies and select User Rights Assignment.
5.  Select Lock pages in memory and choose Action > Security...
6.  Click Add...
7.  Select the username that was used to install Oracle and the ora_dba group from the Name list.
8.  Click Add.
9.  Close Select Users or Groups dialog by pressing OK
10. Click OK to close the Local Security Policy Setting dialog.
11. Open Regedit
12. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1
13. Create a registry key (REG_SZ) named ORA_LPENABLE  and set the value to 1
14. Reboot the server.
Posted in Oracle in general | Leave a comment

How to determine FC HBA WWN on Oracle Enterprise Linux 5

To determine the FC HBA WWN on Oracle Enterprise Linux (OEL) use:

cat /sys/class/fc_host/host<number>/port_name

For example:

[root@host sys]# cat /sys/class/fc_host/host6/port_name
0x2100001b329308df
[root@host sys]# cat /sys/class/fc_host/host5/port_name
0x2100001b329388d9
Posted in Oracle in general | Leave a comment

EMC Networker: NDMP backups are failing after upgrading to 7.6.1

After upgrade to EMC Networker 7.6.1 NDMP are failing with:

filer:/vol/vol0/etc 6899:nsrdsa_save: Warning: Could not determine job id. Continuing ...
filer:/vol/vol0/etc 39078:nsrdsa_save: SYSTEM error: Could not establish jobid with server.
filer:/vol/vol0/etc 39078:nsrdsa_save: DSA save time could not be retrieved, exiting

Thsi is a known bug in 7.6.1. The fix is available here:

http://solutions.emc.com/emcsolutionview.asp?id=esg116939

Posted in Networker | Leave a comment

Less know features: Alternate Archive Log Destination

Oracle offers the ability to specify so called ‘alternative’ archive log destinations in case the primary archive log destination gets full. You can enable this feature by setting:

log_archive_dest_1='location=+FRA REOPEN=0 MANDATORY alternate=log_archive_dest_2'
log_archive_dest_2='location=/some_path MANDATORY'
log_archive_dest_state_1=ENABLE
log_archive_dest_state_2=ALTERNATE

A configuration often used involved using the flash recovery area as primary destination and a nfs destination as alternative archive log destination.

Posted in Oracle in general | Leave a comment

Oracle 11.2.0.2.0 released

Few weeks ago Oracle released the first patchset for 11g Release 2 database. This is a summaization of other blog posts regarding upgrading or installating 11.2.0.2.0.

At the moment (4th November 2011) 11.2.0.2.0 is available for the following platforms:

  • Linux 32-bit
  • Linux 64-bit
  • AIX 5 64-bit
  • Solaris SPARC 64-bit
  • Solaris Intel 64-bit

 

Upgrading

Upgrading Grid Infrastructure to 11.2.0.2.0 on RHEL 4

Upgrading RAC database to 11.2.0.2.0

Problems

Upgrade to 11.2.0.2.0 failed due to errors in HA IP stack

Posted in Oracle in general | Leave a comment

Busy

I am pretty busy the last weeks so i had no time for updates. I will have more time next week.

Posted in Oracle in general | Leave a comment

Using variables in RMAN scripts

Ever wanted to use variables in your RMAN scripts? Until and including 10g R2 this was impossible. Starting with 11g R1 it is possible.

Lets me show you a short example how to do it:

First we create a simple (and imcomplete) script with the following content:

connect target /
backup &1;

The variable “&1” will be replaced with the first command line argument supplied on the command line. “&2” is the second argument and so on.

Suppose we want to backup our database we start RMAN with:

-bash-3.2$ rman target / @test.scr USING \"database\"

The resulting output will be:

Recovery Manager: Release 11.2.0.1.0 - Production on Mon Aug 2 08:16:07 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
connected to target database: ORA11R2P (DBID=2658288218)
RMAN> backup database;
2>
Starting backup at 02-AUG-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=148 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/oradata/ORA11R2P/system01.dbf
input datafile file number=00002 name=/u01/oradata/ORA11R2P/sysaux01.dbf
input datafile file number=00003 name=/u01/oradata/ORA11R2P/undotbs01.dbf
input datafile file number=00005 name=/u01/oradata/ORA11R2P/testneu.dbf
input datafile file number=00004 name=/u01/oradata/ORA11R2P/users01.dbf
channel ORA_DISK_1: starting piece 1 at 02-AUG-10

As you can see in the bold line RMAN replaced the variable with the first argument specified on the command line (“database”).

With this method you can create powerful and yet simple scripts for backing up your database.

Posted in Oracle in general | Leave a comment

Tuning Linux for Oracle

This is a short post on how to tune Linux for running Oracle.

It wont cover the background directly but i am trying to give some links with further informations.

I am planning to improve it over the time.

Currently this article covers:

  • Partition Alignment
  • Choosing a file system
  • Optimizing ext3
  • Enable Huge Pages
  • Using Async and Direct IO
  • Tune Swapping Priority

Continue reading

Posted in Oracle in general | 5 Comments