Skip to content

Instantly share code, notes, and snippets.

@mortenbra
Last active August 29, 2015 14:22
Adjust session, process and memory parameters for Oracle XE after install
-- run as SYS
sqlplus /nolog
connect sys as sysdba
-- show current values
show parameters sessions;
show parameters processes;
show parameters memory;
-- adjust values
alter system set sessions=250 scope=spfile;
alter system set processes=200 scope=spfile;
-- note: make sure there is enough shared memory space (tmpfs) before increasing database memory parameters
-- see "Scaling up and down the server" for separate script to adjust tmpfs size
alter system set memory_target=1024M scope=spfile;
alter system set memory_max_target=1024M scope=spfile;
-- restart database
shutdown immediate;
startup;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment