Home » Developer & Programmer » Forms » how to connect database10g to Form11g (can you help me)
how to connect database10g to Form11g [message #458148] Thu, 27 May 2010 10:26 Go to next message
aljabali
Messages: 53
Registered: July 2008
Member
hii

I am install the forms11g and database10gr1 , now when you open the
form and write in login ( scott/tiger@orcl ) thise message is show

ORA-12154: TNS: could not resolve the connect identifier specified.

how to connect database10g to Form11g.....?????!!!!!!!!!!!!

I cant find the net configuration assistant same form10g .....

can you help me ......


Re: how to connect database10g to Form11g [message #458193 is a reply to message #458148] Thu, 27 May 2010 15:29 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Search the board for TNS_ADMIN; this is a relatively frequently asked question. One of topics that explains it is this.
Re: how to connect database10g to Form11g [message #458394 is a reply to message #458193] Sat, 29 May 2010 08:37 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
What can I do ?

I am find the TNS_ADMIN in registry and you have the value ( C:\oracle\fmw11g\asinst_1\config )

now what the next step ??????
Re: how to connect database10g to Form11g [message #458395 is a reply to message #458394] Sat, 29 May 2010 09:10 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
I am work this steps :-

first I am not find any file ( tnsnames.ora ) in form11g directory in ( C:\oracle\fmw11g\as_1\network\admin ) only find the sqlnet file .

1- create the folder 0_library and copy the tnsnames.ora in oracle database directory ( C:\oracle_dbr2\NETWORK\ADMIN ) in this folder .
2- start - run - cmd
3- c:\temp>set tns_admin=c:\0_library
4- restart the weblogic server and form11g
5- when you connect the ( scott/tiger@orcl4) in form11g the same problem ( ORA-12154: TNS: could not resolve the connect identifier specified.)

this steps is correct or not ???????

can you help me ................
Re: how to connect database10g to Form11g [message #458396 is a reply to message #458394] Sat, 29 May 2010 09:11 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
What is fully qualified pathname & content of tnsnames.ora file on your system?
Re: how to connect database10g to Form11g [message #458400 is a reply to message #458396] Sat, 29 May 2010 10:27 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
the content of tnsnames.ora is :-

LISTENER_ORCL4 =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))


ORCL4 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl4)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
-----------------------------------------
and this file in ( C:\oracle_dbr2\NETWORK\ADMIN ).. full path in my pc

I am not any change from this file ( tnsnames.ora ) only copy in folder c:\0_library
and

- start - run - cmd
- c:\temp>set tns_admin=c:\0_library
- restart the weblogic server and form11g
- when you connect the ( scott/tiger@orcl4) in form11g the same problem ( ORA-12154: TNS: could not resolve the connect identifier specified.)

this steps is correct or not ???????

can you help me ................
Re: how to connect database10g to Form11g [message #458419 is a reply to message #458400] Sun, 30 May 2010 00:56 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
can you help me ................
Re: how to connect database10g to Form11g [message #458467 is a reply to message #458419] Sun, 30 May 2010 12:15 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
can you help me ................
Re: how to connect database10g to Form11g [message #458472 is a reply to message #458148] Sun, 30 May 2010 14:56 Go to previous messageGo to next message
gregor
Messages: 86
Registered: March 2010
Location: Germany
Member
Hi ,
spontan I would say: try port !521 for your TNS-Names entry: s.th like : ...ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521 ))...

GG
Re: how to connect database10g to Form11g [message #458607 is a reply to message #458472] Mon, 31 May 2010 11:30 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
why .....
??

I am using the port number 1522 to connect the database and form10g ... no any problem

I am change the port put the problem not solved
Re: how to connect database10g to Form11g [message #458625 is a reply to message #458607] Mon, 31 May 2010 15:07 Go to previous messageGo to next message
gregor
Messages: 86
Registered: March 2010
Location: Germany
Member
Hi aljabali,

sorry it may be ok with your Port 1522, ( 1521 is the default).

what I see from your postings is:
1- TNS_ADMIN in registry ( C:\oracle\fmw11g\asinst_1\config )
2- not find any file ( tnsnames.ora ) in form11g directory in ( C:\oracle\fmw11g\as_1\network\admin ) only find the sqlnet file
3- the content of your tnsnames.ora
4,5,6...help
7. use Port 1251

The solution is : copy your tnsnames.ora-file to C:\oracle\fmw11g\asinst_1\config -Directory, because definied in the win-registry; or define an other TNS_ADMIN-Path in the registry . "set c:\temp>set tns_admin=c:\xyz" doesn't work, because the listener works ( in windows ) as a service.

After copy, A restart of Windows Smile .

After restart test connection with your apps.
If it doesn't work , start form the commandline (cmd.exe):
-- %ORACLE_HOME%/tnsping.exe ORCL4
Please report me, in case, a´what tnsping answers.

Greetings Gregor (in short GG)







Re: how to connect database10g to Form11g [message #458856 is a reply to message #458625] Wed, 02 June 2010 03:58 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
OK MS gregor

I want to work this steps today after that I tell you ......

thanks ....
Re: how to connect database10g to Form11g [message #458904 is a reply to message #458148] Wed, 02 June 2010 08:50 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
MS gregor

I am Work all steps but the problem is not solved

show the pci



  • Attachment: tns.JPG
    (Size: 38.17KB, Downloaded 652 times)
Re: how to connect database10g to Form11g [message #459013 is a reply to message #458904] Thu, 03 June 2010 00:33 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
can you help me ...
Re: how to connect database10g to Form11g [message #459146 is a reply to message #459013] Thu, 03 June 2010 09:58 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
TNSPING used TNSNAMES.ORA file that doesn't contain the ORCL4 database.

If you have SQLNET.ORA file, what is NAMES.DEFAULT_DOMAIN set to? If it is set, then all entries in the TNSNAMES.ORA file must have a matching domain suffix.
Re: how to connect database10g to Form11g [message #459427 is a reply to message #459146] Sat, 05 June 2010 01:05 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
I am not understand .....

I have SQLNET.ORA ONLY IN DATABASE LOCATION (C:\oracle\product\10.1.0\db_1\NETWORK\ADMIN) NOT IN FORMS11G

AND I am copy the TNSNAMES.ORA IN ( C:\oracle\fmw11g\asinst_1\config )

I am not have the SQLNET.ORA in ( C:\oracle\fmw11g\asinst_1\config )

BUT THE SAME PROBLEM ????????????????????????????????????

can you help me ......................................
Re: how to connect database10g to Form11g [message #459522 is a reply to message #459427] Sun, 06 June 2010 10:02 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
can you help me ......................................
can you help me ......................................
can you help me ......................................

One Month I cant connect form and database .............
Re: how to connect database10g to Form11g [message #459630 is a reply to message #459522] Mon, 07 June 2010 08:52 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
can you help me ......................................
can you help me ......................................
can you help me ......................................
Re: how to connect database10g to Form11g [message #459656 is a reply to message #459630] Mon, 07 June 2010 15:28 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
As far as I understood, you are trying to connect to a database that is installed on your PC. This is the 10g database.
You have also installed Forms 11g. Did you insert it into its own directory (different from any other directory that contains other Oracle software products)? If not, you should have. (By the way, how many Oracle products do you have installed on your PC? Which ones?)

Can you connect to the database using SQL*Plus? If so, can you detect which SQL*Plus is it? (Oracle database's one, or the one that belongs to Forms installation)? You should be able to connect using both SQL*Plus tools. Can you do that?
Re: how to connect database10g to Form11g [message #459737 is a reply to message #459656] Tue, 08 June 2010 03:08 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
Ms Littlefoot thanx first

I have ( Dtabase10 r1 and Database10g r2 and Form11g )
no any problem in database10g r1 or r2 I am work in sqlplus
Did you insert it into its own directory ????

but only the problem how to connect database10g to Form11g.....?????!!!!!!!!!!!!
show the message ORA-12154: TNS: could not resolve the connect identifier specified.



Re: how to connect database10g to Form11g [message #459738 is a reply to message #459737] Tue, 08 June 2010 03:31 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You didn't understand what I said.

Go to (from the command prompt: use the CD command) "Forms11g\bin" (or whatever its name is) directory and find sqlplus.exe. Now try to connect to the database. Something like this:
M:\>c:

C:\>cd oracle\devsuitehome_904\bin                   --> you'd put your Forms11g\bin directory here

C:\Oracle\DevSuiteHome_904\bin>dir sqlplus.exe
 Volume in drive C is OSDisk
 Volume Serial Number is 7C8E-B02E

 Directory of C:\Oracle\DevSuiteHome_904\bin

26.08.2002  19:04           433.424 sqlplus.exe
               1 File(s)        433.424 bytes
               0 Dir(s)  211.254.390.784 bytes free

C:\Oracle\DevSuiteHome_904\bin>sqlplus scott/tiger@ora10

SQL*Plus: Release 9.0.1.4.0 - Production on Uto Lip 8 10:30:12 2010

(c) Copyright 2001 Oracle Corporation.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL>

Please, copy/paste your session here so that we'd see what has happened.
Re: how to connect database10g to Form11g [message #459870 is a reply to message #459738] Tue, 08 June 2010 10:29 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
Ms Littlefoot thanx

show I am work all steps ....

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings>cd..

C:\>cd C:\oracle\fmw11g\as_1\bin

C:\oracle\fmw11g\as_1\bin>sqlplus scott/tiger@orcl4

SQL*Plus: Release 11.1.0.7.0 - Production on Tue Jun 8 08:30:49 2010

Copyright (c) 1982, 2008, Oracle.  All rights reserved.

ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified


Enter user-name:
Re: how to connect database10g to Form11g [message #459896 is a reply to message #459870] Tue, 08 June 2010 15:55 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
That's what I thought. You can't connect the database from ANY 11g tool.

Now, please, post the result of the following command (issued at the command prompt):
C:\>set tns_admin
Environment variable tns_admin not defined

C:\>

(I don't have it, but I want to see your result. Copy/paste your output).
Re: how to connect database10g to Form11g [message #459930 is a reply to message #459896] Wed, 09 June 2010 01:16 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
dear Ms Littlefoot thanx

show I am work all steps ....

1- I am copy the tnsnames in ( C:\oracle_dbr2\NETWORK\ADMIN )... directory of database10gr2
2- paste the tnsnames in ( C:\oracle\fmw11g\asinst_1\config ) ...directory of form11g
3- start
4- run
5- cmd
C:\>set tns_admin=C:\oracle\fmw11g\as_1\config



C:\>cd C:\oracle\fmw11g\as_1\bin

C:\oracle\fmw11g\as_1\bin>sqlplus scott/tiger@orcl4

SQL*Plus: Release 11.1.0.7.0 - Production on Tue Jun 8 23:04:48 2010

Copyright (c) 1982, 2008, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL>


The form11g tools is connect the database10g Only in Sqlplus
now when you connect the ( scott/tiger@orcl4) in form11g the same problem ( ORA-12154: TNS: could not resolve the connect identifier specified.)

and in registry I am defined the tns_admin=C:\oracle\fmw11g\asinst_1\config;

can you help me ....




C:\oracle\fmw11g\as_1\config
Re: how to connect database10g to Form11g [message #459931 is a reply to message #459930] Wed, 09 June 2010 01:29 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You are using two different directory names (ASINST_1 vs. AS_1) (which one is true? I guess AS_1 as you successfully changed directory to it (CD command)). Perhaps you should uniform those names everywhere you use them (such as Windows registry)?

Except that, I wouldn't know what might be wrong. I'm glad you managed to connect to the 10g database through 11g SQL*Plus. The same should have worked for Forms 11g too. If changing ASINST_1 to AS_1 doesn't help, I'm afraid I'm out of ideas.
Re: how to connect database10g to Form11g [message #460081 is a reply to message #459931] Wed, 09 June 2010 09:04 Go to previous messageGo to next message
aljabali
Messages: 53
Registered: July 2008
Member
Dear Ms Littlefoot ... Thank you so much

now the my problem is solved

relay I have two different directory names (ASINST_1 vs. AS_1) its the problem in fact

but ASINST_1 as you successfully

I am change the cd command and registry ( TNS_ADMIN)

AND I am remove the tnsnames in C:\oracle\fmw11g\as_1\config

only tnsnames in C:\oracle\fmw11g\asinst_1\config

set tns_admin=C:\oracle\fmw11g\as_1\config


C:\oracle\fmw11g\as_1\bin>sqlplus scott/tiger@orcl4



Thank you so so so much

Thank you all ..........
Re: how to connect database10g to Form11g [message #460134 is a reply to message #460081] Wed, 09 June 2010 15:46 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
See? You only have to pay attention to what you are doing. No rush.

OK then, I'm glad you finally made it work.
Re: how to connect database10g to Form11g [message #460190 is a reply to message #460134] Thu, 10 June 2010 02:07 Go to previous message
aljabali
Messages: 53
Registered: July 2008
Member
Thank you so much for help me
Previous Topic: creating function
Next Topic: query level
Goto Forum:
  


Current Time: Thu Sep 19 22:38:45 CDT 2024