执行过程时ORA-01031: 权限不足问题原因
conn test/testtest具有dba权限:SQL> CREATE OR REPLACE PROCEDURE create_location 2 (p_loc VARCHAR2) 3 IS 4 BEGIN 5 EXECUTE IMMEDIATE 'create TABLE ' ||p_loc||'(object_id number)'; 6 EN...
scripts
以下是常用脚本,会陆续加入许多。1.确定跟踪文件:selectd.value||'/'||lower(rtrim(i.instance, chr(0)))||'_ora_'||p.spid||'.trc' trace_file_namefrom( selectp.spidfromsys.v_$mystat m,sys.v_$session s,sys....
log等待事件的测试
事件描述:log file parallel writeWriting redo records to the redo log files from the log buffer.Wait Time: Time it takes for the I/Os to complete. Even though redo records are written in parallel, the...
利用v$active_session_history跟踪会话
To be fair to the 10046 trace, the v$active_session_history does not catch session activity that is extremely fast, but it should catch activity that causes the most waits and resource co...
Conquering Oracle Latch Contention
这里几篇关于latch的文章都是转载:(Identifying, measuring, and resolving harmful latch contention)Latest version available at http://www.orapub.com2 Craig A. Shallahamer©OraPub, Inc.This page has ...
oracle数据库数据段中的high water mark探究
本文主要说明什么是hwm(高水位标志)?通过实验的方法探究oracle数据库数据段的high water mark 怎样移动及其对数据库性能的影响,并深入研究两种收缩hwm的方法。high water mark(HWM)是oracle数据库中关于段的一个...
Oracle10g的Asm应用于数据存储管理
摘要 随着数据库的持续运行,数据库的大小不断扩大,要求不断增大系统的存储容量,对于普通的文件系统,增加存储的过程非常复杂。Oracle10g的自动存储管理系统(automatic storage management asm)就是针对该问题而...
Definer and Invoker Rights
To enable code to run with Invoker rights, an AUTHID clause needs to be used before the IS or AS keyword in the routine header. The AUTHID clause tells Oracle whether the routine is to be run with the...
Multiset Operators
Multiset operators combine the results of two nested tables into a single nested table.The examples related to multiset operators require that two nested tables be created and loaded with data as foll...
聚集因子对数据库查询性能的影响。
我们知道在user_indexes或dba_indexes中,有一个字段clustering_factor称为聚集因子,它说明:如果clustering_factor的值和表中的块数目大致一样,那么表和索引的顺序是一样的。不过,如果clustering_factor 的值接...
Open Resetlogs操作对oracle数据库恢复的影响
摘要 当用resetlogs选项打开ORACLE数据库的时,要重置联机日志文件序号,产生一个新的数据库形态((incarnation),本文着中介绍在各种oracle数据库版本下,如何利用resetlogs点之前的备份进行数据库恢复操作。1 ...
如何将一个表的某些字段改变先后秩序
一种方法利用表的在线重定义;另一种方法利用ctas.表的在线重定义:SQL> alter table t add primary key(id);Table altered.1。验证并指定使用主键。BEGINDBMS_REDEFINITION.CAN_REDEF_TABLE('lcm','t', DBMS_R...
oracle10g下三种导出操作速度比较
oracle10g下三种导出操作速度比较,表T有两千万行数据,大小为2.3g。SQL> select sum(bytes/1024/1024) from user_segments2 where segment_name='T';SUM(BYTES/1024/1024)--------------------2368分别用exp直接路...
Inner look on Oracle latches
A Technical White PaperByDavid GornshteinBoris TamarkinWisdomForce Technologies, Inchttp://www.wisdomforce.comRevision 1.1©2004 WisdomForce Technologies, Inc. All rights reserved. 1Note*: The lat...
windows xp下oracle 10g2 利用rman工具手工实现表空间时间点恢复。
一、手工创建辅助实例1。创建密码文件 orapwd file=F:oracleproduct10.1.0em_1databasePWDaux1.ora password=liang2. 创建参数文件initaux1.oraDB_NAME=test(注:与源数据库的db_name相同)DB_UNIQUE_NAME=aux1_test...
Oracle DBA Checklist
此系转抄:Oracle DBA ChecklistVersion 1.4 GenericRevised: 23-Aug-2000Authors: Thomas B. Cox, with Christine ChoiPurpose: This document gives details for perform...
利用vpd实现只读表
1。构建策略函数:CREATE OR REPLACE FUNCTION no_records ( p_schema IN VARCHAR2 DEFAULT NULL, p_object IN VARCHAR2 DEFAULT NULL) RETURN VARCHAR2 AS BEGIN RETURN '1=0';...
Internal Implementation of Oracle Locks (Enqueue)
(转自:http://www.revealnet.com/newsletter-v6/0905_E.htm)Oracle server uses locks to provide concurrent access to shared resources whereas it uses latches to provide exclusive and short-term access ...
oracle Transparent Data Encryption
今天对oracle Transparent Data Encryption做了各种测试,的确oracle透明数据加密很容易使用,不用写任何代码。详细的介绍可以参看oracle otn。http://www.oracle.com/technology/oramag/oracle/05-sep/o55security....
Resolving Oracle Latch Contention
By Guy HarrisonPrincipal Software Architect, Quest SoftwareContentsResolving Oracle Latch Contention.....................................................1Introduction.....................................