学习数据迁移之imp-成都快上网建站

学习数据迁移之imp

查询数据库语言及字符集

创新互联公司专注于九龙坡网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供九龙坡营销型网站建设,九龙坡网站制作、九龙坡网页设计、九龙坡网站官网定制、微信小程序定制开发服务,打造九龙坡网络公司原创品牌,更为您提供九龙坡网站排名全网营销落地服务。

select userenv('language') from dual;

select * from nls_database_parameters #服务器

select * from nls_instance_parameters #客户端

select * from nls_session_parameters #会话

查看dump文件导出信息

strings bak20190315.dmp |head -10

strings bak20190315.dmp | grep "CREATE TABLE" | awk '{print $3}'| sed 's/"//g'   #表

cat exp.dmp |od -x|head -1|awk '{print $2 $3}'|cut -c 3-6 #查看字符集代码

select nls_charset_name(to_number('0354','xxxx')) from dual; #代码转换成名称

create user note identified by luoluo; #建用户授权

grant connect,resource to note;

select name from v$datafile; #查询数据文件路径

create tablespace note datafile='/u01/app/oracle/oradata/orcl/note01.dbf' size 31G;  #新建表空间

alter tablespace note add datafile='/u01/app/oracle/oradata/orcl/note02.dbf' size 31G;

alter tablespace note add datafile='/u01/app/oracle/oradata/orcl/note03.dbf' size 31G;

alter tablespace note add datafile='/u01/app/oracle/oradata/orcl/note04.dbf' size 31G;

alter user note default tabspace note; #修改用户默认表空间

imp system/ORACLE12C  file=/mnt/data/bak20190315.dmp FROMUSER=NOTE

参考链接

https://www.cnblogs.com/lipera/p/6201434.html

https://www.cnblogs.com/lhrbest/p/6832707.html

https://www.cnblogs.com/rootq/articles/2049324.html


网页名称:学习数据迁移之imp
文章起源:http://kswjz.com/article/jdpgoo.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流