Title: Connection with TNS name doesn't work when DEFAULT_DOMAIN is defined in sqlnet.ora · Issue #90 · utPLSQL/utPLSQL-cli · GitHub
Open Graph Title: Connection with TNS name doesn't work when DEFAULT_DOMAIN is defined in sqlnet.ora · Issue #90 · utPLSQL/utPLSQL-cli
X Title: Connection with TNS name doesn't work when DEFAULT_DOMAIN is defined in sqlnet.ora · Issue #90 · utPLSQL/utPLSQL-cli
Description: Hi, Following the investigation done for #88 , I still have an issue with connection using TNSNAME. When TNS alias is defined without DEFAULT_DOMAIN it is working fine. Command used is like : utplsql run user/pswd@DB_TEST_DEV ... Config ...
Open Graph Description: Hi, Following the investigation done for #88 , I still have an issue with connection using TNSNAME. When TNS alias is defined without DEFAULT_DOMAIN it is working fine. Command used is like : utpls...
X Description: Hi, Following the investigation done for #88 , I still have an issue with connection using TNSNAME. When TNS alias is defined without DEFAULT_DOMAIN it is working fine. Command used is like : utpls...
Opengraph URL: https://github.com/utPLSQL/utPLSQL-cli/issues/90
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Connection with TNS name doesn't work when DEFAULT_DOMAIN is defined in sqlnet.ora","articleBody":"Hi,\r\nFollowing the investigation done for #88 , I still have an issue with connection using TNSNAME.\r\n\r\nWhen TNS alias is defined without DEFAULT_DOMAIN it is working fine.\r\nCommand used is like : `utplsql run user/pswd@DB_TEST_DEV ...`\r\nConfig details:\r\n```\r\n# sqlnet.ora Network Configuration File\r\n\r\nSQLNET.AUTHENTICATION_SERVICES= (NTS)\r\nNAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)\r\n```\r\n```\r\n# tnsnames.ora File\r\n\r\nDB_TEST_DEV=\r\n (DESCRIPTION =\r\n (ADDRESS_LIST =\r\n (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = 10.1.1.1)(Port = 1550))\r\n )\r\n (CONNECT_DATA =\r\n (SID = DB_T_DEV)\r\n )\r\n )\r\n```\r\nBut when DEFAULT_DOMAIN is defined, the alias is not found by java API used to connect:\r\nCommand used is like : `utplsql run user/pswd@DB_TEST_DEV ...`\r\n```\r\n...\r\nCaused by: oracle.net.ns.NetException: could not resolve the connect identifier \"db_test_dev\"\r\n...\r\n```\r\nConfig details:\r\n```\r\n# sqlnet.ora Network Configuration File\r\nSQLNET.AUTHENTICATION_SERVICES= (NTS)\r\nTRACE_LEVEL_CLIENT = OFF\r\nNAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)\r\nLOG_DIRECTORY_CLIENT = c:\r\nNAMES.DEFAULT_DOMAIN = world\r\nSQLNET.EXPIRE_TIME = 0\r\nNAME.DEFAULT_ZONE = world\r\n```\r\n```\r\n# tnsnames.ora File\r\n\r\nDB_TEST_DEV.WORLD=\r\n (DESCRIPTION =\r\n (ADDRESS_LIST =\r\n (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = 10.1.1.1)(Port = 1550))\r\n )\r\n (CONNECT_DATA =\r\n (SID = DB_T_DEV)\r\n )\r\n )\r\n```\r\n\r\nIn such config, connect string should be user/pswd@DB_TEST_DEV and when client opens the connection the TNS alias is determined using connect string + DEFAULT_DOMAIN in sqlnet.ora.\r\n\r\nIt seems that the java API doesn't use sqlnet.ora (googled but I found nothing about that).\r\nSo I tried to give the full alias name in connect string but API thought I pass an IP because there is a dot in connect string (it is what I guess)\r\nExample:\r\n `utplsql run user/pswd@DB_TEST_DEV.WORLD ...`\r\n```\r\n...\r\njava.sql.SQLRecoverableException: IO Error: Invalid connection string format, a valid format is: \"host:port:sid\"\r\n...\r\n```\r\n(see #88 for full stack)\r\n\r\nAny chance to have a look because config with DEFAULT_DOMAIN can't be changed ?\r\nThanks in advance.\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/SebGt","@type":"Person","name":"SebGt"},"datePublished":"2018-07-11T07:23:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/90/utPLSQL-cli/issues/90"}
| 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:67242620-444f-c9f3-98a4-52c594d0f7a0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBFC:374D34:44A0315:5BEE9BA:696DEEBF |
| html-safe-nonce | 55c41d14b319dcdbe083219f6ede0d77ae6c0accb7f3ffbc0bdb9096aab60fd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkZDOjM3NEQzNDo0NEEwMzE1OjVCRUU5QkE6Njk2REVFQkYiLCJ2aXNpdG9yX2lkIjoiNTU5Njg1OTk0MDYwNTkxNDgxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e92e8fd827b69e6a4d7c6dac1d7de37f0a3ecd3272046b735c7c2f97f194d53c |
| hovercard-subject-tag | issue:340121825 |
| 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/90/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6b1ea612b4ce69e40d12357d40111cdcd881f0655b7a682ef7f774d1c40c4bd/utPLSQL/utPLSQL-cli/issues/90 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6b1ea612b4ce69e40d12357d40111cdcd881f0655b7a682ef7f774d1c40c4bd/utPLSQL/utPLSQL-cli/issues/90 |
| og:image:alt | Hi, Following the investigation done for #88 , I still have an issue with connection using TNSNAME. When TNS alias is defined without DEFAULT_DOMAIN it is working fine. Command used is like : utpls... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SebGt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| 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 | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width