11 2011 档案

摘要:开始-->运行-->cmd:sqlplus /nologconnect / as sysdba;修改密码:alter user system identified by manager;在plsql developer中要是以scott/tiger登录时提示ora-28000 the account is locked。解决办法:新装完Oracle10g后,用scott/tiger测试,会出现以下错误提示: oracle10g the account is locked oracle10g the password has expired原因:默认Oracle10g的scott不能 阅读全文
posted @ 2011-11-17 11:55 王大湿 阅读(262) 评论(0) 推荐(0) 编辑
摘要:约束: 用于确保数据库数据满足特定的商业规则。 Oracle中的约束包括: not null: unique: primary key: pk foreign key: fk check: a.not null : 非空约束: 如果在列上定义了not null,那么增加数据时,必须为该列提供数据。 b.unique : 唯一约束: 当定义唯一约束后,该列的值是不能重复的,但是可以为null。比如:身份证号、产品编号、... c.primary key : 主键约束: 用于唯一的标示表行的数据。当定义了主键约束后,该列不但不能重复,而且不能为null。 注意:一张表最多只能由一个主键(可以有联合 阅读全文
posted @ 2011-11-11 10:29 王大湿 阅读(303) 评论(0) 推荐(0) 编辑