Home > Database > Mysql Tutorial > body text

imp00017由于Oracle错误ORA-01401的解决办法

WBOY
Release: 2016-06-07 16:49:25
Original
1829 people have browsed it

今天很奇怪,导入一个单表报错ORA-01401的错误,网上也搜了一圈,和我的情况不一样。这个错误是由于导出dmp文件的时候字符的存储

今天很奇怪,导入一个单表报错ORA-01401的错误,网上也搜了一圈,和我的情况不一样。这个错误是由于导出dmp文件的时候字符的存储字节不一样。我的数据库是11g11.2.0.1.0的,默认选的是ZHS16GBK编码方式,要导入的是学校10g数据库导出备份的一个dmp文件,最后没办法按照一个ORA-12899错误处理问题解决了。
 
操作步骤如下
 
SQL> shutdown immediate
 Database closed.
 Database dismounted.
 Oracle instance shut down.
 SQL> startup mount;
 ORACLE instance started.

Total System Global Area 1653518336 bytes
 Fixed Size                  2228904 bytes
 Variable Size            1006636376 bytes
 Database Buffers          637534208 bytes
 Redo Buffers                7118848 bytes
 Database mounted.
 SQL> ALTER SYSTEM ENABLE RESTRICTED SESSION;
 

System altered.
 

SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
 

System altered.
 

SQL> ALTER SYSTEM SET AQ_TM_PROCESSES=0;
 

System altered.
 

SQL> ALTER DATABASE OPEN;
 

Database altered.
 

SQL> ALTER DATABASE CHARACTER SET INTERNAL_USE ZHS16GBK;
 

Database altered.
 

SQL> shutdown immediate
 Database closed.
 Database dismounted.
 ORACLE instance shut down.
 SQL> startup;
 ORACLE instance started.
 

Total System Global Area 1653518336 bytes
 Fixed Size                  2228904 bytes
 Variable Size            1006636376 bytes
 Database Buffers          637534208 bytes
 Redo Buffers                7118848 bytes
 Database mounted.
 Database opened.
 SQL>

最后客户端导入成功

imp00017由于Oracle错误ORA-01401的解决办法

在CentOS 6.4下安装Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

本文永久更新链接地址:

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!