File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 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;
You can’t perform that action at this time.
0 commit comments