使用PL/SQL工具导入表数据,日志如下,但是在库中没有发现数据。请问可能导致的原因,谢谢!Import started on 2010-4-23 10:09:35
C:\oracle\product\10.1.0\Db_1\bin\IMP.EXE log=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\plsimp.log file=C:\tmp\ztuser2010-04-02.dmp userid="sys/******@ASANCE as sysdba" buffer=30720 commit=no full=yes grants=yes ignore=yes indexes=yes rows=yes show=no constraints=yesIMP-00058: ORACLE error 28009 encountered
ORA-28009: connection to sys should be as sysdba or sysoperUsername: 
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining optionsExport file created by EXPORT:V10.01.00 via conventional pathWarning: the objects were exported by TESTUSER, not by youimport done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing TESTUSER's objects into SYSTEM
. . importing table                 "AAAA"          0 rows imported
. . importing table       "BBBB"         16 rows importedAbout to enable constraints...
Import terminated successfully with warnings.Import finished on 2010-4-23 10:09:36

解决方案 »

  1.   

    这样试试:
    select * from TESTUSER.AAAA;
    或者直接查询一下该表在系统里存不存在:
    select * from ALL_tables t where UPPER(t.table_name) like 'AAAA';
    访问表的时候要带用户名.
      

  2.   

    importing table "AAAA" 0 rows imported 
    importing table "BBBB" 16 rows imported
    BBB应该是有数据的
      

  3.   

    . importing TESTUSER's objects into SYSTEM
    . . importing table "AAAA" 0 rows imported
    . . importing table "BBBB" 16 rows imported
    应该是有表的啊。
    select * from ALL_tables t where UPPER(t.table_name) IN ('AAAA', 'BBBB');
    这样找不到记录?
      

  4.   

    没有找到。所以奇怪了,不过。是新安装和 oracle,还没有建立TESTUSER用户与表空间。是不是这样导入就不正常?
      

  5.   

    使用system用户再导一遍吧,不要使用sys用户。
      

  6.   

    使用这个查一下
    select * from DBA_tables t where UPPER(t.table_name) IN ('AAAA', 'BBBB');
      

  7.   

    不行,用system也是看不到表,奇怪了!
      

  8.   

    imp命令中的userid参数是sys,当然表被倒入sys用户下了。应该先建立对应的用户,在你的例子里是testuser,然后再导入
    imp log=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\plsimp.log file=C:\tmp\ztuser2010-04-02.dmp userid="testuser/******@ASANCE" buffer=30720 commit=no full=yes grants=yes ignore=yes indexes=yes rows=yes show=no constraints=yes
      

  9.   

    应该在sys系统用户下,用sys登录查询看看
      

  10.   


    你的表以及数据导入到 sys.BBBB里面去了
    应该 select * from sys.bbbb 这样就有数据了
      

  11.   

    你的表以及数据导入到 sys用户下的a里面去了,如果你是用sys登陆进去的话,你就用select * from sys.a;
    如果你用a用户登陆进去的话你就直接是select * from a;就好啦!在试试。
      

  12.   

    明显有问题:C:\oracle\product\10.1.0\Db_1\bin\IMP.EXE log=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\plsimp.log file=C:\tmp\ztuser2010-04-02.dmp userid="sys/******@ASANCE as sysdba" buffer=30720 commit=no full=yes grants=yes ignore=yes indexes=yes rows=yes show=no constraints=yes而且,你导出DMP文件的用户是TESTUSER,那么imp命令,应该加上fromuser=? touser=?
      

  13.   

    full是导整个数据库,一般我们用EXP,导出的都是SCHEMA
      

  14.   


    而且像13楼说的 ,imp命令,最好加上fromuser=? touser=?
      

  15.   

    用DBA看不到数据,用normal登录就能正常看到了。