Create database script

CREATE DATABASE sales
USER SYS IDENTIFIED BY oracle123
USER SYSTEM IDENTIFIED BY oracle123
DATAFILE 'C:\app\sl38\oradata\sales\SYSTEM01.DBF' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE 1000M
SYSAUX DATAFILE 'C:\app\sl38\oradata\sales\SYSAUX01.DAT' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE 2000M
DEFAULT TABLESPACE USERS DATAFILE 'C:\app\sl38\oradata\sales\USERS01.DBF' SIZE 50M AUTOEXTEND ON MAXSIZE 200M
DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE 'C:\app\sl38\oradata\sales\TEMP01.DBF' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE 500M
UNDO TABLESPACE "UNDOTBS1" DATAFILE 'C:\app\sl38\oradata\sales\UNDOTBS01.DBF' SIZE 100M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED
LOGFILE GROUP 1 ('C:\app\sl38\oradata\sales\REDO01a.LOG', 'C:\app\sl38\oradata\sales\REDO01b.LOG') SIZE 100M,
GROUP 2 ('C:\app\sl38\oradata\sales\REDO02a.LOG', 'C:\app\sl38\oradata\sales\REDO02b.LOG') SIZE 100M,
GROUP 3 ('C:\app\sl38\oradata\sales\REDO03a.LOG', 'C:\app\sl38\oradata\sales\REDO03b.LOG') SIZE 100M
EXTENT MANAGEMENT LOCAL
MAXLOGFILES 32
MAXLOGMEMBERS 4
MAXLOGHISTORY 100
MAXDATAFILES 254
MAXINSTANCES 1;

Comments

Popular posts from this blog

Understanding Terraform

How to make CRS and ASM not to restart after server reboot

How to repair ASM disk header