Skip to main content

2023 | OriginalPaper | Buchkapitel

7. Persistence

verfasst von : Sean Scott

Erschienen in: Oracle on Docker

Verlag: Apress

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

As I began looking for information on running Oracle in containers back in 2014, the consensus among Oracle experts wasn't very promising. Most database administrators dismissed Docker as the latest technology-de-jour among developers and not something capable of handling the demands of a database. They cited dire warnings about instability, poor performance, and data loss. Peers shared horror stories of various disasters rooted in the immaturity or fragility of Docker.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Fußnoten
1
I’m guilty of this attitude myself. Not only am I old enough to remember the joys of manually managing undo segments, I was among those who claimed they were too complicated and important to trust to one of Larry’s algorithms. I even gave a conference presentation where I advised against the feature. I can’t imagine how much time I wasted through my stubborn refusal to accept the newer, better way of doing things!
 
2
The /var/lib/docker directory on a Linux host typically exists on the host boot volume. It can be relocated to a dedicated partition
 
3
But what about patching and upgrades? Rather than patching a container, it’s better to build a new image for the patched version. The time and effort of patching is spent just once—during image build—and every container started from that image benefits. In a container environment, the patching process consists of stopping and removing the container running the old database version, then starting a new container using a patched image and pointing it at the data on a mount.
 
4
Windows systems running Windows Subsystem for Linux version 2 are a special case. Where the container and volume are created—in the native, Windows OS, or in the Linux subsystem—affects their visibility. More on this later in the chapter!
 
5
Volumes created “on the fly” when calling docker run are called anonymous volumes. They’re assigned uniquely generated names, making them more difficult to associate with specific containers. For clarity, the examples in this book use named volumes.
 
6
Good news! Docker returns an error if you attempt to remove a volume that’s used by any containers—whether or not they’re running. The same isn’t true of manually managed directories!
 
7
There are two types of secrets: runtime and build. Build secrets are available in Docker via Buildah.
 
8
Images and build artifacts can grow to fill disk, too. See the section on space management toward the end of this chapter.
 
9
The mount point is still in /var/lib/docker—it’s Docker’s internal reference telling the container where to find the volume.
 
10
The --mount flag allows added capabilities for some special cases.
 
11
Linux users (including those running Windows Subsystem for Linux, or WSL) may discover issues with directory ownership. See the section “Which Type of Volume Is Best” at the end of this chapter for more details.
 
13
Volumes don’t have to be attached to a host resource. If a mapping isn’t given, Docker puts the files in the container’s private layer, as part of the union filesystem. In my experience, creating an Oracle database container without a volume for /opt/oracle/oradata is a bad idea—database creation is orders of magnitude slower!
 
14
The /docker/entrypoint-initdb.d directory is used by multiple database vendors as an entrypoint for custom scripts.
 
Metadaten
Titel
Persistence
verfasst von
Sean Scott
Copyright-Jahr
2023
Verlag
Apress
DOI
https://doi.org/10.1007/978-1-4842-9033-0_7