Update get_tablespaces_ddl.sql
This commit is contained in:
@@ -23,7 +23,7 @@ SELECT 'CREATE '
|
||||
|| nvl(floor(e.used_bytes/1024/1024),10) || 'M ' -- si taille nulle, on retourne 10M
|
||||
|| DECODE (
|
||||
df.autoextensible,
|
||||
'YES', ' AUTOEXTEND ON NEXT ' || df.increment_by * ts.block_size || ' MAXSIZE '
|
||||
'YES', ' AUTOEXTEND ON NEXT ' || floor(df.increment_by*ts.block_size/1024/1024) || ' MAXSIZE '
|
||||
|| CASE
|
||||
WHEN maxbytes < POWER (1024, 3) * 2
|
||||
THEN
|
||||
@@ -54,10 +54,10 @@ select '------- Tempfiles : ' from dual;
|
||||
|
||||
SELECT 'CREATE TEMPORARY TABLESPACE "' || ts.tablespace_name || '" TEMPFILE ' || CHR (13) || CHR (10)
|
||||
|| LISTAGG(decode(p.value, NULL, ' ''' || df.file_name || '''') || ' SIZE '
|
||||
|| nvl(e.used_bytes,10*1024*1024) -- si taille nulle, on retourne 10M
|
||||
|| nvl(flor(e.used_bytes/1024/1024),10) || 'M ' -- si taille nulle, on retourne 10M
|
||||
|| DECODE (
|
||||
df.autoextensible,
|
||||
'YES', ' AUTOEXTEND ON NEXT ' || df.increment_by * ts.block_size || ' MAXSIZE ' || FLOOR (maxbytes / POWER (1024, 2)) || 'M'
|
||||
'YES', ' AUTOEXTEND ON NEXT ' || floor(df.increment_by*ts.block_size /1024/1024) || 'M MAXSIZE ' || FLOOR (maxbytes / POWER (1024, 2)) || 'M'
|
||||
),
|
||||
',' || CHR (13) || CHR (10))
|
||||
WITHIN GROUP (ORDER BY df.file_id, df.file_name)
|
||||
|
||||
Reference in New Issue
Block a user