Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.2K SQL Developer
- 295.4K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 27 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 391 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
SQLcl Version 22.1.0.90.1611: what happend to "AddVMOption -Duser.home"?

Hello,
we have several machines with RAC. In former versions of SQLcl we set
AddVMOption -Duser.home=/common/shared/path/for/all/machines
as fist line in file 'sqlcl/bin/sql' in order to have the same alias and history files for all machines.
With the new version we are getting this error:
line 65: AddVMOption: command not found
What happend to Duser.home and is there a workaround?
Best regards, Dagmar
Best Answer
-
Hello,
With the new version we are getting this error:
line 65: AddVMOption: command not found
This looks like a plain bash script error.
If you diff the original Oracle-supplied
bin/sql
script between versions 21.4.1 and 22.1, you'll see that the only change regarding the AddVMOption function, is that previously it was defined at line 63, and now it's at line 64, due to 1 added line in the heading comments.In former versions of SQLcl we set
AddVMOption -Duser.home=/common/shared/path/for/all/machines
as first line in file 'sqlcl/bin/sql'
How did you do that? Does the result still read as valid Bash shell?
Regards,
Answers
-
/usr/java/jdk-11/bin/java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
-
Hello,
With the new version we are getting this error:
line 65: AddVMOption: command not found
This looks like a plain bash script error.
If you diff the original Oracle-supplied
bin/sql
script between versions 21.4.1 and 22.1, you'll see that the only change regarding the AddVMOption function, is that previously it was defined at line 63, and now it's at line 64, due to 1 added line in the heading comments.In former versions of SQLcl we set
AddVMOption -Duser.home=/common/shared/path/for/all/machines
as first line in file 'sqlcl/bin/sql'
How did you do that? Does the result still read as valid Bash shell?
Regards,
-
Rather than make changes to the Oracle-supplied
bin/sql
script, you might use:export JAVA_TOOL_OPTIONS="-Duser.home=/common/shared/path/for/all/machines"
in the calling shell, then use the (unmodified) bin/sql script.
Regards,
-
Thank you, @user9540031
You are right, I needed to put my "AddVMOption -Duser.home=/common/shared/path/for/all/machines" AFTER this block.
AddVMOption()
{
APP_VM_OPTS[${#APP_VM_OPTS[*]}]="$*"
}