Skip to content

ORA-1119 when creating tablespace in setupscript #2916

@Kmdkca

Description

@Kmdkca

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions