各位大虾:
   我在linux下导出oracle,oracle字符集ZHS32GB18030,linux  NLS_LANG为SIMPLIFIED CHINESE_CHINA.ZHS32GB18030,切换至oracle用户后,exp user/psd file=./asb.dmp
可是运行到  exporting PUBLIC type synonyms 时就停止了,隔了一段时间后提示
  EXP-00008: ORACLE error 4021 encountered
  ORA-04021: timeout occurred while waiting to lock object 
  EXP-00000: Export terminated unsuccessfully
请问是什么原因?
搞了1天也没有解决,很郁闷阿...
谢谢先

解决方案 »

  1.   

    ORA-04021: timeout occurred while waiting to lock object stringstringstringstringstring 
    Cause: While waiting to lock a library object, a timeout is occurred.
    Action: Retry the operation later
    可以查一下你的log日志文件,看是哪里出了问题
      

  2.   

    我又做了测试,把prop$里字符集改为US7ASCII就可以了,以前为ZHS32GB18030,ZHS32GB18030不是US7ASCII的超集吗?如果不改,如何才能导出阿?
      

  3.   

    linux  NLS_LANG设置为utf-8呢?
      

  4.   

    to chensi05 :改为NLS_LANG= American_America.UTF8也不行,只有把oracle的prop$里字符集改为US7ASCII才可以exp,这是为何?
    update props$
    set value$='US7ASCII'
    where name='NLS_CHARACTERSET';