docker-apex-stack icon indicating copy to clipboard operation
docker-apex-stack copied to clipboard

Is it possible to recreate container using existing oradata folder?

Open ivars777 opened this issue 3 years ago • 3 comments

During server restore I tried to recreate container with existing oradata folder (mapping oradata to folder of previously existing, but currently deleted container). 02-run.sh finished with "DATABASE SETUP WAS NOT SUCCESSFUL!". I tried to attach existing dbf files to other XE instance, but it did not work. As a result I have no access to data in the database. Is it possible somehow to recreate container it it is deleted, but with access to existing oradata folder (particulary dbf files)? Is there any other option how to restore information in dbf files?

ivars777 avatar Apr 06 '22 14:04 ivars777

Why would you delete the container ?

yacine-zitouni avatar May 06 '22 13:05 yacine-zitouni

There was server problem and I had to restore it. Normally containers are short living/temporary objects, which are created/recreated as necessary, all persistent information is in persistent storage and container definitions. I could not realize, that this solution does not follow this principle. It it is so, than this is serious drawback and should be noted in description. In this case different backup/restore mechanisms have to be used (e.g. docker commit/save)

ivars777 avatar May 07 '22 07:05 ivars777

It make sense, can you please tell me how I could have an apex application always up so that after a server restore It will be always here ?

yacine-zitouni avatar May 07 '22 13:05 yacine-zitouni

The image is created from Oracle's official Docker images. The data files are stored on the host system file, and you can recreate the container by mapping those files.

fuzziebrain avatar Jan 07 '23 23:01 fuzziebrain