tnsnames.ora.sample 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # This file contains the syntax information for
  2. # the entries to be put in any tnsnames.ora file
  3. # The entries in this file are need based.
  4. # There are no defaults for entries in this file
  5. # that Sqlnet/Net3 use that need to be overridden
  6. #
  7. # Typically you could have two tnsnames.ora files
  8. # in the system, one that is set for the entire system
  9. # and is called the system tnsnames.ora file, and a
  10. # second file that is used by each user locally so that
  11. # he can override the definitions dictated by the system
  12. # tnsnames.ora file.
  13. # The entries in tnsnames.ora are an alternative to using
  14. # the names server with the onames adapter.
  15. # They are a collection of aliases for the addresses that
  16. # the listener(s) is(are) listening for a database or
  17. # several databases.
  18. # The following is the general syntax for any entry in
  19. # a tnsnames.ora file. There could be several such entries
  20. # tailored to the user's needs.
  21. <alias>= [ (DESCRIPTION_LIST = # Optional depending on whether u have
  22. # one or more descriptions
  23. # If there is just one description, unnecessary ]
  24. (DESCRIPTION=
  25. [ (SDU=2048) ] # Optional, defaults to 2048
  26. # Can take values between 512 and 32K
  27. [ (ADDRESS_LIST= # Optional depending on whether u have
  28. # one or more addresses
  29. # If there is just one address, unnecessary ]
  30. (ADDRESS=
  31. [ (COMMUNITY=<community_name>) ]
  32. (PROTOCOL=tcp)
  33. (HOST=<hostname>)
  34. (PORT=<portnumber (1521 is a standard port used)>)
  35. )
  36. [ (ADDRESS=
  37. (PROTOCOL=ipc)
  38. (KEY=<ipckey (PNPKEY is a standard key used)>)
  39. )
  40. ]
  41. [ (ADDRESS=
  42. [ (COMMUNITY=<community_name>) ]
  43. (PROTOCOL=decnet)
  44. (NODE=<nodename>)
  45. (OBJECT=<objectname>)
  46. )
  47. ]
  48. ... # More addresses
  49. [ ) ] # Optional depending on whether ADDRESS_LIST is used or not
  50. [ (CONNECT_DATA=
  51. (SID=<oracle_sid>)
  52. [ (GLOBAL_NAME=<global_database_name>) ]
  53. )
  54. ]
  55. [ (SOURCE_ROUTE=yes) ]
  56. )
  57. (DESCRIPTION=
  58. [ (SDU=2048) ] # Optional, defaults to 2048
  59. # Can take values between 512 and 32K
  60. [ (ADDRESS_LIST= ] # Optional depending on whether u have more
  61. # than one address or not
  62. # If there is just one address, unnecessary
  63. (ADDRESS
  64. [ (COMMUNITY=<community_name>) ]
  65. (PROTOCOL=tcp)
  66. (HOST=<hostname>)
  67. (PORT=<portnumber (1521 is a standard port used)>)
  68. )
  69. [ (ADDRESS=
  70. (PROTOCOL=ipc)
  71. (KEY=<ipckey (PNPKEY is a standard key used)>)
  72. )
  73. ]
  74. ... # More addresses
  75. [ ) ] # Optional depending on whether ADDRESS_LIST
  76. # is being used
  77. [ (CONNECT_DATA=
  78. (SID=<oracle_sid>)
  79. [ (GLOBAL_NAME=<global_database_name>) ]
  80. )
  81. ]
  82. [ (SOURCE_ROUTE=yes) ]
  83. )
  84. [ (CONNECT_DATA=
  85. (SID=<oracle_sid>)
  86. [ (GLOBAL_NAME=<global_database_name>) ]
  87. )
  88. ]
  89. ... # More descriptions
  90. [ ) ] # Optional depending on whether DESCRIPTION_LIST is used or not