如何重新填充hr oracle 11g默认架构

时间:2017-12-15 19:19:15

标签: oracle11g

在设置一些jpa时,我错误地设置了create-drop并且默认的oracle架构hr中的所有数据都被删除了。因为我需要它的教程我跟随是否有一个.sql可以填充它原来的? 如果我尝试从hr_popul.sql运行oracle\product\11.2.0\server\demo\schema\human_resources,则无法填充任何内容,只会给我带来很多错误:

Error starting at line : 64 in command -
INSERT INTO regions VALUES 
    ( 4
    , 'Middle East and Africa' 
    )
Error report -
ORA-00001: unique constraint (HR.SYS_C007033) violated

******  Populating COUNTIRES table ....

Error starting at line : 73 in command -
INSERT INTO countries VALUES 
    ( 'IT'
    , 'Italy'
    , 1 
    )
Error at Command Line : 73 Column : 13
Error report -
SQL Error: ORA-00913: too many values
00913. 00000 -  "too many values"
*Cause:    
*Action:

Error starting at line : 79 in command -
INSERT INTO countries VALUES 
    ( 'JP'
    , 'Japan'
    , 3 
    )
Error at Command Line : 79 Column : 13
Error report -
SQL Error: ORA-00913: too many values
00913. 00000 -  "too many values"

0 个答案:

没有答案