{"id":1509,"date":"2015-03-21T13:04:25","date_gmt":"2015-03-21T18:04:25","guid":{"rendered":"https:\/\/bijoos.com\/oraclenotes\/?p=1509"},"modified":"2026-02-07T15:38:09","modified_gmt":"2026-02-07T21:38:09","slug":"tnsnames-ora-learning","status":"publish","type":"post","link":"https:\/\/bijoos.com\/oraclenotes\/2015\/1509\/","title":{"rendered":"TNSNAMES.ORA Learning"},"content":{"rendered":"<p>If I have an alias entry named &#8220;TEST1&#8221; in tnsnames.ora twice with different descriptions, which one will Oracle*Net use when connecting to database? What if the duplicate alias entry is in the IFILE referenced\u00a0from tnsnames.ora &#8211; which entry will be used?<\/p>\n<p>In my tests, Oracle*Net reads the tnsnames.ora file from bottom up. So if there are duplicate aliases, the alias on the bottom is the one used.<\/p>\n<p>If you reference IFILE from tnsnames.ora, and if the IFILE has the duplicate, the position of the IFILE reference in tnsnames.ora determines which entry is used. If IFILE is at the very bottom, Oracle*Net reads the entries in that file first, and uses the entry from the IFILE. If IFILE is at the very top of tnsnames.ora, it is read last and hence the bottom entry from tnsnames.ora file is used.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If I have an alias entry named &#8220;TEST1&#8221; in tnsnames.ora twice with different descriptions, which one will Oracle*Net use when connecting to database? What if the duplicate alias entry is in the IFILE referenced\u00a0from tnsnames.ora &#8211; which entry will be used? In my tests, Oracle*Net reads the tnsnames.ora file from bottom up. So if there &#8230; <a title=\"TNSNAMES.ORA Learning\" class=\"read-more\" href=\"https:\/\/bijoos.com\/oraclenotes\/2015\/1509\/\" aria-label=\"Read more about TNSNAMES.ORA Learning\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[133],"tags":[],"class_list":["post-1509","post","type-post","status-publish","format-standard","hentry","category-oracledb"],"acf":[],"jetpack-related-posts":[{"id":22,"url":"https:\/\/bijoos.com\/oraclenotes\/2011\/22\/","url_meta":{"origin":1509,"position":0},"title":"SQL*Net Configuration [Orig Published &#8211; Apr 1999]","author":"Biju","date":"September 26, 2011","format":false,"excerpt":"Let's set up SQL*Net (known stuff for most DBAs, but I get many questions on this subject often, so here I just provide some examples\/templates for the configuration files) on the UNIX server and client PC using the TCP\/IP communication protocol. In Oracle8 SQL*Net is called Net8. SQL*Net enables client-server\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bijoos.com\/_themes\/bijoos-sumi\/sumbul1a.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1627,"url":"https:\/\/bijoos.com\/oraclenotes\/2015\/1627\/","url_meta":{"origin":1509,"position":1},"title":"NoCOUG Journal &#8211; November 2015","author":"Biju","date":"November 6, 2015","format":false,"excerpt":"Another edition of NoCOUG journal came out. In this issue, for\u00a0the Many Things Oracle column, I introduce\u00a0the new background processes in DB 12c and few\u00a0SQL Developer tidbits... Read here... This is fifth\u00a0installment of Many Things Oracle column in NoCOUG journal. The past articles are: NoCOUG Journal 2015 AUG: Trace File\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"NoCOUG-Logo","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2015\/11\/NoCOUG-Logo.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1992,"url":"https:\/\/bijoos.com\/oraclenotes\/2016\/1992\/","url_meta":{"origin":1509,"position":2},"title":"12 Days of #Cloud: Exploring #DBaaS with Data Guard","author":"Biju","date":"December 30, 2016","format":false,"excerpt":"12 Days of #Cloud: Day 11 After a few failed attempts, I was successful in creating a Data Guard DBaaS Instance. Since I was playing with a trial account, the resources were limited. I guess when I had another database running, there is not much storage left to create two\u2026","rel":"","context":"In &quot;Cloud &amp; Autonomous Database&quot;","block_context":{"text":"Cloud &amp; Autonomous Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/cloud-autonomous\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2016\/12\/image22.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1548,"url":"https:\/\/bijoos.com\/oraclenotes\/2015\/1548\/","url_meta":{"origin":1509,"position":3},"title":"NoCOUG Journal &#8211; Aug 2015","author":"Biju","date":"August 10, 2015","format":false,"excerpt":"Another edition of NoCOUG journal came out today. In this issue, for\u00a0the Many Things Oracle column, I talk about Trace File Analyzer Collector (TFA) and my experience updating TFA using latest PSU patch... Read here... This is fourth installment of Many Things Oracle column in NoCOUG journal. The past articles\u2026","rel":"","context":"In &quot;Certification &amp; Learning&quot;","block_context":{"text":"Certification &amp; Learning","link":"https:\/\/bijoos.com\/oraclenotes\/category\/certification-learning\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1667,"url":"https:\/\/bijoos.com\/oraclenotes\/2016\/1667\/","url_meta":{"origin":1509,"position":4},"title":"NoCOUG Journal Column &#8211; February 2016 Issue","author":"Biju","date":"January 16, 2016","format":false,"excerpt":"In the February 2016 issue of the NoCOUG Journal, for\u00a0the Many Things Oracle column, I\u00a0discuss some of the v$ views that are lesser known or not widely used. I also touch up on the MGMTDB cluster repository database in Oracle Clusterware 12c. Read here... This is a Collector's Edition, and\u2026","rel":"","context":"In &quot;Certification &amp; Learning&quot;","block_context":{"text":"Certification &amp; Learning","link":"https:\/\/bijoos.com\/oraclenotes\/category\/certification-learning\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2328,"url":"https:\/\/bijoos.com\/oraclenotes\/2018\/2328\/","url_meta":{"origin":1509,"position":5},"title":"Exploring Autonomous Databases &#8211; Client Credentials","author":"biju.thomas","date":"October 4, 2018","format":false,"excerpt":"The wallet zip file from ATP or ADW includes the connection information for all the ATP and ADW databases you have created under the cloud account, even though the credential zip file name is \"wallet_.zip\".","rel":"","context":"In &quot;Cloud &amp; Autonomous Database&quot;","block_context":{"text":"Cloud &amp; Autonomous Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/cloud-autonomous\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2018\/10\/oracle-autonomous-db.png?fit=550%2C318&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2018\/10\/oracle-autonomous-db.png?fit=550%2C318&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2018\/10\/oracle-autonomous-db.png?fit=550%2C318&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/1509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/comments?post=1509"}],"version-history":[{"count":1,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/1509\/revisions"}],"predecessor-version":[{"id":3050,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/1509\/revisions\/3050"}],"wp:attachment":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/media?parent=1509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/categories?post=1509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/tags?post=1509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}