Home » Developer & Programmer » Forms » Oracle forms (Oracle Forms 10.1.2.0.2 - Windows 7 using Windows Virtual Pc and running Windows XP SP3)
Oracle forms [message #631070] Thu, 08 January 2015 14:26 Go to next message
fatfish
Messages: 20
Registered: January 2015
Junior Member
I am using Oracle forms version version 10.1.2.0.2 on a windows virtual pc running Windows XP.
When I run the form, I get the error message ORA-12560 TNS protocol adapter error.
I have configures tnsnames.ora and Listener.ora files with the Host name, but I am still getting the error.
I can run sqldeveloper,sqlplus and Reports builder with no problem.

Tns names file:
# tnsnames.ora Network Configuration File: C:\ORACLE\DevSuiteHome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = VirtualXP-12345)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
)
)

Listener.ora file
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = VirtualXP-12345)(PORT = 1521))
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
Re: Oracle forms [message #631071 is a reply to message #631070] Thu, 08 January 2015 15:15 Go to previous messageGo to next message
Michel Cadot
Messages: 68647
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

1/ This error most often comes when ORACLE_SID or ORACLE_HOME or PATH is not correctly set
2/ Your tnsnames.ora does not contain any entry for the database.
3/ listener.ora is irrelevant to the client

Re: Oracle forms [message #631072 is a reply to message #631071] Thu, 08 January 2015 15:32 Go to previous messageGo to next message
Michel Cadot
Messages: 68647
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

The solution would be to copy the tnsnames.ora from your sqlplus home to the forms one.

Re: Oracle forms [message #631090 is a reply to message #631072] Fri, 09 January 2015 00:09 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Or use TNS_ADMIN environment variable which points to a valid TNSNAMES.ORA file. This is my preferred option, as it makes it possible to maintain only a single copy of the TNSNAMES.ORA file (instead of taking care of two or more of them, depending on number of Oracle products you installed).
Re: Oracle forms [message #631171 is a reply to message #631072] Fri, 09 January 2015 16:03 Go to previous messageGo to next message
fatfish
Messages: 20
Registered: January 2015
Junior Member
I put in the database name in the tnsnames.ora file (see below)
*********************************************************************
# tnsnames.ora Network Configuration File: C:\ORACLE\DevSuiteHome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = VirtualXP-12345)(PORT = 1521))

)
(CONNECT_DATA =
# (SERVICE_NAME = PLSExtProc)
(SERVICE_NAME = ORCL)
)
)
************************************************************************
I copied this from another pc the had Oracle working on it.
I copied tnsnames.ora from your sqlplus home to the forms one.

The TNS_ADMIN environment variable is loaded and pointing to the tnsnames.ora file.

I am still getting the same error.
Re: Oracle forms [message #631183 is a reply to message #631171] Fri, 09 January 2015 23:26 Go to previous messageGo to next message
jgjeetu
Messages: 373
Registered: July 2013
Location: www.Orafaq.com/Forum
Senior Member

did you start oracle services .
go to run ---> type services.msc -->restart orcale services where name ends with TNSlistener and ORCL (or restart all the services).

now try to login using / as sysdba.

if still you get error then open tnsnames.ora file and make following changes as mentioned below:-

type db name here for ex. orcl =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =type computer name or ip here)(PORT = 1521)) 
)
(CONNECT_DATA =
(SERVICE_NAME = type sid name here)
)
)


i am not sure first one is db name or something else. i will request to seniors please clearify this .


[Updated on: Fri, 09 January 2015 23:27]

Report message to a moderator

Re: Oracle forms [message #631185 is a reply to message #631171] Sat, 10 January 2015 00:29 Go to previous messageGo to next message
Michel Cadot
Messages: 68647
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Quote:
I put in the database name in the tnsnames.ora file (see below)


And do you connect using "EXTPROC_CONNECTION_DATA" as service name in your connect string?

Note this is a very bad idea to use this entry which is a name internally used by Oracle for external connection.
I'm not sure that, even if you use it in your connect string, Oracle will not ignore it and refuse your connection request.
Use another name for the entry, for instance the same name than your service name.

Quote:
The TNS_ADMIN environment variable is loaded and pointing to the tnsnames.ora file.


Which one? Surely not the one used by SQL*Plus and which works.

Re: Oracle forms [message #631193 is a reply to message #631185] Sat, 10 January 2015 02:43 Go to previous messageGo to next message
jgjeetu
Messages: 373
Registered: July 2013
Location: www.Orafaq.com/Forum
Senior Member

i am quite sure you made changes in default block which is by default in tnsnames.ora file
which looks like:-

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = jgjeetu)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = PLSExtProc)
    )
  )



which is wrong , or you copied same block and pasted below but you didn't change db name i.e EXTPROC_CONNECTION_DATA
following can also be the cause:-
you didn't login on oracle forms using user/password@EXTPROC_CONNECTION_DATA.


possible solution could be:-

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = jgjeetu)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = PLSExtProc)
    )
  )

ORCL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST =computername)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = orcl)
    )
  )

FATFISH =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST =computername)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = orcl)
    )
  )


and login to forms using user/pwd@orcl or user/pwd@fatfish

[Updated on: Sat, 10 January 2015 02:48]

Report message to a moderator

Re: Oracle forms [message #631335 is a reply to message #631193] Mon, 12 January 2015 14:49 Go to previous messageGo to next message
fatfish
Messages: 20
Registered: January 2015
Junior Member
I can run sqldeveloper,sqlplus and Reports builder with no problem.
*********
I am using the TNS_ADMIN environment variable.
*********
All Oracle services in services.msc are started.
*********
The Oracle_home is pointing to the TNSnAMES.ORA file.
**********
I changed the TNSNAMES.ORA file to look like:

# tnsnames.ora Network Configuration File: C:\ORACLE\DevSuiteHome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = VirtualXP-12345)(PORT = 1521))

)
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)

)
)


ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =VirtualXP-12345)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)

FATFISH =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =VirtualXP-12345)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
Still can not connect in forms, only sqldeveloper,sqlplus and Reports builder.
Re: Oracle forms [message #631337 is a reply to message #631335] Mon, 12 January 2015 14:53 Go to previous messageGo to next message
Michel Cadot
Messages: 68647
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

We already told gto either copy the tnsnames.ora from SQL*Plus home to Forms one or to use TNS_ADMIN variable to point to the tnsnames.ora from SQL*Plus home.
You have the solutions, you just have to apply ONE of them (NOT both).
And of course, you have to use the correct connection string, something you never posted.

Re: Oracle forms [message #631352 is a reply to message #631337] Tue, 13 January 2015 00:14 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
This:Quote:

Still can not connect in forms, only sqldeveloper,sqlplus and Reports builder.

doesn't make sense ... Forms Builder and Reports Builder belong to the same Developer Suite, share the same Oracle Home and you *should* be able to connect with both of these, or none.
Re: Oracle forms [message #631587 is a reply to message #631352] Thu, 15 January 2015 10:40 Go to previous message
fatfish
Messages: 20
Registered: January 2015
Junior Member
I deleted all of Oracle from Windows Virtual PC and re-installed it.
I am still using the same TNSNAMES.ORA file.
Every thing is connecting and working properly.
Thanks for the help...
Previous Topic: oracle.form.webutil.ole.olefunction will not found
Next Topic: problem with webutil_demo
Goto Forum:
  


Current Time: Fri Apr 26 18:56:07 CDT 2024