my oracle version is Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
my platform is as follow:
- Code: Select all
SYS@orcl>select platform_id, platform_name from v$database;
PLATFORM_ID
-----------
PLATFORM_NAME
--------------------------------------------------------------------------------
13
Linux x86 64-bit
tnsname.ora is as follow:
- Code: Select all
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.localdomain)
)
)
when I do the following
- Code: Select all
[oracle@localhost ~]$ sqlplus scott@"localhost/orcl"
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jan 1 02:10:46 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
Enter user-name:
I get the above error, is there any way I can resolve the error?
thanks