No great genius has ever existed without some touch of madness.

Saturday, 21 November 2015


0509-036 Cannot load program 0712-001 0712-002 AIX Oracle DB 12.1.0.2




Cause:


IOCP module not enabled on the server.


To check if the IOCP module is enabled, run the lsdev command.

The following sample output shows the IOCP status is set to Defined and hence not enabled:



Solution:

Enable the "iocp" option and  relink the oracle binaries.

To enable IOCP, set IOCP to Available using the following procedure:

Log in as root and run the following command:

# smitty iocp
Select Change / Show Characteristics of I/O Completion Ports.

Change configured state at system restart from Defined to Available.

Run the lsdev command to confirm the IOCP status is set to Available:



Perform a system restart to make the changes permanent.

Relink the binaries using " relink all " and then root.sh as root user.

Oracle Rules Manager

Rules Manager is a feature of Oracle Database that uses the Expression Filter and object relational features to provide the features of a special-purpose rules engine with greater scalability and better operational characteristics.

Rules Manager and Expression Filter provide a SQL schema and PL/SQL and Java packages that store, retrieve, update, and query collections of expressions (rule conditions) in an Oracle Database. All these objects are created in a dedicated schema named EXFSYS.

Rules Manager and Expression Filter are installed automatically with Oracle Database Standard Edition and Oracle Database Enterprise Edition and higher.

Oracle Expression Filter, a feature beginning in Oracle Database 10g, is a component of Rules Manager that allows application developers to store, index, and evaluate conditional expressions (expressions) in one or more columns of a relational table. Expressions are a useful way to describe interests in expected data.

 



·        The script to install Rules Manager is named  :
catrul.sql under $ORACLE_HOME/rdbms/admin/directory.

·        Rules Manager can be uninstalled using :
catnorul.sql script in the same directory

·        The script to install the Expression Filter is named :
catexf.sql under $ORACLE_HOME/rdbms/admin/directory.

·        Expression Filter can be uninstalled using :
catnoexf.sql script in the same directory

·        Rules Manager  RUL and Expression Filter  EXF components :

SQL>select comp_id from dba_registry where comp_id in('EXF','RUL');
SQL> select comp_id, comp_name, version, status from dba_registry ;

NOTE: These scripts should be executed from a SQL*Plus session while connected as SYSDBA. Uninstalling Expression Filter implicitly uninstalls Rules Manager.


The Rules Manager and Expression Filter features are the same in the Standard and Enterprise Editions. Support for indexing expressions is available only in the Enterprise Edition because it requires bitmap index support.




OPatch failed with error code 73



If $ opatch apply fails due to below error:





Then check for /oradba/app/oracle/product/12102/cfgtoollogs/opatch/opatch2015-09-18_00-23-57AM_1.log and if you find below under logs:




       Find the process, kill it and run “opatch apply” again.




.




ERROR: Suspended on broken target (OEM 12c)



If you encounter such error for scheduled backup job of database into OEM:






SOLUTION:

If you get this error while running jobs via cloud control on a particular database – “suspended on broken target”

We just need to configure the target again – in case of this error.

No need to remove the target beforehand, simply click on targets/databases, choose the database and click configure – uses already saved XXXXXX password , simply click Next and proceed.

Run job again – it should go through.
ORA-20500 ORA-06512 ORA-06512 (Error while adding target into OEM)


ERROR:

testab1 (oracle_database)
ORA-20500: Target Already exists: testab1:oracle_database:oracle.linux.net:https://oracle.linux.net:3872/emd/main/:3:0
ORA-06512: at "SYSMAN.EM_TARGET", line 3998
ORA-06512: at line 1

SOLUTION:

Log in to the EM console.
Select Setup > Add targets > Auto Discovery Results.
Select the database (from the Ignored Targets tab)








Now, try to add database and at the last step while saving, you won’t be getting an error.






Reference: 

Enterprise Manager Cloud Control 12c - Manually adding a database target fails with ORA-20500 (Doc ID 1523394.1)

Monday, 23 March 2015

Oracle Multimedia , JAVAM and XML components , ora-04031

To install Oracle Multimedia, first you need to check for the existence of  JAVAM and XML components into database.


"Where to Find the Information to Install, Upgrade, Downgrade and Deinstall interMedia/Oracle Multimedia? (Doc ID 337415.1)"


"How to Reload the JVM in 11.2.0.x (Doc ID 1112983.1)" and use "Javavm Component Invalid and ORA-04031 Reported for "java pool" (Doc ID 1448032.1)" to troubleshoot error coming while installing JVM


-- Start of File full_rmjvm.sql
> spool full_rmjvm.log
> set echo on
> connect / as sysdba
> startup mount
> alter system set "_system_trig_enabled" = false scope=memory;
> alter system enable restricted session;
> alter database open;
> @?/rdbms/admin/catnoexf.sql
> @?/rdbms/admin/catnojav.sql
> @?/xdk/admin/rmxml.sql
> @?/javavm/install/rmjvm.sql
truncate table java$jvm$status;
select * from obj$ where obj#=0 and type#=0;
delete from obj$ where obj#=0 and type#=0;
commit;
select owner, count(*) from all_objects
where object_type like '%JAVA%' group by owner;
select obj#, name from obj$
where type#=28 or type#=29 or type#=30 or namespace=32;
select o1.name from obj$ o1,obj$ o2
where o1.type#=5 and o1.owner#=1 and o1.name=o2.name and o2.type#=29;
shutdown immediate
set echo off
spool off
exit
-- End of File full_rmjvm.sql





Please note that @?/javavm/install/initjvm.sql can fail if java_pool_size is small,so as per docs it has to be increased to atleast a value of 150M

-- Start of File full_jvminst.sql
> spool full_jvminst.log;
> set echo on
> connect / as sysdba
> startup mount
> alter system set "_system_trig_enabled" = false scope=memory;
> alter database open;
> select obj#, name from obj$
   where type#=28 or type#=29 or type#=30 or namespace=32;
> @?/javavm/install/initjvm.sql
select count(*), object_type from all_objects
where object_type like '%JAVA%' group by object_type;
> @?/xdk/admin/initxml.sql
select count(*), object_type from all_objects
where object_type like '%JAVA%' group by object_type;
> @?/xdk/admin/xmlja.sql
select count(*), object_type from all_objects
where object_type like '%JAVA%' group by object_type;
> @?/rdbms/admin/catjava.sql
select count(*), object_type from all_objects
where object_type like '%JAVA%' group by object_type;
> @?/rdbms/admin/catexf.sql
select count(*), object_type from all_objects
where object_type like '%JAVA%' group by object_type;
> shutdown immediate
> set echo off
> spool off
> exit
-- End of File full_jvminst.sql


Please validate :
> select version, status from dba_registry where comp_id='JAVAVM';
VERSION                        STATUS
------------------------------ -----------
11.2.0.3.0                     VALID

> select version, status from dba_registry where comp_id='XDB';
VERSION                        STATUS
------------------------------ -----------
11.2.0.3.0                     VALID

> select version, status from dba_registry where comp_id='XML';
VERSION                        STATUS
------------------------------ -----------
11.2.0.3.0                     VALID






Now, proceeding to ORACLE MULTIMEDIA Installation steps :

Installation steps for Oracle Multimedia can be found at : $ORACLE_HOME/ord/im/admin/README.txt
"Verifying an Installed Version of Oracle Multimedia (Doc ID 458228.1)"

Installing Oracle Multimedia
============================
Oracle Multimedia is installed and configured with Oracle Database.
If you need to configure Oracle Multimedia manually, follow the
instructions in this section.
        1 Installation Decisions
        2 Pre-Installation Steps
        3 Installation Steps
1 Installation Decisions
------------------------
  The installation procedure creates the users ORDSYS, ORDPLUGINS,
  SI_INFORMTN_SCHEMA, ORDDATA, and MDSYS.  These user are created with
  the privileges required for Oracle Multimedia.
  Decision 1: Decide which tablespace to use for Oracle Multimedia users
  (ORDSYS, ORDPLUGINS, SI_INFORMTN_SCHEMA, and ORDDATA), and which
  tablespace to use for the Oracle Spatial/Oracle Multimedia Location
  Services user (MDSYS).  Oracle recommends using the SYSAUX tablespace
  for both.

2 Pre-Installation Steps
------------------------
  For more instructions on installing on your system and setting
  up your environment, see the Oracle Installation Guide for your
  operating system.
  Perform the following pre-installation tasks prior to manually
  installing and configuring Oracle Multimedia:
 
  2.1 Install Oracle Database, including PL/SQL, Oracle JVM, Oracle XML
      Database, and Oracle XDK.
  2.2 Create the database.
  2.3 Start the database.
  2.4 Verify that required software is installed and valid.
      To verify that required software is correctly installed, run SQL*Plus,
      connect AS SYSDBA, and enter the following queries:
      SQL> select version, status from dba_registry where comp_id='JAVAVM';
      SQL> select version, status from dba_registry where comp_id='XDB';
      SQL> select version, status from dba_registry where comp_id='XML';
      Ensure that the versions are correct and the status values are 'VALID'.

3 Installation Steps
--------------------
  Perform the following mandatory configuration steps. These steps are
  required ONLY if you are configuring Oracle Multimedia manually.
  You do NOT need to perform these steps if you use the Database
  Configuration Assistant.
  References to <ORACLE_HOME> in these instructions represent the Oracle
  home directory.

3.1 Use the Oracle Universal Installer to install the files that make
    up Oracle Multimedia on your system.
3.2 Create the users and grant the appropriate privileges.
    1) Start SQL*Plus and connect as SYSDBA.
    2) Invoke ordinst.sql with two parameters for the Oracle
       Multimedia tablespace and the Oracle Location Services
       tablespace.
       SQL> @<ORACLE_HOME>/ord/admin/ordinst.sql SYSAUX SYSAUX (on Linux/UNIX)
            @<ORACLE_HOME>\ord\admin\ordinst.sql SYSAUX SYSAUX (on Windows)
3.3 Install Oracle Multimedia types and packages.
    1) Start SQL*Plus and connect as SYSDBA.
    2) Invoke catim.sql
       SQL> @<ORACLE_HOME>/ord/im/admin/catim.sql (on Linux/UNIX)
            @<ORACLE_HOME>\ord\im\admin\catim.sql (on Windows)

After these mandatory installation steps have been completed, Oracle
Multimedia is ready for use.
                        =======================

Verifying the Oracle Multimedia Installation
============================================
After you have installed or upgraded Oracle Multimedia, you can verify the
Oracle Multimedia installation by invoking the Oracle Multimedia validation
procedure.
To run the Oracle Multimedia validation procedure, connect as SYSDBA and
execute the procedure validate_ordim as follows:
    1) Start SQL*Plus and connect AS SYSDBA.
    2) Execute SYS.validate_ordim
       SQL> execute SYS.validate_ordim;
   
    The validation procedure silently  sets the Oracle Multimedia registry
    entry to 'VALID' if Oracle Multimedia is valid.  If there are invalid
    objects detected, the validation procedure lists the first few invalid
    objects and sets the registry entry to 'INVALID'.
    To query the registry entry for Oracle Multimedia, run SQL*Plus, connect
    AS SYSDBA, and enter the following query:
       SQL> select version, status from dba_registry where comp_id='ORDIM';

Ensure that the version is correct and the status is 'VALID'.
 

Thursday, 27 November 2014

ORA-00313 ORA-00312 ORA-27037 Standby Database


PROBLEM :

 


ORA-00313: open failed for members of log group 1 of thread 1

ORA-00312: online log 1 thread 1: '/d02/oradata/XXXXXXXX/redog1m2.log'

ORA-27037: unable to obtain file status

IBM AIX RISC System/6000 Error: 2: No such file or directory

Additional information: 3

ORA-00312: online log 1 thread 1: '/d01/oradata/ XXXXXXXX/redog1m1.log'

ORA-27037: unable to obtain file status

IBM AIX RISC System/6000 Error: 2: No such file or directory

Additional information: 3

Clearing online redo logfile 1 /d01/oradata/ XXXXXXXX/redog1m1.log

Clearing online log 1 of thread 1 sequence number 120028

Errors in file /oradba/app/oracle/diag/rdbms/ XXXXXXXX/ XXXXXXXX/trace/ XXXXXXXX_mrp0_64356518.trc:


 

 



SOLUTION :

 


SQL> alter database recover managed standby database cancel;

SQL>alter system set log_file_name_convert=’junk,junk’ scope=spfile;

System altered.

SQL> shutdown immediate;

SQL> startup mount;

SQL> alter database recover managed standby database using current logfile disconnect;

Database altered.

Wednesday, 26 November 2014

System Workload Statistics (Gather,Export and Import)


As noworkload system statistics are initialized to default values at the first database startup, we need to first gather system WORKLOAD statistics. This will gather statistics during the current workload (which is supposed to be representative of actual system I/O and CPU workload on the DB and need to be gathered when there is heavy/good workload on database)

 

a)    Gather it :


SQL> execute dbms_stats.gather_system_stats('start');


Once the workload window ends after 3,4.. hours or whatever, system statistics gathering need to be stopped using below:

SQL> execute dbms_stats.gather_system_stats('stop');

 

OR


We can use time interval (minutes) instead of issuing start/stop command manually:


SQL> execute dbms_stats.gather_system_stats('interval',60);

 

Please note that gathering workload system statistics doesn't put additional load into system.

 

Check the system values collected:
--------------------------------------------
sql> col pname format a20
sql> col pval2 format a40
sql> select * from sys.aux_stats$;

 

b)    Create STAT table and export the system stats :

 

SQL> exec dbms_stats.create_stat_table(stattab=>'STATS_TABLE_NAME',ownname=>'schema',tblspace => 'tablespace_name');

SQL> EXEC dbms_stats.export_system_stats(stattab=>'STATS_TABLE_NAME',statown=>'OWNER');

 

Example –

SQL> exec dbms_stats.create_stat_table(ownname => 'SYS', stattab => 'prod_stats',tblspace => 'USERS');

SQL> exec dbms_stats.export_system_stats(statown => 'SYS', stattab => 'prod_stats');

 

 

c)     Move statistics from one database to another, copy the statistics table to the second database using datapump and finally import the statistics into the second database



d)    Import the statistics into data dictionary :



Note that the optimizer does not use statistics stored in a user-owned table. The only statistics used by the optimizer are the statistics stored in the data dictionary. In order to have the optimizer use the statistics in a user-owned tables, you must import those statistics into the data dictionary using the statistics import procedures.

 

SQL> exec dbms_stats.import_system_stats(stattab => 'prod_stats',statown => 'SYS');

 

 

Wednesday, 11 December 2013

Add Node to Oracle RAC (11gR2)

Add a Node to Oracle RAC (11gR2)



Basic Installation (11gR2 RAC) is done using - - -

The only difference is among node names:

Venus (1st node name) instead of ol5-112-rac1
Jupiter (2nd node name) instead of ol5-112-rac2
Saturn (3rd node name) is the new node which will be added into already running 11gR2 RAC 

What do i pre-assume on new node i.e. on Saturn :

Similar swap, temp, limits.conf settings, kernel settings, ntp must be off, etc.
Same directory structure as on previous running nodes,
Same users, group’s configuration as on previous running nodes,
Update /etc/hosts file on each node adding entries for new node "Saturn", so that it would look like –

127.0.0.1       localhost.localdomain   localhost

10.131.XXX.163  venus.localdomain          Venus
10.131.XXX.221  jupiter.localdomain        Jupiter
10.131.XXX.101  saturn.localdomain         Saturn

192.168.1.103   venus-priv.localdomain     venus-priv
192.168.1.104   jupiter-priv.localdomain   jupiter-priv
192.168.1.105   saturn-priv.localdomain    saturn-priv

10.131.XXX.211  venus-vip.localdomain      venus-vip
10.131.XXX.222  jupiter-vip.localdomain    jupiter-vip
10.131.XXX.102  saturn-vip.localdomain     saturn-vip

10.131.XXX.247  scan1.localdomain          scan1

and previously it was :

127.0.0.1       localhost.localdomain   localhost

10.131.XXX.163  venus.localdomain          Venus
10.131.XXX.221  jupiter.localdomain        Jupiter

192.168.1.103   venus-priv.localdomain     venus-priv
192.168.1.104   jupiter-priv.localdomain   jupiter-priv

10.131.XXX.211  venus-vip.localdomain      venus-vip
10.131.XXX.222  jupiter-vip.localdomain    jupiter-vip

10.131.XXX.247  scan1.localdomain          scan1

ASM must be configured and "#oracleasm listdisks" command on Saturn must show the the same disks used by Venus, Jupiter.




Configure secure shell for oracle user on all nodes

From oracle_home/oui/bin on Venus -
./runSSHSetup.sh -user oracle -hosts "jupiter saturn" -advanced -exverify

 

Verify New Node (HWOS)


From grid_home on Venus
$GRID_HOME/bin/cluvfy stage -post hwos -n saturn > /u02/hwos.log



From grid_home on Venus
$GRID_HOME/bin/cluvfy comp peer -refnode venus -n saturn -orainv oinstall -osdba dba -verbose > /u02/comppeer.log


From grid_home on Venus
$GRID_HOME/bin/cluvfy stage -pre nodeadd -n saturn -fixup -verbose > /u02/fixup.log


Extend Clusterware



[oracle@venus bin]$ ./addNode.sh -silent "CLUSTER_NEW_NODES={saturn}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={saturn-vip}"

Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.   Actual 4000 MB    Passed
Oracle Universal Installer, Version 11.2.0.1.0 Production
Copyright (C) 1999, 2009, Oracle. All rights reserved.
Performing tests to see whether nodes jupiter,saturn are available
............................................................... 100% Done.
.
-----------------------------------------------------------------------------
Cluster Node Addition Summary
Global Settings
   Source: /u01/app/11.2.0/grid
   New Nodes
Space Requirements
   New Nodes
      Saturn
         /u01: Required 3.81GB : Available 13.29GB
Installed Products
   Product Names
      Oracle Grid Infrastructure 11.2.0.1.0
      Sun JDK 1.5.0.17.0
      Installer SDK Component 11.2.0.1.0
      Oracle One-Off Patch Installer 11.2.0.0.2
      Oracle Universal Installer 11.2.0.1.0
      Oracle Configuration Manager Deconfiguration 10.3.1.0.0
      Enterprise Manager Common Core Files 10.2.0.4.2
      Oracle DBCA Deconfiguration 11.2.0.1.0
      Oracle RAC Deconfiguration 11.2.0.1.0
      Oracle Quality of Service Management (Server) 11.2.0.1.0
      Installation Plugin Files 11.2.0.1.0
      Universal Storage Manager Files 11.2.0.1.0
      Oracle Text Required Support Files 11.2.0.1.0
      Automatic Storage Management Assistant 11.2.0.1.0
      Oracle Database 11g Multimedia Files 11.2.0.1.0
      Oracle Multimedia Java Advanced Imaging 11.2.0.1.0
      Oracle Globalization Support 11.2.0.1.0
      Oracle Multimedia Locator RDBMS Files 11.2.0.1.0
      Oracle Core Required Support Files 11.2.0.1.0
      Bali Share 1.1.18.0.0
      Oracle Database Deconfiguration 11.2.0.1.0
      Oracle Quality of Service Management (Client) 11.2.0.1.0
      Expat libraries 2.0.1.0.1
      Oracle Containers for Java 11.2.0.1.0
      Perl Modules 5.10.0.0.1
      Secure Socket Layer 11.2.0.1.0
      Oracle JDBC/OCI Instant Client 11.2.0.1.0
      Oracle Multimedia Client Option 11.2.0.1.0
      LDAP Required Support Files 11.2.0.1.0
      Character Set Migration Utility 11.2.0.1.0
      Perl Interpreter 5.10.0.0.1
      PL/SQL Embedded Gateway 11.2.0.1.0
      OLAP SQL Scripts 11.2.0.1.0
      Database SQL Scripts 11.2.0.1.0
      Oracle Extended Windowing Toolkit 3.4.47.0.0
      SSL Required Support Files for InstantClient 11.2.0.1.0
      SQL*Plus Files for Instant Client 11.2.0.1.0
      Oracle Net Required Support Files 11.2.0.1.0
      Oracle Database User Interface 2.2.13.0.0
      RDBMS Required Support Files for Instant Client 11.2.0.1.0
      Enterprise Manager Minimal Integration 11.2.0.1.0
      XML Parser for Java 11.2.0.1.0
      Oracle Security Developer Tools 11.2.0.1.0
      Oracle Wallet Manager 11.2.0.1.0
      Enterprise Manager plugin Common Files 11.2.0.1.0
      Platform Required Support Files 11.2.0.1.0
      Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
      RDBMS Required Support Files 11.2.0.1.0
      Oracle Ice Browser 5.2.3.6.0
      Oracle Help For Java 4.2.9.0.0
      Enterprise Manager Common Files 10.2.0.4.2
      Deinstallation Tool 11.2.0.1.0
      Oracle Java Client 11.2.0.1.0
      Cluster Verification Utility Files 11.2.0.1.0
      Oracle Notification Service (eONS) 11.2.0.1.0
      Oracle LDAP administration 11.2.0.1.0
      Cluster Verification Utility Common Files 11.2.0.1.0
      Oracle Clusterware RDBMS Files 11.2.0.1.0
      Oracle Locale Builder 11.2.0.1.0
      Oracle Globalization Support 11.2.0.1.0
      Buildtools Common Files 11.2.0.1.0
      Oracle RAC Required Support Files-HAS 11.2.0.1.0
      SQL*Plus Required Support Files 11.2.0.1.0
      XDK Required Support Files 11.2.0.1.0
      Agent Required Support Files 10.2.0.4.2
      Parser Generator Required Support Files 11.2.0.1.0
      Precompiler Required Support Files 11.2.0.1.0
      Installation Common Files 11.2.0.1.0
      Required Support Files 11.2.0.1.0
      Oracle JDBC/THIN Interfaces 11.2.0.1.0
      Oracle Multimedia Locator 11.2.0.1.0
      Oracle Multimedia 11.2.0.1.0
      HAS Common Files 11.2.0.1.0
      Assistant Common Files 11.2.0.1.0
      PL/SQL 11.2.0.1.0
      HAS Files for DB 11.2.0.1.0
      Oracle Recovery Manager 11.2.0.1.0
      Oracle Database Utilities 11.2.0.1.0
      Oracle Notification Service 11.2.0.0.0
      SQL*Plus 11.2.0.1.0
      Oracle Netca Client 11.2.0.1.0
      Oracle Net 11.2.0.1.0
      Oracle JVM 11.2.0.1.0
      Oracle Internet Directory Client 11.2.0.1.0
      Oracle Net Listener 11.2.0.1.0
      Cluster Ready Services Files 11.2.0.1.0
      Oracle Database 11g 11.2.0.1.0
-----------------------------------------------------------------------------

Instantiating scripts for add node (Wednesday, December 11, 2013 4:14:32 PM IST)
.                                                                 1% Done.
Instantiation of add node scripts complete

Copying to remote nodes (Wednesday, December 11, 2013 4:14:35 PM IST)
...............................................................................................                                 96% Done.
Home copied to new nodes

Saving inventory on nodes (Wednesday, December 11, 2013 4:19:42 PM IST)
.                                                               100% Done.
Save inventory complete
WARNING: A new inventory has been created on one or more nodes in this session. However, it has not yet been registered as the central inventory of this system.
To register the new inventory please run the script at '/u01/app/oraInventory/orainstRoot.sh' with root privileges on nodes 'Saturn'.
If you do not register the inventory, you may not be able to update or patch the products you installed.
The following configuration scripts need to be executed as the "root" user in each cluster node.
/u01/app/oraInventory/orainstRoot.sh #On nodes Saturn
/u01/app/11.2.0/grid/root.sh #On nodes Saturn
To execute the configuration scripts:
    1. Open a terminal window
    2. Log in as "root"
    3. Run the scripts in each cluster node
   
The Cluster Node Addition of /u01/app/11.2.0/grid was successful.
Please check '/tmp/silentInstall.log' for more details.
[oracle@venus bin]$


From root user on Saturn :::

[root@saturn oraInventory]# ./orainstRoot.sh
Creating the Oracle inventory pointer file (/etc./oraInst.loc)
Changing permissions of /u01/app/oraInventory.
Adding read, write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.


From root user on Saturn :::

[root@saturn oraInventory]# cd /u01/app/11.2.0/grid/
[root@saturn grid]# ./root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...
Creating /etc./oratab file...
Entries will be added to the /etc./oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2013-12-11 16:25:04: Parsing the host name
2013-12-11 16:25:04: Checking for super user privileges
2013-12-11 16:25:04: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_p
arams
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node Venus, number 1, and is terminating
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'Saturn'
CRS-2677: Stop of 'ora.cssdmonitor' on 'Saturn' succeeded
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: Attempting to start 'ora.mdnsd' on 'Saturn'
CRS-2676: Start of 'ora.mdnsd' on 'Saturn' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'Saturn'
CRS-2676: Start of 'ora.gipcd' on 'Saturn' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'Saturn'
CRS-2676: Start of 'ora.gpnpd' on 'Saturn' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'Saturn'
CRS-2676: Start of 'ora.cssdmonitor' on 'Saturn' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'Saturn'
CRS-2672: Attempting to start 'ora.diskmon' on 'Saturn'
CRS-2676: Start of 'ora.diskmon' on 'Saturn' succeeded
CRS-2676: Start of 'ora.cssd' on 'Saturn' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'Saturn'
CRS-2676: Start of 'ora.ctssd' on 'Saturn' succeeded
CRS-2672: Attempting to start 'ora.drivers.acfs' on 'Saturn'
CRS-2676: Start of 'ora.drivers.acfs' on 'Saturn' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'Saturn'
CRS-2676: Start of 'ora.asm' on 'Saturn' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'Saturn'
CRS-2676: Start of 'ora.crsd' on 'Saturn' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'Saturn'
CRS-2676: Start of 'ora.evmd' on 'Saturn' succeeded
clscfg: EXISTING configuration version 5 detected.
clscfg: version 5 is 11g Release 2.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Saturn     2013/12/11 16:27:34     /u01/app/11.2.0/grid/cdata/Saturn/backup_20131211_162734.olr
Preparing packages for installation...
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.   Actual 4000 MB    Passed
The inventory pointer is located at /etc./oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
[root@saturn grid]#




If successful, clusterware daemons, the listener, the ASM instance, etc. should be started

[oracle@saturn ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

[oracle@saturn ~]$ crs_stat -t -v
Name           Type           R/RA   F/FT   Target    State     Host
----------------------------------------------------------------------
ora.DATA.dg    ora....up.type 0/5    0/     ONLINE    ONLINE    Jupiter
ora....ER.lsnr ora....er.type 0/5    0/     ONLINE    ONLINE    Jupiter
ora....N1.lsnr ora....er.type 0/5    0/0    ONLINE    ONLINE    Venus
ora.asm        ora.asm.type   0/5    0/     ONLINE    ONLINE    Jupiter
ora.eons       ora.eons.type  0/3    0/     ONLINE    ONLINE    Jupiter
ora.gsd        ora.gsd.type   0/5    0/     OFFLINE   OFFLINE
ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    Jupiter
ora....ER.lsnr application    0/5    0/0    ONLINE    ONLINE    Jupiter
ora....ter.gsd application    0/5    0/0    OFFLINE   OFFLINE
ora....ter.ons application    0/3    0/0    ONLINE    ONLINE    Jupiter
ora....ter.vip ora....t1.type 0/0    0/0    ONLINE    ONLINE    Jupiter
ora....network ora....rk.type 0/5    0/     ONLINE    ONLINE    Jupiter
ora.oc4j       ora.oc4j.type  0/5    0/0    OFFLINE   OFFLINE
ora.ons        ora.ons.type   0/3    0/     ONLINE    ONLINE    Jupiter
ora.rac.db     ora....se.type 0/2    0/1    ONLINE    ONLINE    Venus
ora....ry.acfs ora....fs.type 0/5    0/     ONLINE    ONLINE    Jupiter
ora....SM3.asm application    0/5    0/0    ONLINE    ONLINE    Saturn
ora....RN.lsnr application    0/5    0/0    ONLINE    ONLINE    Saturn
ora.saturn.gsd application    0/5    0/0    OFFLINE   OFFLINE
ora.saturn.ons application    0/3    0/0    ONLINE    ONLINE    Saturn
ora.saturn.vip ora....t1.type 0/0    0/0    ONLINE    ONLINE    Saturn
ora.scan1.vip  ora....ip.type 0/0    0/0    ONLINE    ONLINE    Venus
ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    Venus
ora....US.lsnr application    0/5    0/0    ONLINE    ONLINE    Venus
ora.venus.gsd  application    0/5    0/0    OFFLINE   OFFLINE
ora.venus.ons  application    0/3    0/0    ONLINE    ONLINE    Venus
ora.venus.vip  ora....t1.type 0/0    0/0    ONLINE    ONLINE    Venus

[oracle@saturn ~]$ olsnodes -n
Venus   1
Jupiter 2
Saturn  3

[oracle@saturn ~]$ srvctl status asm -a
ASM is running on jupiter,saturn,venus
ASM is enabled.

[oracle@saturn ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2796
         Available space (kbytes) :     259324
         ID                       :  390546971
         Device/File Name         :      +DATA
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check bypassed due to non-privileged user

[oracle@saturn ~]$ crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   8ff64908f13f4f36bfc8a6b23003a378 (ORCL:DISK1) [DATA]
Located 1 voting disk(s).


Verify New Node (NEW NODE POST)

[oracle@venus u02]$ $GRID_HOME/bin/cluvfy stage -post nodeadd -n saturn -verbose > /u02/clusterpost.log


Extend Oracle Database Software


Run “addNode.sh”


[oracle@venus ~]$ . ./db.env
[oracle@venus ~]$ cd $ORACLE_HOME
[oracle@venus db_1]$ cd oui/bin/
[oracle@venus bin]$ ./addNode.sh -silent "CLUSTER_NEW_NODES={saturn}"
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.   Actual 3319 MB    Passed
Oracle Universal Installer, Version 11.2.0.1.0 Production
Copyright (C) 1999, 2009, Oracle. All rights reserved.
Performing tests to see whether nodes jupiter,saturn are available
............................................................... 100% Done.
.
-----------------------------------------------------------------------------
Cluster Node Addition Summary
Global Settings
   Source: /u01/app/oracle/product/11.2.0/db_1
   New Nodes
Space Requirements
   New Nodes
      Saturn
         /u01: Required 3.61GB : Available 10.42GB
Installed Products
   Product Names
      Oracle Database 11g 11.2.0.1.0
      Sun JDK 1.5.0.17.0
      Installer SDK Component 11.2.0.1.0
      Oracle One-Off Patch Installer 11.2.0.0.2
      Oracle Universal Installer 11.2.0.1.0
      Oracle Configuration Manager Deconfiguration 10.3.1.0.0
      Oracle DBCA Deconfiguration 11.2.0.1.0
      Oracle RAC Deconfiguration 11.2.0.1.0
      Oracle Database Deconfiguration 11.2.0.1.0
      Oracle Configuration Manager 10.3.1.1.0
      Oracle ODBC Driverfor Instant Client 11.2.0.1.0
      LDAP Required Support Files 11.2.0.1.0
      SSL Required Support Files for InstantClient 11.2.0.1.0
      Bali Share 1.1.18.0.0
      Oracle Extended Windowing Toolkit 3.4.47.0.0
      Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
      Oracle Real Application Testing 11.2.0.1.0
      Oracle Database Vault J2EE Application 11.2.0.1.0
      Oracle Label Security 11.2.0.1.0
      Oracle Data Mining RDBMS Files 11.2.0.1.0
      Oracle OLAP RDBMS Files 11.2.0.1.0
      Oracle OLAP API 11.2.0.1.0
      Platform Required Support Files 11.2.0.1.0
      Oracle Database Vault option 11.2.0.1.0
      Oracle RAC Required Support Files-HAS 11.2.0.1.0
      SQL*Plus Required Support Files 11.2.0.1.0
      Oracle Display Fonts 9.0.2.0.0
      Oracle Ice Browser 5.2.3.6.0
      Oracle JDBC Server Support Package 11.2.0.1.0
      Oracle SQL Developer 11.2.0.1.0
      Oracle Application Express 11.2.0.1.0
      XDK Required Support Files 11.2.0.1.0
      RDBMS Required Support Files for Instant Client 11.2.0.1.0
      SQLJ Runtime 11.2.0.1.0
      Database Workspace Manager 11.2.0.1.0
      RDBMS Required Support Files 11.2.0.1.0
      Oracle Globalization Support 11.2.0.1.0
      Exadata Storage Server 11.2.0.1.0
      Provisioning Advisor Framework 10.2.0.4.2
      Enterprise Manager Database Plugin -- Repository Support 11.2.0.1.0
      Enterprise Manager Repository Core Files 10.2.0.4.2
      Enterprise Manager Database Plugin -- Agent Support 11.2.0.1.0
      Enterprise Manager Grid Control Core Files 10.2.0.4.2
      Enterprise Manager Common Core Files 10.2.0.4.2
      Enterprise Manager Agent Core Files 10.2.0.4.2
      Agent Required Support Files 10.2.0.4.2
      regexp 2.1.9.0.0
      Parser Generator Required Support Files 11.2.0.1.0
      Oracle 11g Warehouse Builder Required Files 11.2.0.1.0
      Oracle Notification Service (eONS) 11.2.0.1.0
      Oracle Text Required Support Files 11.2.0.1.0
      Precompiler Required Support Files 11.2.0.1.0
      Oracle Database 11g Multimedia Files 11.2.0.1.0
      Oracle Multimedia Java Advanced Imaging 11.2.0.1.0
      Oracle Multimedia Annotator 11.2.0.1.0
      Oracle JDBC/OCI Instant Client 11.2.0.1.0
      Oracle Multimedia Locator RDBMS Files 11.2.0.1.0
      Oracle Core Required Support Files 11.2.0.1.0
      Oracle Help For Java 4.2.9.0.0
      Sample Schema Data 11.2.0.1.0
      Oracle Starter Database 11.2.0.1.0
      Oracle Message Gateway Common Files 11.2.0.1.0
      Oracle XML Query 11.2.0.1.0
      XML Parser for Oracle JVM 11.2.0.1.0
      Expat libraries 2.0.1.0.1
      Installation Plugin Files 11.2.0.1.0
      Enterprise Manager Common Files 10.2.0.4.2
      Perl Modules 5.10.0.0.1
      Deinstallation Tool 11.2.0.1.0
      Oracle Quality of Service Management (Client) 11.2.0.1.0
      Perl Interpreter 5.10.0.0.1
      JAccelerator (COMPANION) 11.2.0.1.0
      Oracle Containers for Java 11.2.0.1.0
      Oracle Code Editor 1.2.1.0.0I
      Oracle Net Required Support Files 11.2.0.1.0
      Secure Socket Layer 11.2.0.1.0
      Oracle Universal Connection Pool 11.2.0.1.0
      Oracle JDBC/THIN Interfaces 11.2.0.1.0
      Oracle Multimedia Client Option 11.2.0.1.0
      Oracle Java Client 11.2.0.1.0
      Character Set Migration Utility 11.2.0.1.0
      Oracle Locale Builder 11.2.0.1.0
      PL/SQL Embedded Gateway 11.2.0.1.0
      OLAP SQL Scripts 11.2.0.1.0
      Database SQL Scripts 11.2.0.1.0
      Oracle Globalization Support 11.2.0.1.0
      Required Support Files 11.2.0.1.0
      SQL*Plus Files for Instant Client 11.2.0.1.0
      Oracle ODBC Driver 11.2.0.1.0
      Oracle Database User Interface 2.2.13.0.0
      Oracle Notification Service 11.2.0.0.0
      Enterprise Manager Minimal Integration 11.2.0.1.0
      XML Parser for Java 11.2.0.1.0
      Oracle Security Developer Tools 11.2.0.1.0
      Oracle Wallet Manager 11.2.0.1.0
      Cluster Verification Utility Common Files 11.2.0.1.0
      Oracle Clusterware RDBMS Files 11.2.0.1.0
      Oracle UIX 2.2.24.5.0
      Enterprise Manager plugin Common Files 11.2.0.1.0
      HAS Common Files 11.2.0.1.0
      Precompiler Common Files 11.2.0.1.0
      Installation Common Files 11.2.0.1.0
      Oracle Help for the  Web 2.0.14.0.0
      Oracle LDAP administration 11.2.0.1.0
      Buildtools Common Files 11.2.0.1.0
      Assistant Common Files 11.2.0.1.0
      Oracle Recovery Manager 11.2.0.1.0
      PL/SQL 11.2.0.1.0
      Generic Connectivity Common Files 11.2.0.1.0
      Oracle Database Gateway for ODBC 11.2.0.1.0
      Oracle Programmer 11.2.0.1.0
      Oracle Database Utilities 11.2.0.1.0
      Enterprise Manager Agent 10.2.0.4.2
      Oracle Netca Client 11.2.0.1.0
      SQL*Plus 11.2.0.1.0
      Oracle Call Interface (OCI) 11.2.0.1.0
      Oracle Multimedia Locator 11.2.0.1.0
      Oracle Multimedia 11.2.0.1.0
      Oracle Net 11.2.0.1.0
      Database Configuration and Upgrade Assistants 11.2.0.1.0
      Oracle XML Development Kit 11.2.0.1.0
      Oracle JVM 11.2.0.1.0
      Oracle Advanced Security 11.2.0.1.0
      Oracle Internet Directory Client 11.2.0.1.0
      HAS Files for DB 11.2.0.1.0
      Oracle Enterprise Manager Console DB 11.2.0.1.0
      Oracle Net Listener 11.2.0.1.0
      Oracle Text 11.2.0.1.0
      Oracle Net Services 11.2.0.1.0
      Oracle Database 11g 11.2.0.1.0
      Oracle OLAP 11.2.0.1.0
      Oracle Spatial 11.2.0.1.0
      Oracle Partitioning 11.2.0.1.0
      Enterprise Edition Options 11.2.0.1.0
-----------------------------------------------------------------------------
Instantiating scripts for add node (Wednesday, December 11, 2013 4:50:31 PM IST)
.                                                                 1% Done.
Instantiation of add node scripts complete
Copying to remote nodes (Wednesday, December 11, 2013 4:50:36 PM IST)
........................
...............                                 96% Done.
Home copied to new nodes
Saving inventory on nodes (Wednesday, December 11, 2013 4:58:27 PM IST)
.                                                               100% Done.
Save inventory complete
WARNING:
The following configuration scripts need to be executed as the "root" user in each cluster node.
/u01/app/oracle/product/11.2.0/db_1/root.sh #On nodes Saturn
To execute the configuration scripts:
    1. Open a terminal window
    2. Log in as "root"
    3. Run the scripts in each cluster node
The Cluster Node Addition of /u01/app/oracle/product/11.2.0/db_1 was successful.
Please check '/tmp/silentInstall.log' for more details.
[oracle@venus bin]$


From root user on Saturn :::

[root@saturn db_1]# ./root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/11.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: n
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: n
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: n
Entries will be added to the /etc./oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[root@saturn db_1]#


Change ownership of ‘oracle’


AT VENUS $ORACLE_HOME/bin/:
[oracle@venus bin]$ ls -lrt oracle
-r-sr-s--x 1 oracle dba 173515905 Dec  6 23:14 oracle

AT SATURN $ORACLE_HOME/bin/:
[oracle@saturn bin]$ ls -lrt oracle
-r-sr-s--x 1 oracle oinstall 173515905 Dec 11 16:56 oracle

The end-goal is to have the permissions of the ‘oracle’ binary match the other nodes in the cluster.
So …
[oracle@saturn bin]$ chgrp dba $ORACLE_HOME/bin/oracle
[oracle@saturn bin]$ chmod 6751 $ORACLE_HOME/bin/oracle




[oracle@saturn bin]$ ./cluvfy comp admprv -o db_config -d $ORACLE_HOME -n venus,jupiter,saturn -verbose > $ORACLE_HOME/admprv.log



Database Configuration Assistant — GUI Method instead of (and not) SRVCTL — Command-Line Method

Follow the same steps at :








Check the status of new instance :

[oracle@venus ~]$ srvctl status instance -d RAC -i RAC1
Instance RAC1 is running on node Venus
[oracle@venus ~]$ srvctl status instance -d RAC -i RAC2
Instance RAC2 is running on node Jupiter
[oracle@venus ~]$ srvctl status instance -d RAC -i RAC3
Instance RAC3 is running on node Saturn

[oracle@saturn ~]$ . ./grid.env
[oracle@saturn ~]$ srvctl status database -d rac -v
Instance RAC2 is running on node Jupiter
Instance RAC3 is running on node Saturn
Instance RAC1 is running on node Venus
[oracle@saturn ~]$


[oracle@venus ~]$ . ./db.env
[oracle@venus ~]$ export ORACLE_SID=RAC1
[oracle@venus ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 11 18:47:00 2013
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> select inst_id, instance_name, status,to_char(startup_time, 'DD-MON-YYYY HH24:MI:SS') as "START_TIME" from gv$instance order by inst_id;
   INST_ID INSTANCE_NAME    STATUS       START_TIME
---------- ---------------- ------------ -----------------------------
         1 RAC1             OPEN         11-DEC-2013 14:53:01
         2 RAC2             OPEN         11-DEC-2013 14:52:18
         3 RAC3             OPEN         11-DEC-2013 17:53:52
SQL>