Lifecycle management fails to migrate data completely
Lifecycle Management is the
widely used option to export application artifacts for migration and backup.
Starting 11.1.2 LCM also offers the ability to export data and can
be selected while defining the migration definition.
I wanted
to setup a backup process to export application artifacts and used LCM. All
seemed OK until I encountered an issue with LCM and wanted to share via this article. Lets reiterate the steps I followed and identify the error ourselves.
I selected all artifacts
including data.
Just to brief you on how to do achieve this is to write a batch script which calls the LCM command line utility with migration definition xml and path to export all the artifacts to desired location. On testing it, everything executed well as scheduled.
It was after few days when my scheduled job failed to run because there was not enough memory on C:\ drive of the machine. On drilling into each folder based on its size, I reached to a directory Users\<username>\Appdata\Local\Temp and found it had grown a lot in size. There I found bunch of temp files each of almost same size and created at the same time when my backup process was scheduled to run.
I could
not open the big file in text editor due to its size, but going through the
other files (audit and cssxml) seemed something related to Essbase. Just to
test a vague thing, I exported the whole data from my Essbase application to be
surprised to find out that the export created two files and one of them
was of the same size as the temp file left behind under Temp directory.
To
test it, I opened the Temp directory and started the LCM utility to export all
the artifacts. When LCM utility is running export and reaches step to export data,
it first exports all data under the Temp directory and then moves it to export
location.
This
is where Oracle did not code the LCM utility intelligently to pick both files.
LCM moves the first file to the export location and renames it Data and the
second file with same name but a '_1' suffixed is left behind under the Temp
directory. Thus we have all the artifacts but incomplete data exported using
LCM.
Hope it helps !!!
Hope it helps !!!
Did you let Oracle know so they can patch it?
ReplyDeleteDo you get to choose level 0 data or all data? Or does it default to all data?
ReplyDeleteI raised a ticket with Oracle. As usual they take their own time to respond. I was trying to export level zero data from an ASO cube. But it doesn't matter whether its level zero data or all data. It is the issue that LCM does not pick up the multiple files which if the data export extends more than one file
ReplyDeleteNavan,
ReplyDeleteAny solution yet to this problem?
The update which I received was that this issue existed in 11.1.2.1 only and has been resolved in 11.1.2.2+ Though I did not get a chance to test the same in latest release. Oracle identified it as Bug 16165824 - ASO LCM MIGRATION DOESN'T MIGRATE THE COMPLETE DATA (> 2 GB) and informed to release a solution in 11.1.2.1 PSU.
DeleteThe work around would be to skip exporting data in LCM and setup a MAXL job to export data