Home » Developer & Programmer » Forms » How to connect database from sql*plus with forms & How to solve ORA:12541:TNS: no listener error
How to connect database from sql*plus with forms & How to solve ORA:12541:TNS: no listener error [message #162027] Wed, 08 March 2006 04:47 Go to next message
malar_dm
Messages: 31
Registered: December 2005
Location: Chennai,India
Member
Hi 2 all,

I m not able to solve this problem. Can anyone knows, please help.

While connectivity of database table from sql*plus to forms.
It will not get connected.It shows error message stating
" ORA-12560:TNS:protocol adapter error".

From my knowledge, i copied the tnsnames.ora file from

D:\oracle\ora92\network\admin\tnsnames.ora - (Database)

and paste it into d2k tnsnames.ora file

D:\oracle\orad2k\network\admin\tnsnames.ora - (D2k)

save it and exit

but, the i m not able to connect the database.

username : malar
password : *****
database : (i leave it blank)

I copied the tnsnames.ora file from database and paste it into d2k.
This will be as follows:

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

ORACLE9I =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = Local)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = oracle9i)
    )
  )


ORACDATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = home-malar)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = Oracdata)
    )
  )

INST1_HTTP =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = home-malar)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = SHARED)
      (SERVICE_NAME = MODOSE)
      (PRESENTATION = [url]http://HRService[/url])
    )
  )

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

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

ORACDATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = home-malar)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = Oracdata)
    )
  )

INST1_HTTP =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = home-malar)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = SHARED)
      (SERVICE_NAME = MODOSE)
      (PRESENTATION = [url]http://HRService[/url])
    )
  )

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

Please reply...

Thank you
with regards
malarvannan.d

Upd-mod: Desist with all the blank lines!!

[Updated on: Mon, 13 March 2006 22:45] by Moderator

Report message to a moderator

Re: How to connect database from sql*plus with forms [message #162034 is a reply to message #162027] Wed, 08 March 2006 05:11 Go to previous messageGo to next message
kiran
Messages: 503
Registered: July 2000
Senior Member
Look at here.

And please do search the forum as it was answered previously.

-Kiran.
How to solve ORA:12541:TNS: no listener error? [message #162574 is a reply to message #162027] Sat, 11 March 2006 07:58 Go to previous messageGo to next message
malar_dm
Messages: 31
Registered: December 2005
Location: Chennai,India
Member
Hi 2 all,

I am not able to solve this error. Can anyone know please help?

ORA-12541: TNS: no listener

I herewith explain the steps that I followed while at processing.

1. I applied lsnrctl control to start the listener in command prompt.
It shows starting tnslsnr: please wait…

Service OracleOracle_d2kTNSListener already running.
TNS-12536:TNS:operation would block
TNS-12560:TNS:protocol adapter error
TNS-00506:Operation would block
32-bit windows error:997:unknown error.

2. I applied tnsping command

Used parameter files:
D:\oracle\orad2k\network\admin\sqlnet.ora
D:\oracle\orad2k\network\admin\tnsnames.ora

Used TNSNAMES adapter to resolve the alias
Attempting to contact <DESCRIPTION= <ADDRESS_LIST=<ADDRESS=<PROTOCOL=TCP> <HOST=home-malar> <PORT=1521>>> <CONNECT_DATA = <SERVER =DEDICATED> <SERVICE_NAME = oracdata>>>
TNS-12541:TNS:no listener


C:\>netstat –a

TCP home-malar:1521 home-malar.oracdata:0 LISTENING


When I applied this statement in command prompt,
C:\ TCP home-malar:1521 home-malar.oracdata:0 LISTENING
It shows error stating

‘TCP ‘ is not recognized as an internal or external command, operable program or batch file.


Please do some help.

Thanks in advance

With regards
Malarvannan.d




How to solve ORA:12541:TNS: no listener error? [message #162575 is a reply to message #162027] Sat, 11 March 2006 08:03 Go to previous messageGo to next message
malar_dm
Messages: 31
Registered: December 2005
Location: Chennai,India
Member
A second copy

[Updated on: Mon, 13 March 2006 22:41] by Moderator

Report message to a moderator

How to solve ORA:12541:TNS: no listener error? [message #162576 is a reply to message #162027] Sat, 11 March 2006 08:05 Go to previous messageGo to next message
malar_dm
Messages: 31
Registered: December 2005
Location: Chennai,India
Member
A third copy

[Updated on: Mon, 13 March 2006 22:41] by Moderator

Report message to a moderator

Re: How to connect database from sql*plus with forms [message #162578 is a reply to message #162034] Sat, 11 March 2006 08:12 Go to previous messageGo to next message
malar_dm
Messages: 31
Registered: December 2005
Location: Chennai,India
Member
hi kiran,
Thanks for your valuable information.But eventhough i m not get permanent solution for this.If you know please help.

Message repeated again.

[Updated on: Mon, 13 March 2006 22:42] by Moderator

Report message to a moderator

Re: How to solve ORA:12541:TNS: no listener error? [message #162603 is a reply to message #162576] Sat, 11 March 2006 21:20 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Google is your friend but only if you use it.
One or more of your *.ora files contains incorrect information.

P.S.
Here is a free clue, SQL*Net is NOT required if you are logged directly into the Oracle database server system.
Re: How to connect database from sql*plus with forms & How to solve ORA:12541:TNS: no listener e [message #162863 is a reply to message #162027] Mon, 13 March 2006 22:49 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Okay. If you had searched this forum for 'tnsnames.ora' you would have found MANY threads that state that you MUST have the same contents in both tnsnames.ora files, or you use the 'ifile' construct to point them to each other.

You say that you leave the database 'blank' when you try to sign on. Which database do you wish to access?

David

[Updated on: Mon, 13 March 2006 23:11]

Report message to a moderator

Re: How to connect database from sql*plus with forms & How to solve ORA:12541:TNS: no listener e [message #162867 is a reply to message #162863] Mon, 13 March 2006 23:13 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have a look at http://www.orafaq.com/forum/m/138676/67467/?srch=two_task+david#msg_138676 and http://www.orafaq.com/forum/m/133430/67467/?srch=two_task+david#msg_133430.

You need to edit $ORACLE_HOME/forms90/server/default.env and on the line after FORMS90_PATH place a line containing LOCAL=test where 'test' is the name of your default database.

David
Previous Topic: call report from form
Next Topic: Error running forms 10g on OC4J
Goto Forum:
  


Current Time: Fri Sep 20 07:47:13 CDT 2024