Changin from IPs to hostnames in tnsnames and listener heads to TNS-12541
Hello.
In order to prevent problems and extrawork in future with planned IP changes, i want to change the tnsnames and listener.ora server configuration files.
Now they are using the IP in the HOST parameter, and I want to use the hostname. But it doesnt works:
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 parameter to server hostname, in order to make oracle resolve the hostname from the /etc/hosts.
But wen I change it, I get TNS-12541 errors when tnsping. Ping works, but tnsping not.
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 listenerAny clue?
what i'm doing wrong? what did I forget?
Regards
Edited by: elvegaa_esp on 05-oct-2012 4:48
Sure
$ echo $HOSTNAME
AOC-BD1
$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr **:**:**:**:**:**
inet addr:192.168.76.8 Bcast:192.168.76.255 Mask:255.255.255.0
inet6 addr: fe80::221:85ff:fe35:74c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:281062361 errors:0 dropped:0 overruns:0 frame:0
TX packets:68084207 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1817935227 (1.6 GiB) TX bytes:3856945523 (3.5 GiB)
Base address:0x3000 Memory:dfb40000-dfb60000
eth0:1 Link encap:Ethernet HWaddr **:**:**:**:**:**
inet addr:192.168.76.10 Bcast:192.168.76.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0x3000 Memory:dfb40000-dfb60000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:210984342 errors:0 dropped:0 overruns:0 frame:0
TX packets:210984342 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3935512631 (3.6 GiB) TX bytes:3935512631 (3.6 GiB)
$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 AOC-BD1 localhost.localdomain
192.168.76.8 AOC-BD1 localhost.localdomain
$ cat /usr/oracle/product/10.2.0/network/admin/tnsnames.ora
AOC-BD1_AOCPROD_HN=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=AOC-BD1)(Port=1521)))(CONNECT_DATA=(service_name=aoc-bd1_aocprod)(INSTANCE_NAME=aocprod)(SID=aocprod)))
$ cat /usr/oracle/product/10.2.0/network/admin/listener.ora
listener_aoc-bd1_aocprod=
(ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=AOC-BD1)
(PORT=1521)
(ADDRESS=
(PROTOCOL=ipc)
(KEY=aoc)
SID_LIST_listener_aoc-bd1_aocprod=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=aoc-bd1_aocprod)
(SID_NAME=aocprod)
(SERVICE_NAME=aocprod)
(ORACLE_HOME=/usr/oracle/product/10.2.0)
STARTUP_WAIT_TIME_listener_aoc-bd1_aocprod=0
CONNECT_TIMEOUT_listener_aoc-bd1_aocprod=0
$ lsnrctl status listener_aoc-bd1_aocprod
LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 08-OCT-2012 13:20:17
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=AOC-BD1)(PORT=1521))
STATUS of the LISTENER
Alias listener_aoc-bd1_aocprod
Version TNSLSNR for Linux: Version 10.2.0.3.0 - Production
Start Date 17-DEC-2011 09:49:05
Uptime 248 days 13 hr. 13 min. 56 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /usr/oracle/product/10.2.0/network/admin/listener.ora
Listener Log File /usr/oracle/product/10.2.0/network/log/listener_aoc-bd1_aocprod.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=AOC-BD1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=aoc)))
Services Summary...
Service "aoc-bd1_aocprod" has 1 instance(s).
Instance "aocprod", status UNKNOWN, has 1 handler(s) for this service...
Service "aocprod" has 1 instance(s).
Instance "aocprod", status READY, has 1 handler(s) for this service...
Service "aocprodXDB" has 1 instance(s).
Instance "aocprod", status READY, has 1 handler(s) for this service...
Service "aocprod_XPT" has 1 instance(s).
Instance "aocprod", status READY, has 1 handler(s) for this service...
The command completed successfully
$ tnsping AOC-BD1_AOCPROD_HN
TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 08-OCT-2012 13:20:37
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=AOC-BD1)(Port=1521)))(CONNECT_DATA=(service_name=aoc-bd1_aocprod)(INSTANCE_NAME=aocprod)(SID=aocprod)))
OK (0 msec)
Similar Messages
-
Automatic renaming hostname in tnsnames and listener.ora
Is it realy not possible to change hostname automaticly in TNSNAMES.ORA and LISTENER.ORA after installing an image-CD with Windows XP and Oracle11GR1. In Windows , there is a SID Change Tool and in Oracle?
Thank's for your help !
RenéAgain, take a look at running "netca /silent ..." with a response file.
Another (perhaps better) option would be to burn a cd with a software only install and that upon "activation" would then run a dbca noninteractive session to configure a database (I assume you want one, mentioning listener.ora). -
Hi
When I use dbua to upgrade the database to 11g,
I notice that dbua doesnt create tnsnames.ora and listener.ora for the new 11g oracle home.
What is the recommended approach to resolve this?
1-)
Remove old listener from old oracle home
Initiate dbau
create new listener in new oracle home
create new tnsnames in new oracle home
2-)
shutdown listener from old oracle home
initiate dbua
copy listener and tnsnames files from old oracle home to new oracle homeOra_83 wrote:
Hi
Apart from above question, I have another question.
When a database is upgraded with dbua, I notice that dbua will automatically create initilization parameters file.
How can it determine the values in new spfile? Does it copy the existing values from old spfile and remove deprricated ones and add new parameters automatically ?It will copy the values from the old spfile and adds new parameters automatically.
Regards
Rajesh -
Will I b able to copy my music library from PC to I pad while sync and listen to it without sync at a remote place. Is it possible without iTunes Match?
Yes. As long as all your songs you lost have been Matched or Uploaded to iTunes Match you can download your entire library from the cloud.
It might take some time though -
I was finally able to get the installation of Oracle DB 11 with client. But not clear how the tnsnames.ora and listener.ora work. Appreciate if someone can clarify following.
1 Why is tnsnames.ora is found both in the client and server directories. Why is it required on the server host?
2 listener.ora is only in the server host? Is that correct? Not required on client?Trying to make it simple, I am answering the second question first
2. listener.ora is only in the server host? Is that correct? Not required on client?Listener.ora contains the listener service configuration (Name, DBName, Port, etc), Typically, it must exist only at the Server, and client connects to it using their tnsnames.ora definitions.
Why is tnsnames.ora is found both in the client and server directories. Why is it required on the server host?whenever it is required to connect to database using TNS, an entry in tnsnames.ora required be made. Since may tools (e.g. OEM) uses the tnsnames to connect to database therefore, it is necessary to configure the tnsnames.ora at server.
Rgd,
Ahmer
N.B.: To make a good reputation on forums, and if you want that your questions will be answered timely. Kindly adopt the habit of marking your questions closed as soon as you get the answer. and be courteous to the people who trying to help. -
ORA-12505 error after setup tnsnames and listener properly.
Hello.
I'm having a very common issue. I can't connect using tnsnames on Windows 2003 server.
Facts.
1 - Tnsnames.ora file is properly set.
2 - Listener.ora file is properly set.
3 - tnsping works with no issues.
4 - Windows service is up and running.
However, I'm getting this error.
C:\Documents and Settings\sabreadm>sqlplus lps/first1@lm3dprd1
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 24 12:32:26 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12505: TNS:listener does not currently know of SID given in connect
descriptor
Enter user-name:
ERROR:
ORA-01017: invalid username/password; logon denied
listener.ora file content
# listener.ora Network Configuration File: D:\Apps\oracle\network\admin\listener.ora
# Generated by Oracle configuration tools.
TRACE_LEVEL_LISTENER = USER
TRACE_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
LOG_FILE_LISTENER = listener.log
LOG_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
TRACE_FILE_LISTENER = listener.trc
MAX_REG_CONNECTIONS_LISTENER = 3000
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.58.44)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = lm3dtst1)
(ORACLE_HOME = D:\Apps\oracle)
(SID_DESC =
(SID_NAME = lm3dprd1)
(ORACLE_HOME = D:\Apps\oracle)
tnsnames.ora file content.
# tnsnames.ora Network Configuration File: D:\Apps\oracle\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
lm3dtst1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.58.44)
(Port = 1521)
(CONNECT_DATA =
(SID = lm3dtst1
(GLOBAL_NAME = lm3dtst1)
lm3dprd1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.58.44)
(Port = 1521)
(CONNECT_DATA =
(SID = lm3dprd1
(GLOBAL_NAME = lm3dprd1)
Any advice will be highly appreciated.
Thanks.
Alex.Alex,
Next time when you post code or output or any configuration, enclose them between \ tags to preserve formatting
Your code or output \h4. Anyway, modify your tnsnames.ora file on your client machine and add this lm3dprd1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.58.44)(PORT = 1521))
(CONNECT_DATA =
(SERVER = dedicated)
(SERVICE_NAME = lm3dprd1)
(INSTANCE_NAME=lm3dprd1)
Regards
OrionNet -
Tnsnames and listener issue for Datagaurd
Hi All,
OS:AIX,
DB: 10g
I am trying to create a standby database on the same server. I have configured the tnsnames.ora, my speciifcations are the following:
Primary database:ettest
Standby datbase:ettestdr
tns-entries:
ettest =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.2.454.00)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ettest)
ettestdr =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.2.454.00)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ettestdr)
while i am trying to tnsping ettest , i am getting success but i failing to tnsping ettestdr.
Kindly tell me if i am doing anything wrong?
BR
Sphinx
Edited by: $phinx19 on Dec 11, 2012 8:30 AM$phinx19 wrote:
Hi All,
OS:AIX,
DB: 10g
I am trying to create a standby database on the same server. I have configured the tnsnames.ora, my speciifcations are the following:
Primary database:ettest
Standby datbase:ettestdr
tns-entries:
ettest =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.2.454.00)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ettest)
ettestdr =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.2.2.x)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ettestdr)
while i am trying to tnsping ettest , i am getting success but i failing to tnsping ettestdr.
Kindly tell me if i am doing anything wrong?
BR
SphinxIf they are both on the same server, why do you specify two different IP addresses?
And "10.2.2.x" is not avalid IP address. That "x" must be a number in the range 0 to 255. -
Tnsnames and listener SDU parameter
In all my time working on Oracle I have not yet implemented the SDU parameter. I now have to look at a database (10gr2) which appears to be exhibiting large amounts of NETWORK waits. I have seen a few documents relating to SDU but am after peoples experience with the parameter. What value have people given the parameter? The MTU on the NICS is 1500 and I have seen suggestions that the SDU should be related to this value.
regards
Alanfyi, I haven't gotten positive (or any) results from changing sdu/tdu values on Windows systems (though its been awhile since I've tried). I'm told changing them on UNIX systems can be effective in the right circumstances.
There are (were) articles like this on Metalink, uh, My Oracle Support provided 1. you have an account, 2. it is working when you try to get in, and 3. you can actually find the artcles from a search since the upgrade last month -
What is the correct procedure to connect and collect events from IPS through SDEE
What is the correct procedure to connect and collect events from IPS through SDEE?
We are a 3rd party application, that needs to collect and analyze the IPS events for a client.
Currently the approach we are following is
1) get a SubscriptionId using the URL below
https://IP_Of_IPS/cgi-bin/sdee-server?action=open&events=evIdsAlert&force=yes
This gets us a subscriptionId which is used in step 2
2) Collect events from the url below
https://IP_Of_IPS/cgi-bin/sdee-server?confirm=yes&action=get&subscriptionId=sub-sample&startTime=1362699903575432000
a few more notes here are
- starttime is current time in nanoseconds
the peculiar problem here is that, even though we specify todays date, SDEE returns us the events from mid Feb (today is march 7)
we did try a few combinations, but are out of ideas.
any help or direction would be appreciatedThis is more an application issue than an IPS issue.
Have you compared your app against other apps [IME]? -
Hostname is .local and Kerberos problems
Hi
Having problems with our new xserve. The computername as set in server admin is 'serverx' which is giving a local hostname of serverx.local. I have DNS running with one zone of <domainname>.org.uk, servername of serverx giving a FQSN or serverx.<domainname>.org.uk
However i had an email out from the mailman mailing list asking for permission to allow a post to a mailing list and it had the link to click on as http://Serverx.local/mailman/.....
Obviously i'd like this to be http://serverx.<domainname>.org.uk
This also extends to the server's searchbase, which on the old server we migrated from was dc=<hostname>,dc=org,dc=uk which now is showing as dc=serverx,dc=local under opendirectory - settings - protocals
The Open directory pane shows everything running apart from Kerberos which is stopped. If i try and kerberize the server using the realm name of <DOMAINNAME>.ORG.UK it whirrs away before returning me to the 'kerberize the open directory master' dialogue. Looking at the slapconfig log i get the errors...
The KDC is not running error = 3
failed to configure error = 3
Is there a way to change this so that the domain name and seachbase are correct and how do i get the KDC to run so i can kerberize the server.
Hope some of that makes sense...
Thanks
Quad 2GHz Intel Xserve Mac OS X (10.4.9) 2GB ramI had similar issues with .local and trying to migrate away. I decided to manually massage a backup into the non-.local domain. It worked for me, but I will stress that you should make a copy of your backup to do this on.
First, decide what new domain you want to use. If you're building on a private network, you can use a non-valid domain, like '.int' . Setup your DNS.
Use Server Admin to make a backup of your OD Domain. Make a copy. Burn it to CD. We don't want the original to change.
Kerberize to the new domain. Make a new backup and burn it to CD as well.
Open a modifiable copy of the backup. In it are many files, most of them are straight text files of one flavor or another. Time to get dirty...
Backup.ldif is the big file to work with. You must go in and change all of the olddomain.locals to newdomain.tla (this is pseudocode, please use your own domains where you see these two.) You must also change all of the dc=olddomain,dc=local to dc=newdomain,dc=tla . The fun about this file is that Apple wraps it manually, which makes search and replace tedious, as there will be some of these things at the end of lines. The good news is that they are far from random, so you can search for parts of the name (local is a good search) and find the next iteration. Here are a couple examples...
...dc=ol
ddomain,dc=local
...dc
=olddomain,dc=local
...dc=olddoma
in,dc=local
The key is to search and replace the whole thing at once. I used textedit and pasted the entire offending text into the find box, then replaced with the proper new dc= values. You need not worry about wrapping, the importer doesn't care. The key is to make sure that you get it all.
Now do the same with all of the other files. I didn't touch authservermain, which already had the new Kerberos domain in it. I did modify these files...
Backup.ldif
authserverreplicas
authserveroverflow.x
DSLDAPv3PluginConfig.plist
slapd_macosxserver.conf
local.dump
local.krb5realm
Make sure to check the other files, as different configurations will yield info in different files.
Once you are done with this, it's time to turn your nice pretty domain into a standalone. It appears that the archive and restore tools are much better in 10.4.x that older versions, so it actually works to restore things. There was one caveat. My standalone seemed to ignore the /etc/krb5adm.keytab, which then caused the conversion to Master domain to hang. Move to krb5adm.keytab.old it in case you need to restore.
Make your server a Master again, this time with the new FQDN and search string.
Import your modified backup. Your users should now be in place, although I lost my domain admins in the process.
Finally, backup your domain, revert to standalone, toss the .keytab, convert to Master, and restore. This last step converts the bdb back into text, then back to the bdb. I was having a little strangeness until I did this step, which I believe clears up some cruft.
Here are the benefits that I've seen in this process...
- Passwords translate
- migration is complete to new domain
- easily restorable and/or recoverable
Of course, your mileage may vary. -
What should have in equal tnsnames,ora and listener.ora?
Hi forum members again I'm very new in oracle, and I'm trying to create a sucessfull net service name, using oracle net configuration assitant, but when I try to test it I got this error, .***"""ORA-12514: TNS:listener does not currently know of service requested in connect descriptor."""*** And I have read that tnsnames.ora and listener.ora should have some parameters in common, but exactly I don't know, Do you know what parameters should be? or The ORA-12514 problem , doesn't have relation with the tnsnames.ora and listener files?, If doesn't wich is the reason of this message?
By the way I put what contain these files:
---------------------------------------------------------------------------listener.ora
# listener.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = oracle.gentoo)
(ORACLE_HOME = /opt/oracle/product/10.1.0.3)
(SID_NAME = oracle)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
SAVE_CONFIG_ON_STOP_LISTENER = TRUE
TRACE_LEVEL_LISTENER = USER
/////////////////////////////////////////////////////////////////////////////tnsnames.ora
# tnsnames.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
NORACLE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = tux)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = noracle)
By the way what must be the username and the pasword that ask the ORACLE CONFIGURATION ASSINTANT to test the net service name? Must be the user name and password of the system user?
Thanks in advanceOK, here we go ... extra long as I intend to bookmark this and make reference, as this is a very common question ... skip to the bottom if you want my guess to the solution.
Oracle Net Services (formerly SQL*Net, Net8, Oracle Networking) has two parts - the client and the server side. I'll discuss the server first, then the client.
1) Server, and specifically Listener:
The Oracle Listener is a monitor that listens for Oracle service requests on one or more ports. Usually this is on TCP/IP port 1521. When it gets an Oracle request from any network client, it checks whether it's in the list of Oracle Services for which it is monitoring. If found, it will contact that service, request a connection for the client, tell the service and client where and how to connect, and get itself out of the loop.
Notes:
a) It can listen on behalf of any number of services;
b) A service can be a database instance, an EPG service (the DBMS_EPG is the replacement for Apache in the database in 10gR2), an external job, etc;
c) One listener can listen on behalf of multiple database instances;
d) The services can be listed in the LISTENER.ORA or they can self-register;
e) If databases self-register, they use the initialization parameter LOCAL_LISTENER
f) If self-registering, the listener should be up before the database
g) Shutting down the listener will stop future connections, but has no impact on existing ones.
One frequent point of confusion - a connection request on the local machine may loop out to the network and contact the listener, or it may bypass the listener entirely and use a bequeath adapter. The 'beq' connection is the 'normal' connection by "sqlplus / as sysdba" or "sqlplus system/manager" on the local machine (note that no @instance was used ... in *nix, that is derived from the $ORACLE_SID environment variable)
In your listener.ora, you specify global_dbname=oracle.gentoo and sid_name=oracle. I assume therefore you can find an initoracle.ora or spfileoracle.ora somewhere on your system.
2) Client:
A client that wants to connect to an Oracle service uses the client side of the Oracle Net Services. The definition of client includes: any Oracle client utiltiy (SQLPlus, SQLLoad, Forms, Reports, etc.); an Oracle database instance that wants to make a external procedure call or a dblink; third party tools such as ODBC and JDBC.
In SQL*Net version 1 the connection was made by specifying the target in the connect string ("user/password@host:listener_port:sid") and that is also used these days by many JDBC drivers, especially the Oracle Thin JDBC driver. Oracle's Easy connection mechanism uses a similar variant.
Since SQL*Net Version 2, Oracle has supported the concept of alias translation. Basically it's very similar in concept to DNS - give it the name of the service and tell it where to find the translation table. The translation tables include TNSNAMES.ORA, ONAMES servers (deprecated in 10g), LDAP usng Oracle's OiD. The choice of translation table, and alternate order if the lookup fails in one, is stored in the SQLNET.ORA (if one exists).
Assuming TNSNAMES.ORA, the chain of events is:
- get the alias to look up (in your case NORACLE);
- if the SQLNET.ORA has a DEFAULT_DOMAIN setting, (often =WORLD) append a dot and that value to the alias;
- go to the TNANSMES.ORA file pointed by the TNS_ADMIN variable (environment or registry), or (if not set) the one in the $ORACLE_HOME/network/admin directory;
- look up the first occurance of the alias;
- if found, use the protocol specified to request a connection to the host, usin DNS to unravel the host to an IP address if necessary (in your case TCP/IP, to TUX) ;
- if host connection if made, connect to the listener that is configured for that port (in your case 1521);
- if listener is there, ask it for connection to the service (in your case, you are asking for instance 'noracle');
i if the listener knowwss about the service, it will hand off the request.
Your problem appears to be asking for instance 'noracle' in the tnsnames but listeneing for 'oracle' at the listener. Of course, I can not see any auto-registered instances which you would get from "lsnrctl status" on the server. -
Best Practices: tnsnames.ora and listener.ora
I would like to know if it is better to use the public ip / public hostname or the virtual ip / virtual hostname in the tnsnames.ora and listener.ora files on the servers and clients. I have seen examples where the vip is used for all areas, and I have seen examples where the public has been used in all areas. And of course even some examples where both are used. It makes more sense to me to use the vip, as that is what is failed over But what is the public ip used for if all connections are made to the vip?
ThanksDatabase version: 10.2.0.4
Server OS: Red Hat Linux Enterprise 4.6 (RHEL4)
Oracle Rac configuration: 4 node cluster.
host file:
10.1.1.50 rac1.somcompany.com rac1priv # RAC1
10.1.1.51 rac2.somcompany.com rac2priv # RAC2
10.1.1.52 rac3.somcompany.com rac3priv # RAC3
10.1.1.53 rac4.somcompany.com rac4priv # RAC4
172.16.71.50 rac1.somcompany.com rac1pub # RAC1
172.16.71.51 rac2.somcompany.com rac2pub # RAC2
172.16.71.52 rac3.somcompany.com rac3pub # RAC3
172.16.71.53 rac3.somcompany.com rac4pub # RAC4
172.16.72.50 rac1.somcompany.com rac1vip # RAC1
172.16.72.51 rac2.somcompany.com rac2vip # RAC2
172.16.72.52 rac3.somcompany.com rac3vip # RAC3
172.16.72.53 rac3.somcompany.com rac4vip # RAC4
So if I was to create a tnsnames files on the servers, would I use the vip information as the host or the public information?
Would I use the same tnsnames files for the clients?
Would I use the vip or public address in the listener files?
Thanks -
IPS 4240 -email arlert configuration and Which mode
hi
My topology
1)
Internet-router(2ISP terminated in Single Router-two different Firewall-(ASA5510 and PIX 515e)-->inside interface connected in IPS4240--->From IPS to L33750 Switch.
Is right place to put IPS4240 and tell me IPS in which mode(inline or Promiscous).
2) I am able to see log in IPS 4240, i want to configure IPS alert to my mail id , where i need to start the configuration.? pl advise
thanks
KarthikEmail alert configuration is not supported in IPS/IDS.
I think you can configure in promiscuous mode as Customers requiring promiscuous mode (non-inline) deployments are encouraged to migrate to the Cisco IPS 4240 Sensor, which supports up to 250 Mbps of IPS throughput.
The below URL helps to configure IPS 4240 in promiscuous mode:
http://www.cisco.com/en/US/docs/security/ips/5.1/configuration/guide/cli/cliInter.html#wp1033699 -
How do I receive the alert message from IPS AIP SSM10?
There are several ways to see IDS alerts:
1. Log into the CLI (via ssh, or "session 1" form teh ASA console) and "show event alert past 01:00"
2. Log into the sensor via the web gui (https to the sensor's management IP address)
3. Configure the alerts to be sent to an external event collector or SIM. -
On 3G we cannot send Business emails from either our iPhones or Ipad and this also happens with some WiFi connections but not all. Yet we can always send emails from our Hotmail Account using both 3G and WiFi.
We bought the iPhones and Ipad so that we could send emails while we are out of the Office, but we are not able to do this unless we can find a WiFi connection. Incoming emails are fine. We use IMAP, for Business emails just incase this is relevant and I know that Hotmail is POP3.
Our technical IT knowledge is not great, so we look forward to your suggestions as to how to resolve this.Contact whomever supports the email account and get the correct Outgoing email server settings from them.
Maybe you are looking for
-
How do you transfer tv shows (or movies) purchased on AppleTV 2 to iTunes
I recently purchased an entire TV Season via my Apple TV 2. While I could download it to my iPad or iPhone or stream it on my Apple TV 2, I could not download it through iTunes. Since I also have an original Apple TV, it would be nice to be able to
-
I just bought a computer how do sych my iPhone
I downloaded iTunes, plugged in my iPhone and nothing happen. It only asked me if I wanted to update my system. I press download but it said I had to transfer my files fist...
-
Hi, Is anyone experienced with the following error when displaying image from DMP 4305G as local or remote url? Imge File:///tmp/ftproot/usb_1/.... cannot be displayed because it contains errors . Imge Jpeg/gif file displaying fine but after warning
-
Hoc can u find shortest path from a Map of a building
i have to find a shortest path on a map of building how should i do it any good idea, i m newbee plz help me here
-
How to stop prompts in Dreamweaver CS3?
Hello, I am using Dreamweaver CS3 with Windows XP. I want to stop Dreamweaver from prompting me everytime I use the image hotspot feature. I have a ton of hotspots I need to place and I don't like the extra step of clicking that prompt off. I have se