A healthy diet for your Java application Devoxx France.pdf
Oracle prm dul, jvm and os
1. Oracle PRM/DUL, JVM and OS
PRM (ParnassusData Recovery Manager) is developed by Java which can be run all
kinds of JAVA supported platform, Including: AIX, AIX、Solaris、HPUX、Linux and
Windows.
PRM is designed for Enterprise Database Recovery, which includes all
Oracle DUL data recovery functionalities, and also easy-to-use GUI.
PRM For Oracle Database 3.1 GUI:
PRM almost can recovery Oracle database on all operating system,
including:
Linux (RedHat, Centos, Oracle Linux, Suse),AIX, Solaris, HPUX, Windows
2003 Server/XP/2000/NT。
PRM Support Oracle database which starts from 9i, 10g, 11g to 12c.
PRM is compatible with previous platform, and supports as further as JAVA 1.4, which
means all old system can run PRM
For example, 2003 Red Hat Enterprise Linux AS release 3 (Taroon) with JRE 1.4.2
[root@rh3 root]# uname -a
Linux rh3 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux
[root@rh3 root]# cat /etc/issue
2. Red Hat Enterprise Linux AS release 3 (Taroon)
Kernel r on an m
[root@rh3 root]# java -version
java version "1.4.2_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)
[root@rh3 root]#
[root@rh3 root]# which java
/usr/bin/java
PRM is compatible with 10 year old RHEL 3
java –jar prm.jar
Although PRM supports JRE 1.4.2, for your performance and user experience,
3. ParnassusData recommend client to install JDK 1.7 or at lease JDK 1.6
JDK Download
Linux and Windows JDK 1.7 are easy to find and download. For AIX JDK is from IBM.
Below is part of JDK 1.7 download link:
AIX JAVA SDK 7 http://pan.baidu.com/s/1i3JvAlv
Linux JDK 7 64bit http://pan.baidu.com/s/1jGl3AT4
Linux JDK 7 32bit http://pan.baidu.com/s/1mg6ymnQ
Solaris JDK 7 x86-64bit http://pan.baidu.com/s/1gdzgSvh
Solaris JDK 7 x86-32bit http://pan.baidu.com/s/1mgjxFlQ
Solaris JDK 7 Sparc http://pan.baidu.com/s/1pJjX3Ft
PRM Boot Characters
Usually, use prm.sh(Unix/Linux) or prm.bat(Windows) to run PRM, for example:
$ ./prm.sh
[root@rh3 prm_3002]# cat prm.sh
echo "It's recommended that you can use JDK 1.6 or higher version"
echo "Download latest JDK
http://www.oracle.com/technetwork/java/javase/downloads/index.html"
java -Xms1024M -jar prm.jar
Add -Xms1024M to run prm.sh for debugging
If your environment JDK is not 1.6 or above, you may meet below error:
1. Error: “Incompatible initial and maximum heap sizes specified”
[root@rh3 prm_3002]# ./prm.sh
It's recommended that you can use JDK 1.6 or higher version
Download latest JDK
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Error occurred during initialization of VM
Incompatible initial and maximum heap sizes specified
" Incompatible initial and maximum heap sizes specified”
4. This error is because your environment does not support -Xms1024M, and if you do not
want to upgrade your JAVA, please RUN
$ java –jar prm.jar
2. There might be potential error for PRM on gcj java 1.4.2 of RedHat.
Exception when analysing ASM disk header.
Issue for analysing ASM disk header for: /dev/raw/raw1
Exception when analysing ASM disk header.
Issue for analysing ASM disk header for: /dev/raw/raw2
Exception when analysing ASM disk header.
Issue for analysing ASM disk header for: /dev/raw/raw3
Exception when analysing ASM disk header.
Issue for analysing ASM disk header for: /dev/raw/raw4
Exception when analysing ASM disk header.
Issue for analysing ASM disk header for: /dev/raw/raw5
Exception when analysing ASM disk header.
Issue for analysing ASM disk header for: /dev/raw/raw6
Exception when analysing ASM disk header.
Issue for analysing ASM disk header for: /dev/raw/raw7
~
gc warning: Repeated allocation of very large block (appr.size 512000):
May lead to memory leak and poor performance.
This is caused by garbage collection on GCJ 1.4.2 from RedHat. Suggest to use Oracle
JDK 1,5 or above. This may also happen in gcj of redhat free software foundation.
3. Prm.bat Error: no `server' JVM at `D:Program Files
(x86)Javajre1.5.0_22binserverjvm.dll'.”
This caused by JRE installation instead of JDK. There is no –server on JRE
Upgrade to JDK 1.6 or remove -server
java –jar prm.jar