加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

oracle导入数据时注意问题

发布时间:2020-12-12 16:04:07 所属栏目:百科 来源:网络整理
导读:--删除用户 drop user CLOUDTEST cascade; --删除表空间 drop tablespace TBS_A_CLOUDTEST including contents and datafiles; CREATE TABLESPACE TBS_A_GYZX DATAFILE 'D:dataDATABASE_CLOUDTESTTBS_A_GYZX1.ORA' SIZE 50M AUTOEXTEND ON NEXT 32M MAXSI

--删除用户
drop user CLOUDTEST cascade;
--删除表空间
drop tablespace TBS_A_CLOUDTEST including contents and datafiles;

CREATE TABLESPACE TBS_A_GYZX DATAFILE 'D:dataDATABASE_CLOUDTESTTBS_A_GYZX1.ORA'
SIZE 50M AUTOEXTEND ON NEXT 32M MAXSIZE UNLIMITED DEFAULT STORAGE
(INITIAL 64K NEXT 64K MAXEXTENTS UNLIMITED PCTINCREASE 50);

create user CLOUDTEST
identified by CLOUDTEST
default tablespace TBS_A_GYZX
temporary tablespace TEMP;

grant connect to CLOUDTEST with admin option;
grant dba to CLOUDTEST with admin option;
grant resource to CLOUDTEST with admin option;

imp CLOUDTEST/CLOUDTEST@four file=D:CLOUDAPP_2016-08-25-2.dmp full=y ingore=y;

exp CLOUDAPP/CLOUDAPP@127.0.0.1/CLOUDAPP file=D:CLOUDAPP_2016-08-25-2.dmp

注意事项:

如果导入库和导出库的表空间不同,则会导致很多问题,如有些表和数据会没有。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读