摘要: oracle中使用on delete cascade和on delete set null来建立外键其面我们介绍了创建外键约束时如果使用oracle默认的创建方式,在删除被参照的数据时,将无法被删除,这一点在oracle9i中给了我们更多灵活的选择,我们可是使用on delete cascade和 on delete set null关键字来决定删除被参照数据时是否要将参照这个数据的那些数据一并删... 阅读全文
posted @ 2009-02-12 23:44 jimeper 阅读(876) 评论(0) 推荐(1) 编辑
摘要: 检查行迁移的方法:1)运行$ORACLE_HOME/rdbms/admin/utlchain.sql2)analyze table table_name list chained rows into CHAINED_ROWS3)select * from CHAINED_ROWS where table_name='table_name';清除的方法:方法1:create table table_... 阅读全文
posted @ 2009-02-12 23:43 jimeper 阅读(525) 评论(0) 推荐(0) 编辑
摘要: Name Description Reasonable Values ... 阅读全文
posted @ 2009-02-12 23:41 jimeper 阅读(938) 评论(0) 推荐(0) 编辑
摘要: TAR 命令名 tar - tar 档案文件管理程序的 GNU 版本。下面将逐个介绍其含义 总览 tar [ - ] A --catenate --concatenate | c --create | d --diff --compare | r --append | t --list | u --update | x -extract --get [ --atime-preserve ] [ ... 阅读全文
posted @ 2009-02-12 23:38 jimeper 阅读(997) 评论(0) 推荐(0) 编辑
摘要: linux top命令详解(转) top命令和ps命令的基本作用是相同的,显示系统当前的进程和其它状况;但是top是一个动态显示过程,即可以通过用户按键来不断刷新当前状态。如? 前台执行该命令,它将独占前台,直到用户终止该程序为止。 比较准确的说,top命令提供了实时的对系统处理器的状态监视。它将显示系统中CPU最“敏感”的任务列表。该命令可以按CPU使用、内存使用、执行时间对任务进行排序;而且该... 阅读全文
posted @ 2009-02-12 23:38 jimeper 阅读(2895) 评论(0) 推荐(0) 编辑
摘要: Oracle/PLSQL: WHERE CURRENT OF Statement -------------------------------------------------------------------------------- If you plan on updating or deleting records that have been referenced by a S... 阅读全文
posted @ 2009-02-12 23:36 jimeper 阅读(704) 评论(0) 推荐(0) 编辑
摘要: crontab 名称 : crontab 使用权限 : root用户和crontab文件的所有者 语法 : crontab [-e [UserName]|-l [UserName]|-r [UserName]|-v [UserName]|File ] 说明 : crontab 是用来让使用者在固定时间或固定间隔执行程式之用,换句话说,也就是类似使用者的时程表。-u ... 阅读全文
posted @ 2009-02-12 23:34 jimeper 阅读(294) 评论(0) 推荐(0) 编辑
摘要: set linesize 200 set term off verify off feedback off pagesize 0 set markup html on entmap ON spool on preformat off spool tables.xls @get_tables.sql spool off 阅读全文
posted @ 2009-02-12 23:34 jimeper 阅读(378) 评论(0) 推荐(0) 编辑
摘要: Records in PL/SQL 1.Declaring Records Table-based record DECLARE one_book books%ROWTYPE; Cursor-based record DECLARE CURSOR my_books_cur IS SELECT ... 阅读全文
posted @ 2009-02-12 23:32 jimeper 阅读(458) 评论(0) 推荐(0) 编辑
摘要: Collections Collections Overview Types of Collections Associative arrays 他是同种类型的一维、无边界的稀疏集合,只能用于 PL/SQL DECLARE TYPE t_name IS TABLE OF varchar2(10) INDEX BY PLS_INTEGER; --创建 Co... 阅读全文
posted @ 2009-02-12 23:31 jimeper 阅读(410) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE PROCEDURE PROCSENDEMAIL(P_TXT VARCHAR2, P_SUB VARCHAR2, P_SENDOR VARCHAR2, ... 阅读全文
posted @ 2009-02-12 22:36 jimeper 阅读(488) 评论(0) 推荐(0) 编辑
摘要: Consolidate Cursors and SQL in Packages By placing cursors inside packages, you control the use of SQL in your PL/SQL code. This removes the burden of knowledge about complex joins, etc., from indivi... 阅读全文
posted @ 2009-02-12 21:59 jimeper 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Best practices for knowing your LIMIT and kicking %NOTFOUND I have started using BULK COLLECT whenever I need to fetch large volumes of data. This has caused me some trouble with my DBA, however. He ... 阅读全文
posted @ 2009-02-12 21:46 jimeper 阅读(565) 评论(0) 推荐(0) 编辑