Multiple Alias Comma Separated For A Connect String

In this entry I like show a simple way of use multiple alias for the same connect string, usually you use the following structure

FINANCIAL  =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS =
         (COMMUNITY= TCPCOM)(PROTOCOL = TCP)(HOST = zeus.world.es)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = sapdb)
    )
  )
EMPLOYEES  =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS =
         (COMMUNITY= TCPCOM)(PROTOCOL = TCP)(HOST = zeus.world.es)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = sapdb)
    )
  )
TAX  =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS =
         (COMMUNITY= TCPCOM)(PROTOCOL = TCP)(HOST = zeus.world.es)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = sapdb)
    )
  )

 

But you can get the same result by use comma separated;

FINANCIAL,EMPLOYEES,TAX  =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS =
         (COMMUNITY= TCPCOM)(PROTOCOL = TCP)(HOST = zeus.world.es)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = sapdb)
    )
  )

HTH – Antonio NAVARRO

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s