SQLcl: Release 22.1 Production on Fri Jun 03 13:13:14 2022
Copyright (c) 1982, 2022, Oracle. All rights reserved.
@> set sqlprompt "_USER'@'_CONNECT_IDENTIFIER> "
@> conn test@test02pdb1
Password? (**********?) ********************
Connected.
TEST@test02pdb1> disconnect
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0
TEST@test02pdb1>
Since I have already disconnected from the database, it would be right if sqlprompt was also cleared.
Sqlplus clears sqlprompt after disconnection from the database.