Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Implementing Listener Security Oracle
  • compile_inv.sql Oracle
  • UTL_FILE test program Oracle
  • Jai Shree Ram Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • Import and export statements Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • Check Oracle installed products using one command Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • Ports used by Oracle Software Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Creating never expiring DB user accounts in Oracle 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

  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Convert multiple rows to single column Oracle
  • Rename Tablespace Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • useful dg links Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • SQL Server: How to see historical transactions SQL Server
  • When error comes for temporary tablespace with version <= 9i Oracle
  • cp_filesystem.sql Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • Parallel DML Oracle
  • checking connectivity between two servers Linux/Unix
  • Privilege to describe the table. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme