Title: utPLSSQL-cli doesn't find tnsnames.ora · Issue #163 · utPLSQL/utPLSQL-cli · GitHub
Open Graph Title: utPLSSQL-cli doesn't find tnsnames.ora · Issue #163 · utPLSQL/utPLSQL-cli
X Title: utPLSSQL-cli doesn't find tnsnames.ora · Issue #163 · utPLSQL/utPLSQL-cli
Description: Just like described in #88, if the tnsnames.ora file is not located in ORACLE_HOME/network/admin it is not found, which will result in the error described in #88. If the Oracle environment variable is TNS_ADMIN is set to any path like /h...
Open Graph Description: Just like described in #88, if the tnsnames.ora file is not located in ORACLE_HOME/network/admin it is not found, which will result in the error described in #88. If the Oracle environment variable...
X Description: Just like described in #88, if the tnsnames.ora file is not located in ORACLE_HOME/network/admin it is not found, which will result in the error described in #88. If the Oracle environment variable...
Opengraph URL: https://github.com/utPLSQL/utPLSQL-cli/issues/163
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"utPLSSQL-cli doesn't find tnsnames.ora","articleBody":"Just like described in #88, if the tnsnames.ora file is not located in ORACLE_HOME/network/admin it is not found, which will result in the error described in #88.\r\n\r\nIf the Oracle environment variable is TNS_ADMIN is set to any path like\r\n /home/ccuser/oracle\r\nand the normal network config files (sqlnet.ora, ldap.ora, tnsnames.ora) are placed in that directory, Oracle tools like sqlplus and tnsping will work just fine. But utPLSQL-cli doesn't seem to check the TNS_ADMIN setting. Instead I receive this error:\r\n`\r\nccuser@adeagibx:~/utPLSQL-cli/utPLSQL-cli/bin$ utplsql reporters ****/****@ddopmdb\r\njdbc:oracle:oci8:****/****@ddopmdb: oracle.jdbc.driver.T2CConnection.t2cSetSessionTimeZone(JLjava/lang/String;)I\r\njdbc:oracle:thin:****/****@ddopmdb: could not resolve the connect identifier \"ddopmdb\"\r\nCould not establish connection to database. Reason: could not resolve the connect identifier \"ddopmdb\"\r\n`\r\nWhile at the same time e.g. tnsping works fine:\r\nccuser@adeagibx:~/utPLSQL-cli/utPLSQL-cli/bin$ tnsping ddopmdb\r\n\r\nTNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 05-AUG-2019 16:35:41\r\n\r\nCopyright (c) 1997, 2008, Oracle. All rights reserved.\r\n\r\nUsed parameter files:\r\n/opt/SP/cmi/etc/oracle/sqlnet.ora\r\n\r\n\r\nUsed TNSNAMES adapter to resolve the alias\r\nAttempting to contact (DESCRIPTION= (ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=****)(PORT=****))) (CONNECT_DATA=(SID=DDOPMDB)))\r\nOK (20 msec)\r\n\r\nThe relevant environment variables look like this:\r\n\r\nccuser@adeagibx:/home/ccuser/utPLSQL-cli/utPLSQL-cli/bin$ env | grep ORACLE\r\nORACLE_HOME=/opt/oracle/product/111_cl_64/cl\r\nccuser@adeagibx:/home/ccuser/utPLSQL-cli/utPLSQL-cli/bin$ env | grep TNS\r\nTNS_ADMIN=/opt/SP/cmi/etc/oracle\r\n\r\nThey show, that the *.ora files are located outside of the ORACLE_HOME. This is necessary in our environments, because the base Oracle installation is provided by a different team and we can't just place / update the tnsnames.ora inside ORACLE_HOME.\r\n\r\nCan you please enable the use of TNS_ADMIN in the search for tnsnames.ora file if it is set.","author":{"url":"https://github.com/maxbernhardt","@type":"Person","name":"maxbernhardt"},"datePublished":"2019-08-05T15:14:32Z","url":"https://github.com/utPLSQL/utPLSQL-cli/issues/163"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fbd941ca-db69-67ad-1d30-d1aef6a709c0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACF2:7607C:8A0219:BC6E7B:6B047D6F |
| html-safe-nonce | bb0fec1c5d3888e59bd3809d795e229ddea431c08c13111d4cb090994140bc26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0YyOjc2MDdDOjhBMDIxOTpCQzZFN0I6NkIwNDdENkYiLCJ2aXNpdG9yX2lkIjoiMzgzODE2MzY3MjkzMzYyOTI5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70978d6555f7809885bdc8f6d1d4ecf400782c699145f86e81123ecd63db674b |
| hovercard-subject-tag | issue:476916856 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL-cli/163/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac22c79bf5ec23bcffa8bbfbc1d7d1f93e5ea2fc349e85ff0214e69d760a9dd9/utPLSQL/utPLSQL-cli/issues/163 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac22c79bf5ec23bcffa8bbfbc1d7d1f93e5ea2fc349e85ff0214e69d760a9dd9/utPLSQL/utPLSQL-cli/issues/163 |
| og:image:alt | Just like described in #88, if the tnsnames.ora file is not located in ORACLE_HOME/network/admin it is not found, which will result in the error described in #88. If the Oracle environment variable... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxbernhardt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/utPLSQL/utPLSQL-cli git https://github.com/utPLSQL/utPLSQL-cli.git |
| octolytics-dimension-user_id | 15661281 |
| octolytics-dimension-user_login | utPLSQL |
| octolytics-dimension-repository_id | 88671831 |
| octolytics-dimension-repository_nwo | utPLSQL/utPLSQL-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 88671831 |
| octolytics-dimension-repository_network_root_nwo | utPLSQL/utPLSQL-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width