
oracle
文章平均质量分 53
xiouluoyang
这个作者很懒,什么都没留下…
展开
-
oracle 学习碎碎念
oracle 学习入门,记录学习过程中的知识点。 1. 位图索引:应用于列中值有限量时,例如boolean型变量。 对于使用位图索引列锁定时,oracle会锁定所有值为此的行。2. 使用变量比使用常量更节省资源。因为使用常量,oracle每次在执行的时候,都要编译,而使用变量,编译一次后,存在库缓存中,下次直接调用。而且使用常量更容易被“SQL注入”。 3.数据补全的sql:原创 2012-04-12 11:39:21 · 492 阅读 · 0 评论 -
oracle 中设置sga
alter system set sga_max_size=2000M scope=spfile;alter system set sga_target=2000M scope=spfile; 重启服务。再次连接时报错。原因:32位的windows最大支持的sga为1.7G。 oracle 加载数据库时,读取E:\oracle\product\10.2.0\db_1\dbs目录原创 2012-10-26 15:43:54 · 685 阅读 · 0 评论 -
oracle 计划任务
系统从实时数据库取测点数据,插入oracle中,由于测点数据量比较大,而且插入的历史数据只需保留两天即可,对于以前的数据定期删除。 使用oracle的计划任务来做。 首先定义存储过程,删除前两天的数据。create or replace procedure DeleteSISPONITisbegin delete from sisponit where to_c原创 2012-12-05 10:17:36 · 753 阅读 · 0 评论 -
Oracle 常用sql
1、 扩展表空间 直接扩展 alter database datafile '全路径的数据文件名称' resize ***M2 追加文件 alter tablespace MAXIMO add datafile 'D:\oracle\product\10.2.0\oradata\orcl\MAXIMO6_3.DBF' size 30000M;原创 2015-04-24 11:30:15 · 465 阅读 · 0 评论