[INS-20802] Oracle Net Configuration Assistant failed

.

I had the following error on 11gR2 Grid Infrastructure installation:

[INS-20802] Oracle Net Configuration Assistant failed. 
The plug-in failed in its perform method

tail -50 /u01/app/oraInventory/logs/installActions2012-01-06_09-45-58AM.log

INFO: Oracle Net Listener Startup:
INFO: The information provided for this listener is currently in use by other software on this computer.
INFO:     Listener start failed.
INFO: Check the trace file for details: /u01/app/oracle/cfgtoollogs/netca/trace_Ora11g_gridinfrahome1-1201069AM5717.log
INFO: Oracle Net Services configuration failed.  The exit code is 1
WARNING:
 Log file indicates that it’s not possible to start listener, because “The information provided for this listener is currently in use by other software on this computer.” Not very helpful, so i checked the trace file.



tail -50 /u01/app/oracle/cfgtoollogs/netca/trace_Ora11g_gridinfrahome1-1201069AM5717.log

[main] [ 2012-01-06 10:32:22.546 EET ] [ConfigureListener.isPortFree:1011]  Checking if port 1521 is free on local machine...
[main] [ 2012-01-06 10:32:22.546 EET ] [ConfigureListener.isPortFree:1026]  InetAddress.getByName(127.0.0.1): /127.0.0.1
[main] [ 2012-01-06 10:32:22.547 EET ] [ConfigureListener.isPortFree:1028]  Local host IP address: hostx/192.168.1.1
[main] [ 2012-01-06 10:32:22.547 EET ] [ConfigureListener.isPortFree:1030]  Local host name: hostx
[main] [ 2012-01-06 10:32:22.549 EET ] [ConfigureListener.isPortFree:1063]  Creating ServerSocket on Port:1521, IP Address: hostx/1
0.201.232.49
[main] [ 2012-01-06 10:32:22.549 EET ] [ConfigureListener.isPortFree:1098]  java.net.PlainSocketImpl.socketBind(Native Method)
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:417)
java.net.ServerSocket.bind(ServerSocket.java:342)
java.net.ServerSocket.(ServerSocket.java:208)
oracle.net.ca.ConfigureListener.isPortFree(ConfigureListener.java:1065)
oracle.net.ca.ConfigureListener.startOrStopListener(ConfigureListener.java:1141)
oracle.net.ca.ConfigureListener.typicalConfigure(ConfigureListener.java:257)
oracle.net.ca.SilentConfigure.performSilentConfigure(SilentConfigure.java:185)
oracle.net.ca.InitialSetup.(NetCA.java:4159)
oracle.net.ca.NetCA.main(NetCA.java:405)
[main] [ 2012-01-06 10:32:22.550 EET ] [ConfigureListener.isPortFree:1111]  Returning is Port 1521 free: false
And the trace file says port 1521 is not free. After struggling for a while i figured out that the IP adress in the trace file is not correct. This was becuase of the forgotten entry in the /etc/hosts file:
192.168.1.1   hostx  --> FALSE
192.168.1.2   hostx  --> TRUE
I removed the first entry (192.168.1.1), then uninstalled the grid infrastructure with the “deinstall” utility and started the installation again.

bash-3.2$ /u01/app/oracle/product/11.2.0/grid/deinstall/deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############


######################## CHECK OPERATION START ########################
Install check configuration START


Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0/grid
Oracle Home type selected for de-install is: SIHA
Oracle Base selected for de-install is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/oracle/product/11.2.0/grid

Install check configuration END

Traces log file: /u01/app/oraInventory/logs//crsdc.log

Network Configuration check config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check83418878270978353.log

Specify all Oracle Restart enabled listeners that are to be de-configured [LISTENER]:

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_check8324482147954528899.log

ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: n
ASM was not detected in the Oracle Home

######################### CHECK OPERATION END #########################


####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/oracle/product/11.2.0/grid
The cluster node(s) on which the Oracle home exists are: (Please input nodes seperated by ",", eg: node1,node2,...)null
Oracle Home selected for de-install is: /u01/app/oracle/product/11.2.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following Oracle Restart enabled listener(s) will be de-configured: LISTENER
ASM was not detected in the Oracle Home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2012-01-06_09-39-03-AM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2012-01-06_09-39-03-AM.err'

######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_clean691874947205064335.log
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean7320648294236470013.log

De-configuring Oracle Restart enabled listener(s): LISTENER

De-configuring listener: LISTENER
    Stopping listener: LISTENER
    Listener stopped successfully.
    Unregistering listener: LISTENER
    Listener unregistered successfully.
    Deleting listener: LISTENER
    Listener deleted successfully.
Listener de-configured successfully.

De-configuring Listener configuration file...
Listener configuration file de-configured successfully.

De-configuring Naming Methods configuration file...
Naming Methods configuration file de-configured successfully.

De-configuring backup files...
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END


---------------------------------------->

Run the following command as the root user or the administrator on node "hostx".

/tmp/deinstall2012-01-06_09-38-31-AM/perl/bin/perl -I/tmp/deinstall2012-01-06_09-38-31-AM/perl/lib -I/tmp/deinstall2012-01-06_09-38-31-AM/crs/install /tmp/deinstall2012-01-06_09-38-31-AM/crs/install/roothas.pl -force  -delete -paramfile /tmp/deinstall2012-01-06_09-38-31-AM/response/deinstall_Ora11g_gridinfrahome1.rsp

Press Enter after you finish running the above commands

<----------------------------------------

Oracle Universal Installer clean START

Detach Oracle home '/u01/app/oracle/product/11.2.0/grid' from the central inventory on the local node : Done

Delete directory '/u01/app/oracle/product/11.2.0/grid' on the local node : Done

The Oracle Base directory '/u01/app/oracle' will not be removed on local node. The directory is in use by Oracle Home '/u01/app/oracle/product/11.2.0/dbhome_1'.

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END


Oracle install clean START

Clean install operation removing temporary directory '/tmp//install' on node 'hostx'

Oracle install clean END

Moved default properties file /tmp/deinstall2012-01-06_09-38-31-AM/response/deinstall_Ora11g_gridinfrahome1.rsp as /tmp/deinstall2012-01-06_09-38-31-AM/response/deinstall_Ora11g_gridinfrahome1.rsp4

######################### CLEAN OPERATION END #########################


####################### CLEAN OPERATION SUMMARY #######################
Following Oracle Restart enabled listener(s) were de-configured successfully: LISTENER
Oracle Restart was already stopped and de-configured on node "hostx"
Oracle Restart is stopped and de-configured successfully.
Successfully detached Oracle home '/u01/app/oracle/product/11.2.0/grid' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/11.2.0/grid' on the local node.
Oracle Universal Installer cleanup was successful.

Oracle install successfully cleaned up the temporary directories.
#######################################################################


############# ORACLE DEINSTALL & DECONFIG TOOL END #############

8 comments:

thiagomz said...

Thank you, help me.

youtube html5 player said...

I have no words for this great post such a awe-some information i got gathered. Thanks to Author.

fsuhaimi said...

thank you...

Anonymous said...

its just asking to reinstall everything...wow, thats a good solution.. :-(

neeraj said...

for me it worked in diffrent way.
I had to run the installer from 'win64' directory. Then a cmd window prompted with missing java_home. I the provided the path of Java_home to my c:\program files\java\jdk1.7 and it did the trick. My environment is Windows 2008 server SP2, 64 bit.



Gexton said...

Log file indicates that it’s not possible to start listener, because “The information provided for this listener is currently in use by other software on this computer.” Not very helpful, so i checked the trace file.
Virtual assistant Alberta
Virtual Business Solution Canada

Anonymous said...

Excellent, It helped. Thank you.

Anonymous said...

Thank you very much!