2010年5月6日

Oracle函数substr(str1, pos, [len])

摘要: 获得子字符串的函数, 参数可选, 没有len的时候从返回从pos未知到字符串尾的子字符串。 这里有个可以指定pos为负数, 位置就是从字符串尾往前pos个字符的位置开始 例如: select substr(‘abcdefg’, –1) from dual; 则返回结果 : g select substr(‘abcdefg’, –3, 2) from dual; 返回结果 : ef 阅读全文

posted @ 2010-05-06 14:49 Samuelee 阅读(3566) 评论(0) 推荐(0) 编辑

2010年5月5日

BIEE配置多个实例(BIEE Multiple Instance)

摘要: 环境: Windows Server 2003 + OBIEE10.1.3.1 + Oracle10gR2 Repository文件,默认的是sh.rpd,先需配置另外一个test.rpd 一 创建Oracle BI Server类型的ODBC数据源:AnalyticsTest 下一步, 在change the default Repository出输入Star2 二 配置NQSConfig.in... 阅读全文

posted @ 2010-05-05 15:18 Samuelee 阅读(2858) 评论(1) 推荐(2) 编辑

2010年5月4日

BIEE外部表登录

摘要: 1 创建用户表TB_USER TB_USER表结构(username, name, pwd, group, log_level, …) 2 设置Session Initialization Blocks 设置数据源: select username, name, group, log_level from tb_user where username = ‘USER’ and pwd = ‘... 阅读全文

posted @ 2010-05-04 17:04 Samuelee 阅读(1380) 评论(0) 推荐(0) 编辑

2010年3月29日

BIEE缓存 - 缓存轮询事件表(Cache Polling Event Table)

摘要: 缓存可以大大提高查询速度,没进行一次新的查询,就会自动创建一个新的缓存文件。当物理表发生改变的时候通知BI Server,例如表A,我们需要通知BI Server删除和表A相关的缓存文件(文件存在于OracleBIData/cache),当然可以通过Cache Manager手动更新。不过BIEE也提供了一种自动更新的方式,就是缓存轮询事件表。 基本工作原理就是, BI Server维护着一个或... 阅读全文

posted @ 2010-03-29 17:24 Samuelee 阅读(2410) 评论(0) 推荐(0) 编辑

2010年3月12日

Oracle exp 导出用户对象

摘要: 导出Oracle scott方案下用户对象 exp system/password@orcl grants=n feedback=10000 file=e:\scott.dmp owner=scott 只要在本机设置了TNS——orcl,知道system用户名和密码就可以导出数据到本地 grants=n 表示不导出权限; feedback表示10000条记录反馈一次——表现在终端就是一个黑点; ... 阅读全文

posted @ 2010-03-12 18:13 Samuelee 阅读(13602) 评论(0) 推荐(0) 编辑

2010年3月11日

Oracle查看对象依赖关系

摘要: 整理数据仓库的时候,怀疑一个表TABLE_NAME是不再需要的,但是又不确定,需要知道它是否被依赖 阅读全文

posted @ 2010-03-11 15:53 Samuelee 阅读(1550) 评论(0) 推荐(0) 编辑

2010年3月10日

ORA-01417: 表可以外部连接到至多一个其它的表

摘要: 表A,B,C 。表B可以连接到A,然后C可以连接到Bselect ... from a,b, cwhere a.xh = c.xh(+) and b.xh2 = c.xh2(+);此时会报 ora-01417:表可以外部连接到至多一个其它的表 阅读全文

posted @ 2010-03-10 15:16 Samuelee 阅读(6651) 评论(0) 推荐(0) 编辑

2010年2月7日

Oracle正则表达式匹配中文的问题

摘要: 查资料知道中文Unicode范围是\u4e00 - \u9fa5 可是自己用来正则表达式匹配中文总是用不了Unicode。最简单举例:select regexp_replace('abc秋歌def','[\u4e00-\u9fa5]','-') from dual;结果是:-bc秋歌d--即将\u4e00-\u9fa5里面的a,b,e,f当成字符了。我用的是Oracle10.2.xxx哪位大侠知道... 阅读全文

posted @ 2010-02-07 15:15 Samuelee 阅读(6178) 评论(1) 推荐(0) 编辑

2010年2月1日

Oracle 月 第一天

摘要: 在日期函数中last_day可以取得日期该月的最后一天。要取得该月第一天的话可以采用(以sysdate为例):to_date(to_char(sysdate, 'yyyy-mm') || '-01','yyyy-mm-dd')trunc(sysdate, 'month') 阅读全文

posted @ 2010-02-01 09:47 Samuelee 阅读(440) 评论(0) 推荐(0) 编辑

2010年1月30日

Oracle导出数据库对象

摘要: 今天从数据源抽取数据,用到exp 导出schema下所有对象:exp system/pwd@orcl owner=owner_name, file=/usr/xxx/xxx.dmp,log=/usr/xxx/xxx.log此时不能指定 full=y模式。我的理解是不能同时使用owner和table模式,而full=y和owner=xxx冲突 导出特定的表: exp system/pwd@orcl ... 阅读全文

posted @ 2010-01-30 13:38 Samuelee 阅读(656) 评论(0) 推荐(0) 编辑

导航