niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Tools
SQLPlus and Linux
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Laurenz Albe
*nix forums Guru


Joined: 21 Feb 2005
Posts: 478

PostPosted: Mon Jul 17, 2006 8:50 am    Post subject: Re: SQLPlus and Linux Reply with quote

Quosek <qosek@o2.pl> wrote:
Quote:
I've installed oracle-instantclient, oracle-skd and oracle-sqlplus.
everything works fine, except tnsnames...

but I'm not able to use tnsnames.
I've created (ok - used my windows tnsnames) TNSNAMES.ORA as below:

DVLPBIS=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.3.1.159)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DVLPBIS)

set TNS_ADMIN to directory in which I have TNSNAMES.ORA

and I've got error: "ORA-12154: TNS:could not resolve the connect
identifier specified" (sqlplus xx/xx@DVLPBIS)

what's going on ?

The tnsnames.ora entry is syntactically wrong. It will never work.

Count the parentheses.

Yours,
Laurenz Albe
Back to top
Quosek
*nix forums beginner


Joined: 06 Jan 2006
Posts: 13

PostPosted: Sun Jul 09, 2006 9:18 am    Post subject: Re: SQLPlus and Linux Reply with quote

for me it's problem with visibility TNSNAMES.ORA.... (when i put whole
connection string in sqlplus command directly it's working - so it's now
not prolbem of the structure o TNSNAMES)

should this file by called TNSNAMES.ORA, or tsnames.ora ('ve tried both
of them)?
what about sqlnet.ora ? capital, or not ? now I've got in it:

NAMES.DIRECTORY_PATH=(TNSNAMES)
SQLNET.AUTHENTICATION_SERVICES= (NONE)

only TNS_ADMIN set to directory with tnsnames and sqlnet, or sth more ?

and why everighing is working under windows, and there are so big
problems with linux (and where is tnsping ??)

--
Pozdrawiam
Quosek
qosek@o2.pl
Back to top
Quosek
*nix forums beginner


Joined: 06 Jan 2006
Posts: 13

PostPosted: Sun Jul 09, 2006 8:44 am    Post subject: Re: SQLPlus and Linux Reply with quote

ianal Vista napisał(a):

Quote:
Why do you have SERVICE_NAME=DVLPBIS in one place & sid=DVLPBIS in the
other?

I've tries both methods in TNSNAMES, and none of them worked (this form
with sid was written by me, and the other generated by windows)

Quote:

SET ORACLE_HOME=/usr/lib/oracle/10.2.0.20

SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly


--
Pozdrawiam
Quosek
qosek@o2.pl
Back to top
IANAL_Vista
*nix forums Guru Wannabe


Joined: 27 Nov 2005
Posts: 142

PostPosted: Sun Jul 09, 2006 1:59 am    Post subject: Re: SQLPlus and Linux Reply with quote

Quosek <qosek@o2.pl> wrote in news:e8pb9m$ngh$1@nemesis.news.tpi.pl:

Quote:
Hello
I've installed oracle-instantclient, oracle-skd and oracle-sqlplus.
everything works fine, except tnsnames...
a can connect to remote database using:

sqlplus
xx/xx@"(description=(address=(host=10.3.1.159)(protocol=tcp)(port=
1521)
)(connect_data=(sid=DVLPBIS)))"

but I'm not able to use tnsnames.
I've created (ok - used my windows tnsnames) TNSNAMES.ORA as below:

DVLPBIS=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=
10.3.1.
159)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DVLPBIS)

set TNS_ADMIN to directory in which I have TNSNAMES.ORA

and I've got error: "ORA-12154: TNS:could not resolve the connect
identifier specified" (sqlplus xx/xx@DVLPBIS)

what's going on ?

I've tried also setting ORACLE_HOME to
/usr/lib/oracle/10.2.0.20/client but then I get error:

SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly

Has anyone any idea ?


Why do you have SERVICE_NAME=DVLPBIS in one place & sid=DVLPBIS in the
other?

SET ORACLE_HOME=/usr/lib/oracle/10.2.0.20
Back to top
Quosek
*nix forums beginner


Joined: 06 Jan 2006
Posts: 13

PostPosted: Sat Jul 08, 2006 10:21 pm    Post subject: SQLPlus and Linux Reply with quote

Hello
I've installed oracle-instantclient, oracle-skd and oracle-sqlplus.
everything works fine, except tnsnames...
a can connect to remote database using:

sqlplus
xx/xx@"(description=(address=(host=10.3.1.159)(protocol=tcp)(port=1521))(connect_data=(sid=DVLPBIS)))"

but I'm not able to use tnsnames.
I've created (ok - used my windows tnsnames) TNSNAMES.ORA as below:

DVLPBIS=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.3.1.159)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DVLPBIS)

set TNS_ADMIN to directory in which I have TNSNAMES.ORA

and I've got error: "ORA-12154: TNS:could not resolve the connect
identifier specified" (sqlplus xx/xx@DVLPBIS)

what's going on ?

I've tried also setting ORACLE_HOME to /usr/lib/oracle/10.2.0.20/client
but then I get error:

SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly

Has anyone any idea ?

--
Pozdrawiam
Quosek
qosek@o2.pl
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 4:25 am | All times are GMT
navigation Forum index » Databases » Oracle » Tools
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Help required for configuring the VPN Server in Linux SHERDIL security 0 Sun Nov 19, 2006 2:22 pm
No new posts 2 USB webcams on Linux 2.6.15.4 produce a hang Suyog hardware 1 Fri Jul 21, 2006 7:27 am
No new posts Is there C/C++ corresponding function in Linux for Java's... xiebopublic@gmail.com apps 4 Fri Jul 21, 2006 3:22 am
No new posts Is there C/C++ corresponding function in Linux for Java's... xiebopublic@gmail.com C++ 1 Fri Jul 21, 2006 2:44 am
No new posts Why Redhat Linux has no RPM for PHP 5?! RC PHP 3 Thu Jul 20, 2006 7:20 pm

Loans | Advertising | Free Ringtones | Loans | Books
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.4442s ][ Queries: 20 (0.3249s) ][ GZIP on - Debug on ]