Exporting Portal Greater Than 2 GB Fails With the Error BadZipfile: Bad magic number for file header or Out of Memory Error (Doc ID 1966993.1)

Last updated on JUNE 30, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Symptoms

Exporting a Portal of a size around 3 GB via UI or the following command

exportWebCenterPortals(appName='webcenter', fileName='filename.par', names='{portal name}', offlineDuringExport=1, exportPortalContent=1, exportConnections=1)

fails with:
BadZipfile: Bad magic number for file header


OR

Getting out of memory error:

File "/u01/app/oracle/product/fmw/wc/common/wlst/ExpImp.py", line 236, in exportWebCenterPortals
File "/u01/app/oracle/product/fmw/wc/common/script_handlers/ExpImpHandler.py", line 100, in exportWebCenterPortals
File "/u01/app/oracle/product/fmw/wlserver_10.3/common/wlst/modules/jython-modules.jar/Lib/zipfile.py", line 328, in read
java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, larger than Java heap
      at java.lang.String.<init>(String.java:339)
      at org.python.core.PyString.from_bytes(Unknown Source)
      at org.python.core.PyFile$RFileWrapper.read(Unknown Source)
      at org.python.core.PyFile.file_read(Unknown Source)
      at org.python.core.PyFile$1exposed_read.__call__(Unknown Source)

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms