Skip to Main Content

SQLcl: MCP Server & SQL Prompt

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

conmgr -replace leading to duplicate connections

Patrick JolliffeApr 23 2025

Looks like a bug such that modifying a connection with -save -replace results in a duplicate (ie the new connection is created, but the old one isn't removed).
I deleted my connection manager folders to start from scratch for a blog post, so possibly i corrupted them, is anybody else able to try to reproduce?

➜ ~ sql -nolog


SQLcl: Release 25.1 Production on Wed Apr 23 16:26:57 2025

Copyright (c) 1982, 2025, Oracle. All rights reserved.

SQL> cm list
.
SQL> conn -save tom -savepwd tom/tom@localhost:1521/orclpdb1
Name: tom
Connect String: localhost:1521/orclpdb1
User: tom
Password: ******
Connected.
SQL> cm list
.
└── tom
SQL> conn -save tom -replace -savepwd tom/tom@localhost:1521/orclpdb1
Name: tom
Connect String: localhost:1521/orclpdb1
User: tom
Password: ******
Connected.
SQL> cm list
.
├── tom
└── tom
Comments
Post Details
Added on Apr 23 2025
6 comments
229 views