My Oracle Support Banner

ORA-06550 or ORA-01461 when importing APEX scripts or upgrading APEX environments (Doc ID 2316476.1)

Last updated on AUGUST 25, 2021

Applies to:

Oracle Application Express (APEX) - Version and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


1. Problem occurs when attempting to import a very large workspace - 1.7 GB - via the GUI interface, the issue may also happen when a version upgrade is attempted.

2. After a long period of time the import fails with:

Encountered error:
Execution of the statement was unsuccessful. ORA-06550: line 2, column 1: PLS-00103: Encountered the symbol "END" when expecting one of the following: ( begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << continue close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe purge

3. Attempted the import from SQL plus and the following error occurred:

ERROR at line 1:
ORA-01461: can bind a LONG value only for insert into a LONG column
ORA-06512: at "APEX_050000.WWV_FLOW_API", line 23815
ORA-06512: at line 2

If the issue is when APEX was being upgraded, the install.log shows the next error during the upgrading phase 1 or 2:

timing for: Enabling Phase 2
Elapsed: 00:00:00.00
# Upgrade Metadata (1)
# Error: ORA-01461: can bind a LONG value only for insert into a LONG column
# Statement: SELECT....

4. Accomplished the export using the APEXExport utility and imported using sqlplus and same error in #3 above occurred.

5. Incident occurred using APEX 5.0.4 in DB. The incident has also been confirmed during upgrade from APEX 20.2 to 21.1




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.