报表表样多excel表格与sql查询结果一一匹配_order by decode and 中间表
前言:报表是根据地区归属分为多个excel表格来填写的。而有些归属地的表格可能 根据报表统计无数据。但为了sql查询与excel表格一一匹配对应;这样填充 ...
分布式数据库管理系列(一)
Distributed Database Administration其主要包含如下几个主题:站点独立自治性Site Autonomy 分布式数据库的安全问题Distributed Database Security 审核数据库链接Auditing Database Links 相关的管...
dbms_mview系列(六)
REGISTER_MVIEW Procedure &n...
dbms_mview系列(五)_补
--修正method参数值为c,原为f;这下可以正常刷新了SQL> declare &nbs...
dbms_mview系列(五)
REFRESH_ALL_MVIEWS Procedure此过程会刷新符合如下特征的所有物化视图 This procedure refreshes all materialized views that have the following properties:物化视图不会刷新因为它依赖于master table or master...
dbms_mview系列(四)
REFRESH Procedures This procedure refreshes a list of materialized views. Syntax DBMS_MVIEW.REFRESH ( { list  ...
db_file_multiblock_read_count那些事(一)
测试学习下参数的作用与原理db_file_multiblock_read_count;经查官方手册: 1,此参数与操作系统有关 2,即每次io读取的数据块个数 3,如增大此参数,io次数会减少 4,此参数用于表...
pct_free_pct_used,ini_trans之相关参数系统(一)
pct_free,pct_used,ini_trans各参数语义:PCTFREE integer pctfree参数必须位于0-99之间,指定数据块中用于为将来更新表记录预留的空间比例. 默认是10.如为0意味着整个数据块用于插入新数据。&nbs...
oracle11g r2新特性Edition-Based Redefinition
http://antognini.ch/papers/EditionBasedRedefinition20101204.pdf
如何令sql查询的结果集与客户提供的excel表格中列的数据保持一致
今天为客户提供报表时,碰到一个小问题,客户提供给我的是excel表格,表格之中有个列名为订单号码(order_id),需要我作什么呢,到数据库中查询这些订单号码,并提取与订单相关的数据填充更新到他们发...
如何让procedure存储过程中的异常代码不中断继续执行
SQL> create or replace procedure proc_dep 2 authid current_user is 3 cursor cur_test is select object_name,object_type,owner from dba_objects where wner='SCOTT' and object_name...
在cursor游标中使用dbms_metadata.get_ddl提取依赖其它对象的父对象之相关性
--验证依赖其它对象的父对象,如其子对象未用dbms_metadata.get_ddl复制到目标库,会否在游标开启范围内导致后续的源库对象不能继续复制到目标库如object_name还要引用其它的对象--select dbms_metadata.get_ddl(v_ob...
ORA-31600: invalid input value INDEX PARTITION for parameter
运行备份数据库对象的存储过程报如下错误SQL> exec proc_auto_backup; begin proc_auto_backup; end; ORA-31600: invalid input value INDEX PARTITION for parameter OBJECT_TYPE in function GET_DDLORA...
oracle timestamp的最大值
SQL> insert into t_timestamp values(to_timestamp('2013-02-28'||'23:59:59.9999999991')); insert into t_timestamp values(to_timestamp('2013-02-28'||'23:59:59.9999999991')) ORA-01830: date form...
如何提取oracle timestamp列一个范围的数据
--创建测试表SQL> create table t_timestamp(a timestamp); Table created--插入几条测试数据 SQL> insert into t_timestamp values(systimestamp-1); 1 row inserted SQL> insert into t_timestamp...
sql列别名引发ORA-00923: FROM keyword not found where expected
SQL> create table t_a(a int); Table created SQL> select a as 成功/失败 from t_a;--因别名包含/引发错误 select a as 成功/失败 from t_a ORA-00923: FROM keyword not found where expecte...
procedure存储过程调用dba前缀的字典dba_objects
SQL> create or replace procedure proc_dba 2 as 3 v_obj dba_objects.OBJECT_NAME%type; 4 cursor cur_dba is select object_name from dba_objects where wner='SCOTT' and...
zt_ 使用DBMS_OBFUSCATION_TOOLKIT对内容加密
http://space.itpub.net/?uid-11990065-action-viewspace-itemid-754556
ORA-00923: FROM keyword not found where expected
--如以单引号重命名列,报ora-00923SQL> select a as 'aa1',b as 'aaa2' from t_hz; select a as 'aa1',b as 'aaa2' from t_hz ORA-00923: FROM keyword not found where expected ---重命名我不添...
分布式数据库系列(三)
Names for Database Links数据库链接的命名通常情况下,数据库链接名称与要连接的远程数据库的全局数据库名称一样.比如:远程数据库的全局数据库名称叫sales.us.example.com,数据库链接也叫sales.us.example.com;如配...