Not sure if this is Windows or Oracle related problem. I never used sqlcl and wanted to give it a go after installing Oracle 19c software and ORCL database on Windows 19.
My PATH: PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\app\oracle\product\19.3.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;
So I can easily call sql.bat which sits in my path, C:\app\oracle\product\19.3.0\dbhome_1\bin; folder.
The script sql.bat looks pretty simple (just these two lines):
pushd ../sqldeveloper/sqldeveloper/bin && sql %*
popd
So If I call it like this:
C:\Users\Administrator>sql -help
The syntax of the command is incorrect.
No matter what I do, still the same error, ex. sql.bat /nolog
When I do it from this folder: C:\app\oracle\product\19.3.0\dbhome_1\sqldeveloper\sqldeveloper\bin, there is a proper response. I can also login to the database. I have also noticed, I am successful in this location only because when typing sql, sql.exe is being called directly here, not sql.bat.
Folder C:\app\oracle\product\19.3.0\dbhome_1\sqldeveloper\sqldeveloper\bin contains only sql.exe (plus a readme and linux shell file).
What am I doing wrong that I cannot run sql.bat (which in turn calls sql.exe)?