Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Find nth max and min. Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • checking connectivity between two servers Linux/Unix
  • Oracle 10g Wait Model Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Temporary tablespace explaination Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • AWR license Oracle
  • refre.sql Oracle
  • nfs mount command Linux/Unix
  • v$backup.status information Oracle
  • Remove duplicate rows from table Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • block_ident.sql Oracle
  • get_vmstat.ksh for Solaris Oracle

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

  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Rename Tablespace Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • Oracle Statspack survival Guide Oracle
  • Committing distributed transaction using commit force Oracle
  • Find Plan Hash value fphv.sql 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
  • runsql_once.ksh Linux/Unix
  • SAN Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Drop database in Oracle 10g Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • get_vmstat_solaris Oracle
  • Create type and Grant on it. Oracle
  • restarting network in linux Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme