Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • To find all disk io ( EMC as well as local) Linux/Unix
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Oracle Statspack survival Guide Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • First Entry in RAC Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • check_copy_progress.sh Linux/Unix
  • tblwopk.sql tablewopk.sql Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • Logic to chech # of parameters command line parameters Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Find total file sizes Linux/Unix
  • copying/removing directory with all its subdirectory Linux/Unix

TNSNAMES entries details

Posted on 30-Jan-2010 By Admin No Comments on TNSNAMES entries details

Option: Try each address, in order, until one succeeds ( Failover only). By default failover=true if you have more than one entry in address list.

=============================================================================

MEHTA =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = NYBOX)(PORT = 1555))

(ADDRESS = (PROTOCOL = TCP)(HOST = FLBOX)(PORT = 1600))

)

(CONNECT_DATA =

(SERVICE_NAME = TESTDB)

)

)

Option: Try each address randomly, until one succeeds (Load_Balance=yes), Whenever RANDOM word comes consider LOAD_BALANCE=YES. So this option is example of Failover and load balancing.

===========================================================================

MEHTA =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = NYBOX)(PORT = 1555))

(ADDRESS = (PROTOCOL = TCP)(HOST = FLBOX)(PORT = 1600))

(LOAD_BALANCE = yes)

)

(CONNECT_DATA =

(SERVICE_NAME = TESTDB)

)

)

Option: Try one address only, selected at random. (Load Balancing only)

=======================================================================

MEHTA =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = NYBOX)(PORT = 1555))

(ADDRESS = (PROTOCOL = TCP)(HOST = FLBOX)(PORT = 1600))

(LOAD_BALANCE = yes)

(FAILOVER = false)

)

(CONNECT_DATA =

(SERVICE_NAME = TESTDB)

)

)

Option: Use each address in order until destination is reached, used with oracle connection manager.

====================================================================================================

MEHTA =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = NYBOX)(PORT = 1555))

(ADDRESS = (PROTOCOL = TCP)(HOST = FLBOX)(PORT = 1600))

(SOURCE_ROUTE = yes)

(FAILOVER = false)

)

(CONNECT_DATA =

(SERVICE_NAME = TESTDB)

)

)

Option: Use only the first address.

====================================================

MEHTA =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = NYBOX)(PORT = 1555))

(ADDRESS = (PROTOCOL = TCP)(HOST = FLBOX)(PORT = 1600))

(FAILOVER = false)

)

(CONNECT_DATA =

(SERVICE_NAME = TESTDB)

)

)

Oracle, SQL scripts

Post navigation

Previous Post: Oracle 11g Training on 29JAN1010
Next Post: sqlnet.ora paramters

Related Posts

  • Error Handling in Proc Oracle
  • oracle Dba site Oracle
  • Changing the Global Database Name Oracle
  • create user with unlimited quota Oracle
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Goog notes on X$ tables Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Jai Shree Ram Oracle
  • Python class import from different folders Python/PySpark
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • Convert multiple rows to single column Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme