erudans.info

Just few notes to share

First LVOUG conference

leave a comment »

www_500_208_v051

LVOUG group conference is announced! This is first conference in this group history. Conference is organized  in two sessions, scheduled on 27 mart 2009, from 13:00 to 18:30, in Hotel Monika, Elizabetes iela 21, Riga. More information on link

I’m also happy to take participation in this conference, trying to make fun, running oracle database with noarchivelog mode and applying different crash and recovery methods ;)

Written by erudans

March 3, 2009 at 2:23 pm

Posted in Conferences

Tagged with

Unable to install EM GridControl 10.2.0.3 oms on rhel5 (all 64bit)

leave a comment »

Ive experienced problem with installing em gridcontrol oms 10.2.0.4 64bit on redhat linux 5 64bit. Configuration assistant was unable to start web server with error finding libdb.so.2 library.

We have attemted to install different libs with no success. After few hours of experiments we have decided to use rhel4. It seems that rhel 5 is not supported yet.

Written by erudans

December 29, 2008 at 12:18 pm

Posted in Uncategorized

Tagged with

Few notes on ‘Advanced Oracle Troubleshooting Seminar’ with Tanel Poder in Latvia.

leave a comment »

On 21 November 2008, occurred long awaited event in Latvia – Advanced Oracle troubleshooting seminar with Tanel Poder (http://blog.tanelpoder.com/seminar/). The seminar was arranged by Affecto Latvia and Oracle University, lasted 2 days, and collected about 30-40 participants .

 Tanel started with the basics and continued with more advanced things touching practically every aspect of oracle troubleshooting. Advanced, in this context, means is what you do when all available oracle tools failed to show where the problem is. In this situation, Tanel proposing to troubleshoot oracle as standard UNIX application, perform traces and stack dumps, providing amazing information about what is what within stack trace.

 Another amazing thing is to see how very skilled professionals are working. I see this as very good opportunity to learn. Here he is showing fast and efficient way to deal with problems using his own custom build scripts. This approach is really accelerate process of diagnostics, especially when you are consulting professional with limited access to production servers and environment. But I think, this approach will be very useful for DBA as well, since for High Availability systems it’s very important to reduce impact on system as fast as possible, and for this purpose, systematic approach and planned environment is very important.

 I’ve personally very inspired by Tanel’s work and dedication and would like to thank you for great work and hope to see you in Riga again, with 3-5 extended seminar. Also, would like to thank Affecto Latvia and OU, that made this event possible, here, in Riga.

Written by erudans

December 11, 2008 at 5:13 pm

10.2.0.3 v$session reports wrong blocking sid

leave a comment »

When resolwing locking situations using v$session dynamic view, be careful to not to kill wrong session. As appears, v$session “blocking_session” column reports incorrect sid. To obtain correct value, substract 1 from reported sid.

This is bug  5481650 which is resolved in 10.2.0.4

Written by erudans

April 9, 2008 at 3:22 pm

Posted in English articles, dba job

Tagged with

How to check free space in ASM

leave a comment »

1. Connect to asm instance:

select name, state, total_mb, free_mb from v$asm_diskgroup;

NAME STATE TOTAL_MB FREE_MB
—————————— ———– ———- ———-
ORADATA MOUNTED 65536 53439

2. Using Grid Control

Go to asm host and select asm instance. Go Administration tab and input asm administration password:

3. Using ASMCMD tool

Please make sure to setup ORACLE_SID and ORACLE_HOME environment variables to ASM instance.

-bash-3.2$ asmcmd -p
ASMCMD [+] > du
Used_MB Mirror_used_MB
12011 12011
ASMCMD [+] >

or run

lsdg command

State    Type    Rebal  Unbal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Name
MOUNTED  EXTERN  N      N        1024   4096  1048576     40960    37628                0           37628              0  ORADATA/
MOUNTED  EXTERN  N      N        1024   4096  1048576     32768    32675                0           32675              0  ORADATA1/

Written by erudans

March 25, 2008 at 10:31 am

OUI starts and after prerequisites check, OUI crashes

leave a comment »

From java trace file:

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0×80D7A9C
Function=JVM_RegisterUnsafeMethods+0×18D
Library=C:\DOCUME~1\ab0959\LOCALS~1\Temp\OraInstall2008-03-05_09-25-08AM\jre\1.4.2\bin\client\
jvm.dll

Got this problem on client workstation (win2000prof). Initially we have attempted to start oracle iODS installation, but installer crasged just after prerequisites check by firt ‘next’ button pressed. Then I’ve checked if is possible to start 10.2.0.1 oracle client installation, but things got even worse, installer crashed just after prerequisites check completed with OUI wondow showed up for 1 sec.

What I have checked next with no luck:

  • user is in administrators group
  • path variable less than 1024
  • windows2000 sp4
  • installation folder is simple c:\install
  • we tested to install just after complete restart (no apps running)
  • no other oracle services running as system services
  • no problem with installation packages (tested on my own workstation)

Ive even suspected CPU issue, on this workstation new core2duo cpu (I still remember problems with installer on
Pentium4 ;)

With help from oracle support, problem been resolved by removing unused oracle entries from windows registry (unregisted in oraInventory entries)

CAUSE: Windows registry seem corrupted on the Oracle branch

Written by erudans

March 6, 2008 at 10:47 am

Oracle 32bin vs. 64 bit: quick test

with 2 comments

What is overhead of using 64 bit addressing on oracle 64 bit systems comparing to 32 bit? For few days, I had test hardware in hands, to do quick check on this.

The quick test is on AMD Dualcore Opteron CPUs (HP BL685) running RHEL 5 and oracle 10.2.0.3

Server config:

4CPU

8GB total memory

2 sas hard drives in hardware mirror

Oracle configuration:

db_block_size 8K

db_cache_size 1200M

shared_pool_size 300M

Dedicated server. All other parameters are defaults.

Load configuration:

For load simulation, swingbench software from Dominic Giles is used (http://www.dominicgiles.com/swingbench.html)

Test: Order Entry application

Customers: 10M

Orders: 250K

Number of concurrent connections: 15 (from 1 client)

DB size: about 4GB

Test Results:

RHEL 5 and oracle 10.2.0.3 32bit

RHEL 5 and oracle 10.2.03 64bit

Conclusion:

AVG Response time

AVG. TPM

32bit

47

6768

64bit

53

6500

For this quick test, it seems that 32bit operations is little faster, this of course what it should be, just to prove on hands.

Note: this test intentions is more for load software familiarization, not academic purposes :) To do more accurate testing required more time and testing, which is not currently available.

Written by erudans

March 6, 2008 at 8:22 am

DBA future. Will we shift more to business?

leave a comment »

For DBA. understanding business required for long time. Without this understanding hardly possible to tune application and db right. How to understand what exactly to tune – what is important to business? What backup and recovery strategy to develop? MTTR and MTBF? How company is confident in paying $500K only for oracle database enterprise edition? All this related to dba.

On the other hand, there are still loads of pure technical work to do, for example (what first comes to mind):

  • Developing and advancing backup and recovery strategy
  • Actual backups testing, restoring and testing
  • Different crash scenarios modeling and recovery testing
  • Recovery documentation and testing
  • Proactive monitoring and analysis
  • Moving data between test and development, sensual data scrambling
  • Maintaining security, patching, auditing, logs analysis
  • New features, new releases, new platforms, docs refresh, etc, etc

 

All this require time and professionals, and if more integration with business is needed, more resources is needed as well (simply add more resources – Grid Era :) This means, that pure technical DBA certainly will be needed. This is probably area for DBA assistants and regular DBAs. Seniors will probably do more business integration, or delegate this role to separate DBA.

 

Written by erudans

March 4, 2008 at 11:07 am

Ошибка инсталяции oracle под Linux

leave a comment »

Ставил oracle 10g on Linux (oracle linux 5 64bit). При запуске инсталлера такая ошибка:

bash-3.1$ ./runInstaller
Starting Oracle Universal Installer…No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-02-29_10-43-09AM. Please wait …bash-3.1$ Exception in thread “main” java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-02-29_10-43-09AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)

Solution: install 32bit package libXP-1.0.0-8.i386.rpm (check note 443617.1)

Эта ошибка вызвана отсутствием пакета который должен ставится по умолчанию. Такое происходит когда при инсталяции linux, выбирается Custom и лишние пакеты не включаются. Кстати oracle рекомендует (может мягко сказано) выбор типа инсталляции Workstation. Смотрите note 401167.1:

“However, de-selecting any “default RPM” groupings or individual RPMs can result in failed RDBMS installation attempts, and as such, is not supported by Oracle Support Services. “

Written by erudans

February 29, 2008 at 10:38 am

Мистическая ошибка инсталляции 10g on Linux :)

leave a comment »

Расскажу забавный случай инсталляции oracle 10g on linux. Админы поготовили Linux сервер и отдали мне на установку базы. Нужно было ставить 10g 64bit. Запускаю installer все нормально, но в конце установки появляются сообщения что невозможно залинковать объекты, netca тоже не запускается.

Запускаю ntetca в ручную, ошибка:

bash-3.1$ netca

UnsatisfiedLinkError exception loading native library: njni10

java.lang.UnsatisfiedLinkError: jniGetOracleHome

at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)

at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)

at oracle.net.ca.NetCA.main(Unknown Source)

Oracle Net Services configuration failed. The exit code is -1

Нахожу ноту Note:308788.1, не помогает. Проверяем еще раз все ли пакеты поставлены, все на месте, переменные окружения. Тут закрадываетя подозрение, а какая битность линукса? Ну конечно 32bit! :) Это из раздела – сисадмины шутят :)

Как определить битность системы? Смотрите Note:469497.1 В кратце выполяем uname -a и смотрим первую строку, правая часть, там должно фигурировать 64, для 64 bit linux.

Solution: Problem caused by installing 64bit oracle software on 32bit os linux.

Written by erudans

February 19, 2008 at 1:44 pm

Posted in Russian Articles, dba job

Tagged with