📄 create_tablespace.sql
字号:
declare
i number(1);
j number(1);
begin
select count(*) into i from user_tablespaces where upper(TABLESPACE_NAME)='SMS';
select count(*) into j from user_tablespaces where upper(TABLESPACE_NAME)='TS_TEMP';
if i>0 then
EXECUTE IMMEDIATE 'drop tablespace SMS including contents and datafiles';
end if;
if j>0 then
execute immediate 'drop tablespace TS_TEMP including contents and datafiles';
end if;
end;
/
commit;
create tablespace SMS
datafile '&1\SMS.ora' size 5m
autoextend on next 5m maxsize 100m;
create temporary tablespace TS_TEMP
tempfile '&1\TS_TEMP.ora' size 5m
autoextend on next 5m maxsize 100m;
commit;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -