The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
getting thousand of permissions invinzin21 Shell Programming and Scripting 13 12-20-2007 04:25 AM
removing thousand of carriage returns using sed ml5003 Shell Programming and Scripting 4 06-09-2006 06:22 PM
65 thousand dollar question mud What's on Your Mind? 10 10-22-2005 02:35 PM
how do u resolve this???? zizu UNIX for Dummies Questions & Answers 1 02-14-2005 06:16 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-15-2008
yajneshilu yajneshilu is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 5
Smile Try thousand times could not resolve famous ORA-12514 error

It is related to Linux, Oracle 9.2.0. I am new to Oracle.

I am trying to connect to Oracle database say A, but as I am running this command dbstart the error is

“ORA-12514: TNS: listener could not resolve SERVICE_NAME given in connect descriptor”

I have successfully started lsnrctl. Here are respective ora files. Please tell me where I am wrong?

My ORACLE_HOME is set as:
/home/oracle/product/9.2.0

Here are my tnsnames.ora, listener.ora & sqlnet.ora files. For clarification database names are "Pana" & "Pana2", host name is "pana".

TNSNAMES.ORA::
PANA2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = pana)(PORT = 1521)

(CONNECT_DATA = (SERVER = DEDICATED)
(SERVICE_NAME = Pana)
)
)

PANA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = pana)(PORT = 1521)
(CONNECT_DATA = (SERVER = DEDICATED)
(SERVICE_NAME = Pana)
)
)


LISTENER.ORA:

LISTENER =
(ADDRESS = (PROTOCOL = TCP) (HOST = pana)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DES =
(GLOBAL_DBNAME = Pana2)
(ORACLE_HOME = /home/oracle/product/9.2.0)
(SID_NAME = Pana)
)
(SID_DES =
(GLOBAL_DBNAME = Pana)
(ORACLE_HOME = /home/oracle/product/9.2.0)
(SID_NAME = Pana)
)
)

SQLNET.ORA::
SQLNET.AUTHENICATION_SERVICE = (NONE)
NAMES.DEFAULT_DOMAIN = localadmin
NAMES.DIRECTORY_PATH = (TNSNAMES, ONAMES, HOSTNAME)
NAMES.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(PORT = 1521)
(HOST = Pana2)
)
(ADDRESS =
(PROTOCOL = TCP)
(PORT = 1521)
(HOST = Pana)
)
)
  #2 (permalink)  
Old 11-15-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,805
This error is primarily caused by:
1. Syntax error or other error in tnsnames.ora make sure parentheses match
2. HOST string in TNSNAMES does not resolve. you have pana can you tnsping pana?
3. CONNECT_DATA - I do not see that inyour tnsnames

Instead of me doing this by remote control, you do it using this guide:
ORA-12154 - Oracle FAQ

Check everything, assume nothing on your side is correct.
  #3 (permalink)  
Old 11-17-2008
yajneshilu yajneshilu is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 5
I have corrected the syntax error as:

TNSNAMES.ORA::
PANA2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = pana)(PORT = 1521)

(CONNECT_DATA = (SERVER = DEDICATED))
(SERVICE_NAME = Pana)
)
)

&

have changed SID_DES to SID_DESC in listener.ora.

Also tnsping host pana & the reply is OK.

There is CONNECT_DATA in tnsnames.

Does initorcl.ora has any thing to do with this problem, I have copied & rename "initorcl.ora" as "initPana.ora", will be of great help if you will help me in this regard, it is verry important for me to resove this issue ASAP.
  #4 (permalink)  
Old 11-17-2008
yajneshilu yajneshilu is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 5
Thanks for your cooperation, this problem is resolved. There is another necessary file which play an important role is names.ora which was not there in my machine. I created that file accordingly, & check the syntax in tnsnames.ora, listener.ora & sqlnet.ora.

Thank you all
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0