473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

TNSPING works SQLPLUS fails whsn connecting to remote server

why can I TNSPING but I can not connect using SQLPLUS?

Oracle 10g
Slackware 10 install 2.6.6 kernel

exports
ORACLE_BASE=/home/oracle
ORACLE_HOME=/home/oracle/product/10g
ORACLE_SID=ora9i
ORACLE_TERM=xterm
error in sqlplus:
bash-2.05b$ sqlplus wells/blah@test

SQL*Plus: Release 10.1.0.2.0 - Production on Wed Aug 18 11:30:06 2004

Copyright (c) 1982, 2004, Oracle. All rights reserved.

ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified


TNSPING:
bash-2.05b$ tnsping test

TNS Ping Utility for Linux: Version 10.1.0.2.0 - Production on 18-AUG-2004 11:31:28

Copyright (c) 1997, 2003, Oracle. All rights reserved.

Used parameter files:
/home/oracle/product/10g/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
)SERVICE_NAME = test.clt.fisonline.com).5.30)(PORT = 1521))
OK (40 msec)

Jul 19 '05 #1
3 37882
The windows file tnsnames.ora had contrl characters
that messed up SQLPLUS!!

On Wed, 18 Aug 2004 11:33:15 -0400, 91YJ_Renegade wrote:
why can I TNSPING but I can not connect using SQLPLUS?

Oracle 10g
Slackware 10 install 2.6.6 kernel

exports
ORACLE_BASE=/home/oracle
ORACLE_HOME=/home/oracle/product/10g
ORACLE_SID=ora9i
ORACLE_TERM=xterm
error in sqlplus:
bash-2.05b$ sqlplus wells/blah@test

SQL*Plus: Release 10.1.0.2.0 - Production on Wed Aug 18 11:30:06 2004

Copyright (c) 1982, 2004, Oracle. All rights reserved.

ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified


TNSPING:
bash-2.05b$ tnsping test

TNS Ping Utility for Linux: Version 10.1.0.2.0 - Production on 18-AUG-2004 11:31:28

Copyright (c) 1997, 2003, Oracle. All rights reserved.

Used parameter files:
/home/oracle/product/10g/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
)SERVICE_NAME = test.clt.fisonline.com).5.30)(PORT = 1521))
OK (40 msec)


Jul 19 '05 #2
91YJ_Renegade <sp*****@waxhaw.net> wrote in message news:<pa****************************@waxhaw.net>.. .
The windows file tnsnames.ora had contrl characters
that messed up SQLPLUS!!

On Wed, 18 Aug 2004 11:33:15 -0400, 91YJ_Renegade wrote:
why can I TNSPING but I can not connect using SQLPLUS?

Oracle 10g
Slackware 10 install 2.6.6 kernel

exports
ORACLE_BASE=/home/oracle
ORACLE_HOME=/home/oracle/product/10g
ORACLE_SID=ora9i
ORACLE_TERM=xterm
error in sqlplus:
bash-2.05b$ sqlplus wells/blah@test

SQL*Plus: Release 10.1.0.2.0 - Production on Wed Aug 18 11:30:06 2004

Copyright (c) 1982, 2004, Oracle. All rights reserved.

ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified


TNSPING:
bash-2.05b$ tnsping test

TNS Ping Utility for Linux: Version 10.1.0.2.0 - Production on 18-AUG-2004 11:31:28

Copyright (c) 1997, 2003, Oracle. All rights reserved.

Used parameter files:
/home/oracle/product/10g/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
)SERVICE_NAME = test.clt.fisonline.com).5.30)(PORT = 1521))
OK (40 msec


Thnak you. It is working.
Jul 19 '05 #3
91YJ_Renegade <sp*****@waxhaw.net> wrote in message news:<pa****************************@waxhaw.net>.. .
The windows file tnsnames.ora had contrl characters
that messed up SQLPLUS!!

On Wed, 18 Aug 2004 11:33:15 -0400, 91YJ_Renegade wrote:
why can I TNSPING but I can not connect using SQLPLUS?

Oracle 10g
Slackware 10 install 2.6.6 kernel

exports
ORACLE_BASE=/home/oracle
ORACLE_HOME=/home/oracle/product/10g
ORACLE_SID=ora9i
ORACLE_TERM=xterm
error in sqlplus:
bash-2.05b$ sqlplus wells/blah@test

SQL*Plus: Release 10.1.0.2.0 - Production on Wed Aug 18 11:30:06 2004

Copyright (c) 1982, 2004, Oracle. All rights reserved.

ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified


TNSPING:
bash-2.05b$ tnsping test

TNS Ping Utility for Linux: Version 10.1.0.2.0 - Production on 18-AUG-2004 11:31:28

Copyright (c) 1997, 2003, Oracle. All rights reserved.

Used parameter files:
/home/oracle/product/10g/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
)SERVICE_NAME = test.clt.fisonline.com).5.30)(PORT = 1521))
OK (40 msec)

Thank you. It is working :)
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: lhansen | last post by:
I've seen posts similar to this, but have not found the magic bullet to solve my problem.. I have an asp page (see source code below) running on IIS 6.0 on Win2003 Server that tries to get file...
4
by: banz | last post by:
Hello I have a problem to resolve: I wrote a Perlscript which caches data from a server (local on my machine) I would like to have a other connection to a remote server but I don't know how to...
22
by: Kristof Thys | last post by:
Hello, I'm developing a C# - windows forms application. To get some information for my application, I'm connecting to an URL, wich gives me XML generated using php. With 90% of the users, this...
0
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
1
by: Thom Little | last post by:
I have a simple web service that requires no input and returns a character string. I created the service and FTPd it to a remote server. The .dll to the .bin directory and the single .asmx file...
2
by: Tor Inge Rislaa | last post by:
Database on remote server On the remote server where my ASP.NET application is located there is no SQL Server or SQL Server Express. When I test my application locally it works fine because...
2
by: Vadim Malishev | last post by:
Hello, Can anybody help to solve the following problem? My Windows Service trying to access remote machine to get WindowsDirectory Property over Win32_OperatingSystem WMI class. Both servers...
3
by: 91YJ_Renegade | last post by:
why can I TNSPING but I can not connect using SQLPLUS? Oracle 10g Slackware 10 install 2.6.6 kernel exports ORACLE_BASE=/home/oracle ORACLE_HOME=/home/oracle/product/10g ORACLE_SID=ora9i...
8
by: Brett | last post by:
I wrote an ASP.NET application that queries a SQL Server database (on a different box from the web server) and displays the result in a GridView. The datasource for the GridView is a SQLDataSource....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.