![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle相关
文章平均质量分 54
firsthead
这个作者很懒,什么都没留下…
展开
-
造成ORA-01843的一些原因
很简单,一般用英文操作系统不会出现这个问题,因为DB系统时间和sql语句的时间格式是一样的。如果是日文或是中文操作系统,就可能有这种问题。感觉在安装oracle的时候,应该也可以指定,没注意,不知道改怎么弄。 解决这个问题,可以采用alter session set nls_date_language=american,指定格式为美国格式或者alter session set NL原创 2011-06-22 15:07:00 · 394 阅读 · 0 评论 -
怎样创建scott
oracle 9i/10g中,如果数据库实例中没有scott模式,可以手工创建,方法如下:登录数据库ora_test@oracle[/home/oracle]> sqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Wed Feb 24 09:21:26 2010Copyright (c) 1982,转载 2011-06-22 15:26:00 · 631 阅读 · 0 评论 -
外键的作用
1.保持数据的完整性,如果要删除某个表A中的一条数据,A在B中有外键,那么必须把B中的对应数据也要删除。不然B中就出现了一条无用数据。2.如果更新某个表A中的一条数据,A在B中有外键,在A中更新,在B中外键也会对应的自动更新。原创 2011-06-22 15:31:00 · 228 阅读 · 0 评论 -
修改SQLPATH
设置这个东西后,运行SQLPLUS就会自动从这里加载一些sql。 When an sql statement file is executed with start, the file is searched in the current directory and the directory specified with the environment variable SQLPAT原创 2011-06-22 16:23:00 · 450 阅读 · 0 评论