Update get_tablespaces_ddl.sql
This commit is contained in:
@@ -10,9 +10,9 @@
|
|||||||
|
|
||||||
set head off pages 0 feedback off lines 200
|
set head off pages 0 feedback off lines 200
|
||||||
|
|
||||||
select '------- HOSTNAME : '||host_name||', DB_NAME : '||name||', VERSION : '||version from v$database,v$instance;
|
select '------- HOSTNAME : '||host_name||', DB_NAME : '||name||', VERSION : '||version || '-------' from v$database,v$instance;
|
||||||
|
|
||||||
select '------- Datafiles : ' from dual;
|
select '------- Datafiles -------' from dual;
|
||||||
|
|
||||||
SELECT 'CREATE '
|
SELECT 'CREATE '
|
||||||
|| DECODE (ts.bigfile, 'YES', 'BIGFILE ') --assuming smallfile is the default table space
|
|| DECODE (ts.bigfile, 'YES', 'BIGFILE ') --assuming smallfile is the default table space
|
||||||
@@ -53,7 +53,7 @@ GROUP BY ts.tablespace_name,
|
|||||||
ts.block_size
|
ts.block_size
|
||||||
ORDER BY ts.tablespace_name;
|
ORDER BY ts.tablespace_name;
|
||||||
|
|
||||||
select '------- Tempfiles : ' from dual;
|
select '------- Tempfiles -------' from dual;
|
||||||
|
|
||||||
SELECT 'CREATE TEMPORARY TABLESPACE "' || ts.tablespace_name || '" TEMPFILE ' || CHR (13) || CHR (10)
|
SELECT 'CREATE TEMPORARY TABLESPACE "' || ts.tablespace_name || '" TEMPFILE ' || CHR (13) || CHR (10)
|
||||||
|| LISTAGG(decode(p.value, NULL, ' ''' || df.file_name || '''') || ' SIZE '
|
|| LISTAGG(decode(p.value, NULL, ' ''' || df.file_name || '''') || ' SIZE '
|
||||||
|
|||||||
Reference in New Issue
Block a user