- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Question about ORA-12505: TNS:listener could n...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 03:09 AM
тАО09-01-2003 03:09 AM
Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = test)(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/oracle/product/8.1.7)
(PROGRAM = extproc)
)
)
tnsnames.ora as follows
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
CONNECT_TIMEOUT_LISTENER = 10
MRTG=
(DESCRIPTION =
(ADDRESS = (PROTOCOL= TCP)(Host= 10.25.10.228)(Port= 1521))
(CONNECT_DATA = (SID = MRTG))
)
my env variable setting as follows
HOME=/
HZ=100
IFS=
LOGNAME=root
MAIL=/var/mail/root
MAILCHECK=600
NLS_LANG=American_America.UTF8
OPTIND=1
ORACLE_BASE=/oracle/app/oracle
ORACLE_HOME=/oracle/app/oracle/product/8.1.7
ORACLE_SID=mrtg
ORA_NLS33=/oracle/app/oracle/product/8.1.7/ocommon/nls/admin/data
PATH=/usr/sbin:/usr/bin:/usr/local/bin:/oracle/app/oracle/product/8.1.7/bin
PS1=#
PS2=>
SHELL=/sbin/sh
TERM=vt100
TZ=ROC
each time I execute
sqlplus mrtg/password@mrtg
always apear
SQL*Plus: Release 8.1.7.0.0 - Production on Mon Sep 1 18:52:53 2003
(c) Copyright 2000 Oracle Corporation. All rights reserved.
ERROR:
ORA-12505: TNS:listener could not resolve SID given in connect descriptor
Enter user-name:
Result of tnsping
TNS Ping Utility for Solaris: Version 8.1.7.0.0 - Production on 01-SEP-2003 19:05:49
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(PROTOCOL=TCP)(Host=10.25.10.228)(Port=1521))
OK (10 msec)
before this, everything is working fine, then one day, it apears the
ORA-00604: error occurred at recursive SQL level 2
ORA-04031: unable to allocate 4048 bytes of shared memory ("sharedpool","TRIGGER$","sga heap","state objects")
ORA-12505: TNS:listener could not resolve SID given in connect descriptor
The 00604 and 04031 already been solve, but 12505 keep bug me for about two weeks ago.
even re-install oracle db can't solve this problem, do anyone here have any idea to solve this ?
your help will be appreicate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 03:19 AM
тАО09-01-2003 03:19 AM
Re: Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
you should have similar entries in the tnsnames.ora file located at $ORACLE_HOME/network/admin which sits along with listener.ora.
Entries should be like
mrtg=
(DESCRIPTION =
(ADDRESS = (PROTOCOL= TCP)(Host= 10.25.10.228)(Port= 1521))
(CONNECT_DATA = (SID = mrtg)
)
Revert with the file entries.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 03:26 AM
тАО09-01-2003 03:26 AM
Re: Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 03:39 AM
тАО09-01-2003 03:39 AM
Re: Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
listener.ora
tnsnames.ora
sqlnet.ora
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 04:19 AM
тАО09-01-2003 04:19 AM
Re: Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 04:27 AM
тАО09-01-2003 04:27 AM
Re: Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
If this exists on this machine then I would like two changes
1.In this line in listener.ora file
(ADDRESS = (PROTOCOL = TCP)(HOST = test)(PORT = 1521))
you have specified host as test.
Is test your hostname of the machine.
If not change it properly to the hostname or correct ip.
2.Add mrtg in the listener.ora file so that the listener for that database comes active.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = //test//)(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/oracle/product/8.1.7)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = mrtg)
(ORACLE_HOME = /opt/app/oracle/product/8.1.7 )
)
)
Revert on the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 04:30 AM
тАО09-01-2003 04:30 AM
Re: Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
$lsnrctl stop
$lsnrctl start
REvert with the output
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 05:22 AM
тАО09-01-2003 05:22 AM
Re: Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
`sqlplus mrtg/password` to login, but unable to use `sqlplus mrtg/password@test` to login,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 05:56 AM
тАО09-01-2003 05:56 AM
Re: Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
what is the output of the command:
lsnrctl status
?
seems like your listener isn't listening properly.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2003 11:24 PM
тАО09-01-2003 11:24 PM
Re: Question about ORA-12505: TNS:listener could not resolve SID given in connect descriptor
First, please change your .profile or environment variable to upper case,
ORACLE_SID=MRTG
Next, also add the entry for the MRTG instance in listener.ora but don't use GLOBAL_DBNAME (unless you are using domains, etc.). Use the SID_NAME=MRTG.
I think the other members have also posted a sample entry for both files. They should have consistent values as they have suggested. Also, the output of 'lsnrctl services' can help us tell you more.
regards
anand