From 079a879121fdf96b54cc488bb8c9b6733b70f037 Mon Sep 17 00:00:00 2001 From: Houziaux mike Date: Mon, 18 Jun 2018 15:14:15 +0200 Subject: [PATCH] update documentation for tablespace and spool with exemple --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 46b616d..27ae5d8 100644 --- a/README.md +++ b/README.md @@ -86,3 +86,24 @@ FROM wnameless/oracle-xe-11g ADD init.sql /docker-entrypoint-initdb.d/ ``` + +# Tablespace / Spool + +If you need to create Tablespace or spool like the following exemples + +``` +// mkdir MyProjet +CREATE tablespace tbs_data datafile '/root/MyProjet/MyTableSpace.dat' SIZE 10M autoextend ON next 10M maxsize 100M; +``` +or + +``` +set serveroutput on +accept MyView prompt "Enter view name : " +spool /root/MyProjet/list_views +SELECT * FROM dict where TABLE_NAME LIKE '$MyView%'; +spool off +``` + +you will have an error, you have to run this +`chown -R oracle FOLDER/PATH`