我用system用户执行:exp system/system@orcl full=y file=db.dmp
然后到另一个数据库中:imp system/system@orcl fromuser=system touser=system file=db.dmp
照理说这个scheme就是system撒!
那我新建一个表空间:create tablespace user1 datafile '/u01/app/oracle/oradata/orcl/user101.dbf'
然后在创建一个用户:create user user1 identified by user1 default tablespace user1
授权:grant connect,resource to user1
为什么我的user1用户能看到system用户导入进来的表这些啊?照理说这个scheme就是user1了撒!
有没有大范围的scheme包含了小范围的scheme啊???

解决方案 »

  1.   

    我用system用户执行:exp system/system@orcl full=y file=db.dmp
    然后到另一个数据库中:imp system/system@orcl fromuser=system touser=system file=db.dmp
    照理说这个scheme就是system撒!
    -------这里就出问题了,FULL=Y,是数据库中所有用户的对象都导出了
      

  2.   

    竟然导出导入system用户... “能看到system用户导入进来的表”这个能否具体描述下
      

  3.   

    exp使用full=y是按整个数据库导出的方式。
    况且,你想导入system也没有什么意义。
    整库导入:
    imp system/system@orcl file=db.dmp full=y ignore=y如果要按schema导出,使用owner参数,如:
    exp system/system@orcl file=db.dmp owner=user1然后按schema导入,使用fromuser,touser参数
    imp system/system@orcl file=db.dmp fromuser=user1 touser=user2重庆人?每句话都加撒~~~