Home » RDBMS Server » Server Administration » Can connect at Scott/tiger, but not as Scott/tiger@zen1 and TNS opertion timed out (merged threds)
Can connect at Scott/tiger, but not as Scott/tiger@zen1 and TNS opertion timed out (merged threds) [message #129343] Sun, 24 July 2005 09:58 Go to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
oracle 9i is installed on windows xp standalone machine.
Able to connect as sysdba without giving DB service name, or scott/tiger without giving db service name.
But when try to connect by giving db service name , error occurs as TNS:operation timed out, Pl

solve. Giving the output

SQL> Connect scott
Enter password: *****
Connected.
SQL> Connect scott@zen1
Enter password: *****
ERROR:
ORA-12535: TNS:operation timed out


Warning: You are no longer connected to ORACLE.
SQL>


Reply to oracle_techi@rediffmail.com

[Updated on: Sun, 24 July 2005 10:05]

Report message to a moderator

Re: TNS operation timed out [message #129347 is a reply to message #129343] Sun, 24 July 2005 11:26 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Reported By: oracle_techie On: Sun, 24 July 2005 09:36 In topic: TNS operation timed out
Reason: important

Do not report the posting becuase it is IMPORTANT to you.
Report the message if it is unappropriate/irrelevant/offending.

Re: TNS operation timed out [message #129691 is a reply to message #129347] Tue, 26 July 2005 05:04 Go to previous messageGo to next message
Achchan
Messages: 86
Registered: June 2005
Member
You have only one database with probabely one database_service on your machine,So why do you want to use service_name as connection identifier?
If this is just didactic so go to tnsnames.ora and set service_name parameter.It is by default your global_database name.
-Let me know what heppens
Re: TNS operation timed out [message #130005 is a reply to message #129691] Wed, 27 July 2005 11:40 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
I already have specified service name, pl suggest any solution.
I am sending you TNSNAME.ora FILE

# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

OEMREP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OEMREP)
)
)

INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
)
)

ZEN1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = zen1)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)

ZEN_ZEN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ZEN)(PORT = 1521))
)
(CONNECT_DATA =
(SID = ZEN)
(SERVER = DEDICATED)
)
)

ZEN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = zen)
)
)

SAMEER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(Key = zen))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SAMEER)
)
)

MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mydb)
)
)

-----------------------------------

Following is listener.ora file

# LISTENER.ORA Network Configuration File: C:\oracle\ora92\network\admin\listener.ora
# Generated by Oracle configuration tools.

STARTUP_WAIT_TIME_LISTENER = 60

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora92)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = zen)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = zen)
)
(SID_DESC =
(GLOBAL_DBNAME = mydb)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = mydb)
)
(SID_DESC =
(GLOBAL_DBNAME = zen1)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = zen1)
)
)

TRACE_LEVEL_LISTENER = USER

-----
Re: TNS operation timed out [message #130011 is a reply to message #130005] Wed, 27 July 2005 12:05 Go to previous messageGo to next message
srinivas4u2
Messages: 66
Registered: June 2005
Member
Try specifying the i.p address for the host in tnsnames.ora. And let us know if that helpled.

Also your names are a little confusing!
Specify the dbname correctly.

Hope that helps!

-Sri
icon3.gif  Can connect as Scott/tiger, but not as Scott/tiger@zen1 [message #130188 is a reply to message #129343] Thu, 28 July 2005 11:47 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
system : Oracle 9.2i on XP
Please suggest some solution.

SQL> Connect scott
Enter password: *****
Connected.
SQL> Connect scott@zen1
Enter password: *****
ERROR:
ORA-12535: TNSperation timed out

following are TNSNAMES.ORA & Listener.ora files

# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

OEMREP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OEMREP)
)
)

INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
)
)

ZEN1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = zen1)
)
)


# LISTENER.ORA Network Configuration File: C:\oracle\ora92\network\admin\listener.ora
# Generated by Oracle configuration tools.

STARTUP_WAIT_TIME_LISTENER = 60

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zen)(PORT = 1521))
)
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora92)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = zen)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = zen)
)
(SID_DESC =
(GLOBAL_DBNAME = mydb)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = mydb)
)
(SID_DESC =
(GLOBAL_DBNAME = zen1)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = zen1)
)
)

TRACE_LEVEL_LISTENER = USER

[Updated on: Thu, 28 July 2005 22:06]

Report message to a moderator

Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130192 is a reply to message #130188] Thu, 28 July 2005 12:08 Go to previous messageGo to next message
srinivas4u2
Messages: 66
Registered: June 2005
Member
You have asked the same question elsewhere and we have answered to you there too!

Anyhow, here it is -
Start the listener if it's not started.
Specify the i.p address instead of the hostname and mention the instance name correctly if it's not correct.

Hope that helps!

-Sri
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130237 is a reply to message #130192] Thu, 28 July 2005 22:10 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
sending portion of tnsnames.ora file with Ip address specified
Still it is not working. Pl give solution.

ZEN1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 169.254.126.11)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = zen1)
)
)


Also sending SQLNEt.ora

# SQLNET.ORA Network Configuration File: C:\oracle\ora92\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.

SQLNET.AUTHENTICATION_SERVICES= (NONE)

NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME, ONAMES)
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130246 is a reply to message #130237] Thu, 28 July 2005 23:56 Go to previous messageGo to next message
milind_sri
Messages: 70
Registered: February 2005
Location: Pune
Member
Hi,

Try in your sqlnet.ora with this entry:-SQLNET.AUTHENTICATION_SERVICES= (NTS)

I think it will work and also check that status of listener through LSNRCTL utility.

HTH

Milind.
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130329 is a reply to message #130237] Fri, 29 July 2005 07:10 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
comment all entries in sqlnet.ora and try again.
and you have enable tracing, which is not required unless you are troubleshooting something.
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130386 is a reply to message #130329] Fri, 29 July 2005 12:32 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
I am not getting suggestions that will pin point the problem.
Suggestions I am getting will not get rid of problem
TNS: operation timed out.
PLease help.

Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130408 is a reply to message #130386] Fri, 29 July 2005 16:46 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9102
Registered: November 2002
Location: California, USA
Senior Member
The full text of your error message is:

"TNS:operation timed out

Cause: The requested connection could not be completed within the timeout period specified by the CONNECT_TIMEOUT parameter in LISTENER.ORA. This error arises from the TNSLSNR.

Action: Either reconfigure CONNECT_TIMEOUT to be 0, which means wait indefinitely, or reconfigure CONNECT_TIMEOUT to be some higher value. Or, if the timeout is unacceptably long, turn on tracing for further information."


What this means is that it did not have enough time to do what it needed to do to complete the connection. It could just need more time or it could be that there is something else wrong and no matter how much time you give it, it will not be able to complete it. It is best to see if more time helps first, then if not, diagnose the additional problem. In order to check for a time problem, you can make the process faster, by shutting down everything else first and doing things like using the i.p. address, as already suggested by others, and you can also increase the time alotted. I do not recommend setting the time to 0, because you could end up with something hung, then have to figure out how to terminate it, and just have another problem to deal with. I am also running Oracle 9i on Windows XP and used to get that error frequently, if I had other things running and tried to use a full connect string, which takes longer to validate. I solved the problem, by changing the connect_timeout parameter to 30 seconds. Since you have not already set the parameter, the default is 10 seconds, which is not long enough for windows (or windoze as some like to call it).

So, I suggest that you add a line at the bottom of your listener.ora file that says, "CONNECT_TIMEOUT_LISTENER=30" to increase the time from 10 seconds to 30 seconds or use a larger number, depending on how long you want to wait to ensure that the time limit is not the problem, then restart your computer, for the parameter to take effect. Then try connecting again. If you still have problems, then you will need to do some further diagnosis. You might check task manager, look in processes, and scroll down to system idle process. If the system idle process CPU is not in the 90's when your computer is not doing anything else, then you need to find out what is hogging the CPU time. You might, for example download something like spybot or adaware to find and remove spyware. If that is not the problem, then you will need to do further diagnostics and see what is wrong with your Oracle setup.





Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130427 is a reply to message #130386] Sat, 30 July 2005 03:52 Go to previous messageGo to next message
Achchan
Messages: 86
Registered: June 2005
Member
Why do you repeat same thing oracle_techie? All people here trying to help you so instead of posting more and more "TNS: operation timed out" and "No solution yet" try to be calm and helpful.
Here is not some kind of your school that when you ask something,teacher should answer it immediately.You are going to be professional so learn professional tacts too.
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130450 is a reply to message #130427] Sat, 30 July 2005 11:20 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
I am sorry for using student like language in my mails,
I could not control my desperation. I thank all of you
who are trying to help me.
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130462 is a reply to message #130450] Sun, 31 July 2005 00:39 Go to previous messageGo to next message
Achchan
Messages: 86
Registered: June 2005
Member
Hi,
Do you use firewall on your system? If so you may need to exclude port 1521 from port list.
One other thing: set CONNECT_TIMEOUT_LISTENER to 0 so it will wait infinitely and also go to c:\windows\system32\drivers\etc and find a file called HOSTS or LMHOSTS. add this line there and save:

<your_machine_IP> zen

If you are local then maybe 127.0.0.1 zen also should be added.
And finally: Are you on a DHCP network?
If any did not help so set trace_level of listener in ADMIN level and send us your trace files.
-Good luck!

Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130538 is a reply to message #130462] Sun, 31 July 2005 22:22 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
I added entry in HOSTS or LMHOSTS files.
I am attaching listener trace file (ADMIN option set).
Waiting for reply.
  • Attachment: listener.trc
    (Size: 28.94KB, Downloaded 1002 times)

[Updated on: Mon, 01 August 2005 21:49]

Report message to a moderator

Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130971 is a reply to message #130538] Wed, 03 August 2005 11:42 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
can somebody help me
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #130987 is a reply to message #130971] Wed, 03 August 2005 14:04 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9102
Registered: November 2002
Location: California, USA
Senior Member
Did you try adding a line that says:

CONNECT_TIMEOUT_LISTENER=30

to the bottom of your listener.ora file, then restarting your computer, as I previously suggested?
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #131020 is a reply to message #130987] Wed, 03 August 2005 21:58 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
yes, but it didnot work

[Updated on: Wed, 03 August 2005 21:58]

Report message to a moderator

Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #131159 is a reply to message #131020] Thu, 04 August 2005 12:42 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
can somebody help me ?
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #131880 is a reply to message #131159] Tue, 09 August 2005 22:30 Go to previous messageGo to next message
oracle_techie
Messages: 24
Registered: July 2005
Location: Munbai
Junior Member
As suggested by someone I tried nslookup.

nslookup zen and nslookup <ip address> did not work giving output,
How to fix it?

C:\DOCUME~1\ZHA>nslookup zen
DNS request timed out.
timeout was 2 seconds.
*** Can't find server name for address 169.254.125.34: Timed out
*** Default servers are not available
Server: UnKnown
Address: 169.254.125.34

DNS request timed out.
timeout was 2 seconds.
*** Request to UnKnown timed-ou

Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #132214 is a reply to message #131880] Thu, 11 August 2005 06:49 Go to previous messageGo to next message
sunil_v_mishra
Messages: 506
Registered: March 2005
Senior Member
hi,

Oracle techi ....Very Happy

Pls find the solution of your problem i m despartly waiting to know the solution of your issue.


From:- sunilkumar
Re: Can connect as Scott/tiger, but not as Scott/tiger@zen [message #132387 is a reply to message #132214] Fri, 12 August 2005 06:47 Go to previous message
girish.rohini
Messages: 744
Registered: April 2005
Location: Delhi (India)
Senior Member
HI

A shot in dark... Are you running any firewall service on your machine? If yes, is the Ip of your machine & listener port enabled in that.

Regds
Girish
Previous Topic: Problem in STARTingUP database
Next Topic: role and privillages
Goto Forum:
  


Current Time: Fri Jan 10 09:00:35 CST 2025