一、数据更新1.申请获得undo段中的事务表的操作权,即请求事务槽A2.由于事务槽指向一个undo段中的空间,所以找到事务槽就找到了该数据内容3.申请获得datafile中的block上的ITL槽,指向事务槽A4.复制旧数据到undo的事务槽A中5.由于ITL槽存放着a.事务号 b.scn c.undo中事务槽,所以找到ITL槽就找到了事务信息undo中的信息6.找到datafile中的block
数据库用户在数据库中truncate表时,常常会出现ora-00054:resource busy and acquire with nowait specified这样的错误。主要是因为有事务正在执行(或者事务已经被锁),所有导致执行不成功。 1、用sysdba权限的用户查看数据库都有哪些锁 SQL> select t2.username,t2.si
数据库进程占用CPU大的问题,一直普遍存在,通过下面的方法可以进行可以在操作系统层面获取进程pid,然后抓出在数据库中的sql语句: select /*ordered*/ sql_text from v$sqltext a where (a.hash_value,a.address) in (select decode (sql_hash_value,0,prev_hash_value,sql
前段时间遇见一个问题,就是一个未做任何归档备份的9i数据库老是被出现一个表被莫名drop,并在回收站不留任何痕迹,最后只得创建触发器的方法,来跟踪运行这个操作的时间和主机信息,问题予以解决,记录在此: -- Create table create table T_WCDMA_AUDIT_DDL ( DDL_TIME VARCHAR2(30), SESSION_ID NUMBER, OS
a.获取单个的建表和建索引的语法,其他对象类似: select dbms_metadata.get_ddl('TABLE','TABLE_NAME','TABLE_OWNER') from dual; select dbms_metadata.get_ddl('INDEX','INDEX_NAME','INDEX_
1)根据SID,从v$sql中找到相应SQL的HASH_VALUE和ADDRESS ; SELECT a.sql_text , a.address , a.hash_value FROM v$sql a , v$session b where a.hash_value = b.
EXP/IMP(expdp/impdp)是DBA日常使用较多的工具之一,是迁移数据的得力助手。常规的迁移方式先使用EXP导出DMP文件,然后传输DMP文件到目标数据库,再用IMP导入。这种迁移方式需要使用中间DMP文件传输交换,有时候比较麻烦。而10G的impdp则可以通过DB LINK的方式直接从远程数据库导入数据,省去EXP生成中间DMP文件的步骤。其实这种方式非常简单,只
jleomswe 50: ./runInstaller -silent -responseFile /tmp/oracle_install.rsp Starting Oracle Universal Installer... Checking installer requirements... Checking operating system version: must be B.11.3
早上有个问题报ora-600,记录下来,后面有时间了仔细研究: Mon Aug 30 23:56:19 2010 Errors in file /opt/app/oracle/admin/xateldb/udump/xateldb_ora_21118.trc: ORA-00600: 内部错误代码, 参数: [17059], [0x6CFFCB260], [], [], [], [], [
Library cache内部机制详解 Library cache是Shared pool的一部分,它几乎是Oracle内存结构中最复杂的一部分,主要存放shared curosr(SQL)和PLSQL对象(function,procedure,trigger)的信息,以及这些对象所依赖的table,index,view等对象的信息。 Library cache需要解决三个
昨天在做数据复制需要配置TNS连接,多次实验不行 gxnmsdb% sqlplus "sys/system as sysdba" SQL*Plus: Release 9.2.0.8.0 - Production on 星期二 8月 31 10:33:42 2010 Copyright (c) 1982, 2002, Oracle Corporation. Al
今天现场遇见的一个问题: 运行存储过程时出现如下错误: ORA-04031: 无法分配 4200 字节的共享内存 ("shared pool","insert into p_bel_gprs_pcu(p...","library cache","kkslpkp - literal info.") 上面看来是共享池
今天有点时间,刚好研究下oracle的控制文件内容: SQL> oradebug setmypid 已处理的语句 SQL> oradebug dump controlf 3; 已处理的语句 SQL> 其中3为dump level。 level的解释如下: 1 :only the file header 2 :just the file header, the da
create table test as select * from dba_objects; create index owner_idx on test(owner); select object_id,object_type from dba_objects where object_name='OWNER_IDX'; OBJECT_ID OBJECT_TYPE ----
今天一个系统oracle数据库老是报死锁问题,可以看出: Thu Aug 26 15:57:11 2010 ORA-00060: Deadlock detected. More info in file /opt/app/oracle/admin/TMNEWOSS/udump/tmnewoss_ora_225.trc. Thu Aug 26 16:00:27 2010 ORA-000
工作中常接触oracle的各种sql语句,可是老是分辨不清楚语言类型,现在收集下记下,方便以后查阅 DDL Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples: CREATE - to create object
考虑数据库迁移可以通过duplicate 方式迁移整个库的方式,这次项目可以采用下,所以测试下,很成功,所以记录下来: 均在本机复制不同的目录下: 备份: run { backup full database format '/data/oracle/marven/archive/backmarven_%U'; backup archivelog all form
oracle的trace工具是个非常好的跟踪工具,对于研究oracle内部机制非常好用,现在将其用法总结,以后就很方便的使用: 1. 使用autotrace:set autotrace ON | ON EXPLAIN | ON STATISTICS | TRACEONLY | TRACEONLY EXPLAINset autotrace off 2. 使用set events context
在对oraccle ASM管理遇见如下问题: [root@rac1 bin]# asmcmdinstall_driver(Oracle) failed: Can't load '/opt/oracle/product/database/perl/lib/site_perl/5.8.3/i686-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for m
Applies to: Oracle Server - Enterprise Edition - Version: 8.0.3.0 to 11.2.0.1.0 - Release: 8.0.3 to 11.2Information in this document applies to any platform.Oracle Server Enterprise Edition - Version:
Applies to: Oracle Server - Enterprise EditionInformation in this document applies to any platform. PurposeThe Troubleshooting Guide is provided to assist in debugging SQL sharing issues. When possib
Interpreting Explain Plan=========================Note: This article was developed under the Oracle 8 timefram but much of the information contained herein is still relevant onmore recent versions.Wha
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
Purpose: This article provide detailed information to understand How the Redolog Buffer Cache Works and How to detect and resolve tuning problems related with this SGA structure.Contents: &nb
Platforms: 1-914CU; This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review. Appl
Purpose: This bulletin provides the Database Administrator a better understanding of incremental checkpoint and a description of four initialization parameters used for checkpoint tuning: &
解析步骤: 1.检查语法 2.检查sql语句涉及object是否存在,不存在则推出,检查需要数据字典 加载row cache 3.转换对象名,(例如翻译synonym 或实际名 test=xh.test),有 问题退出parse 4.检查发出sql的 user是否有对应权限,权限不足退出parse 5.根据object的 统计信息optimizer会建立一个 执行计划 6.将产生的执行
PURPOSE~~~~~~~The document gives a overview of Parsing. SCOPE & APPLICATION~~~~~~~~~~~~~~~~~~~For users requiring a general overview of how parsing works.Introduction============This article show
How to work out how many of the parse count are hard/soft? [ID 34433.1] PURPOSE This article shows how to monitor soft and hard parses using raw SQL_TRACE a
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号