Skip to content

Commit a5d1e9a

Browse files
committed
ORACLE_INIT_PARAMS=vector_memory_size=512M for the Docker
1 parent 98554b1 commit a5d1e9a

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

integrations/oracle/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
- ORACLE_PASSWORD=haystack
88
- APP_USER=haystack
99
- APP_USER_PASSWORD=haystack
10+
- ORACLE_INIT_PARAMS=vector_memory_size=512M
1011
volumes:
1112
- ./init:/container-entrypoint-initdb.d
1213
healthcheck:
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
-- Enable vector memory pool required for HNSW in-memory vector indexes.
2-
-- Runs as SYS against the CDB on first database startup.
3-
ALTER SYSTEM SET vector_memory_size = 512M;
2+
-- This script runs at container startup via /container-entrypoint-initdb.d.
3+
-- The primary mechanism is ORACLE_INIT_PARAMS=vector_memory_size=512M in
4+
-- docker-compose.yml (writes to SPFILE at DB creation time). This ALTER
5+
-- SYSTEM acts as a belt-and-suspenders dynamic setter for pre-existing
6+
-- database volumes where the SPFILE value may not have been written yet.
7+
ALTER SYSTEM SET vector_memory_size = 512M SCOPE=BOTH;

0 commit comments

Comments
 (0)