![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I'd like to use DBDesigner 4 with Oracle 9i. But, I'm having trouble connecting. Even though I'm using the connection info created by Oracle Net Configuration Assistant (ONCA). I've verified that ONCA writes to my TNSNAMES.ORA file. Other applications like Oracle Enterprise Manager Console (OEMC) and Oracle Net Manager (ONM) see the connections in the names file. But, when I fire up DBDesigner and supply it with the service names in the TNSNAMES.ORA file, I get 12154 errors: i.e., "Could not resolve service name". I get the same error when I use SQL*Plus. This leads me to believe that the two applications are not reading the proper file or something. Can anyone shed light on what's going on? Thanks. |
#3
| |||
| |||
|
|
multiple tnsnames.ora's on the server, TNS_ADMIN not being set. Dealt with in this forum over and over and over again. -- Sybrand Bakker Senior Oracle DBA |
#4
| |||
| |||
|
|
On Apr 27, 3:34 pm, sybra... (AT) hccnet (DOT) nl wrote: multiple tnsnames.ora's on the server, TNS_ADMIN not being set. Dealt with in this forum over and over and over again. -- Sybrand Bakker Senior Oracle DBA Hi Sybrand, Thanks for responding. I found more than one tnsnames.ora files on the server: %ORACLE_HOME%\hs\admin\tnsnames.ora.sample (does this one matter?) %ORACLE_HOME%\admin\tnsnames.ora %ORACLE_HOME%\admin\sample\tnsnames.ora Now, on my client, I found several tnsnames*.bak files along with: C:\oracle\network\admin\sample\tnsnames.ora (does this one matter?) C:\oracle\network\admin\tnsnames.ora In the registry on my client, I found several branches off Oracle \ALL_HOMES: ID0, ID1 and ID2. ID0\PATH contains S:\...\oracle\network \admin. I checked that folder and there is a TNSNAMES.ORA file there. Could this be the problem? Would removing/renaming all but D:\oracle\ora92\admin\tnsnames.ora on the server and C:\oracle\network\admin\tnsnames.ora on my client help? Also, what does TNS_ADMIN do and what should it be set to? |
#5
| |||
| |||
|
|
On 27 Apr 2007 14:34:31 -0700, HugeBob <rnu... (AT) gmail (DOT) com> wrote: On Apr 27, 3:34 pm, sybra... (AT) hccnet (DOT) nl wrote: multiple tnsnames.ora's on the server, TNS_ADMIN not being set. Dealt with in this forum over and over and over again. -- Sybrand Bakker Senior Oracle DBA Hi Sybrand, Thanks for responding. I found more than one tnsnames.ora files on the server: %ORACLE_HOME%\hs\admin\tnsnames.ora.sample (does this one matter?) %ORACLE_HOME%\admin\tnsnames.ora %ORACLE_HOME%\admin\sample\tnsnames.ora Now, on my client, I found several tnsnames*.bak files along with: C:\oracle\network\admin\sample\tnsnames.ora (does this one matter?) C:\oracle\network\admin\tnsnames.ora In the registry on my client, I found several branches off Oracle \ALL_HOMES: ID0, ID1 and ID2. ID0\PATH contains S:\...\oracle\network \admin. I checked that folder and there is a TNSNAMES.ORA file there. Could this be the problem? Would removing/renaming all but D:\oracle\ora92\admin\tnsnames.ora on the server and C:\oracle\network\admin\tnsnames.ora on my client help? Also, what does TNS_ADMIN do and what should it be set to? OK, yet again. You have multiple homes. By default each product will use the tnsnames.ora in %ORACLE_HOME%\network\admin. So 1 you are using at least 2 different tnsnames.ora's 2 the files in directories named 'sample' are just that and won't be used 3 you either need to synchronize the tnsnames.ora's manually OR set TNS_ADMIN. Oracle looks in the directory pointed to by TNS_ADMIN, followed by %ORACLE_HOME%\network\admin and the default directory. And finally, yes, as this is all documented,you belong to the 99.9 percent of posters here, that a) don't search Google b) don't read the documentation. Obviously, the question 'what's TNS_ADMIN?' can be answered by the documentation. This is sooooo boring. -- Sybrand Bakker Senior Oracle DBA |
#6
| |||
| |||
|
|
Well, I configured the environment variable TNS_ADMIN to point to the folder containing the correct TNSNAMES.ora. DBDesigner still doesn't connect. Neither does SQL*Plus. Is there a way I could know for sure where these programs are looking? On Apr 28, 1:18 am, sybra... (AT) hccnet (DOT) nl wrote: On 27 Apr 2007 14:34:31 -0700, HugeBob <rnu... (AT) gmail (DOT) com> wrote: On Apr 27, 3:34 pm, sybra... (AT) hccnet (DOT) nl wrote: multiple tnsnames.ora's on the server, TNS_ADMIN not being set. Dealt with in this forum over and over and over again. -- Sybrand Bakker Senior Oracle DBA Hi Sybrand, Thanks for responding. I found more than one tnsnames.ora files on the server: %ORACLE_HOME%\hs\admin\tnsnames.ora.sample (does this one matter?) %ORACLE_HOME%\admin\tnsnames.ora %ORACLE_HOME%\admin\sample\tnsnames.ora Now, on my client, I found several tnsnames*.bak files along with: C:\oracle\network\admin\sample\tnsnames.ora (does this one matter?) C:\oracle\network\admin\tnsnames.ora In the registry on my client, I found several branches off Oracle \ALL_HOMES: ID0, ID1 and ID2. ID0\PATH contains S:\...\oracle\network \admin. I checked that folder and there is a TNSNAMES.ORA file there. Could this be the problem? Would removing/renaming all but D:\oracle\ora92\admin\tnsnames.ora on the server and C:\oracle\network\admin\tnsnames.ora on my client help? Also, what does TNS_ADMIN do and what should it be set to? OK, yet again. You have multiple homes. By default each product will use the tnsnames.ora in %ORACLE_HOME%\network\admin. So 1 you are using at least 2 different tnsnames.ora's 2 the files in directories named 'sample' are just that and won't be used 3 you either need to synchronize the tnsnames.ora's manually OR set TNS_ADMIN. Oracle looks in the directory pointed to by TNS_ADMIN, followed by %ORACLE_HOME%\network\admin and the default directory. And finally, yes, as this is all documented,you belong to the 99.9 percent of posters here, that a) don't search Google b) don't read the documentation. Obviously, the question 'what's TNS_ADMIN?' can be answered by the documentation. This is sooooo boring. -- Sybrand Bakker Senior Oracle DBA |
#7
| |||
| |||
|
|
HugeBob wrote: Well, I configured the environment variable TNS_ADMIN to point to the folder containing the correct TNSNAMES.ora. DBDesigner still doesn't connect. Neither does SQL*Plus. Is there a way I could know for sure where these programs are looking? On Apr 28, 1:18 am, sybra... (AT) hccnet (DOT) nl wrote: On 27 Apr 2007 14:34:31 -0700, HugeBob <rnu... (AT) gmail (DOT) com> wrote: On Apr 27, 3:34 pm, sybra... (AT) hccnet (DOT) nl wrote: multiple tnsnames.ora's on the server, TNS_ADMIN not being set. Dealt with in this forum over and over and over again. -- Sybrand Bakker Senior Oracle DBA Hi Sybrand, Thanks for responding. I found more than one tnsnames.ora files on the server: %ORACLE_HOME%\hs\admin\tnsnames.ora.sample (does this one matter?) %ORACLE_HOME%\admin\tnsnames.ora %ORACLE_HOME%\admin\sample\tnsnames.ora Now, on my client, I found several tnsnames*.bak files along with: C:\oracle\network\admin\sample\tnsnames.ora (does this one matter?) C:\oracle\network\admin\tnsnames.ora In the registry on my client, I found several branches off Oracle \ALL_HOMES: ID0, ID1 and ID2. ID0\PATH contains S:\...\oracle\network \admin. I checked that folder and there is a TNSNAMES.ORA file there. Could this be the problem? Would removing/renaming all but D:\oracle\ora92\admin\tnsnames.ora on the server and C:\oracle\network\admin\tnsnames.ora on my client help? Also, what does TNS_ADMIN do and what should it be set to? OK, yet again. You have multiple homes. By default each product will use the tnsnames.ora in %ORACLE_HOME%\network\admin. So 1 you are using at least 2 different tnsnames.ora's 2 the files in directories named 'sample' are just that and won't be used 3 you either need to synchronize the tnsnames.ora's manually OR set TNS_ADMIN. Oracle looks in the directory pointed to by TNS_ADMIN, followed by %ORACLE_HOME%\network\admin and the default directory. And finally, yes, as this is all documented,you belong to the 99.9 percent of posters here, that a) don't search Google b) don't read the documentation. Obviously, the question 'what's TNS_ADMIN?' can be answered by the documentation. This is sooooo boring. -- Sybrand Bakker Senior Oracle DBA Start by not top posting. Scroll to the bottom to reply. Then in your SQLNET.ORA initiate SQLNET tracing. You will find the syntax athttp://tahiti.oracle.comor in Morgan's Library, under SQLNET.ORA, atwww.psoug.org. -- Daniel A. Morgan University of Washington damor...@x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Groupwww.psoug.org |
#8
| |||
| |||
|
|
I placed the following in SQLNET.ORA for tracing: NAMES.DIRECTORY_PATH=(HOSTNAME) NAMES.DEFAULT_DOMAIN=my.domain.somewhere SQLNET.AUTHENTICATION_SERVICES=(NTS) LOG_DIRECTORY_CLIENT=C:\ORACLE92\NETWORK\LOG LOG_FILE_CLIENT=sqlnetClient.log TRACE_DIRECTORY_CLIENT TRACE_FILE_CLIENT TRACE_LEVEL_CLIENT=admin TRACE_UNIQUE_CLIENT=true Is tracing/logging automatic once it's enabled in the SQLNET.ORA file or is some other client used? I was thinking that when tracing was enabled that results would be automatically placed in the target file. |
#9
| |||
| |||
|
|
On 4 May 2007 09:17:15 -0700, HugeBob <rnu... (AT) gmail (DOT) com> wrote: I placed the following in SQLNET.ORA for tracing: NAMES.DIRECTORY_PATH=(HOSTNAME) NAMES.DEFAULT_DOMAIN=my.domain.somewhere SQLNET.AUTHENTICATION_SERVICES=(NTS) LOG_DIRECTORY_CLIENT=C:\ORACLE92\NETWORK\LOG LOG_FILE_CLIENT=sqlnetClient.log TRACE_DIRECTORY_CLIENT TRACE_FILE_CLIENT TRACE_LEVEL_CLIENT=admin TRACE_UNIQUE_CLIENT=true Is tracing/logging automatic once it's enabled in the SQLNET.ORA file or is some other client used? I was thinking that when tracing was enabled that results would be automatically placed in the target file. 1 NAMES.DIRECTORY_PATH=(HOSTNAME) This option has been specifically set up by Oracle to make sure people didn't have to set up a tnsnames.ora. Basically, it allows only one database. Anyway: your tnsnames.ora will be IGNORED, as you didn't include ,TNSNAMES in NAMES.DIRECTORY_PATH 2 TRACE_DIRECTORY_CLIENT The syntax is TRACE_DIRECTORY_CLIENT=<directory>. There is no default. 3 TRACE_FILE_CLIENT The syntax is TRACE_FILE_CLIENT=<filename>. There is no default 4 I would rephrase the last sentence as 'I was thinking you guys would resolve all my problems, as I am not a guru, so I can't be bothered reading the manuals' -- Sybrand Bakker Senior Oracle DBA |
![]() |
| Thread Tools | |
| Display Modes | |
| |