0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

試してみよう!Oracle23c-free

Last updated at Posted at 2023-04-09

ポイントは?

  • 起動が早い(20秒程度)
  • container-registry.oracle.comにDockerイメージがある

早速試してみよう

docker composeの場合

compose.yml
# https://github.com/compose-spec/compose-spec/blob/master/schema/compose-spec.json
services:
  oracle:
    image: container-registry.oracle.com/database/free:23.2.0.0
    ports:
      - target: 1521
        published: 1521
    environment:
      ORACLE_CHARACTERSET: AL32UTF8
      ORACLE_PWD: OracleV23!
    volumes:
      - type: volume
        source: oradata23
        target: /opt/oracle/oradata

volumes:
  oradata23:

GtiLabの場合

.gitlab-ci.yml
variables:
  ORACLE_PWDS: "OracleV23!"

test:
  needs: []
  services:
    - name: container-registry.oracle.com/database/free:23.2.0.0
      alias: free23c
      pull_policy: if-not-present
      variables:
        ORACLE_CHARACTERSET: AL32UTF8
        ORACLE_PWD: $ORACLE_PWDS
  image: 
    name: container-registry.oracle.com/database/sqlcl:23.1.0
    entrypoint: [""]
    pull_policy: if-not-present
  script:
    # 少し待たないと起動が間に合わない(Error Message = ORA-01033: ORACLE initialization or shutdown in progress)
    - sleep 20
    - cat ./silent.sql
    - sql system/$ORACLE_PWDS@free23c:1521/FREE @silent.sql

出力

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?