Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Start several container with same data VOLUME #349
I do have many database tables that are filled with many tuples - it is huge ;) As this tables won't be changed (read-only) I tried to use a data volume.
I've created an ordinary user and imported the tables. Now I would like to start a second container reusing this tables from data volume.
I didn't find any information about my issue .. just the way around #205 (distributing a baseline within a container with no data volume).
Thank you :)
What about having the oradata inside the image (i.e. a pre-built DB), with as many read-only tablespaces as possible? Indeed, everything that is not modified at runtime is not copied thanks to copy-on-write storage drivers; therefore only the SYSTEM etc.-like tablespaces would actually be copied and diverge from the image ones...
As long as the data is READ-ONLY you have some ways to expose that data to multiple databases.
One way is to use
Oracle also has a feature called
So, what you could do is have that data exported into CSV files (SQL Developer is your friend for that) and then just put those files into the data volume and create an external table on all those databases.
The whole thing would look like this:
Put your data file into the volume, in this case I just put it straight into the root folder but you may or may not want to create subdirectories accordingly:
And now create a
And now do the same thing in the other database (note the different connection string):
Now there are a couple of more things: