Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Python class import from different folders Python/PySpark
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • My Minimum Tuning Programs Oracle
  • db_status.sql Oracle
  • refre.sql Oracle
  • RAC 11g with vmware Oracle
  • Rename Tablespace Oracle
  • find the files that are 1 day old. Linux/Unix
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • MYSQL for Oracle DBA MYSQL
  • Query to Generate aggregate on every 30 mins. Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 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

  • Rename Oracle Instance Name Oracle
  • Set Role explaination. Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • cp_filesystem.sql Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • ORA-3136 Oracle
  • Find sort details from Db find_sort.sql Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • Database logon trigger issue Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • Find Command Linux/Unix
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • create database syntax Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme