-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat: #1 Oracle Database 19.3.0.0
- Loading branch information
Showing
10 changed files
with
127 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Publish Docker image | ||
|
||
on: | ||
release: | ||
types: [ "published" ] | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Log in to Oracle Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: container-registry.oracle.com | ||
username: ${{ secrets.ORACLE_USERNAME }} | ||
password: ${{ secrets.ORACLE_PASSWORD }} | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: scalified/oracle-database | ||
tags: | | ||
type=ref,event=tag | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM container-registry.oracle.com/database/enterprise:19.3.0.0 | ||
|
||
ENV ORACLE_SCRIPTS_PATH /opt/scripts | ||
|
||
ENV PATH "$PATH:$ORACLE_SCRIPTS_PATH" | ||
|
||
COPY setup /opt/oracle/scripts/setup | ||
|
||
COPY scripts /opt/scripts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule oracle-docker-images
deleted from
709157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/env bash | ||
|
||
DB_NAME="$1" | ||
USERNAME="$2" | ||
PASSWORD="$3" | ||
|
||
SCRIPT_DIR=$(dirname "$(readlink -f "$0")") | ||
|
||
sqlplus -S /nolog <<EOF | ||
CONNECT / as sysdba | ||
@$SCRIPT_DIR/sql/pdb.sql $ORACLE_SID $DB_NAME $USERNAME $PASSWORD | ||
EXIT | ||
EOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
SET VERIFY OFF; | ||
|
||
DEFINE sid = &1 | ||
DEFINE db_name = &2 | ||
DEFINE username = &3 | ||
DEFINE password = &4 | ||
|
||
CREATE PLUGGABLE DATABASE "&db_name" ADMIN USER &username IDENTIFIED BY &password FILE_NAME_CONVERT=('/opt/oracle/oradata/&sid/pdbseed/','/opt/oracle/oradata/&sid/&db_name'); | ||
ALTER PLUGGABLE DATABASE "&db_name" OPEN; | ||
ALTER PLUGGABLE DATABASE "&db_name" SAVE STATE; | ||
|
||
ALTER SESSION SET CONTAINER="&db_name"; | ||
GRANT ALL PRIVILEGES TO &username; | ||
ALTER PROFILE DEFAULT LIMIT password_life_time UNLIMITED; | ||
SELECT resource_name, limit FROM dba_profiles WHERE PROFILE = 'DEFAULT'; | ||
|
||
ALTER TABLESPACE UNDOTBS1 OFFLINE; | ||
DROP TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES; | ||
ALTER SESSION SET CONTAINER=CDB$ROOT; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
SHUTDOWN IMMEDIATE; | ||
|
||
STARTUP UPGRADE; | ||
|
||
ALTER DATABASE LOCAL UNDO OFF; | ||
|
||
SHUTDOWN IMMEDIATE; | ||
|
||
STARTUP; | ||
|
||
SELECT * FROM database_properties WHERE property_name='LOCAL_UNDO_ENABLED'; | ||
|
||
ALTER SYSTEM SET PGA_AGGREGATE_LIMIT = 0; | ||
|
||
ALTER SYSTEM SET PROCESSES=2000 SCOPE=SPFILE; | ||
|
||
SHUTDOWN IMMEDIATE; | ||
|
||
STARTUP; | ||
|