plsql_warning使用小结
http://www.diybl.com/course/7_databases/sql/sqlServer/200798/71002_4.htmlhttp://forums.oracle.com/forums/thread.jspa?threadID=625283[@more@]2009-10-29 08:37开启target/123456 alter system set plsql_warning = ‘eanble:all’功能检查pl/sql代码是否存在性能问题死代码可能出现的不可预料的结果或者错误结果1、检查 pesystem_test/pesystem发现了许多performance : oracle隐含地转换数据类型 --当出现例外的情况下需要返回值,如果只是null会触发plw-05005:函数。。。返回的行158不具有值[雨林木风1] re
正则表达式对应的函数
http://www.cnblogs.com/lzhdim/archive/2008/12/24/1361387.htmlascii中字符分为许多类型http://www.ascii.cl/control-characters.htmhttp://en.wikipedia.org/wiki/Punctuationhttp://en.wikipedia.org/wiki/ASCII--强大的总结部分http://www.trydone.com/posts/list/591.page[@more@]Oracle SQL 语句中关于正则表达式的函数有 REGEXP_LIKE(匹配) REGEXP_INSTR (包含) REGEXP_REPLACE(替换) REGEXP_SUBSTR(提取) 如 手机号码的表达式: ^[1]{1}[35]{1}[[:digit:]]{9}$ 查询客户信息表(tKHXX)中有手机号码(SJHM)的可以这样查询 源码复制打
根据公式拆分字符串对应
原创[@more@]CREATE OR REPLACE PROCEDURE SP_BAS_COMPUT(V_BVALID IN Varchar2, --基础值ID V_PRCCODE IN Varchar2, --过程值代码字符串,字符串间隔附'||' V_PRCVAL IN Varchar2, --过程值值字符串,字符串间隔附'||' V_BACVAL OUT NUMBER) IS --计算的基础值结果 v_ComptRule Varchar2(200); v_ComptRule_ini v_ComptRule%type; --过程值变量 V_PRCVAl_ini Varchar2(200) := V_PRCVAL; V_PRCCODE_ini Varchar2(200) := V_PRCCODE; --定义复合类型--索引表 type t
instance & listener 无法随同os启动
今天发现同事刘静波的11g does't startup with the startup of os http://topic.csdn.net/t/20021023/08/1116887.html#http://ylsuccess.javaeye.com/blog/420429 修改主机名称和ip地址监听无法启动[@more@]First step :set the listener's database server to oracle_home;second step:set the sqlnet.ora and descript the ...
昨天考试结束
昨天ocp考试结束了[@more@] 日子过得很快,我家楼旁边的银杏树的叶子渐渐的黄了,一阵秋风过后叶子沙沙作响,不时的有几片从树梢或者其他部位飘落下来,遇到了有霜的早晨,
DBMS_RLS.SHARED_STATIC以及DBMS_RLS.SHARED_CONTEXT_SENSTIVE
http://blog.csdn.net/firefoxboy/archive/2008/10/02/3009891.aspx[@more@]5.VPD策略类型 运行策略函数需要大量的系统资源,因此,将策略函数运行次数降低可以提高性能。Oracle8i和9i都是动态的。Oracle 10g中又引入了静态和上下文敏感等策略。10g中可用的类型有: 1)动态(默认) 2)静态 3)共享-静态 4)上下文敏感 5)共享-上下文敏感 6.静态策略类型 对于静态策略类型,我们可以将参数POLICY_TYPE的值指定为DBMS_RLS.STATIC。在静态的策略类型中,谓词在不同运行环境下都是相同的。静态策略函数运行一次,并且被缓存到SGA,这样静态策略函
New Background Processes In 10g
http://www.itpub.net/viewthread.php?tid=947251&extra=&page=2[@more@]New Background Processes In 10gTIP: Click help for a detailed explanation of this page. Bookmark Go to End Subject: New Background Processes In 10g Doc ID: Note:268197.1 Type: HOWTO Last Revision Date: 03-OCT-2008 Status: PUBLISHED In this Document Goal Solution References--------------------------------------------------------------------------------Applies to: Oracle Server - Enterprise Edition - Version:
mmon,mman 区别
http://www.itpub.net/viewthread.php?tid=947251[@more@]MMAN 内存管理,如果设定了 SGA自动管理,MMAN用来协调SGA内各组件的大小设置和大小调整。MMON 是可管理性监视器(Manageability Monitor),MMON主要用于AWR,ADDM,MMON会从SGA将统计结果写到系统表中姚荣辉 (15:34:10)这两个不一样 MMON是memory monitorMMAN是memory managermemory monitor=> Manageability MonitorMMAN用于自动内存管理MMON用于自动统计信息收集。
ORACLE&&&redo里是否包含alter database rename file 和alter database datafile X resize?
http://hi.baidu.com/zxtandy/blog/item/2df37dd0ce53008da1ec9c43.html[@more@]2007-07-28 16:29先备份datafile 3,再备份控制文件,然后rename file,datafile resize,shutdown.用dbms_restore恢复出controlfile,mount后进行恢复,可以看到恢复后的数据文件名是rename前的名,alert.log里面并没有因为rename产生的cannot identify/lock data file 10错误, 也就是说rename并没有包含在redo中并被应用. ----- 调置归档模式: SQL> alter system set log_archive_dest = 'd:ora92oradataicearchive' scope=spfile;系统已更改。SQL> alter
default_role属性的使用
alter user set role create_table not default alter user test default role resourcealter user test default role allalter user test default role all except resourcehttp://blog.oracle.com.cn/html/82/t-127982.htmlhttp://www.orafaq.com/forum/t/76312/0/[@more@]阿斯顿
对imp/exp转移表空间的讨论
http://www.eygle.com/archives/2005/04/ecineeeeiaeioae.html[@more@]我们知道,在Oracle10g中,Oracle提供了缺省数据表空间的概念,即使用户不指定,Oracle也不会将用户数据存放在SYSTEM表空间,而且,Oracle还将一些无关紧要的系统数据分离到SYSAUX表空间,以使得SYSTEM表空间纯净化. [Read More] Tracked on September 2, 2006 10:05 PM留言 (17)嗯,我就出现过这样的问题,谢谢PHPosted by: booby at April 5, 2005 3:02 PM参考我的这篇,也总结过这样的问题:http://blog.csdn.net/kamus/archive/2004/06/10/22282.aspxPosted by: kamus at
Oracle FGAC与FGA的区别
http://blog.csdn.net/firefoxboy/archive/2008/10/03/3013254.aspx[@more@]导读: 先看一下FGAC:Oracle's Fine Grained Access Control (FGAC) provides a row-level security mechanism that's built-in to the Oracle database engine. FGAC allows you to granularly specify the exact information elements that each user may access. It works by automatically appending a WHERE predicate to the SQL statements executed by the user. For example, if you had an Employees table and wanted to grant each user access to h
Oracle初学者入门指南-系统与用户数据分离
http://www.eygle.com/archives/2006/06/oracle_system_tablespace.html[@more@]今天一个朋友的数据库出现问题,请我帮忙查看,其实问题本身很简单:Fri Jun 19 10:30:00 2006ORA-1653: unable to extend table CMS.ACCESS_LOG_200606 by 40968 in tablespace SYSTEMORA-1653错误是指空间不能扩展,我们只要扩展数据文件或者增加数据文件即可.然而我们可以发现另外一个更为严重的问题,也就是用户表ACCESS_LOG_200606被建立在SYSTEM表空间.这是Oracle DBA的大忌,通常我们应该将用户数据和系统数据(SYSTEM)分离,避免用户数据频繁变更对于SYSTEM表
Oracle10g新特性-SYSAUX表空间
sysaux是system的补充表空间,把以前使用独立和system表空间的一些数据库组件存放在该表空间中,减少了system的负载和因为反复创建一些对象和组件造成的system对应数据文件块的不连续(表空间的碎片)情况的出现http://www.eygle.com/10g/10g_sysaux_tbs.htm[@more@]SYSAUX表空间在Oracle Database 10g中引入,作为SYSTEM表空间的辅助表空间.以前一些使用独立表空间或系统表空间的数据库组件现在在SYSAUX表空间中创建.通过分离这些组件和功能,SYSTEM表空间的负荷得以减轻.反复创建一些相关对象及组件引起SYSTEM表空间的碎片问题得以避免。如
Oracle 备份与恢复
http://203.208.39.132/search?q=cache:E7_6z2GXCiAJ:www.oracle.com/technology/global/cn/deploy/availability/htdocs/BR_Overview.htm+oracle+NOARCHIVELOG%E8%83%BD%E5%A4%9F%E6%89%A7%E8%A1%8C%E4%BD%95%E7%A7%8D%E5%A4%87%E4%BB%BD&cd=1&hl=zh-CN&ct=clnk&gl=cn&client=aff-360homepage&st_usg=ALhdy28uf0k-KZ3EWRQtHJrtMP82A61Bmw[@more@]备份与恢复是数据库管理中最重要的方面之一。如果数据库崩溃却没有办法恢复它,那么对企业造成的毁灭性结果可能会是数据丢失、收入减少、客户不满等。不管公司是使用单
oca题目一些疑惑,请教通过了的高手
http://www.oracle.com.cn/archiver/?tid-128913.html[@more@]QUESTION 46: You work as a database administrator for Certkiller .com. In your transaction application, you have scheduled a job to update the optimizer statistics at05:00 pm every Friday. The job has successfully completed. Which three pieces of information would you check to confirm that the statistics have been collected? Choose three A.Average row size B.Last analyzed date C.Size of table in bytes D.Size of table in database blocks E.
statistics_level与SGA_TARGET冲突的解决方法
http://203.208.39.132/search?q=cache:-y2crSc0FQwJ:www.zxbc.cn/html/20071129/29857.html+oracle+STATISTICS_LEVEL&cd=1&hl=zh-CN&ct=clnk&gl=cn&client=aff-360homepage&st_usg=ALhdy28i7g2w69yXc4P9EBWmA_TlSiDUBA[@more@]今天有朋友数据库启动报错,向我求助。其中报错信息如下: SQL> startup ORA-00824: cannot set sga_target due to existing internal settings, see alert log for more information 最后发现问题出在参数设置冲突上,下面模拟这个过程。 --设置参数并重启 SQL> alter system se
Backup, Restore and Recovery with Oracle
http://www.adp-gmbh.ch/ora/admin/backup_recovery/index.html[@more@]BackupA database backup is is a copy of the data stored in a database. There are two types of backups: physical backups and logical backups. A physical backup is a copy of the files that belong to a database at a specific point in type. It can either be a cold backup or hot backup. A logical backup is does not copy the files, instead, it extracts the data into a specific file format (for example with exp.) A backup is needed to r
Instance Recover步骤
http://hi.baidu.com/zwfha/blog/item/d11b70c2fa2f5d36e5dd3bf8.html这个文章很好[@more@]mount到open状态时:各个数据文件头的stop SCN值应该与控制文件中记录的数据文件最后SCN相同。如果相同,刚数据库上次是正常关闭,不需要instance recovery.直接打开数据库给用户提供服务; 如果数据文件头的stop SCN与控制文件中的SCN不一致(比如,shutdown abort情况下,数据文件头的stop SCN为无穷大),则需要instance recovery,各个数据文件的SCN不一致,需要恢复到一致状态才能打开数据库。 Instance recovery打开数据库时,各个数据文件头
Instance Recovery Tuning
http://203.208.39.132/search?q=cache:_aEOP-dSjlgJ:hi.baidu.com/zwfha/blog/item/1eac09d1047d613b9b5027c6.html/cmtid/af96d811332b1ecda6ef3f7f+instance+recovery&cd=1&hl=zh-CN&ct=clnk&gl=cn&client=aff-360homepage&st_usg=ALhdy2_XgZf6LN6YcoqbcWllfTOKBnIvfw[@more@]2007-12-04 15:03先要明白一些概念:日志文件中的信息为了当系统出现failure时,保证事务可以恢复。当用户事务完成发出commit时,总是先等待LGWR进程将事务所需的redo信息写到日志文件(之前可能在redo buffer中)后,才会收到commit c