I wanted to execute 'lb generate-schema -split' after installing liquibase and sqlcli but when I hit the above command it doesn't connect to pluggable database (xepdb1). It always tried to connect to 'xe' or 'orcl' service names. Can anybody help me to solve the issue?
D:\Software\sqlcl-latest\sqlcl\bin>sql
SQLcl: Release 23.1 Production on Sat Apr 29 12:27:03 2023
Copyright (c) 1982, 2023, Oracle. All rights reserved.
Username? (''?) apexuser@**xepdb1**
Password? (**********?) **********
Last Successful login time: Sat Apr 29 2023 12:27:17 +09:30
Connected to:
Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0
SQL> lb generate-schema -split
--Starting Liquibase at 12:27:24 (version 4.17.0 #0 built at 2022-11-02 21:48+0000)
USER = apexuser
URL = jdbc:oracle:oci8:@
Error Message = ORA-12560: TNS:protocol adapter error
USER = apexuser
URL = jdbc:oracle:thin:@localhost:1521/orcl
Error Message = Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
(CONNECTION_ID=zW40jSIGS5KejZYrbKvK/A==)
USER = apexuser
URL = jdbc:oracle:thin:@localhost:1521/xe
Error Message = ORA-01017: invalid username/password; logon denied