MaksymBilenko / docker-oracle-12c

:whale: Docker image with Oracle Database 12c on board
Apache License 2.0
679 stars 285 forks source link

Migrate the Db to a new host #125

Closed adrienlenag closed 4 years ago

adrienlenag commented 5 years ago

Hi,

maybe more a docker question than one related to your oracle build, but here it is.

I've used your Oracle build for some time now without issue. I recently acquired a new laptop and tried to migrate my DB from the old one to the new. I've migrated the image (using docker save and docker load) successfully, however when I run it, it creates a brand new DB without my old data (same as if I pull from repository and run it for the first time) I've tried migrating the container directly as well without luck. Is this the way it's supposed to work when saving and loading the image on a new host ? I'd like to avoid exporting and importing all my schemas.

Thanks for your help

adrienlenag commented 5 years ago

Answering my own question: juste save and load the image Copy the directory used for oracle data from old machine to the new one and run the image using the same directory mapping :/u01/app/oracle