-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Open
Description
I try to create a tablespace as part of the startup script in docker.
oracledatabase:
image: container-registry.oracle.com/database/express:latest
platform: linux
environment:
- ORACLE_PWD=xxx
container_name: oracle
ports:
- '1521:1521'
volumes:
- ./oracle/std/oradata:/opt/oracle/oradata
- ./scripts/std/setup:/opt/oracle/scripts/setup
restart: unless-stopped
Script placed /scripts/std/setup contains:
create smallfile tablespace TESTDATA datafile 'testdata.dbf' SIZE 300M LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
But it fails with ORA-1119 in the log:
2025-02-07 10:04:51 2025-02-07T09:04:50.642609+00:00
2025-02-07 10:04:51 create smallfile tablespace TESTDATA datafile 'testdata.dbf' SIZE 300M LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO
2025-02-07 10:04:51 ORA-1119 signalled during: create smallfile tablespace TESTDATA datafile 'testdata.dbf' SIZE 300M LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO...
2025-02-07 10:04:51 2025-02-07T09:04:50.929572+00:00
I can manually run the same script when its started.
Also tried with the free version of Oracle.
Metadata
Metadata
Assignees
Labels
No labels