Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQLCL : Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

User_ZD984Sep 13 2021

While running the bulk sql more than 60, 000 sql queries and getting below error, Is 4 GB of ram (memory) is sufficient?:
'
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractString
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448
at java.lang.StringBuffer.append(StringBuffer.java:270)
at oracle.dbtools.raptor.newscriptrunner.ScriptParser.findEndOfSQLAndPLS
at oracle.dbtools.raptor.newscriptrunner.ScriptParser.identifyEndOfState
at oracle.dbtools.raptor.newscriptrunner.ScriptParser.next(ScriptParser.
at oracle.dbtools.raptor.newscriptrunner.FallbackParserProvider.getNextV
at oracle.dbtools.raptor.newscriptrunner.FallbackParserProvider.hasNext(
at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecut
at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.runFile(SqlCli.java
at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.handleAtFiles(SqlCl
at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.main(SqlCli.java:49
'

We have installed SQLCL in Linux server and having 4 GB of memory and Oracle 12c.
Is SQLCL consumes more memory?
And also Is any performance difference between SQLPLUS and SQLCL?
Is SQL-19c is improve the performance of SQLCL? Is SQLCL package is available in SQL-19c?

Comments

Arnoschots-Oracle Apr 22 2020 — edited on Apr 22 2020

Hi,

The "sudo al-config -s" doesn't work on my Autonomous Linux instance.

Command output:

[opc@opsserver ~]$ sudo al-config -s

/sbin/al-config: illegal option -- s

Configure OCI notification service topic OCID:

  Usage:

    al-config -T [topic OCID]

  Options:

    -T [topic OCID] OCI notification service topic OCID

Configure OCI CLI profile:

  Usage:

    al-config -u [user OCID] -t [tenancy OCID] -k [key file]

  Options:

    -u [user OCID] OCI User OCID

    -t [tenancy OCID] OCI Tenancy OCID

    -k [key file] from which we obtaion the API private key

    -p [key passphrase file] from which we obtain API key passphrase. Provide

       this if API private key is encrypted. If not provided, user will be

       prompted to enter passphrase.

1 - 1

Post Details

Added on Sep 13 2021
0 comments
539 views