#.bash_profile 内容如下:
# Oracle Environment
export ORACLE_BASE=/oracle
export ORACLE_HOME=/oracle/product/9.2.0
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
#export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
#set NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/openwin/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/td/lib:/usr/ucblib:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths:
PATH=/bin:/usr/bin:/usr/sbin:/etc:/opt/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/local/GNU/bin
PATH=$PATH:/opt/local/bin:/opt/NSCPnav/bin:$ORACLE_HOME/bin
PATH=$PATH:/usr/local/samba/bin:/usr/ucb:
export PATH
# CLASSPATH must include the following JRE locations:
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib导入数据时,出错,tang 用户为DBA,应该是不会出现Warning: the objects were exported by INN, not by you
错误才对.请各位高手帮忙解决.[oracle@crm oracle]$ imp tang/sa file=cn_yoyaku_data.dmpImport: Release 9.2.0.1.0 - Production on Tue Jan 5 17:47:18 2010Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - ProductionExport file created by EXPORT:V09.02.00 via conventional pathWarning: the objects were exported by INN, not by youimport done in AL32UTF8 character set and UTF8 NCHAR character set
export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
IMP-00003: ORACLE error 96 encountered
ORA-00096: invalid value  for parameter plsql_compiler_flags, must be from among NON_DEBUG, DEBUG, INTERPRETED, NATIVE
IMP-00000: Import terminated unsuccessfully

解决方案 »

  1.   

    导入,导出在客户端中执行(注意是客户端不是sqlplus):imp parfile=file_name.txt
    在执行上述命令前先建立导出(exp),导入(imp)命令文件,文件格式没有限制。在导出文件exp_test.txt中写入命令:
    userid=scott/tiger@oamis2 --进行导入和导出的账号信息和连接oracle数据的网络服务名
    buffer=100000
    log=c:\exp.log   --导出信息日志文件
    file=c:\exp_user.dmp --导出后的二进制数据存放的文件名和路径
    feedback=10000
    tables=t2,tt --需要导出的表名。然后是导入文件test_imp.txt
    userid=system/ttt@oamis2
    buffer=100000
    feedback=100000
    tables=t2,tt 
    touser=scott  --接收导入表的用户名
    file=c:\exp_user.dmp
    log=c:\imp.log
    ignore=y --忽略导入过程中出现的错误其他没有说名的参数同导出一样。该初只是说了导出指定表的情况,其实还可以到出一个用户下的所有对象(函数,过程等除外)。
      

  2.   

    不过导入用户下不能够存在即将要导入的数据库对象。
    出现了会报错!
    如上面的情况:在导入时scott用户下不能够有t2,tt表存在。然后是导入文件test_imp.txt 
    userid=system/ttt@oamis2--这个是执行导入操作的账号信息,可以不是导出对象使用的账号信息。
      

  3.   

    是版本问题,你exp的是高于这个版本的吧。在源库上把错误里提示的几个参数看看。然后在9i里看看。
      

  4.   

    111 版本冲突,譬如你用10g导出DMP文件,然后导入到9i的库中
    2 导出的DMP文件可能有问题。