Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Paste command syntax Linux/Unix
  • Alter procedure auditing Oracle
  • Error Handling in Proc Oracle
  • v$event_name Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • find_longsql.sql Oracle
  • sqlnet.ora paramters Oracle
  • currwait.sql Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Oracle Release Explaination Oracle
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • normal maintenance for exp-imp and renaming table Oracle
  • Oracle Identifiers 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

  • UNderstand and eliminate Latch contention. Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • import-export with multiple files Oracle
  • Oracle Identifiers Oracle
  • alter database backup controlfile to trace Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • FRA Information. Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • to see when crontab is changed. Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme