docker-images icon indicating copy to clipboard operation
docker-images copied to clipboard

Installation fails when using non-container mode

Open Naros opened this issue 4 years ago • 5 comments

When making the following changes to dbca.rsp.tmpl to use a non-containerized installation:

createAsContainerDatabase=false
numberOfPDBs=0

The installation fails because several SQL scripts/checks that are performed fail and Oracle treats the installation as unsuccessful and a restart of the container re-installs the database again. The problem scripts are:

  • checkDBStatus.sh assumes there are PDB installs, returning an unexpected result code
  • createDB.sh executes several PDB related SQL statements.

The installation should allow the user to specify non-container support and install without the need to make modifications to the above two scripts before allowing the installation to commence in order for the installation to succeed.

checkDBStatus.sh

This script should return a 0 exit code or otherwise check something that is unrelated to PDBs.

createDB.sh

The following two SQL statements should be excluded when built without CDB support:

ALTER PLUGGABLE DATABASE $ORACLE_PDB SAVE STATE;

and

ALTER USER OPS\$oracle SET container_data=all for sys.v_\$pdbs container = current;

Naros avatar Dec 07 '21 18:12 Naros

@Naros Which version are you trying? Non container mode is not supported.

yunus-qureshi avatar Dec 09 '21 15:12 yunus-qureshi

Hi @yunus-qureshi, I know this is problematic for Oracle 19 and 21. I don't recall if this was a problem on Oracle 12.

That said, I would strongly urge that you support non-container mode installations with your images. Deploying Oracle in an EE environment with no container support is still quite commonplace. For software providers like myself who need to test across a wide array of Oracle installations to verify/certify compliance, it would be much more useful if this deployment strategy was something that could more easily be managed via the installation process.

Right now we take the base images (prior to Oracle install) and explicitly overwrite the dbca.rsp.tmpl and the shell scripts mentioned here in order to get a non-container Oracle installation up and running successfully. Anything that can simplify that would be most welcomed.

Naros avatar Dec 13 '21 16:12 Naros

@Naros Hi, How can you solove this when build non-cdb?

GOODBOY008 avatar Sep 15 '23 07:09 GOODBOY008

Hi @GOODBOY008, if I recall correctly it required (at least on 19.3) to apply a custom dbca.rsp.tmpl, createDB.sh, and checkDBStatus.sh files before the installation started in order to create a non-CDB image.

Naros avatar Sep 17 '23 23:09 Naros

Hi @GOODBOY008, if I recall correctly it required (at least on 19.3) to apply a custom dbca.rsp.tmpl, createDB.sh, and checkDBStatus.sh files before the installation started in order to create a non-CDB image.

There's a how-to for this in my book...

oraclesean avatar Sep 18 '23 14:09 oraclesean