I have installed Oracle DB 23ai Free and SQLcl: Release 24.2 (on Windows). When I connect (with a thick connection) I get the following:
sql sys@FREEPDB1 as sysdba
SQLcl: Release 24.2 Production on Sat Aug 24 23:36:10 2024
Copyright (c) 1982, 2024, Oracle. All rights reserved.
Password? (**********?) ********************
Connection failed
USER = sys
URL = jdbc:oracle:oci8:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ***)(PORT = 1522)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = FREEPDB1) ) )
Error Message = Incompatible version of libocijdbc[Jdbc:211200230906, Jdbc-OCI:213000
I found 2 workarounds: (1) using a thin connection and (2) by copying an ojdbc11.jar from an existing Oracle 21 client to the sqlcl\lib folder. I am wondering if these workarounds are ok, or if there are better or more simpler solutions?
Workaround 1 as a reference:
sql -thin sys@FREEPDB1 as sysdba
SQLcl: Release 24.2 Production on Sat Aug 24 23:34:31 2024
Copyright (c) 1982, 2024, Oracle. All rights reserved.
Password? (**********?) ********************
Connected to:
Oracle Database 23ai Free Release 23.0.0.0.0 - Production
Version 23.4.0.24.05
SQL>