GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow `/@TNS` connections using Oracle Wallet (Secure External Password Store) by jgebal · Pull Request #230 · utPLSQL/utPLSQL-cli

Conversation

@jgebal

@jgebal jgebal commented Sep 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Closes #225. Partly addresses #172: the password no longer has to appear on the command line.

Summary

utplsql now accepts a connect string with no user or password. The JDBC driver then reads the credentials from an Oracle Wallet, the same way sqlplus /@MYDB and SQLcl do:

utplsql run /@MYDATABASE
utplsql run "/@MYDATABASE?TNS_ADMIN=/path/to/network/admin"

Details

  • TNS_ADMIN handling (DataSourceProvider)
    • The JDBC driver resolves tnsnames.ora and ojdbc.properties (where the wallet location goes) from the TNS_ADMIN environment variable on its own.
    • The CLI now sets oracle.net.tns_admin to ORACLE_HOME/network/admin only when neither -Doracle.net.tns_admin nor TNS_ADMIN is set. Previously it set the property whenever ORACLE_HOME was set, and because the property takes precedence in the driver, that silently overrode TNS_ADMIN.
    • An explicit -Doracle.net.tns_admin still overrides everything.

Behaviour change

If both TNS_ADMIN and ORACLE_HOME are set and point to different directories, TNS_ADMIN now wins, because the CLI no longer overrides it with the ORACLE_HOME path. This matches how Oracle client tools resolve it. Connect strings that worked before are parsed the same way.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Jacek Gębal added 6 commits September 27, 2026 14:15
Jacek Gębal
Adding support for database connections via Oracle Wallet.
5e82756
Jacek Gębal
Fixing minor warnings from code analysis.
b9abd0b
Jacek Gębal
Changes in the way TNS_ASMIN logic is handled as TNS_ADMIN is resolve…
e94f1a2
…d automatically by jdbc driver. So `cli` will only use the ORACLE_HOME resolution when TNS_ADMIN is not defined.

Removed `oraclepki` as pom dependency. It is now delivered together with jdbc as part of java-api 3.2.5.
Jacek Gębal
Fixing paths as they should be lowercase.
11f2ae8
Jacek Gębal
Additional tests to verify different ways to resolve TNS name.
5561a05
Jacek Gębal
Update of readme.md
96f9f9f
@sonarqubecloud

sonarqubecloud Bot commented Sep 27, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
5 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jgebal
jgebal merged commit 8c83e6a into develop Sep 27, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@jgebal
jgebal deleted the feature/add_support_for_wallet branch September 27, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Allow /@TNS connection with Secure External Password Store

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jgebal
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.