LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-26-2013, 01:29 AM   #1
anwar-it0
LQ Newbie
 
Registered: Mar 2012
Location: Dubai -UAE
Distribution: Redhat - CentOS- Ubuntu
Posts: 22

Rep: Reputation: Disabled
Question Oracle 11g based on CentOS listener issue


Good day,
I installed Oracle 11g R2 on CentOS 6.4 it’s successfully and run it .. it worked locally with no problems
But when I tried to connect it using LAN I failed
and error ORA-12504 was the result
there is no IPTables or SELinux issue because I stop it
the server is pingable from PC
I’m trying to connect using this command :
Sqlplus system/password@hostname AS SYSDBA
Result is :
"ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA"
Any suggestions ..
Regards
 
Old 05-26-2013, 02:02 AM   #2
anwar-it0
LQ Newbie
 
Registered: Mar 2012
Location: Dubai -UAE
Distribution: Redhat - CentOS- Ubuntu
Posts: 22

Original Poster
Rep: Reputation: Disabled
BTW ..
i tried "tnsping hostname"
the result was
OK (0 msec) and it's normal result
means the listener is working
 
Old 05-27-2013, 10:11 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by anwar-it0 View Post
Good day,
I installed Oracle 11g R2 on CentOS 6.4 it’s successfully and run it .. it worked locally with no problems But when I tried to connect it using LAN I failed
and error ORA-12504 was the result there is no IPTables or SELinux issue because I stop it the server is pingable from PC I’m trying to connect using this command:
Sqlplus system/password@hostname AS SYSDBA

Result is:
"ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA"
Did you try to look up the error on the Oracle knowledegbase, and (since Oracle is NOT a free product, and you're paying for it, right??), contacted Oracle support???

https://forums.oracle.com/forums/thr...40573&tstart=0
http://www.dbasupport.com/forums/sho...n-CONNECT_DATA
 
Old 05-27-2013, 10:53 AM   #4
hyperdaz
Member
 
Registered: Sep 2004
Location: UK
Distribution: CentOS 5.5
Posts: 44

Rep: Reputation: 1
http://www.dbforums.com/oracle/16768...nect_data.html

I had the same issue quite some time ago... My issue I believe was a mismatch in tnsnames.ora between placing the IP and the servers hostname...

Code:
		# tnsnames.ora Network Configuration File: /opt/oracle11g/product/11.2.0/db1//network/admin/tnsnames.ora
		# Generated by Oracle configuration tools.
		
		XXXXX =
		  (DESCRIPTION =
		    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname )(PORT = xxxx))
		    (CONNECT_DATA =
		    )
		      (SERVER = DEDICATED)
		      (SID_NAME = xxxxx)
		    )
		  )
		
		LISTENER_XXXXX =
		    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname )(PORT = xxxx))
Don't know if this is your issue, I would double and triple check the tnsnames.ora and listen.ora
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
oracle 11g R2 installation error _ CentOS aayash Linux - Newbie 4 04-29-2013 08:27 AM
LXer: How to install Oracle 11g R2 Database server on Centos 6.3 LXer Syndicated Linux News 0 01-03-2013 01:03 PM
[SOLVED] Oracle 11G error: listener refused the connection with the following error ora-12505 apss_evaluator Linux - Server 3 05-16-2012 05:34 AM
error while installing oracle 11g in CentOs 5.3 veeravicky Linux - Software 3 03-09-2010 06:53 PM
trying to intall oracle 11g on centos 5 ramanaonweb@gmail.com Linux - Server 2 06-05-2009 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration