0% found this document useful (0 votes)
65 views8 pages

Listener Commands

The document discusses configuring a primary and standby database for high availability. It describes: 1) Configuring static IP addresses on each server and updating the tnsnames.ora and listener.ora files with the new IP information. 2) Verifying connection between the primary and standby servers by pinging the IP addresses from each side. 3) Restarting the network service and checking connectivity to confirm the standby database is configured to take over if the primary fails.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views8 pages

Listener Commands

The document discusses configuring a primary and standby database for high availability. It describes: 1) Configuring static IP addresses on each server and updating the tnsnames.ora and listener.ora files with the new IP information. 2) Verifying connection between the primary and standby servers by pinging the IP addresses from each side. 3) Restarting the network service and checking connectivity to confirm the standby database is configured to take over if the primary fails.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Listener commands

lsnrctl start - start all listener defined in the listner.ora

lsnrctl stop - to stop all all listner defined in the listner.ora

lsnrctl status - to view the status  of listner to view more options

process that are running in listner

$lsnrctl <lsnrctl> help, start,stop ,reload status

Client  side configuration

-We need to defined tnsname.ora in #ORACLE_HOME/network/tnsname.ora

-While we defining tnsname

I)Aliasname

II)Host name of server or IP address

III)Port number same as mentioned in listener.ora

IV)SID of  server  

In primary

S-1: login your database and startup

  

S-2:   logon "root" user like below

 
or  use to view host details

cat /etc/hosts
IPAddress     Hostname      Alias
127.0.0.1    oracle11g

s-3: To view ip address

ifconfig
above these command ll give the details about our server machine IP address
details . now i'm going to edit ip address so pass the command has given below

 
 
S-4: 
I 'm going to create new static ip before that we have to delete ip which has
been already appeared on it
=> Deactive => it 'll ask confirmation Press "YES" => Press "Delete"

 
 
S-5: Press "New " for creating new ip address => Forward
  
Press "Forward"

  
Choose Static ip option
  
Enter the ip details and Press "Forward"

  
Press "Apply"
     
Press "Active"  

  
After Active our IP address
 
S-5: restart the network  service
service network restart

S-6: go to tnsname.ora file and  edit that file where it's located on

cd /u01/app/oracle/11.2.0.3/db_1/network/admin

   

(Note : Here firts one "TEST" is primary server db name ,second one
is "CLONE" enter the both ip address in tnsname file ) as the same
we have to enter on listener.ora file also  
 

S-7: Ping Current ip

ping 192.168.1.4

    

In Standby side

S-8: now we go on "Standby" server side  do  the same steps from  s-1 into
s-7 and i mentioned ip "192.168.1.5" also entered on tnsname.ora file  
check the ping both ip addresses on each side

[oracle@goldengatesource~] ping 192.168.1.5


PING 192.168.1.5 (192.168.1.5) 56(84) bytes of data.
64 bytes from 192.168.1.5: icmp_seq=1 ttl=64 time=0.201 ms
64 bytes from 192.168.1.5: icmp_seq=2 ttl=64 time=0.477 ms
64 bytes from 192.168.1.5: icmp_seq=3 ttl=64 time=0.427 ms
64 bytes from 192.168.1.5: icmp_seq=4 ttl=64 time=0.417 ms
64 bytes from 192.168.1.5: icmp_seq=5 ttl=64 time=0.424 ms
64 bytes from 192.168.1.5: icmp_seq=6 ttl=64 time=0.472 ms
64 bytes from 192.168.1.5: icmp_seq=7 ttl=64 time=0.364 ms

--- 192.168.1.5 ping statistics ---


7 packets transmitted, 7 received, 0% packet loss, time 8818ms
rtt min/avg/max/mdev = 0.201/0.397/0.477/0.089 ms

  Primary Server ip ping

[oracle@oracle11g~]ping 192.168.1.4

PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.


64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=0.091 ms
64 bytes from 192.168.1.4: icmp_seq=2 ttl=64 time=0.060 ms
64 bytes from 192.168.1.4: icmp_seq=3 ttl=64 time=0.051 ms
64 bytes from 192.168.1.4: icmp_seq=4 ttl=64 time=0.092 ms
64 bytes from 192.168.1.4: icmp_seq=5 ttl=64 time=0.032 ms
64 bytes from 192.168.1.4: icmp_seq=6 ttl=64 time=0.058 ms

--- 192.168.1.4 ping statistics ---


6 packets transmitted, 6 received, 0% packet loss, time 7470ms
rtt min/avg/max/mdev = 0.032/0.064/0.092/0.021 ms

 (Note : here i did ip configuration on manually we can use those db


tools for ip configuration "NETCA" and NETMGR")

You might also like