How to recover TNSNAMES.ORA file
Hi, im using Oracle 8i 8.16 database running on win2k server. Im getting a an error whenever i try to connect to the databese using the DBA Studio program - the error was "ORA-12154:TNS:Could Not resolve service name". I noticed that the TNSNAMES.ORA file is blank in the home directory of Oracle8i, anyone knows how to recover the file?.
Thanks
regards
Muraly
Hi Friend,
Thanks alot for ur reply, i tried the solution u gave in ur reply and i manage to get some parameters setting in my tnsnames.ora file - the content of it was
as follows :
# TNSNAMES.ORA Network Configuration File: C:\Oracle\Ora81\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
COGENT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = cogent-w2ksvr)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = cogent)
but then i keep getting the same error message.
I notice that the Oracle service (undet the NT services) OracleOraHome81ManagementServer does not get started - when i try to manually start it up - NT return error saying its not startable due to windows error or application error.
The following is my setting from net8 assistant.
Service Naming
---- Service Identification ----
Service name = cogent
SID = ""
connection type = Database Default
Address Config
Protocol = TCP/IP
Hostname = cogent-w2ksvr
Port Number = 1521
My domain name is cogentconsulting.com
My Full computer name is cogent-w2ksvr.cogentconsulting.com
I really appreciate your help in this.
thanks and regards
Muraly
null
Similar Messages
-
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. -
How to deactivate an entry in tnsnames.ora file
Hi all,
I am working with Oracle 10g enterprise edition. I have a data source named with DEVDATA which should not be affected while I am working on my project. Usually, I will add DEVDATA entry in tnsname.ora file if I want to use it and I will remove that entry from tnsnames.ora file in order to protect that data source. It is very laborious process each time when I want to add or remove that entry. Do we have any mean such a way that I can switch between the two options. Currently, I have a desktop shortcut to tnsnames.ora file so that I can add or remove that entry when ever I want. Can we comment out that entry. Please suggest me.
I hope this is the right place to fire this question. If not, direct me. Thanks in advance.
Regards,
Kumar.[email protected] wrote:
Hi all,
Thanks for your replays. As you said we can comment out lines with '#'. But, I am looking for commenting whole entry at a time. Can any one tell me how to comment out whole entry/paragraph. Is there any oracle utility by which we can deactivate the data source. Please suggest. Thank you.
Regards,
Kumar.As others have said, either comment out each line of the entry, or have two tnsnames files that you rename as needed. But really, how often do you make the swap that commenting/uncommenting about five lines of code is such a burden? -
How to list the datasources without use a tnsnames.ora file?
Hi,
I want to use the OracleDataSourceEnumerator class of ODP.Net to list the datasources on which the user can connect.
It's work with a tnsnames.ora on the local station, so good.
But I want use the easy connect naming methode so i have edited the sqlnet.ora file with this:
NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
then i have deleted the content of the tnsnames.ora
so my code don't work : none datasource is returned by the OracleDataSourceEnumerator
So my question : is it a way to list the datasources without use a tnsnames.ora file?
Edited by: user13499556 on 17 déc. 2010 08:21You can check
DataConnectionFile.EnumerateDependants method
This post is my own opinion and does not necessarily reflect the opinion or view of Slalom. -
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? -
SQL Dev 3.0.04 cannot locate TNSNAMES.ora file after Oracle11g XE Beta
Hello,
I had Oracle Developer Suite (Reports, Forms) installed on Windows 7 32 bit along with SQL Developer 3.0.04 (latest prod. build) and everything was working just fine.
Then, I installed Oracle 11g XE Beta database and now, all the existing Connections in SQL Developer give an error "Invalid connection information specified. Verify the URL format for the specified driver."
I thought since 11gXE was the latest Oracle software installed, the Path environment variable in Windows will have the Oracle 11gXE as the leading path string. So, I cut this leading string : C:\Oracle\Oracle11gXE\product\11.1.0\db_1\bin and appended it at the very end.
This means that the Path that existed prior to the 11gXE install is now the leading and hence SQL Developer should be reading the TNSNAMES.ora file from the very first Oracle Home encountered which is for the developer suite. But this does not seem to work.
Any ideas how to fix this? How does SQL Developer determine which tnsnames file to use?
Thanks,
ManishHi Manish,
One place to control this is Tools|Preferences|Database|Advanced|Tnsnames Directory.
Otherwise read the documentation in Help|Table of Contents|SQL Developer Concepts and Usage|Database Connections. The third paragraph contains a description of the various alternatives.
Regards,
Gary Graham
SQL Developer Team
Edited by: gggraham on Jul 18, 2011 2:52 PM -
"tnsnames.ora" file & ODBC driver
It seems ODBC drivers do not need TNS listeners!
I need to find out how ODBC drivers determine the path of "tnsnames.ora" file!
(I have many Oracle installations on my machine.)
nullI believe that the ODBC driver will use the tnsnames file in the primary Oracle home. You can use the Oracle home selector to select your primary home.
Note that, at the moment, the Oracle ODBC driver is supported only when installed in a single Oracle home on a machine.
Justin Cave -
Using tnsnames.ora file instead of oracle names server
hi,
sqlnet.ora file contains
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES)
NAMES.DEFAULT_DOMAIN = (domain name)
SQLNET.EXPIRE_TIME = 2
DEFAULT_SDU_SIZE = 8761
NAMES.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = TCP.world)
(PROTOCOL = TCP)
(Host = oranamesrvr0. domain name)
(Port = 1575)
NAME.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = TCP.world)
(PROTOCOL = TCP)
(Host = oranamesrvr0.domain name)
(Port = 1575)
There is also a tnsnames.ora file in the same path as this sqlnet.ora. Can someone tell how can i make the application use the tnsnames.ora file instead of using oracle name servers??
Thanks in advance!!!917229 wrote:
hi,
sqlnet.ora file contains
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES)
NAMES.DEFAULT_DOMAIN = (domain name)
SQLNET.EXPIRE_TIME = 2
DEFAULT_SDU_SIZE = 8761
NAMES.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = TCP.world)
(PROTOCOL = TCP)
(Host = oranamesrvr0. domain name)
(Port = 1575)
NAME.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = TCP.world)
(PROTOCOL = TCP)
(Host = oranamesrvr0.domain name)
(Port = 1575)
There is also a tnsnames.ora file in the same path as this sqlnet.ora. Can someone tell how can i make the application use the tnsnames.ora file instead of using oracle name servers??
Thanks in advance!!!In addition to SB's comment, keep in mind that the client only sees sqlnet.ora and tnsnames.ora that exist on the client machine .. or indicated by TNS_ADMIN as defined on the client machine. Setting this on the db server is meaningless to the client unless the client also resides on the db server. -
Strange Behaviour of TNSNAMES.ora file
Hello Guys,
Now we have 2 database servers with different IP obviously and same SID with 9i and 10g databases.
Our application is developed in forms 6i. Before 10g server, application was using 9i database server as its database and there were no problems. Developer client is installed at user's machine and they were having no connectivity issue with 9i database. Now after updation of database server. We have changed the IP address of tnsnames.ora file at every client machine. Now there is no information at client ends to connect with database 9i, but it must connect with 10g.
The client is still connecting with 9i database which is really strange. Just want to ask if connection information also need to be changes in some other file other then tnsnames.ora file.
Regards,
ImranThis is what making me worried, how the application is connecting with oracle 9i when TNS has no information about 9i server.
Well ifi we directly connect form builder with DB it does connects with 10g database, while the application is not. I have tried this.
Regards,
Imran -
Can't srvctl command write tnsnames.ora file?
Hi,
I use srvctl to create a new service correctly, but I find the information of this service isn't written into tnsnames.ora file, it means, user can't connect database by directly using this service name, it's very stranger, who can tell me how to use srvctl to create a service and ensuer the information about this service can be correctly written into tnsnames.ora file?
#srvctl add service -d mm -s mx -r node1 -a node2.Did you check tnsnames.ora for any new entries?
Yes,There are not any new entries for the new service I just created.
Check the command reference again, there is a flag to display "sample tns entries"
http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm#i1008779
I check that documentation, and I can use that command to run in my RAC environment, the returned result is
Example client-side TNS entry for service mx:
mx = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db_vip)(PORT=dedicated_port
))(CONNECT_DATA=(SERVICE_NAME=mx)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC
How to use this service in client or our application, must we manullay configure tnsnames.ora file?
BRs./Vinson -
Replace local tnsnames.ora-files with OID
Hi there,
I would like to replace our local tnsnames.ora-files with an central OID-Instance. I know I will have to use the ldap.ora on clientside, but how can I add service names to the OID?
Is there any guide or manual which describes this functionality?
Best RegardsYou need the Net Configuration Assistant, not Net Manager!
- select configure Directory Usage
- select correct type and name, and port(s)
- select correct default context (NOT cn=OracleContext!)
Next, you should be able to navigate to Local Naming, select an entry from your tnsnames.ora, and select from the mennu: Command->Directory->Export Net Service Names
- select one or more entries to be migrated -
Undo deleted photo, how to recover a deleted file in iPad mini
how to undo deleted photo? how to recover a deleted file in iPad mini?
Unfortunately you can't. Except if you made a back up of your iPad on iTunes, restore it with the last save.
Hope I helped -
1.2.0 reads TNSNAMES.ORA file multiple times and duplicates values in Alias
Since upgrading to 1.2.0.29.98 (clean install on Win XP SP 2), I have noticed that SQL Developer appears to be reading the TNSNAMES.ORA file multiple times. This results in the Network Alias pop-list on the TNS connection type to have duplicate values, although the number of duplicates for each entry varies widely - from four for the least that I saw and 252 for the most (assuming I counted that right :) ). We have approximately 270 entries in our TNSNAMES.ORA and the first entry in the file appears in the Network Alias list four times and the last entry in the file appears in the list 48 times.
To be honest, I switched to Basic JDBC connections with 1.1 and only noticed the problem because of some network performance issues - I thought that SQL Developer had hung and I switched on the debugging and could see that it was looping through the TNSNAMES.ORA file. Now that the network performance issues have been resolved, it still takes a little while to open the new connection window, but it is liveable, so I don't know whether the problem is 1.2 specific or not.Sue,
I assume from a bit of testing, that "each tns file on the system" means each file in the TNS_ADMIN location that starts with TNSNAMES.ORA.
I set my TNS_ADMIN to a local location and copied the current TNSNAMES.ORA from the network location (and chopped it down to a handful of entries). When I restarted SQL Developer I only had a single copy of each alias. If I copied TNSNAMES.ORA to "Copy of TNSNAMES.ORA" I still only had a single copy of each alias. If I copied TNSNAMES.ORA to TNSNAMES.ORA.TXT I then had two copies of each alias.
Unfortunately, I don't have any say in the maintenance of the network TNS_ADMIN location and it has almost 200 backup copies of the tns file, typically named TNSNAMES.ORA.YYYYMMDD.
My TNS_ADMIN setting is done as a Windows environment variable. I do not have any TNS_ADMIN setting in my registry. -
DBA studio: Error add/connect database "Failed to parse tnsnames.ora file"
I have Oracle (version 8.1.7) installed in my XP machine and when I try to (having chosen "Launch DBA Studio standalone") to open a connection I get:
"Failed to parse tnsnames.ora file
ERROR: 100 -- NLNV-NLNV String Format Error".
Also got this when I tried to manually add a database to a tree.
I can access the databases listed in my tnsnames.ora using SQL Plus with no error.
This is my tnsnames.ora.
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora81\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
INST1_HTTP.xx.yy.GE.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = MyMachine3)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = buch3ora)
(PRESENTATION = http://admin)
EXTPROC_CONNECTION_DATA.xx.yy.GE.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
MyOra3.xx.yy.GE.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = MyMachine3)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ora3)
OORCL.xx.yy.GE.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 3.4.55.66)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = oorcl))
Does anybody have any idea what is wrong? Thanks a lot. ChangsongJust found out this IS a string error in my Tnsname.ora. What i did is deleting all the entries in my tnsname.ora, and start adding each one back. I found one particular entry is responsible for the error. This is the old text
serv32.xxx.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = TCP)(PROTOCOL = TCP)(HOST = sevr32.xxy.ge.com)(PORT = 1521))
(CONNECT_DATA = (SID = atmo32))
just looking by itself I can't see anything wrong. I just formatted it a little, making it looked like the other one that is working
serv32.xxx.ge.com =(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = TCP)
(PROTOCOL = TCP)
(HOST = sevr32.xxy.ge.com)
(PORT = 1521)))
(CONNECT_DATA=
(SID = atmo32)))
and now it works fine. I Really can't tell the difference, except that some words were moved to the other line. What puzzled me is that the same old tnsname.ora worked in almost all the other circumstances, like sql plus, and other database enginee. But it is just not good enough for dba studio?
I admit I probably should have used the network utility to add a connection to avoid this type of format error.
Anyhow, I'm glad it is solved. by the way, the symjct.dll mentioned in the previous post should be symcjit.dll. I guess he mispelled the name. I renamed it to symcjit_old.dll and now the java error was gone. So that is another gain from this post. Thanks Joel for all the information. -
Should dbassist create an entry in my tnsnames.ora file?
I just created an instance on Solaris with dbassist and the sample minimal.rsp response file (8.1.7). I was surprised to note that no entry was created in the tnsnames.ora file as I would expect (it does create an entry on Windows platforms). Is this typical behavior? I did not see any option in the response file to do this. Another thing I notice was that it created an entry in the oratab file with the auto start flag set to n. Is there a way to make dbassist set that flag to y during install or am I going to have to sed it afterwards?
Thanks,
John1. Do I have to use the external IP address in the LISTENER.ora
file if I want clients external
to the firewall to connect to my database?No, you should simple use the internal address - there's no need
to use the external address. The packets that reach the server
do not contain the external address by the time they get to the
server. The firewall performs NAT on the external address
translating it to the internal address on the way in and
translating the internal address to the external address on the
way out.
2. If I change the entries in the LISTENER.ora file from
<production> to <172.168.0.101>, then
clients cannot connect to the database. Is this a normal
thing? I remember that I could use
internal IP addresses in ORACLE7 and 8 in the LISTENER.ORA
file.There must be something wrong with your DNS. If you run the
command "ping production" what address do you get? The external
address? If you attempt to ping 172.168.0.101 from a client that
can not connect, what do you get? What if you run the
command "tracert production"? What path do the packets take to
the server.
There sounds like there is some network topology issues in that
the clients can't get directly to the internal address but are
instead going through the firewall to get to the database. I
would suggest using a sniffer on the database (with the
appropriate authorization) to see what's going on and get a
network admin involved.
Regards,
Aaron C. Newman
Co-author, Oracle Security Handbook
[email protected]
Application Security, Inc.
www.appsecinc.com
phone: 212-490-6022
-Protection Where It Counts-
Maybe you are looking for
-
How can i synchronise new songs in the playlist from a new laptop
I have the iTunes v12 on a Windows 8.1 Operating system.Previously i used to synchronize songs from an older latop with Windows 7 which had all the songs.But now i recently shifted to a new laptop which is not having any songs of the existing playlis
-
UWL No popup - "Template" used for WebDynProLauncher
Hi, After configuring the SWFVISU is have re-registered my system and I'm getting my XML file very fine uwl.webflow.systemname - it works as configured. Now we want all WI applications to be launched as inplace (not popups) - which I could configure
-
Consequences of out of heap space errors
Hello, I'm curious what are the consequences of an out of heap space error. If my application is running and I get a heap space error does this corrupt my application? If I had some variable x = 123 can a out of heap space error corrupt x to make it
-
ITunes support for 5.1 audio formats - a plea to Apple!
When will we finally be able to purchase and play high resolution 5.1 audio formats such as DTS, Dolby Digital, MLP, etc with iTunes? I have a car (Acura) that has iPod integration, as well as an amazing audio system with DVD-A and DTS support. The D
-
Performing Switchover Failover
Most respected experts, i want to perform switchover, failover scenarios in my test dataguard environment. i want to know that 1. What parameters do i need to change in parameter files, NETWORK configuration files ? 2. Moreover my standby db in which