{"id":4931,"date":"2014-02-26T10:33:24","date_gmt":"2014-02-26T15:33:24","guid":{"rendered":"https:\/\/pitss.org\/us\/?p=4931"},"modified":"2017-09-05T15:22:29","modified_gmt":"2017-09-05T19:22:29","slug":"tnsnames-ora-location-mapping","status":"publish","type":"post","link":"https:\/\/pitss.org\/us\/2014\/02\/26\/tnsnames-ora-location-mapping\/","title":{"rendered":"How to Map tnsnames.ora to a Different Location for Forms and Reports"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; custom_padding=&#8221;0px||50px|&#8221; admin_label=&#8221;section&#8221; _builder_version=&#8221;3.0.51&#8243;][et_pb_row custom_padding=&#8221;0px|||&#8221; _builder_version=&#8221;3.0.51&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.0.47&#8243; parallax=&#8221;off&#8221; parallax_method=&#8221;on&#8221;][et_pb_text _builder_version=&#8221;3.0.64&#8243; custom_margin=&#8221;||30px|&#8221;]<\/p>\n<h1 style=\"margin-bottom: 15px;\">How to Map tnsnames.ora to a Different Location for Forms and Reports<\/h1>\n<p>By default in every Oracle Forms and Reports 11g (and 11gR2) deployment, the application(s) look for the TNS connection details inside the tnsnames.ora location in %ORACLE_INSTANCE%\\config ($ORACLE_INSTANCE\/config in Unix). An example location could be C:\\Oracle\\Middleware\\asinst_1\\config.<\/p>\n<p>If you need to deploy to a seperate tnsnames.ora location such as a network drive or in the same location as your Oracle database (only if one is installed in the same environment as WebLogic), you will need to follow these steps to configure this deployment.<\/p>\n<p>[\/et_pb_text][et_pb_divider color=&#8221;#e2e2e2&#8243; show_divider=&#8221;on&#8221; divider_position=&#8221;center&#8221; _builder_version=&#8221;3.0.51&#8243; custom_css_main_element=&#8221;margin-bottom:30px !important;&#8221;][\/et_pb_divider][et_pb_text _builder_version=&#8221;3.0.51&#8243; custom_margin=&#8221;||30px|&#8221;]<\/p>\n<h3><strong>What you&#8217;ll learn in this article:<\/strong><\/h3>\n<p><strong style=\"font-size: 16px; padding-right: 5px; background-color: #ffffff; color: #abd25e;\">\u2713<\/strong> How to map tnsnames.ora to a different location for Oracle Forms and Reports<br \/> <strong style=\"font-size: 16px; padding-right: 5px; background-color: #ffffff; color: #abd25e;\">\u2713<\/strong><span style=\"font-size: 16px; background-color: #ffffff;\">&nbsp;Instructions for both Windows and Unix<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row custom_padding=&#8221;40px|40px|30px|40px&#8221; background_color=&#8221;#006bb3&#8243; background_position_1=&#8221;top_left&#8221; background_repeat_1=&#8221;no-repeat&#8221; _builder_version=&#8221;3.0.51&#8243;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.0.47&#8243; parallax=&#8221;off&#8221; parallax_method=&#8221;on&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;no-repeat&#8221;][et_pb_text background_layout=&#8221;dark&#8221; _builder_version=&#8221;3.0.64&#8243; background_color=&#8221;#006bb3&#8243;]<\/p>\n<h2><strong>Fill out this form to get immediate access to the article.<br \/>\n<\/strong><\/h2>\n<p>[\/et_pb_text][et_pb_code module_class=&#8221;white-text&#8221; _builder_version=&#8221;3.0.67&#8243;][ninja_form id=23][\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Map tnsnames.ora to a Different Location for Forms and Reports By default in every Oracle Forms and Reports 11g (and 11gR2) deployment, the application(s) look for the TNS connection details inside the tnsnames.ora location in %ORACLE_INSTANCE%\\config ($ORACLE_INSTANCE\/config in Unix). An example location could be C:\\Oracle\\Middleware\\asinst_1\\config. If you need to deploy to a seperate [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"By default in every Oracle Forms and Reports 11g (and 11gR2) deployment, the application(s) look for the TNS connection details inside the <span class=\"items\"><span class=\"item\">tnsnames.ora location <\/span><\/span>in %ORACLE_INSTANCE%\\config ($ORACLE_INSTANCE\/config in Unix). An example location could be C:\\Oracle\\Middleware\\asinst_1\\config.\r\n\r\nIf you need to deploy to a seperate tnsnames.ora location such as a network drive or in the same location as your Oracle database (only if one is installed in the same environment as WebLogic), you will need to follow these steps to configure this deployment:\r\n\r\n<strong><u>System Environment Variables<\/u><\/strong>\r\n\r\n<strong>For Windows:<\/strong>\r\n<ol>\r\n \t<li>Go to your Computer Properties (Right-click on Computer and select Properties)<\/li>\r\n \t<li>Select \u201cAdvanced system settings\u201d<\/li>\r\n \t<li>Select \u201cEnvironment Variables\u2026\u201d<\/li>\r\n \t<li>If not set already, create a new System Environment variable called TNS_ADMIN. For the value, please specify the directory you wish to deploy tnsnames.ora. NOTE: If the directory is in a network drive, please map the network drive to a disk drive such as S:\\ for example.<\/li>\r\n \t<li>Click OK three times to save the changes.<\/li>\r\n<\/ol>\r\n<strong>For Linux\/Unix:<\/strong>\r\n<ol>\r\n \t<li>Go to $HOME and open up .bash_profile in a text editor<\/li>\r\n \t<li>If not present already, create a new environment variable called TNS_ADMIN. For the value, please specify the directory you wish to deploy tnsnames.ora. NOTE: Make sure you export this environment variable.<\/li>\r\n \t<li>Save and close the file.<\/li>\r\n \t<li>To start using the new variable, close your terminal (SSH) window and start a new terminal window.<\/li>\r\n<\/ol>\r\n<strong><u>Forms<\/u><\/strong>\r\n<ol>\r\n \t<li>Navigate to %DOMAIN_HOME%\\config\\fmwconfig\\servers\\WLS_FORMS\\applications\\formsapp_11.1.2\\config ($DOMAIN_HOME\/config\/fmwconfig\/servers\/WLS_FORMS\/applications\/formsapp_11.1.2\/config in Unix) and open up any environment files (.env) you are using for your application.<\/li>\r\n \t<li>Look for the environment variable TNS_ADMIN. For the value, please specify the directory you wish to deploy tnsnames.ora.<\/li>\r\n \t<li>Save and close the file.<\/li>\r\n<\/ol>\r\nNOTE: You do NOT need to restart the WLS_FORMS WebLogic server.\r\n\r\n<strong><u>Reports<\/u><\/strong>\r\n\r\nIMPORTANT: Before running steps 5-7, make sure nobody is logged into the Forms and Reports application(s).\r\n<ol>\r\n \t<li>Navigate to %ORACLE_INSTANCE%\\config\\OPMN\\opmn ($ORACLE_INSTANCE\/config\/OPMN\/opmn in Unix) and open up opmn.xml (NOTE: Please make a backup first.)<\/li>\r\n \t<li>Look for the environment variable TNS_ADMIN. For the value, please specify the directory you wish to deploy tnsnames.ora.<\/li>\r\n \t<li>Save and close the file.<\/li>\r\n \t<li>Open up Command Prompt and navigate to %ORACLE_INSTANCE%\\bin ($ORACLE_INSTANCE\/bin in Unix).<\/li>\r\n \t<li>Reload OPMN: opmnctl reload<\/li>\r\n \t<li>Stop OPMN: opmnctl stopall<\/li>\r\n \t<li>Start OPMN: opmnctl startall<\/li>\r\n<\/ol>\r\nTo test, remove (but do not delete) the tnsnames.ora from %ORACLE_INSTANCE%\\config ($ORACLE_INSTANCE\/config). Try running a form and report from your application(s) to make sure that you do not get any TNS errors. If your application runs successfully, the above configurations have been applied successfully.","_et_gb_content_width":"","footnotes":""},"categories":[22,4,36,19,10],"tags":[11,16,41,23,54,37],"class_list":["post-4931","post","type-post","status-publish","format-standard","hentry","category-forms","category-install-config","category-reports","category-unix-linux","category-windows","tag-11g","tag-11gr2","tag-configuration","tag-forms","tag-opmn","tag-reports"],"_links":{"self":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/4931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/comments?post=4931"}],"version-history":[{"count":9,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/4931\/revisions"}],"predecessor-version":[{"id":9986,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/4931\/revisions\/9986"}],"wp:attachment":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/media?parent=4931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/categories?post=4931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/tags?post=4931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}