1.创建表空间 create tablespace TEST logging datafile 'e:\app\administrator\oradata\orcl\TEST.dbf' size 100M autoextend onnext 100M maxsize 4096Mextent management local; 2.创建用户并指定表空间 create use testuser identified by password default tablespace TEST tempo…
1. 创建表空间: BEGIN DECLARE cnt integer := 0; BEGIN SELECT 1 INTO cnt FROM dual WHERE exists(SELECT * FROM user_tablespaces WHERE tablespace_name = UPPER(TRIM('TEST'))); IF cnt != 0 THEN DECLARE s VARCHAR2(500); BEGIN s := 'DROP TABLESPACE TEST INCLUDING…