Tnsnames.ora explained
We're playing around with the tnsnames.ora file, trying to get failover to work successfully in 10g. In doing so, we noticed that there was a copy of tnsnames.ora on the database server.
My understanding is that for an Oracle connection to be possible, a tnsnames.ora file on the client must be compatible with a listener.ora on the server.
Why, then, would tnsnames.ora need to reside on the server?
Thanks,
Chuck
Frequently, you want to create connections from the server to another machine (i.e. a database link). You may also want to invoke SQL*Plus and other client tools from the database server. Both of these require that the server is able to resolve TNS aliases. If you use local naming, that means that you would need a tnsnames.ora file on the server.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Similar Messages
-
Does ODBC SQLDriverConnect allow connections without using tnsnames.ora?
I am trying to find out if the Oracle ODBC driver supports a connection attempt through the SQLDriverConnect() ODBC API function without the need to use the tnsnames.ora file. In other words, I would like to pass into the SQLDriverConnect() function the connection string information that would normally be found in the tnsnames.ora file. The purpose of this would be to force the ODBC driver to bypass reading the tnsnames.ora file entirely and simply use the connection information I pass into the connection buffer in the SQLDriverConnect() function.
If this is possible, can someone explain how to do it? I've tried what I think should have worked, so I'm either not doing this right or this functionallity is not supported by the driver.
Thank you.
-DaveYou might try logging a support request to see if that functionality got restored at some point. My recollection is a year or two old...
The Easy Connect syntax is just another feature of the TNS layer, so it should be available to any apps using the 10g client.
The documentation discusses using the Easy Connect Naming Method in some detail. I've not used it with the Oracle ODBC driver, but it should just work.
Justin -
Oracle client -TNSNAMES.ora
Hi,
I am new to db, can any explain the use of oracle client and how to use the TNSNAMES file.
Thanks,
VP.Oracle client does what a client does in Client-Server architecture. So just read about it.
A tnsnames.ora file maps net service names to connect descriptors. The net service name thus becomes a (most likely shorter and more readable) alias for the somewhat cumbersome net service name. In the following example, the tex after the equal sign is the connect descriptor while the text before the equal sign (net_service_name) is the net service name.
A client needs a connect descriptor in order to connect to an Oracle instance.
net_service_name=
(DESCRIPTION=
(ADDRESS=(protocol_address_information))
(CONNECT_DATA=
(SERVICE_NAME=service_name)))
For example:
ORA10 =
(DESCRIPTION = (ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = somehost)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME=ORA10)
) -
Oracle environment variable tns_admin instead tnsnames.ora
Hi, I have a big trouble with the tns_name file. First of all I am working oracle with visual studio .net. I have the file tns_name in the following route C:\oracle\ora92\network\ADMIN\tnsnames.ora. If I delete this file, visual studio .net can still work properly. Then I figured out that it is taking the tnsnames from tns_admin in environment variables. It means visual studio .net is taking the tnsnames from tns_admin instead of C:\oracle\ora92\network\ADMIN\tnsnames.ora.
Can someone explain me why and how is the way to configure which file is used? Where can I configure it?
Thanks in advance.it throws the following error: ora-12154 tns could not resolveORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
The lookup operation fails because the name provided can NOT be resolved to any remote DB.
The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
The most frequent cause for the ORA-12154 error is when the connection alias can not be found in tnsnames.ora.
The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry. -
DATAGUARD SERVICENAME AND TNSNAMES.ORA problem.
Experts,
I have created a database TESTDG10 ( db_unique_name) and using a grid control created a standby TEST10S ( db_unique_name). The dbname is TESTDG10. The dataguard configuration works well. I am able to switchover from one database to another and able to see logs transferred and applied.
The Problem. I included the following in my client ( TOAD ) tnsnames.ora and I cannot connect to the standby with it. Could you please tell me what is wrong. Given below is the tnsnames.ora entry on the client.
TESTDG10.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PrimServer )(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = StandServer )(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = TESTDG10)
I did not modify the listner.ora or tnsnames.ora files on the servers. Grid Control did all the necessaru mods.The standby TEST10S is currently the active primary and I cannot connect to it using sqlplus test/test@TESTDG10. I have to explicitly use sqlplus test/test@TEST0S. Should I create a on-logon trigger at database level on the both databases and redirect the connection. Please explain to me the mechanism for the client to connect to the active primary transparently without having to change the connect string each time a switchover happens.
-
Oracle 9iDS-tnsnames.ora
Happy Holidays!
I am receiving the following error:
1) Oracle forms builder-data block wizard
ORA:12154: TNS:could not resolve service name
Please clarify....Which Oracle file do I place my Professors tnsnames.ora file so that I may create a data block?
Thanks,
kiggyHappy Holidays
happy new year
check your database name that u can find it in database home ex. c:/database go into database home search for network folder
in it u can find folder call admin
in admin folder u found tnsnames.ora
its for database open it and see the name of database
ex.
# TNSNAMES.ORA Network Configuration File: E:\DATABASE\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = senergy)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
this is a sample of what u c in the folder the word up the line is the name of database write it down
then close the folder
and go to your forms home
open the home of forms and search for network folder
in it u can find the admin folder
in it u may found tnsnames.ora
if u didnt find it its ok
i wirte it here=====>
{name the forms servies as u wish }=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host ={your computer name} )
(Port = 1521)
(CONNECT_DATA = (SID ={the name of your database})
this is what must be found in tnsnames.ora that be in forms home in network foder in admin folder
if didnt work send to me on my mail and i will post u document explain all that
[email protected] -
A question about tnsnames.ora
I have a question about tnsnames.ora file. I have two address entries in the tnsnames.ora, one is with protocol:ipc, the other is with protocol:tcp. The log file always tells me the hostname is UNKNOWN. I changed the hostname alias into ip address, but the error stills exists. But there isn't any other error of the running of database. Because I don't need to access database from remote client, thus I think if I delete the address entry of the hostname won't interrupt the running of database. So I delete it from the tnsnames.ora file. But the error stills exists. I am not familiar with Oracle. So could anyone help me to solve the problem or give me some ideas about it? Thanks.
Hi,
That tnsnames.ora file is the descriptor that resolves the service name to the correct host address. That line ADDRESS is the locator for the listener on the server which then determines if a session is granted or not. You cannot forget the sqlnet.ora file either. This sets the type of connection that the client is going to be involved in: either a HOST,TNSNAMES OR
ONAMES. You also must check to see if the listener is turned on. This is a common error. But I dont think it is in this case. Judging by the hostname error message Id say you dont have the correct host name. That can be found in the init.ora file under db_name parameter. I suggest that you do some reading on this subject in the networking documentation. It is all very well explained there. There is more to this relationship than I touched upon here.
Hope this helps. -
Tnsnames.ora is not working
Hello,
In my UAT envirnment we have 3 database on IBM AIX powerPC (64-bit) all are on 10.2.0.5.0
My listener.ora and tnsnames.ora is at default location $ORACLE_HOME/network/admin/
my listener is up
$ lsnrctl status
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:56:08
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production
Start Date 16-FEB-2011 18:51:16
Uptime 15 days 17 hr. 4 min. 52 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0.1/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0.1/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.8.17)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "preprod" has 1 instance(s).
Instance "preprod", status UNKNOWN, has 1 handler(s) for this service...
Service "uat" has 2 instance(s).
Instance "uat", status UNKNOWN, has 1 handler(s) for this service...
Instance "uat", status READY, has 1 handler(s) for this service...
Service "uat_XPT" has 1 instance(s).
Instance "uat", status READY, has 1 handler(s) for this service...
Service "uattest" has 2 instance(s).
Instance "uattest", status UNKNOWN, has 1 handler(s) for this service...
Instance "uattest", status READY, has 1 handler(s) for this service...
Service "uattest_XPT" has 1 instance(s).
Instance "uattest", status READY, has 1 handler(s) for this service...
The command completed successfully
i can remotely connected to database but on the same server tnsping is showing following error
$ tnsping UATTEST
TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Production on 04-MAR-2011 11:59:09
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/10.2.0.1/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = uat)))
TNS-12535: TNS:operation timed out
or some time
ORA-12547: TNS: lost contact
remotely all the users are connected to listener but on the same server the operation is failed
I cant connect to other database using this tnsnames.ora file
can any one help me
regards
Bhushan
Edited by: user9176407 on Mar 3, 2011 10:38 PMuser9176407 wrote:
Thanks for the reply
In My server 3 database are there there a database by service name uat also present there
I check all the configuration the entries in my tnsnames.ora is as below
PREPROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = preprod)
UAT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = uat)
UATTEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = uattest)
conf_uat =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = 172.16.8.17)
(PORT = 1521)
(CONNECT_DATA =
(SERVICE_NAME = uat)
(SID = uat)
also my listner file entries are
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = uat)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
(SID_DESC =
(SID_NAME = uattest)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
(SID_DESC =
(SID_NAME = preprod)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1521))
Ok, for your listener.ora file, above you have the SID_LIST and the LISTENER sections. But what is this that follows, below?
>
uat =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.8.17)(PORT = 1528))
SID_LIST_uat =
(SID_LIST =
(SID_DESC =
(SID_NAME = configdb)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0.1/db_1)
which is working file
but i have an problem in my tnsname.ora file -
Creating a service ; What needs to be added to tnsnames.ora and JDBC url?
DB version: 11.2.0.2
OS platform : Solaris 10
We have a 2 node RAC.
DB name = mbsprd
Instance1 = mbsprd1
Instance2 = mbsprd2I want Instance 1 (mbsprd1) to be used for our OLTP application and Instance 2 (mbsprd2) to be used for another application of DSS nature.
Based on the syntax
srvctl add service -d <dbname> -s <ServiceName> -r <Preferred Instance> -a <Available Instance>I am going to create 2 services
-- Creating a service called OLTP
srvctl add service -d mbsprd -s OLTP -r mbsprd1 -a mbsprd2-- Creating a service called DSS
srvctl add service -d mbsprd -s DSS -r mbsprd2 -a mbsprd1-- Starting the services
srvctl start service -d mbsprd -s OLTP
srvctl start service -d mbsprd -s DSSI guess the above steps are enough to configure a service at the server side.
I would like to know what needs to be done at the client side.
Currently the tnsnames.ora file and JDBC url used by our clients are shown below. What needs to be added to tnsnames.ora file and jdbc URL to start using services configured above?
-- SCAN based TNS entry
mbsprd =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = tcp.world)
(PROTOCOL = TCP)(Host = p148149-scan.tpam.net) (Port = 36964))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mbsprd)
(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))
-- TNS entry based on local listener
-- Instance 1
mbsprd1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp148-vip)(PORT = 36973))
(CONNECT_DATA =
(SERVICE_NAME = mbsprd)
(INSTANCE_NAME = mbsprd1)
-- Instance 2
-- TNS entry based on local listener
mbsprd2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp149-vip)(PORT = 36973))
(CONNECT_DATA =
(SERVICE_NAME = mbsprd)
(INSTANCE_NAME = mbsprd2)
)JDBC entry for RAC
jdbc:oracle:thin:@p148149-scan.tpam.net:36964:mbsprd -- Alternative version used by some clients because the above had 'some issues'
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=p148149-scan.tpam.net) (PORT=36964))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=mbsprd)(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 10))))OLTP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OLTP)
DSS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DSS)
)JDBC entry for RAC
jdbc:oracle:thin:@p148149-scan.tpam.net:36964:service_name
jdbc:oracle:thin:@new_tns_entry_description(if you would like to connect the database with particular service)
try this and let us know any issues, -
Multiple entries for a single Host in tnsnames.ora
I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
I need to know if this would cause conflicts or not?
PYRPROD.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
(CONNECT_DATA =
(SID = pyrp1)
PYRP1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
(CONNECT_DATA =
(SERVICE_NAME = pyrp1)TekWarrior wrote:
I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
I need to know if this would cause conflicts or not?
PYRPROD.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
(CONNECT_DATA =
(SID = pyrp1)
PYRP1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
(CONNECT_DATA =
(SERVICE_NAME = pyrp1)
TekWarrior wrote:
I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
I need to know if this would cause conflicts or not?
PYRPROD.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
(CONNECT_DATA =
(SID = pyrp1)
PYRP1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
(CONNECT_DATA =
(SERVICE_NAME = pyrp1)
It won't cause any problem. -
Cannot find tnsnames.ora error message
We are using oracle 10.2.0.1 via Toad. I get a cannot find tnsnames.ora file error message and see only a tnsnames.ora file in the sample file under the c:\ORACLE\product\10.2.0.1\NETWORK\ADMIN\ directory.
Do I need to create this file, and if so how do I do this?
Thanks in advance for your help
regards,
user12943453Do I need to use the TNSNames Editor? No need for tnsnames.ora or SQL*net to access local DB
Can I just use direct connect and the sqlnet editor?YES! -
EM doesn't allow creation of tnsnames.ora entry with service name orcl11gr2
Dear all,
I'm trying to create a net service name with EM Database Control, via Net Services Administration link. On the service name field, under the 'Edit Net Service Name' screen, I key in orcl11gr2, and it throws the the following error:
Validation Error
Examine and correct the following errors, then retry the operation:
Service Name - Specify a valid service name.
I wonder what is the extra validation that EM is checking. I assume it's checking the number of characters to be 8 characters or less.
Also, because of this extra validation that is in EM, all tnsnames.ora entry that have service name = orcl11gr2, I will not be able to use EM to modify them, as I will get the same above error.
But why does Oracle implements this extra validation, when the same validation is not implemented on other Oracle tools? For instance:
1. dbca allows me to create a database with instance_name greater than 8 characters, and the outcome of initialization parameters will be as follow:
db_name=orcl11gr -- truncated to 8 characters
instance_name=orcl11gr2
db_unique_name=orcl11gr2
service_names=orcl11gr2
2. Oracle Net Manager supports service name of orcl11gr2. The created Net Service Name, I have no problem connecting to the database.
3. Listener support orcl11gr2 service name
I'm using Oracle 11g R2 (11.2.0.1.0) for Microsoft Windows (x64), running on Windows 7.For your reference, here is the bug numbner: 10278345.
-Mughees -
Tnsnames.ora file does not seem to load in SQL Developer
I've really tried my best to figure this out on my own ... through the Help, this forum, and Internet in general. I apoligize in advance for having to ask this, since I'm sure this is a common issue. This particular form entry was really close:
Database Connections will not load tnsnames.ora
But, I just can seem to figure out why, or where entries from my tnsnames.ora file are loading into SQL Developer.
- I have the TNS_ADMIN system environment variable defined to the directory where tnsnames.ora is stored - C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN.
- I do not see a TNS tab as the forum entry above indicates anywhere in SQL Developer - This may be my problem.
It seems that this issue could be cleared up with better directions on how to import tnsnames.ora entries into SQL Developer. Is there any specific direction on how to get your tnsnames.ora file setup correctly with SQL Developer running on Windows XP - Besides the Help which mentions the setup of TNS_ADMIN, but doesn't really tell you what the expected result is, or where the entries will be, or how to verify this is working?
Any help would be most appreciated.
Thanks,
Dave
Below is the export from the About box in SQL Developer:
About
Oracle SQL Developer 1.5.1
Version 1.5.1
Build MAIN-5440
Copyright © 2005,2008 Oracle. All Rights Reserved.
IDE Version: 11.1.1.0.22.49.42
Product ID: oracle.sqldeveloper
Product Version: 11.1.1.54.40
Version
Component Version
========= =======
CVS Version Internal to Oracle SQL Developer (client-only)
Java(TM) Platform 1.6.0_07
Oracle IDE 1.5.1.54.40
Versioning Support 1.5.1.54.40
Properties
Name Value
==== =====
apple.laf.useScreenMenuBar true
awt.toolkit sun.awt.windows.WToolkit
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
com.apple.macos.smallTabs true
com.apple.mrj.application.apple.menu.about.name "SQL_Developer"
com.apple.mrj.application.growbox.intrudes false
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
http.agent Mozilla/5.0 (Java 1.6.0_07; Windows XP 5.1 x86; en_US) ICEbrowser/v6_1_3
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.AssertTracingDisabled true
ide.bootstrap.start 1628689279134099
ide.build MAIN-5440
ide.conf C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
ide.config_pathname C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
ide.debugbuild false
ide.devbuild false
ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
ide.firstrun true
ide.java.minversion 1.5.0
ide.launcherProcessId 5580
ide.main.class oracle.ide.boot.IdeLauncher
ide.patches.dir ide/lib/patches
ide.pref.dir C:\Documents and Settings\X626730\Application Data\SQL Developer
ide.pref.dir.base C:\Documents and Settings\X626730\Application Data
ide.product oracle.sqldeveloper
ide.shell.enableFileTypeAssociation C:\sqldeveloper\sqldeveloper.exe
ide.splash.screen splash.gif
ide.startingArg0 C:\sqldeveloper\sqldeveloper.exe
ide.startingcwd C:\sqldeveloper\sqldeveloper\bin
ide.user.dir C:\Documents and Settings\X626730\Application Data\SQL Developer
ide.user.dir.var IDE_USER_DIR
ide.work.dir C:\Documents and Settings\X626730\My Documents\SQL Developer
ide.work.dir.base C:\Documents and Settings\X626730\My Documents
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path ..\..\ide\lib\ide-boot.jar
java.class.version 50.0
java.endorsed.dirs C:\Program Files\Java\jdk1.6.0_07\jre\lib\endorsed
java.ext.dirs C:\Program Files\Java\jdk1.6.0_07\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home C:\Program Files\Java\jdk1.6.0_07\jre
java.io.tmpdir C:\DOCUME~1\X626730\LOCALS~1\Temp\
java.library.path C:\sqldeveloper;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\PROGRA~1\IBM\WEBSPH~2\BIN\DB2;C:\PROGRA~1\IBM\WEBSPH~2\BIN\MQClient;C:\PROGRA~1\IBM\WEBSPH~2\BIN;C:\IBM\WebSphere MQ Client\Java\lib;C:\Program Files\CA\SharedComponents\PEC\bin;C:\oracle\product\10.2.0\client_1\bin;C:\oracle\ora92\bin;C:\oracle\product\10.2.0\client_2\bin;C:\Perl\bin\;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\CA\PEC\bin;C:\Reuters\Plus;C:\Reuters\Plus\COMLOGIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Compuware\Common;C:\Program Files\Common Files\Compuware;C:\Program Files\CA\AllFusion Harvest Change Manager;C:\Program Files\SecureCRT\;C:\PROGRA~1\F-Secure\Ssh;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Program files\1E\SMSNomad\;C:\j2sdk1.4.2_06\jre\bin;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\Program Files\IBM\Installation Manager\eclipse\lib;C:\Program Files\CA\Cryptography\;C:\Program Files\CA\R71\AllFusion Harvest Change Manager;C:\IBM\WebSphere MQ Client\bin;C:\IBM\WebSphere MQ Client\tools\c\samples\bin;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.6.0_07-b06
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.util.logging.config.file logging.conf
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.6.0_07
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 10.0-b23
jdbc.driver.home /C:/oracle/product/10.2.0/client_1/
jdbc.library /C:/oracle/product/10.2.0/client_1/jdbc/lib/ojdbc14.jar
line.separator \r\n
oracle.home C:\sqldeveloper
oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
orai18n.library /C:/oracle/product/10.2.0/client_1/jlib/orai18n.jar
os.arch x86
os.name Windows XP
os.version 5.1
path.separator ;
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sun.arch.data.model 32
sun.boot.class.path C:\Program Files\Java\jdk1.6.0_07\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_07\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_07\jre\classes
sun.boot.library.path C:\Program Files\Java\jdk1.6.0_07\jre\bin
sun.cpu.endian little
sun.cpu.isalist
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java2d.ddoffscreen false
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot Client Compiler
sun.os.patch.level Service Pack 2
user.country US
user.dir C:\sqldeveloper\sqldeveloper\bin
user.home C:\Documents and Settings\X626730
user.language en
user.name a641421
user.timezone America/New_York
user.variant
windows.shell.font.languages
Extensions
Name Identifier Version Status
==== ========== ======= ======
Check For Updates oracle.ide.webupdate 11.1.1.0.22.49.42 Loaded
Code Editor oracle.ide.ceditor 11.1.1.0.22.49.42 Loaded
Database Connection Support oracle.jdeveloper.db.connection 11.1.1.0.22.49.42 Loaded
Database Object Explorers oracle.ide.db.explorer 11.1.1.0.22.49.42 Loaded
Database UI oracle.ide.db 11.1.1.0.22.49.42 Loaded
Diff/Merge oracle.ide.diffmerge 11.1.1.0.22.49.42 Loaded
Extended IDE Platform oracle.javacore 11.1.1.0.22.49.42 Loaded
External Tools oracle.ide.externaltools 11.1.1.0.22.49.42 Loaded
Feedback oracle.ide.feedback 11.1.1.0.22.49.42 Loaded
File Support oracle.ide.files 11.1.1.0.22.49.42 Loaded
File System Navigator oracle.sqldeveloper.filenavigator 11.1.1.54.40 Loaded
Help System oracle.ide.help 11.1.1.0.22.49.42 Loaded
History Support oracle.jdeveloper.history 11.1.1.0.22.49.42 Loaded
Import/Export Support oracle.ide.importexport 11.1.1.0.22.49.42 Loaded
Log Window oracle.ide.log 11.1.1.0.22.49.42 Loaded
Mac OS X Adapter oracle.ideimpl.apple 11.1.1.0.22.49.42 Loaded
Navigator oracle.ide.navigator 11.1.1.0.22.49.42 Loaded
Object Gallery oracle.ide.gallery 11.1.1.0.22.49.42 Loaded
Object Viewer oracle.sqldeveloper.oviewer 11.1.1.54.40 Loaded
Oracle IDE oracle.ide 11.1.1.0.22.49.42 Loaded
Oracle Microsoft Access Browser oracle.sqldeveloper.thirdparty.access 11.1.1.54.40 Loaded
Oracle Migration Workbench oracle.sqldeveloper.migration 11.1.1.54.40 Loaded
Oracle Migration Workbench - MS Access oracle.sqldeveloper.migration.msaccess 11.1.1.54.40 Loaded
Oracle Migration Workbench - MySQL oracle.sqldeveloper.migration.mysql5 11.1.1.54.40 Loaded
Oracle Migration Workbench - SQLServer oracle.sqldeveloper.migration.sqlserver2005 11.1.1.54.40 Loaded
Oracle Migration Workbench - Translation Core oracle.sqldeveloper.migration.translation.core 11.1.1.54.40 Loaded
Oracle Migration Workbench - Translation MS Access oracle.sqldeveloper.migration.translation.msaccess 11.1.1.54.40 Loaded
Oracle Migration Workbench - Translation MS SQL Server oracle.sqldeveloper.migration.translation.sqlserver 11.1.1.54.40 Loaded
Oracle Migration Workbench - Translation MySQL oracle.sqldeveloper.migration.translation.mysql 11.1.1.54.40 Loaded
Oracle Migration Workbench - Translation Sybase oracle.sqldeveloper.migration.translation.sybase 11.1.1.54.40 Loaded
Oracle Migration Workbench - Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.54.40 Loaded
Oracle MySQL Browser oracle.sqldeveloper.thirdparty.mysql 11.1.1.54.40 Loaded
Oracle SQL Developer oracle.sqldeveloper 11.1.1.54.40 Loaded
Oracle SQL Developer Extras oracle.sqldeveloper.extras 11.1.1.54.40 Loaded
Oracle SQL Developer Reports oracle.sqldeveloper.report 11.1.1.54.40 Loaded
Oracle SQL Developer SearchBar oracle.sqldeveloper.searchbar 11.1.1.54.40 Loaded
Oracle SQL Developer TimesTen oracle.sqldeveloper.timesten 1.5.1.1.2 Loaded
Oracle SQL Server Browser oracle.sqldeveloper.thirdparty.sqlserver 11.1.1.54.40 Loaded
Oracle Sybase Browser oracle.sqldeveloper.thirdparty.sybase 1.2.1.54.40 Loaded
Oracle XML Schema Support oracle.sqldeveloper.xmlschema 11.1.1.54.40 Loaded
PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.0.22.49.42 Loaded
Peek oracle.ide.peek 1.0 Loaded
Replace With oracle.ide.replace 11.1.1.0.22.49.42 Loaded
Runner oracle.ide.runner 11.1.1.0.22.49.42 Loaded
SQL Worksheet Window oracle.sqldeveloper.sqlworksheet 11.1.1.54.40 Loaded
Search Bar oracle.ide.searchbar 11.1.1.0.0 Loaded
Snippet Window oracle.sqldeveloper.snippet 11.1.1.54.40 Loaded
Sybase 12 oracle.sqldeveloper.migration.sybase12 11.1.1.54.40 Loaded
Sybase 15 oracle.sqldeveloper.migration.sybase15 11.1.1.54.40 Loaded
Tuning oracle.sqldeveloper.tuning 11.1.1.54.40 Loaded
VHV oracle.ide.vhv 11.1.1.0.22.49.42 Loaded
Versioning Support oracle.jdeveloper.vcs 11.1.1.0.22.49.42 Loaded
Versioning Support for CVS oracle.jdeveloper.cvs 11.1.1.0.22.49.42 Loaded
Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.0.22.49.42 Loaded
Web Browser and Proxy oracle.ide.webbrowser 11.1.1.0.22.49.42 Loaded
oracle.ide.dependency oracle.ide.dependency 11.1.1.0.22.49.42 Loaded
oracle.ide.indexing oracle.ide.indexing 11.1.1.0.22.49.42 LoadedUsing Windows XP/Vista...
After testing in our environment, it appears that SQL Developer 1.5.1 (5440) does in fact ignore the TNS_ADMIN environment variable and ONLY looks in the Oracle Home directory (network/admin). We define a central network location for our tnsnames file and have the tns_admin setup to point there instead of locally for our users.
When selecting to add a new connection (in 1.5.1, it works in previously releases... meaning 1.2.something) and selecting TNS, the drop-down remains empty. However, if I exit SQL Developer and then copy the tnsnames file to the local network/admin directory I can then re-launch SQL Developer and the drop-down is populated. Exiting SQL Developer again, deleting the local copy of tnsnames, and then launching SQL Developer yet again results in the drop-down being empty.
All other Oracle-related applications function as expected (as they have for years) using the TNS_ADMIN environment variable.
Any suggestions/ideas? -
How to use ODBC SQLDriverConnect() without using tnsnames.ora file
I have an ODBC application that connects to an Oracle 10g database. Currently, my SQLDriverConnect() function call uses the following connection string:
DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
This requires an entry in the tnsnames.ora file that looks like this:
MyDB.world =
(DESCRIPTION = (ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)(Host = server1.intel.com)(Port = 1521)
(ADDRESS =
(PROTOCOL = TCP)(Host = server2.intel.com)(Port = 1521)
(ADDRESS =
(PROTOCOL = TCP)(Host = server3.intel.com)(Port = 1521)
(ADDRESS =
(PROTOCOL = TCP)(Host = server4.intel.com)(Port = 1521)
(LOAD_BALANCE = yes)
(CONNECT_DATA = (SERVER = DEDICATED)
(SERVICE_NAME = MY_SRVC))
However, I would really like to be able to connect using ODBC without having to create that entry in the tnsnames.ora file. I have tried to substitute the DBQ=MyDB.world with the entire (DESCRIPTION=..... string from the original tnsnames.ora file, but it returns the error:
ORA-12154: TNS: Could not resolve the connect identifier specified.
I have heard others are able to use sqlplus with no tnsnames.ora file and the do specify the entire (DESCRIPTION=.... string on the sqlplus connection string, but is this possible to do using the ODBC SQLDriverConnect() function? If so, do I need to use a different keyword/value pair other than DBQ=?
Any help on this would be greatly appreciated.
Thank you.How would that work in a load balanced configuration? Take a closer look at the tnsnames.ora example I included in my original post. I have 4 ADDRESS= sections to denote 4 servers that are part of the load balanced environment.
Also, I'm not familiar with that syntax, I need to use the syntax supported by the SQLDriverConnect() API function, which looks like this:
DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
I don't know as SQLDriverConnect() would accept an alternative syntax. But the more important issue here is the ability to specify those 4 servers in the load balanced configuration as indicated by that tnsnames.ora entry. -
Best Practice to configure tnsnames.ora on client of MAA environment in 10g
Hi,
I have a MAA environment, 1 RAC Primary of 2 nodes and 1 RAC standby of 2 nodes too. I want to configure the tnsnames.ora on clients (we have many clients on each PC) and I need to configure the tnsnames.
I have read some papers but the information is not clear regarding to configure the tnsnames on clients. I just want to have only one entrie on tnsnames that I can use on clients to connect to RAC Primary and/or Standby depending on what site is primary in that moment, I was thinking in something like this:
SALES.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = site1a)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = site1b)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = site2a)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = site2b)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sales.world)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
Where site1 is RAC Primary now, and site2 is standby. But in case of switchover, I want that clients recognize automatically to which site connect.
I was thinking to stop listeners on site that is not primary on that moment.
The question is if this is the best practice on this scenario?.
Thanks for your advice.
LuisHi Louis,
you need to setup a service with clusterware. On both sides: primary and standby.
On primary you start them. On standby the services are also configured but stopped.
In case of switchover or failover, data guard will notice clusterware to bring them up.
You need to use this service name in your clients tnsnames.
Another issue are TCP timeouts, to protect against them you use
outbount_connect_timeout in your sqlnet.ora
Also have a look at
http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_SwitchoverFailoverBestPractices.pdf
HTH Mathias
Maybe you are looking for
-
I have a brand new mac book pro and suddenly I have a pixelated huge red diamond that showed up centered on my desktop. What is it and how do I get rid of it.
-
My mom's Mac Mini is having some difficulties installing the Epson C86 drivers from the CD. It continually claims that her username and password do not have admin privilages. However, she is the only user on the computer, and she definitely has admin
-
Using 'SetTransferLabel' command with H323 CVP deployment
Hi, We have a CVP 4.1comprehensive deployment using H323. We have coresident Ingress/VXML gateways, a gatekeeper and a CallManager cluster. In order to reduce the transfers between Ingress and VXML gateways we are planning to use the 'SetTransferLabe
-
Volume problems with Adobe Flash Player 11.7 r700
Hello, Whenever I used to watch Youtube or other video through Firefox, my volume would remain at whatever volume I had set for Firefox in my Volume Mixer. The last few iterations of Firefix (currently 20.0.1), however, have seen a new item, "Adobe
-
Initiating batch scripts from Maxl Script Editor in Admin Console??
Guys, Is it possible to initiate batch scripts from Maxl script editor in Admin Console. I dont want to automate the scripts as my data loading process can happen at any time. Thanks in advance A