Oracle 数据迁移

2019-05-22  本文已影响0人  黑白_a9aa

使用dump文件

导出

-- export
exp user@ip/service_name file=xxx.dmp full=y

导入

创建表空间
create tablespace tablespace_name
datafile datefile_name
size 2000M;
创建用户
create user user_name
identified by password
default tablespace tablespace_name;

grant role to user_name
数据导入
imp user/password@ip/service_name file=local_file full=y;

过程中遇到的问题

问题:EXP-00091: Exporting questionable statistics.
方案:配置本地环境变量NLS_LANG
操作:

select userenv('language') from dual;
export NLS_LANG=ENGLISH_CHINA.ZHS32GB18030
上一篇 下一篇

猜你喜欢

热点阅读