![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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) ) ) |
|
||||
|
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. |
|
||||
|
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. |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|