手里的数据是从11g导出的,项目要用12c的数据库。把数据导入到12c时,总是报错“Oracle遇到错误1435”。
SYS新建OWBSYS用户时,用户名必须是C##OWBSYS,而这不是我想要的OWBSYS~~

解决方案 »

  1.   

    LZ 提供一下你的 exp 和 imp 命令行,可能是你导出的用户有好几个,你导入时,并不存在这些(一部分)用户。
      

  2.   

    谢谢你的回答!的确是导入时不存在OWBSYS这个用户,于是我尝试着用SYS新建一个OWBSYS用户,结果如下:
    于是我查了一下,12c新增了CBD和PDB模块(这是我参考的网址:http://www.cnblogs.com/dingyingsi/p/3604789.html)。
    但是这样只能新建公用用户:C##OWBSYS这不是我要的OWBSYS用户。。
      

  3.   

    数据库是别人导出的,主要的问题是在12c中我建立的是公用用户,而公用用户必须以'C##'开头。好像跟12c新增的CDB和PDB有关,我现在在看,不是很明白。
      

  4.   

    SQL> @cat_owb
    Enter Tablespace Name for OWBSYS user:
    users
    Package created.
    Package body created.
    Create user OWBSYS with default tablespace users ...
    old   1: CREATE USER OWBSYS IDENTIFIED BY OWBSYS DEFAULT TABLESPACE &owbsys_tbs
    new   1: CREATE USER OWBSYS IDENTIFIED BY OWBSYS DEFAULT TABLESPACE users
    。。
    User created.
    User altered.
     
    NOTE: To associate the Control Center with the correct OWB home, now run owb/UnifiedRepos/reset_owbcc_home.sql. You must run the script. as a user with java admin privileges. For example, connect as sys as sysdba to run the script.
    SQL> SQL> SQL> SQL>
     
    SQL> @reset_owbcc_home
    Enter the full path of the Oracle home for the OWB Control Center install.
    If you are installing in a Windows environment, please ensure that the case of the path exactly matches the Oracle install path including the drive letter.
    OWB Control Center Home:
    /usr/local/oracle/product/11.2.0/dbhome_1
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
      

  5.   


    1、新建一个pdb
    2、修改tnsnames.ora 增加一个指向pdb的tns
    3、impdp时候 @新的tns
    不过话说如果你不懂pdb,最好不要用,重新装一个数据库吧,安装的时候记得不要勾选 pdb选项
      

  6.   

    你是不是往CDB里导数据呢?
      

  7.   

    从别的版本导数据的时候,只能将数据导入到pdb中