Change of IP addresses to hostnames in tnsnames and listener to TNS-12541 heads
Hello.To prevent problems and compensation in the future with the IP changes, I want to change the configuration of server tnsnames and listener.ora files.
Now they use the IP address in the HOST parameter, and I want to use the host name. But it does not work:
TNSNAMES.ORA:
----------------------
VCSBD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = 62.37.231.78)(PORT = 1524))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vcsbd)
)
)
LISTENER.ORA:
--------------------
LISTENER_VCSBD=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=62.37.231.78)
(PORT=1524)
)
(ADDRESS=
(PROTOCOL=ipc)
(KEY=vcsbd)
)
)
SID_LIST_LISTENER_VCSBD=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=vcsbd)
(SID_NAME=vcsbd)
(SERVICE_NAME=vcsbd)
(ORACLE_HOME=/usr/oracle/product/11.2.0)
)
)
TESTING: --
$ tnsping vcsbd
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:32:30
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Archivos de parámetros utilizados:
/usr/oracle/product/11.2.0/network/admin/sqlnet.ora
Adaptador TNSNAMES utilizado para resolver el alias
Intentando contactar con (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = 62.37.231.78)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = vcsbd)))
Realizado correctamente (0 mseg)
I want to change the HOST hostname of the server parameter, in order to make the oracle to resolve the hostname from / etc/hosts.But wen I change, I get error TNS-12541 when tnsping. Ping works, but not tnsping.
updating TNSNAMES:
-----------------------------
VCSBD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = servervcs)(PORT = 1524))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vcsbd)
)
)
updating LISTENER.ORA
---------------------------------
LISTENER_VCSBD=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=servervcs)
(PORT=1524)
)
(ADDRESS=
(PROTOCOL=ipc)
(KEY=vcsbd)
)
)
SID_LIST_LISTENER_VCSBD=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=vcsbd)
(SID_NAME=vcsbd)
(SERVICE_NAME=vcsbd)
(ORACLE_HOME=/usr/oracle/product/11.2.0)
)
)
TESTING: ---
$ cat /etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 servervcs localhost.localdomain localhost
62.37.231.78 servervcs
#62.37.231.68 servervcs
::1 localhost6.localdomain6 localhost6
$ lsnrctl reload LISTENER_VCSBD
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:37:05
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Conectándose a (ADDRESS=(PROTOCOL=tcp)(HOST=servervcs)(PORT=1524))
TNS-12541: TNS:no hay ningún listener
TNS-12560: TNS:error del adaptador de protocolo
TNS-00511: No hay ningún listener
Linux Error: 111: Connection refused
Conectándose a (ADDRESS=(PROTOCOL=ipc)(KEY=vcsbd))
El comando ha terminado correctamente
$ lsnrctl status LISTENER_VCSBD
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:37:12
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Conectándose a (ADDRESS=(PROTOCOL=tcp)(HOST=servervcs)(PORT=1524))
TNS-12541: TNS:no hay ningún listener
TNS-12560: TNS:error del adaptador de protocolo
TNS-00511: No hay ningún listener
Linux Error: 111: Connection refused
Conectándose a (ADDRESS=(PROTOCOL=ipc)(KEY=vcsbd))
LISTENER STATUS
------------------------
Alias LISTENER_VCSBD
Versión TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Fecha de Inicio 28-MAY-2012 12:04:16
Tiempo Actividad 130 días 1 hr. 32 min. 56 seg.
Nivel de Rastreo off
Seguridad ON: Local OS Authentication
SNMP OFF
Parámetros del Listener /usr/oracle/product/11.2.0/network/admin/listener.ora
Log del Listener /usr/oracle/diag/tnslsnr/efacturaES-BD1/listener_vcsbd/alert/log.xml
Recibiendo Resumen de Puntos Finales...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=62.37.231.78)(PORT=1524)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=vcsbd)))
Resumen de Servicios...
El servicio "vcsbd" tiene 2 instancia(s).
La instancia "vcsbd", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
La instancia "vcsbd", con estado READY, tiene 1 manejador(es) para este servicio...
El servicio "vcsbdXDB" tiene 1 instancia(s).
La instancia "vcsbd", con estado READY, tiene 1 manejador(es) para este servicio...
El comando ha terminado correctamente
$ ping servervcs
PING servervcs (127.0.0.1) 56(84) bytes of data.
64 bytes from servervcs (127.0.0.1): icmp_seq=1 ttl=64 time=0.017 ms
64 bytes from servervcs (127.0.0.1): icmp_seq=2 ttl=64 time=0.013 ms
--- servervcs ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.013/0.015/0.017/0.002 ms
$ tnsping vcsbd
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 05-OCT-2012 13:32:33
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Archivos de parámetros utilizados:
/usr/oracle/product/11.2.0/network/admin/sqlnet.ora
Adaptador TNSNAMES utilizado para resolver el alias
Intentando contactar con (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = servervcs)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = vcsbd)))
TNS-12541: TNS:no hay ningún listener
Any clue?what I am doing wrong? What have I forgotten?
Concerning
Published by: elvegaa_esp on October 5, 2012 04:48
If you see before other server which doesn't mean its correct, yes well it work but is not the right solution or recommendation. and you must know the use of loopback Ip
and then deciding its wrong or right?
Loopback addresses are usually for testing or to access resources on the same computer
Tags: Database
Similar Questions
-
I tried to change my email address on Apple ID and he says that email address exists on an another apple ID. Only, I own an iPad and a laptop computer and signed on iTunes. What else do I sign on? I didn't believe that I was connected to any other Apple app! anyone can shed some light on this. Thank you.
To change the Apple ID go to the following location under settings, log out of each of them and then reconnect:
iCloud, iTunes and App Store, Messages, FaceTime, and Game Center if you use it.
-
Unable to ping IP address / resolve hostnames Win 7 and XP Pro
My setup is as follows:
EchoLife HG521 router WiFi - IP address: 192.168.1.1Win XP Pro - address IP 192.168.1.3Win 7 Home Premium - IP: 192.168.1.4Ping 192.168.1.3 to 192.168.1.4 = Request Timed Out192.168.1.4 to 192.168.1.3 ping = Destination Host UnreachableThe use of firewall in KIS2012 - same result with the firewall disabled on both machines.Network discovery is on Windows 7 and the relevant services are set to automatic on both machines.Router is able to ping both machines.Both machines are set to the same workgroup name.Please can someone help? Thank you very muchHello
Try the methods below and see if it can resolve the problem.
Method 1:
Reset TCP\IP [Transmission Control Protocol of Protocol\Internet]:
To reset the stack TCP/IP go to this article and either click on "Fix it for me" or follow the instructions to fix it yourself:
http://support.Microsoft.com/kb/299357
Method 2:
Disable the IP helpdesk:
(a) hold the Windows key and type R, type "services.msc" (without the quotes) and press enter
(b) scroll down to the IP assistance service, right-click on it and select Properties.
(c) in the area drop-down list that says "Autoc" or "Manual", set it to disabled and then click 'apply '.
(d) then click on ""Stop " to stop the service from running in the current session"
(e) click on OK to exit the dialog box
Disable IPv6:
Try to uninstall IPv6 on all interfaces, the removal of virtual cards of IPv6 and reset the TCP/IP stack. To remove the IPv6, go to the properties for each network adapter, and deselect the check box next to the Protocol "Internet Protocol version 6 (TCP/IPv6), which will turn off, or select it and click on uninstall which will remove off the computer." Then go into Device Manager and remove any 4to6 adapters, adapters miniport WUN or tunnel adapters.
NOTE:
You should do this for each network connection.
Disable the DHCP Broadcast Flag:
Link:
http://support.Microsoft.com/default.aspx/KB/928233
Important:
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
How to back up and restore the registry in Windows
http://support.Microsoft.com/kb/322756
See also:
How to troubleshoot connectivity TCP/IP with Windows XP
-
Hello
We change the Virtual Center and the license server IP (I saw here how to do it stop Virtual Center, change, delete and add servers... etc...). Now the virtual Center its ok, but when Ive tried to make the cluster, virtual center of reports me a "there is not enough licenses", and I lost the connection to the license server... any ideas?... I reread the license server, restart the Center Virtual/license server... restart the hosts... Remove and add hosts again...
Thanks in advance
See the bottom of this knockout under NOTE:
http://KB.VMware.com/kb/5850444
Also check that your features licensed licensed Source is always pointing to the correct license server.
-
location of the file tnsnames.ora and Listener.ora
Hello
env: Oracle 11 g 2 - Orable Linux 6.2 64bits
I set up a database for the client server. I installed IM and the House according to the standards of the Oracle RDBMS. Then I configured the listener to run BOF IM home. If the location of the 'ora, tnsnames' and 'listener.ora' files is $GI_HOME/network/admin.
Customer's DBA is asking me to conform to the standard for the location of these two files. Here's what he asked for:
/ opt/oracle/owner = oracle, group = s/n (755 permissions)
/ var/opt/oracle owner = oracle, group = s/n (755 permissions)
- -touch /var/opt/oracle/listener.ora
- -touch /var/opt/oracle/tnsnames.ora
- -chown oracle: dba /var/opt/oracle/listener.ora
- -chown oracle: dba /var/opt/oracle/tnsnames.ora
- -s /var/opt/oracle/tnsnames.ora /etc/tnsnames.ora ln
- -s /var/opt/oracle/listener.ora /etc/listener.ora ln
I'm completely lost here. I don't know if I'm moving these two files in the folder "/ etc", how the LISTENER know about the presence of these files in ' / etc '.
His reason for this is to support the possibility of having several houses of Oracle's RDBMS. I don't know what he's talking about.
Please notify.
Best regards
user130038 wrote:
Thanks to you two!
So basically this DBA do not like to follow standards of Oracle but his own.
BINGO!
What is the problem with the help of $ORACLE_HOME/network/admin for these two files if there were several homes of oracle on a server? Sorry I never got to work on a server with multiple oracle homes, so I have no idea.
The 'standard' with several houses installation is to run the listener from the version the most recent House. If all of the houses are of the same version (putting aside the question of 'why'), then just pick one that is going to be home for the listener. If the installation program uses the Grid Infrastructure (ASM and/or Oracle Restart), you must run the listener from the House of IM, not House the database.
There are some key things to consider here.
1. the auditor is to receive and process applications for connecting customers. This is why the listener has no meaning on the Server. Similarly, its configuration file, listener.ora, only makes sense on the server.
1a. a single listener, using the default name of the LISTENER and the unique default port of 1521 is quite capable of--indeed, we wanted to - several multiple databases editions of multiple service homes.
2. the tnsnames.ora file provides a name resolution and address customers. So it has the sense that on the client computer.
2. when a database uses a db link to access a different database, the first database acts as a client to the second - as with any other LDAP client.
Best regards
-
Change hot IP address of a server of db
Hello
just a simple question: it is possible, a hot IP address changes (change of the IP address without stop and restart the database) to a server where an Oracle (10g) database is installed?
I have to stop the db, change the IP address and restart the database?
There are some files where the IP address is stored (tnslistener.ora,...)? If I use the hostname instead of IP in these configuration files, can I change the IP address without problem on my continuity of service after changing the pointer to my clients?
Best regards
GIONo, it is not possible, and without a doubt you don't need to restart the database as the database is not to use the TCP/IP protocol.
First of all, you should NOT use IP hard-coded in any listener.ora multiple tnsnames.ora.
However, a DNS address is resolved by Oracle only once, to leave the listener or proceed with the connection at the time.
You must also reconfigure the dbcontrol or the Gridcontrol. In the latter case, the Management Agent must be stopped, and agentca d must be run to reconfigure.
So: you have a maintenance window. Of course, you can set up the correct files beforehand (outside the correct targets.xml, which is required by the Management Agent)-----
Sybrand Bakker
Senior Oracle DBA -
change the ip address of HP1522 and software HP1536 of scanning on workstations
We want to change the IP address of the device to network HP1522mf and HP1536mf printers/scanners.
We have already installed the scanner on XP SP3 workstations software. How to configure the new IP address of the HP (printer/scanner) device on workstations without reinstalling the scanner software complete on each workstation.
SparrowJack wrote:
...
You can change the name in the registry[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F} \0000]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F} \0001]...
This was very helpful, it was so close, I'm sure you would have found eventually. Thanks for pointing me in the right direction, I had the same problem with my CM 1312nfi and here is the solution:
Access
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\ {6BDD1FC6-810F-11D0-BEC7-08002BE2092F} \0001\DeviceData]
Confirm the REG_SZ named CUEDeviceID is the device that you want to change.
Updated the REG_SZ named NetworkDeviceID...
Change the IP address in the string to the new IP address
for example. \hostname:NPI74FF08\ipaddr:192.168.0.25\guid:\macaddr:00237D74FF08\port:1
Change the REG_SZ named PortID to the new IP address.
Record.
You should be good to go, try scanning, it worked for me.
Remember, «it can't be done, reinstall...» ", is never the right answer.
-
Need a script to change the ip address of multiple virtual computers
Hi all
I have a task to change the ip addresses of multiple ip addresses from DHCP to Static server windows operating systems. I have a powershell script I tried to archieve it work with. However, once the ip address is changed the tcp connection is reset. At this point, the script errors on.
Now that I'm stuck with powershell, I turned to powercli. I want to address with the string below, but as assistance to refine.
Get-VMHost $VMHost | Get - vm $VM.name | Get-VMGuestNetworkInterface | WHERE-object {$_.name - eq 'Connect to the Local network'} | Game VMGuestNetworkInterface - static IPPolicy - gateway $VM. Gateway - Netmask $VM.Netmask Ip - $VM.ipaddr - Verbose
I read all the entries to a CSV file.
You will appreciate your help.
See you soon,.
Bpcue
Of course, you could do something like that
foreach($row in (Import-Csv "C:\input.csv" -UseCulture)){ Get-VMHost $row.Hostname | Get-VM $row.VMname | Get-VMGuestNetworkInterface | where-object {$_.Name -eq "Local Area Connection"} | Set-VMGuestNetworkInterface -IPPolicy static -Gateway $row.Gateway -Netmask $row.Netmask -Ip $row.ipaddr }
This assumes that your CSV file has the following columns
Host name, VMname, ipaddr, netmask, gateway
BTW, the cmdlet Set-VMGuestNetworkInterface uses Invoke-VMScript to launch one of the scripts that you find in the folder the PowerCLI installation directory Scripts .
If you take a look inside one of these BAT files, you will see that it is also using the netsh command
-
Unable to connect to APEX after changing the IP address of the server
Hello
After changing the IP address of my DB server, my DB works perfectly.
However, I can connect only to APEX locally using localhost in the URL. I can not connect to APEX of remote machines, although I can connect to the DB of remote machines using SQL Developer very well.
Do I need to make changes to the gateway PL/SQL embedded, that I use to connect to the APEX? How can I do?
Thank you very much
Best,
PeterHi Peter,.
>
After changing the IP address of my DB server, my DB works perfectly.
However, I can connect only to APEX locally using localhost in the URL. I can not connect to APEX of remote machines, although I can connect to the DB of remote machines using SQL Developer very well.Do I need to make changes to the gateway PL/SQL embedded, that I use to connect to the APEX? How can I do?
>
With EPG, you don't need to make any configuration changes, you have to work on the new IP/hostname.You could try running the following just in case wherever it may help, as SYSDBA
SQL> EXEC DBMS_XDB.setlistenerlocalaccess(FALSE); SQL>COMMIT;
See you soon,.
-
Business Manager does not not with the error code of 1 after change of IP address
Hello
Due to new customer requirements, I had to move a group of servers to a new network and thus changed the IP address on each of them. One of our servers running Oracle 10.2 and is currently not properly start. Oracle Enterprise Manager does not load. When I try to start from the command prompt (start dbconsole enctl) it displays a message that begins, about 3 lines of periods then closes. I checked listner.ora and tnsnames.ora files and found that they had both the wrong IP in them. However, after the correction that it still does not start.
I did not much of any administration before oracle, so I hesitate to start digging up files or run scripts without first asking someone. I hope that's not too hard to fix, and this group can provide assistance. I have not been able to find my answer on google this morning.
The server running Oracle 10.2 on Windows server 2003. Thank you!Hello
Follow this link (oracle will have to resolve to when IP address changed)
http://download.Oracle.com/docs/CD/B19306_01/EM.102/b40002/structure.htm#sthref92
In short, delete and recreate your repository EM
emca -deconfig dbcontrol db -repos drop emca -config dbcontrol db -repos recreate
Concerning
-
will I lose my everything in the app store pushase if I change my email address of my apple ID
will I lose my everything in the app store pushase if I change my email address of my apple ID
It is a forum for application Apple, compressor.
-
I changed my email address of my ID Apple online, but my iphone still ask again me for my old email password, which no longer exists, how can I change the email to my new on my iPhone
Go to settings | Mail, Contacts, calendars and change e-mail account information.
T.
-
How can I change my email address?
For my account to sync Firefox how can I change my email address?
You cannot change the e-mail address of an account of synchronization.
You must remove the old account from Firefox and create a new account with the correct email address. -
Need help
You cannot change an iCloud address if that's what you try to do it.
-
Why can't change my email address in the profile change for communities?
Why can't change my email address in the profile change for communities? I won't be able to get the email with the former in the future.
Because the e-mail address is connected to your Apple ID, which is used to connect to the CSA. You must change the Apple ID.
Maybe you are looking for
-
When a string of characters, I'm interested, is buried in an e-mail, I would find these emails. It seems that as the code needed to find an email is already in place, it would take very little effort/code/support added to extend the search capabiliti
-
Error e/s of generic file during deployment
Hello I have a LabVIEW RT application I'm developing on a RT PXI system. The code works well on the target of RT. However, when I try to build an application and deployment, deployment generates this error: Deployment VDW_1V (impossible to deploy) La
-
My knowledge is very limited when it comes to computers, and I don't have a clue when it comes to walk through the bios, etc. Can you help me in Re-establishing sound on this computer. I can assure you that your patience will be judged. My hard drive
-
Help with DMA2100-CA. Media Center stop itself.
Hello. This problem started 2-3 weeks ago. When I go to the "videos" section in Media Center on my TV, try to select a file to play, a message will appear 'Media Center stops'. Then he goes to the logoff screen and stops. The Media Center to reboot,
-
BlackBerry BlackBerry Q10 Q10 stops automatically
My BlackBerry Q10 stops automatically. I do not myself, turn on the device that it self.