sqlplus /nolog
conn / as sysdba;@H_403_8@
@H_403_8@
--drop tablespace sjbook_data including contents and datafiles;
--drop tablespace sjbooks_temp including contents and datafiles;
--删除本地文件@H_403_8@
create temporary tablespace sjbooks_temp
tempfile ‘E:\ProjectTeam3\沈局大数据客运\database\sjbooks_temp.dbf‘
size 100m
autoextend on
next 100m maxsize 2048m
extent management local;@H_403_8@
create tablespace sjbook_data
logging
datafile ‘E:\ProjectTeam3\沈局大数据客运\database\sjbook_data.dbf‘
size 100m
autoextend on
next 100m maxsize 15000m
extent management local; @H_403_8@
create user temp_sjbooks identified by quickhigh
default tablespace sjbook_data
temporary tablespace sjbooks_temp; @H_403_8@
grant connect,resource,dba to temp_sjbooks;
grant create any sequence to temp_sjbooks;
grant create any table to temp_sjbooks;
grant delete any table to temp_sjbooks;
grant insert any table to temp_sjbooks;
grant select any table to temp_sjbooks;
grant unlimited tablespace to temp_sjbooks;
grant execute any procedure to temp_sjbooks;
grant update any table to temp_sjbooks;
grant create any view to temp_sjbooks;@H_403_8@
imp system/[email protected] file=D:\SJBOOKS20170815.dmp fromuser=(sjbooks) touser=(sjbooks)@H_403_8@
exp system/[email protected] file=F:\DatabaseSJBOOKS201811261442.dmp owner=(sjbooks)@H_403_8@
@H_403_8@
select count(*) from dba_tables where OWNER = ‘SJBOOKS‘@H_403_8@
增加表空间:alter tablespace BUSINESS_DATA add datafile ‘D:\app\zg\oradata\SJBOOKS\BUSINESS_DATA2.DBF‘ SIZE 500M autoextend on ;@H_403_8@