Starting the Listener on Each Node
Oracle Database Tips by Donald Burleson
A listener must
be configured and running on each node in order to create a RAC
database. The following is a list of steps taken when using the
netca tool to configure and
launch the listeners. This step needs to be done from only one node.
Use oraenv to set the
and $ORACLE_HOME variables, then launch
Choose cluster configuration.
Select all of the nodes.
Add a listener.
The listener name is LISTENER.
TCP is the only protocol needed.
Use port 1521.
One listener is all that is needed.
By running through these steps with
netca, the configuration
file $ORACLE_HOME/network/admin/listener.ora has been created on each
node and a listener named ?LISTENER? has been started on each node.
Run the command lsnrctlstatus on each node to verify that the listener is
Starting the Global
The Oracle Enterprise Manager,
dbca each rely on the Global
Srvctl is a command line
tool used to start and stop clustered databases (among other tasks as
will be discussed in Chapter 7). Database Configuration Assistant
cannot create a clustered database without the GSD service running on
The universal installer has created the file /var/opt/oracle/svrConfig.loc
on each node, which is a text file that defines the location of the
shared configuration file. The universal installer has also issued the
command srvconfig ‑init which initialized the shared configuration
file. At this time, the Global Services Daemon
(GSD) should start without error.
Figure 6.6 demonstrates the commands used to start
the GSD service. Run these commands as Oracle on each node. If the GSD
needs to be stopped, use the command
gsdctl stop. The GSD keeps a
log of requests made by the various clients of its service in the file
Services Start on Boot
The code depot for this book includes a script
called oracle that can be installed in the directory /etc/init.d. Once
installed and configured to start on boot with the
chkconfigcommand, the hangcheck-timer,
gsdwill start whenever the node boots. Switch to the
root user and run the commands shown in Figure 6.7 to configure the
oracle services to start at boot. This step must be completed on each
If you want to learn RAC at home, get the bestselling book "Personal
Oracle Real Application Clusters" by Edward Stoever.
You can buy it direct from the publisher for 30%-off and get
instant access to the code depot of Oracle tuning scripts.