ORA-00600 [kghfrempty:ds] internal error issue

—- Error Stack Dump —–
ORA-00600: 内部错误代码, 参数: [kghrcdepth:ds], [0x7FFE37407008], [], [], [], [], [], [], [], [], [], []
—– SQL Statement (None) —–
Current SQL information unavailable – no cursor.

Script: oracle procedure error 生成txt日志文件

前天有网友问题这个问题,今天测试一把,需求应该是如果producre存储过程运行出错,可以写错误日志到OS的文本文件,这样系统管理员就可以看到,无需分配数据库权限.

AWR 之table scans (short tables)

Verify that your KEEP pool is sized properly to cache frequently referenced tables and indexes. Moving frequently-referenced tables and indexes to SSD or the WriteAccelerator will significantly increase the speed of small-table full-table scans.

impdp 挂起 tatement suspended, wait error to be cleared

ORA-39083: Object type INDEX failed to create with error:
ORA-30032: the suspended (resumable) statement has timed out
ORA-01659: unable to allocate MINEXTENTS beyond 59 in tablespace ICMETBS
ORA-39125: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA while calling DBMS_METADATA.FETCH_XML_CLOB

AWR中的physical writes

investigate moving your high-write datafiles to a smaller data buffer to improve the speed of the database writer process.

AWR 中的consistent gets – examination

“Consistent gets – examination” is different than regular consistent gets. It is used to read undo blocks for consistent read purposes, but also for the first part of an index read and hash cluster I/O

10gR2 commit_write

从10g r2开始在commit时控制redo 如何写的方式提供了几个参数,虽然可以提示性能但也要考虑到它的ACID的缺陷

QUERIES NOT SHARED WHEN CURSOR_SHARING=FORCE (并未共享游标)

前天有个朋友问我了个问题发现v$sqlarea 中文本相同的sql还有很多记录,也就是并未共享游标,也许很多人知道当cursor_sharing=force,可以尽可能的减小hard parse,记住是min,并不是完全防止硬解析,因为解析也很浪费资源

oracle user default role

通过grant 授于用户的角色,在用户登录时默认是全部继承的,除非是用alter user 显示的修改,指定用户连接后默认的角色有哪些,但是用户也可以使用后使用set role再附加已授权的但没启用的角色用于当前session

plsql 轻松得到insert,delete,update更新记录数

今天刚好有人问我这个问题 记录一下,在plsql中有时做几个dml操作但又想知道整个过程的操作的记录数,那可以用SQL%ROWCOUNT变量轻松实现,无论是不是拼的sql,不

cast multiset,nested table,object datatype column

昨看tom的书偶然发现了cast multiset这奇怪语法,回来试一下,主要是为了告诉查询返回是一个set集合,向嵌套表或varray column插入数据使用

Oracle11g新特性:只读表(read only table)

Oracle11g推出了一个新的特性,可以将table置于read only状态,处于该状态的table的不能执行DML操作和某些DDL操作。在Oracle11g之前的版本,只能将整个tablespace或者database置于read only状态。对于table的控制则只能通过权限来设定。

oracle cluster tables 聚簇表

I/O往往是一个事务最浪费请求时间的过程,磁盘I/o的代价是非常大的,因为数据库请求一个磁盘文件中的BLOCK,在read的过程中必须等待物理I/O操作成功完成。

Script: sql 金额数字转换大写(1to壹)

在打印的单中涉及金额的地方,常规都是有中文大写,避免修改。
1001.23¥ 转成 壹仟零壹元贰角叁分

oracle 虚拟列(Virtual Columns )

今天看一个软件需求时,有总金额,还有使用年限,需要显示一个折旧率,10g及前可以用view,11gr1开始推出了virtual columns,就是在磁盘上不会储存实际数据,只是在查询里计算,这是一种时间换空间的方法

wallet,外部存储用户名密码,createEntry与createCredential区别(二)

wallet文件可以copy到不同的机器修改client的sqlnet.ora就可以,我再来做另一个实验用-createCredential的参数

wallet,外部存储用户名密码,createEntry与createCredential区别(一)

如果在shell中处理数据库内容,又不想从os用户随便看到脚本中的用户密码,可以用oracle提供的Oracle Wallet,中文钱包或钱夹,在我以前的透明加密时有用提到过. wallet文件内容是加密的..

oracle 创建只运行一次的job 自动删除

有时会有这样的需求,自己写个procedure,想下班后自动执行,但又只想运行一次,然后只关心job的结果,如果用dbms_job 可能就要建个job,然后频率间隔很长时间,执行完后在把那个job drop,有没有一种job执行一次后自动删除呢?有

Consistent Reads (cr block) (转)

Here’s a quick demo to make a point about consistent reads (prompted by a question on the Oracle-L mailing list):

gateway dblink transport mssql image datatype to oracle blob datatype

在异构RDBMS之间传送数据,有时会面临数据类型的转换问题,必要时要用到第三方,比如SQL SERVER中的image 二进制图像类型,转到oracle 对应blob,我将测试一下用oracle 的透明网关来同步mssql的image 数据类型