Archive

Archive for the ‘Installation’ Category

PRVF-0002 : Could not retrieve local nodename

September 17, 2013 Leave a comment

When I installed oracle 12c1, after starting runInstaller, it showed the following messages.

—# Begin Stacktrace #—————————
ID: oracle.install.commons.util.exception.DefaultErrorAdvisor:37
oracle.cluster.verification.VerificationException: PRVF-0002 : Could not retrieve local nodename
at oracle.cluster.verification.ClusterVerification.<init>(ClusterVerification.java:306)
at oracle.cluster.verification.ClusterVerification.getInstance(ClusterVerification.java:409)
at oracle.install.driver.oui.OUIInstallDriver.load(OUIInstallDriver.java:376)
at oracle.install.ivw.db.driver.DBSetupDriver.load(DBSetupDriver.java:223)
at oracle.install.commons.base.driver.common.Installer.run(Installer.java:306)
at oracle.install.ivw.common.util.OracleInstaller.run(OracleInstaller.java:106)
at oracle.install.ivw.db.driver.DBInstaller.run(DBInstaller.java:142)
at oracle.install.commons.util.Application.startup(Application.java:921)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:165)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:182)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:355)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:130)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:161)

 

Cause:

Missing hostname entry in /etc/hosts

Fix:

1. Check the hostname by the command hostanme

$ hostname

ora12c1

2. Add the hostname into /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 ora12c1

 

 

 

Advertisements
Categories: Installation

Opatch auto doesn’t patch RDBMS Home

September 4, 2013 Leave a comment

1. 11gR2.0.3 GI and RDBMS HOME information

RDBMS HOME=/opt/oracle/product/11.2/db_2

GI HOME=/opt/oracle/product/11.2/grid

2. Apply the patch

# cd /export/home/oracle/patch

# $ORACLE_HOME/OPatch/opatch auto ./ -ocmrf ocmunconfig.rsp

Executing /opt/oracle/product/11.2/grid/perl/bin/perl /opt/oracle/product/11.2/grid/OPatch/crs/patch11203.pl -patchdir /export/home/oracle -patchn patch -ocmrf ocmunconfig.rsp -paramfile /opt/oracle/product/11.2/grid/crs/install/crsconfig_params

/opt/oracle/product/11.2/grid/crs/install/crsconfig_params

/opt/oracle/product/11.2/grid/crs/install/s_crsconfig_defs

….

Successfully unlock /opt/oracle/product/11.2/grid

patch /export/home/oracle/patch/16619898 apply successful for home /opt/oracle/product/11.2/grid

patch /export/home/oracle/patch/16619892 apply successful for home /opt/oracle/product/11.2/grid

CRS-4123: Oracle High Availability Services has been started.

Cause

The opatch auto retrieves the db home information from the configured databases. So, if there is no existing database, then “OPatch auto” will skip that RDBMS Home while patching.

 

Fix

/opt/oracle/product/11.2/grid/OPatch/opatch auto ./ -ocmrf ocmunconfig.rsp -oh /opt/oracle/product/11.2/grid,/opt/oracle/product/11.2/db_2

 

Categories: Installation

Big mistake for installation 11gR2

November 26, 2010 1 comment

Today, I have made a big mistake for installation of 11gR2. I installed the 11gR2 in silent mode and couldn’t encounter any great problems. But when I started to create database in silent as well, it returned the following errors

$  dbca -silent -responseFile /export/home/oracle/database/response/dbca.rsp
Cleaning up failed steps
5% complete
Copying database files
7% complete
8% complete
100% complete
Look at the log file “/opt/oracle/cfgtoollogs/dbca/testdb/testdb1.log” for further details.

$ cat /opt/oracle/cfgtoollogs/dbca/testdb/testdb1.log
Cleaning up failed steps
DBCA_PROGRESS : 5%
Copying database files
DBCA_PROGRESS : 7%
DBCA_PROGRESS : 8%
ORA-12560: TNS:protocol adapter error

ORA-12560: TNS:protocol adapter error

DBCA_PROGRESS : 100%

I spent 1~2 days surfing on internet to look up solutions. Almost root causes were related to different version of oracle binary after Oracle upgrade or ORACLE_SID were not set. All suggests I have done, but there  were no one to solve my problem. Finally, I found that I make a big mistake to mix different version of oracle zip to install.

 

$ ls -al
total 4650919
drwxr-xr-x   6 oracle   dba            9 Nov 26 13:47 .
drwxr-xr-x   3 root     root           3 Nov 12 12:15 ..
drwxr-xr-x   2 oracle   dba           78 Nov 25 09:31 .fontconfig
-rw-r–r–   1 oracle   dba          798 Nov 24 16:21 .profile
drwx——   2 oracle   dba            3 Nov 24 10:55 .ssh
drwx——   3 oracle   dba            3 Nov 24 10:55 .sunw
drwxr-xr-x   8 oracle   dba           10 Nov  6  2009 database
-rw-r–r–   1 oracle   dba      1373903591 Nov 24 10:58 solaris.sparc64_11gR2_database_1of2.zip <– it is used for solaris platform
-rw-r–r–   1 oracle   dba      1005450726 Nov 25 09:18 solaris.x64_11gR2_database_2of2.zip <– it is used for X86 intel platform
$

 

 

 

 

 

 

 

Categories: Installation

Oracle 11gR2 silent installation problem

November 25, 2010 1 comment

When I installed Oracle 11gR2 in silent mode, I encountered two problems. The details and solutions are shown as below

Problem 1:

Symptoms

1. Edit the ./response/db_install.rsp withe following settings

oracle.install.option=INSTALL_DB_SWONLY

ORACLE_HOSTNAME=testvmdb

UNIX_GROUP_NAME=dba

INVENTORY_LOCATION=/opt/oracle/oraInventory

SELECTED_LANGUAGES=en

ORACLE_HOME=/opt/oracle/product/11g

ORACLE_BASE=/opt/oracle

oracle.install.db.InstallEdition=EE

oracle.install.db.DBA_GROUP=dba

oracle.install.db.OPER_GROUP=dba

2. Start the silent installation

$  ./runInstaller -silent -ignorePrereq  -responseFile ‘/export/home/oracle/database/response/db_install.rsp’
Starting Oracle Universal Installer…

Checking Temp space: must be greater than 180 MB.   Actual 180764 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 4233 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-11-25_10-52-41AM. Please wait …$ Exception in thread “main” java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at javax.swing.UIManager.initialize(UIManager.java:1262)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1245)
at javax.swing.UIManager.getUI(UIManager.java:851)
at javax.swing.JPanel.updateUI(JPanel.java:104)
at javax.swing.JPanel.<init>(JPanel.java:64)
at javax.swing.JPanel.<init>(JPanel.java:87)
at javax.swing.JPanel.<init>(JPanel.java:95)
at oracle.sysman.oii.oiif.oiifo.OiifoOCMUI.<init>(OiifoOCMUI.java:125)
at oracle.sysman.oii.oiif.oiifo.OiifoOCMInterfaceManager.<init>(OiifoOCMInterfaceManager.java:79)
at oracle.sysman.oii.oiif.oiifo.OiifoOCMInterfaceManager.getInstance(OiifoOCMInterfaceManager.java:124)
at oracle.install.ivw.db.driver.DBInstaller.run(DBInstaller.java:123)
at oracle.install.commons.util.Application.startup(Application.java:869)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

Fix

Check the installation session environment variable, unset the DISPLAY

$ unset DISPLAY

 

Problem 2:

Symptoms

1. After fixing the problem 1, restart the installation in silent mode

2. Start the silent installation, got the following server problem

“/export/home/oracle/database/response/db_install.rsp” 415 lines, 22657 characters
$ ./runInstaller -silent -ignorePrereq  -responseFile ‘/export/home/oracle/database/response/db_install.rsp’
Starting Oracle Universal Installer…

Checking Temp space: must be greater than 180 MB.   Actual 184798 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 5549 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-11-25_10-28-43AM. Please wait …$ [SEVERE] – Email Address Not Specified
A log of this session is currently saved as: /tmp/OraInstall2010-11-25_10-28-43AM/installActions2010-11-25_10-28-43AM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location to a more permanent location.

Fix

Set both installation variables in db_install.rsp with values shown

SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

DECLINE_SECURITY_UPDATES=true

 

Categories: Installation