Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Use SQL*Plus 10g to connect to 9i databases

RE: Use SQL*Plus 10g to connect to 9i databases

From: Jacques Kilchoer <Jacques.Kilchoer_at_quest.com>
Date: Wed, 13 Sep 2006 17:35:52 -0700
Message-ID: <22EC50E60931494FA666A8CF8260C45B5D9A36@ALVMBXW05.prod.quest.corp>


This may be a dumb idea, but if your entry looks like this  

XXX.DOMAIN.COM =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MY_HOST)(PORT = 1521))     (CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = MY_SERVICE.DOMAIN.COM)
(INSTANCE_NAME = MY_INSTANCE)

    )
  )  

you could try changing it to this  

XXX.DOMAIN.COM =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MY_HOST)(PORT = 1521))     (CONNECT_DATA =
(SERVER = DEDICATED)
(SID = MY_INSTANCE)

    )
  )  

or vice-versa  


De : oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] De la part de Stephen Andert Envoyé : mercredi, 13. septembre 2006 17:13 À : Bobak, Mark
Cc : oracle-l_at_freelists.org
Objet : Re: Use SQL*Plus 10g to connect to 9i databases

Mark,  

If I use SQL*Plus for Windows version 9, it works. I copied the tnsnamed.ora from the Ora9 HOME to the Ora10 HOME, so the connect info should be the same.  

DB and listener are up.

Thanks for any thoughts.  

Stephen  

On 9/13/06, Bobak, Mark <Mark.Bobak_at_il.proquest.com> wrote:

        Stephen,                             

	The error means that you've connected to a listener at the host/port specified in your connect string, but the listener you've connected to doesn't recognize the value of SERVICE_NAME specified in the connect string.  
	On the database server, where the listener is running, if you do a 'lsnrctl services', is the service you're trying to connect to listed there?  Also on the database server, what if you connect to the database with "/ as sysdba", and do 'alter system register;"?  Then try the lsnrctl command again, is the service listed?  Did that fix the problem?  If not, are there multiple listeners on that database server?  Maybe you're connecting to the wrong one, and it doesn't support that service? 
	 
	 
	Hope that helps,
	 
	-Mark
	 

	-- 
	Mark J. Bobak 
	Senior Oracle Architect 
	ProQuest Information & Learning 

	"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects."   --Robert A. Heinlein 


	 

________________________________

	From: oracle-l-bounce_at_freelists.org [mailto: oracle-l-bounce_at_freelists.org <mailto:oracle-l-bounce_at_freelists.org> ] On Behalf Of Stephen Andert
	Sent: Wednesday, September 13, 2006 5:36 PM
	To: oracle-l_at_freelists.org
	Subject: Use SQL*Plus 10g to connect to 9i databases
	
	 
	
	SQL*Plus 10.2.0.1 <http://10.2.0.1/>  is installed on my laptop and I want to use it to connect to as many databases as I can. (mainly 9i variants)  I have updated the tnsnames.ora in the 10g home to contain all the entries, and when I use the command-line tnsping, it resolves the names, but when I use 10G SQL*Plus for Windows, it tells me 
	 

	ERROR:
	ORA-12514: TNS:listener does not currently know of service requested in connect
	descriptor

	SP2-0640: Not connected

	What am I missing?
	 
	Bonus points if you can tell me how to connect 10g EM Database Control to other databases (i.e. especially 9i)
	
	TIA
	-- 
	Stephen Andert
	http://spaces.msn.com/andert-news/
	
	Aesop - "After all is said and done, more is said than done." 




-- 
Stephen Andert
http://spaces.msn.com/andert-news/

Aesop - "After all is said and done, more is said than done." 

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Sep 13 2006 - 19:35:52 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US