DECLARE
V_FILENAME VARCHAR2(200);
BEGIN
select SUBSTR(FILE_NAME,
1,
LENGTH(FILE_NAME) - INSTR(REVERSE(FILE_NAME), '/') + 1)
INTO V_FILENAME
from dba_data_files
where tablespace_name = 'ZSDATA'
AND ROWNUM = 1;
EXECUTE IMMEDIATE 'CREATE SMALLFILE
TABLESPACE ZSMEMBER_DATA
LOGGING
DATAFILE ''' || V_FILENAME ||
'zsmember_data.dbf'' SIZE 5M REUSE
AUTOEXTEND
ON NEXT 5120K MAXSIZE 32767M EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO ';
EXECUTE IMMEDIATE 'CREATE SMALLFILE
TABLESPACE ZSMEMBER_IDX
LOGGING
DATAFILE ''' || V_FILENAME ||
'zsmember_idx.dbf'' SIZE 5M REUSE
AUTOEXTEND
posted on 2011-08-22 17:57
David1228 阅读(393)
评论(0) 编辑 收藏 所属分类:
数据库