LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-02-2004, 12:13 PM   #1
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Oracle 10g Client Connection Issue


Hi there!

Well, I managed a successful installation of Oracle 10g on White Box EL 3 using Werner Puschitz tutorial few days back. The next step is to connect clients running Windows 2K/XP with my database server. However, when I try to log in with username scott, password tiger and Host String=test (the Oracle SID), I get the error

TNS: no listener

I have searched for this error on google and noticed that there are 3 files that are important in context of Oracle Client connectivity -

Listener.ora, sqlnet.ora and tnsnames.ora

Now, I also noticed that my client has sqlnet.ora and tnsnames.ora only. Can the absence of Listener.ora on my client machine be the reason for the above error ?

As far as Oracle Installation and client connectivity goes, I am a beginner, so thats why I dont have much idea about the above 3 files.

I have used the following commands on the oracle server when logging in as oracle

lsnrctl start
emctl start dbconsole
isqlplusctl start
dbstart

However, till now, I havent come across any document that could guide me at connecting a Windows client to linux database server.....So I'd needing some help here...can anyone tell me where am I going wrong ?

Regards,

--amit
 
Old 09-03-2004, 11:08 PM   #2
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Original Poster
Rep: Reputation: 31
No replies even after 38! views ?...I hope the mods/gurus/LQ addicts have also read my problem
 
Old 09-07-2004, 08:05 AM   #3
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Original Poster
Rep: Reputation: 31
Hey friends!

Well, I expected someone to help me out here as I know that there are lot of people Installing and using Oracle 10g all around the world.....Even after 48 views, no one suggested anything.....

Anyways, I have found out the solution...Hope you friends will benefit from this information....

As I wrote in my first post, there are 3 files that are important with respect to Oracle

1. Listener.ora
2. tnsnames.ora
3. sqlnet.ora

So, I will start from the beginning...

(I'd like to inform u that I am just a beginner as far as Oracle goes...)...I chose the 'CUSTOM' method of Oracle 10g client installation and selected Oracle SQL*Plus, Oracle Network tools, Oracle 10g Client and few others that looked relevant to me

After Installating the Client, I copied Listener.ora from the server to my client. The files tnsnames.ora and sqlnet.ora were auto-generated by Oracle Configuration tools...

( After Creating this file 'listener.ora' on the client machine, restart the listener on Oracle Server using the command 'lsnrctl stop' and then 'lsnrctl start')

----------------------------
Listener.ora
-----------------------------


(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\Oracle)
(PROGRAM = extproc)
)
)

TRACE_LEVEL_LISTENER0 = OFF

LISTENER =
(DESCRIPTION_LIST =
( DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.20) (PORT = 1521))
)
)
)

**************************************************************************

---------------------------------
SQLNET.ORA
---------------------------------

# sqlnet.ora Network Configuration File:
C:\Oracle\product\10.1.0\Client_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.

SQLNET.AUTHENTICATION_SERVICES = (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES. HOSTNAME)
***********************************************************************

----------------------------------
TNSNAMES.ORA
-----------------------------------
# tnsnames.ora Network Configuration File:
C:\Oracle\product\10.1.0\Client_1\network\admin\tnsnames.ora
# Generated by Oracle Configuration tools.

TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.20) (PORT = 1521))
)

(CONNECT_DATA =
(SID = test)
)
)
=======================================================

Now run SQL*Plus and connect as user scott/tiger and use host string as your SID ('test' in my case)

I used the user 'system' to connect to SQL*Plus and I had set the password for users 'system', 'sys' , 'dba' ..etc at the time of oracle server installation on WBEL 3.0, so u should keep that in mind when using any of these users to connect to the database....

Thats it, the windows client should now be able to connect to your linux server........I would like to hear if this information helped you guys.....

Please feel free to correct me if I have been wrong anywhere....

Regards,

--amit
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10g on fedora jkmartha Linux - Software 1 07-21-2005 07:45 AM
Oracle 10g on Mandrake 10.0 ? cafletch Mandriva 0 09-15-2004 07:40 PM
no listener error when trying to connect to oracle 10g on linux from windows client kheldar Linux - Networking 1 07-25-2004 04:00 AM
Which executables are most useful in Oracle 10g Client? deanbrown3d Linux - Newbie 1 07-01-2004 02:43 PM
Oracle 10G vs 9i sashie Linux - Software 0 06-07-2004 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:05 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