Closed rbaumgar closed 1 month ago
I called the ORDS REST API directly successfully. I was able to create a pdb with the following payload
{
"new_pdb_name": "pdb_sample",
"admin_user": "<username>",
"admin_password": "<password>",
"file_name_convert": "NONE",
"temp_file_reuse": true,
"storage": "(MAXSIZE 2G MAX_SHARED_TEMP_SIZE 800M)",
"dryrun": true
}
How to configure the pdb CRD to get the same REST API call by the operator?
it looks like the parameter new_pdn_name
is not provided by the operator, so it doesn't work with ORDS 24.2.
https://github.com/oracle/oracle-database-operator/blob/577a46792cd615949e05a1daa63127c5b12dfa69/controllers/database/pdb_controller.go#L655-L686
Yes correct it's not working with ords 24.... see the latest version of Dockerfile which uses earlier version
@mmalvezz which dockerfile are you talking about? Is a new operator version available? Are new images available?
Please have a look at https://github.com/oracle/oracle-database-operator/blob/main/ords/Dockerfile, just recreate the cdb image usng this one .... ....
FROM container-registry.oracle.com/java/jdk:latest
# Environment variables required for this build (do NOT change)
# -------------------------------------------------------------
ENV ORDS_HOME=/opt/oracle/ords/ \
RUN_FILE="runOrdsSSL.sh" \
ORDSVERSION=23.4.0-8
# Copy binaries
After creating a cdb, by fixing the problems https://github.com/oracle/oracle-database-operator/issues/126, https://github.com/oracle/oracle-database-operator/issues/124, ... I have a working ORDS server.
When I try to create a pdb, like the examples the pdb is in
status: false
The operator log
The ORDS log is empty.
The pdb CRD