无法创建Oracle APEX应用程序错误ORA-20001

问题描述 投票:1回答:2

我正在尝试使用oracle 10g创建图书馆系统(学校作业),但是我被困于创建简单的APEX报告和表格,错误消息显示:

ORA-20001:无法创建模块。 ORA-20001:创建页面错误。ORA-20001:无法创建表单页面。 ORA-20001:错误页面= 8item =“ P8_BRANCHID” id =“” ORA-20001:错误页面= 8 item =“ P8_BRANCHID”id =“”与现有的应用程序级项目具有相同的名称。 ORA-0000:正常,成功完成

无法创建应用程序。

这是我的架构,以防万一我做错了事:

create table publisher(
PublisherName varchar2(30) not null,
Address varchar2(30) not null,
Phone number(20),
constraint publisher_pk primary key (PublisherName)
);

create table book(
BookId number(4) not null,
Title varchar2(50) not null,
PublisherName varchar2(30) not null,
constraint book_pk primary key (BookId),
constraint book_fk foreign key (PublisherName)
references publisher (PublisherName)
);

create table bookauthors(
BookId number(4) not null,
AuthorName varchar2(30) not null,
constraint bookauthors_pk primary key (BookId,AuthorName),
constraint bookauthors_fk foreign key (BookId) references book (BookId)
);

create table librarybranch(
BranchId number(4) not null,
BranchName varchar2(30) not null,
Address varchar2(30) not null,
constraint librarybranch_pk primary key (BranchId)
);

create table borrower(
CardNo number(4) not null,
BName varchar2(30) not null, 
Address varchar2(30) not null,
Phone number(20) not null,
constraint borrower_pk primary key (CardNo)
);

create table bookcopies(
BookId number(4) not null,
BranchId number(4) not null,
No_Of_Copies number(4) not null,
constraint bookcopies_pk primary key (BookId,BranchId),
constraint bookcopies_fk foreign key (BookId) references book (BookId),
constraint bookcopies2_fk foreign key (BranchId) references librarybranch (BranchId)
);

create table bookloans(
BookId number(4) not null,
BranchId number(4) not null,
CardNo number(4) not null,
DateOut date,
DueDate date,
constraint bookloans_pk primary key (BookId,BranchId,CardNo),
constraint bookloans_fk foreign key (BookId) references book (BookId),
constraint bookloans2_fk foreign key (BranchId) references librarybranch (BranchId),
constraint bookloans3_fk foreign key (CardNo) references borrower (CardNo)
);

谢谢。

sql oracle oracle10g oracle-apex
2个回答
2
投票

我认为您的架构没有任何问题;此错误ORA-20001是Apex应用程序(而不是数据库)引发的自定义应用程序错误。我将以面值...Error page=8 item="P8_BRANCHID" id="" has same name as existing application-level item接收该消息。看来您的页面8有一个名为P8_BRANCHID的页面项,但在应用程序项中也可能定义了类似的项。转到您的申请项目,看看您是否有一个相同的名称。


0
投票

这是因为您要创建的页码已存在于APEX应用程序中。更改页码,它应该可以工作

© www.soinside.com 2019 - 2024. All rights reserved.