drop user IVR_ANALYSIS cascade// user_name :IVR_ANALYSIS
create user IVR_ANALYSIS IDENTIFIED by "password"
grant connect,resource,dba to IVR_ANALYSIS;//授权
create tablespace CSS_APP // tablespace_name:CSS_APP
datafile 'E:/oracle_tablespaces/CSS_APP.dbf'
size 1500M
autoextend on next 5M maxsize 3000M;
alter user IVR_ANALYSIS quota unlimited on CSS_APP
cmd 下导入dmp
imp IVR_ANALYSIS/password@127.0.0.1/orcl fromuser=IVR_ANALYSIS touser=IVR_ANALYSIS file=dmp路径 ignore=y
SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size
FROM dba_tablespaces t, dba_data_files d
WHERE t.tablespace_name = d.tablespace_name
GROUP BY t.tablespace_name;
SELECT SUM(bytes) / (1024 * 1024) AS free_space, tablespace_name
FROM dba_free_space
GROUP BY tablespace_name;
select tablespace_name,file_name,autoextensible from dba_data_files where tablespace_name = 'USERS';
alter database datafile 'E:\\APP\\160429\\ORADATA\\ORCL\\USERS01.DBF' resize 500m;