刚刚编写oracle数据库的时候遇到一个问题。在网上没有找到自己想要的答案。就一直围着这几个字思索。然后通过群内的朋友提醒。原来是外键表缺少唯一约束。
例如:
外键表:
create table users( uids integer not null, username nvarchar2(20) unique not null, passwords nvarchar2(30) not null, udatatime timestamp default sysdate, udescriptions nvarchar2(255) null );
主表
create table roleUsers( ruid integer primary key, rid int not null, uids int not null, rudescriptions nvarchar2(255) null, constraint fk_roleUsers_users foreign key(uids) references users(uids), constraint fk_roleUsers_role foreign key(rid) references role(rid) );
如果不在外键表添加primary key(唯一约束),主表引用外键的时候就会报:"ORA-02270:此列表的唯一或主键不匹配"错误!
相关推荐
ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-...
oracle12c程序连接时异常: ORA-01017: 用户名/口令无效; 登录被拒绝 的解决方案。
oracle报错ora-12541:TNS无监听程序
错误描述:oracle远程连接服务器出现 ORA-12170 TNS:连接超时 错误检查:有很多是oracle自身安装的问题,但是我这里服务器配置正常,监听正常,服务正常,远程可以ping通服务器。 这里主要是防火墙问题,解决办法: ...
在运行查询SELECT * FROM V$SESSION 会出现ORA-29275:部分多字节字符的错误,这是什么原因开始我不得其解,网上也没有介绍什么好办法。本文给出答案。
kettle连接oracle12C--报错ORA-28040 没有匹配的验证协议
NULL 博文链接:https://3w1h.iteye.com/blog/1211779
ORA-01036:非法的变量名/编号 oracle特有的错误
ORA-12154: TNS: 无法解析指定的连接标识符的解决方法
ORA-32001:write to spfile requested but no spfile is in use请求写入spfile,但没有使用spfile的解决方法 在输入以下语句中报了这样的错误: SQL>alter system set control_files=’/u01/app/oracle/oradata/prod/...
oracle 12 c ORA-01017: 用户名/口令无效; 登录被拒绝
ORA-00031:标记要终止的会话解决方案; ORA-00031:标记要终止的会话解决方案;
ORA-12518 TNS:监听程序无法分发客户机连接,在您安装好数据库后配置连接数据库的过程中遇到这类问题应该很头疼吧,不过,当您还是四处查资料来解决您遇到的另你头疼的问题时,如果不经意间看到了这则贴子,那请您升...
主要介绍了连接Oracle数据库时报ORA-12541:TNS:无监听程序的图文解决教程,非常不错,具有参考借鉴价值,需要的朋友可以参考下
前几天升级Oracle数据库,从11.2.0.1升级至11.2.0.4,安装完成后,打开PL/SQL,显示ORA-12514,如图: 问题阐述 ORA-12514:监听程序当前无法识别链接描述符中请求的服务,简单的来说就是Oracle数据库的监听器配置有...
最近在工作中遇到了一个问题,错误是Oracle dbca时报错:ORA-12547: TNS:lost contact,通过查找相关的资料终于找到了解决的方法,下面分享给大家,话不多说了,来一起看看详细的介绍吧。 环境: OS:RHEL6.5 x86-...
调整参数后引起,ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least 3 2768M 的解决方案
NULL 博文链接:https://springlin.iteye.com/blog/1520668
有关表死锁的详细图片 博文链接:https://meteor-1988.iteye.com/blog/1568695
客户端进行连接的时候,系统不定期出现ora-12520,ora-12516的连接问题, 问题解决方案建议: 1、增加process和session的连接数。 2、检查连接的应用,是不是有没有释放的连接。 3、将修改参数local_listener中的vip为...