- 博客(99)
- 收藏
- 关注
转载 Overview of Indexes
Oracle provides several indexing schemes, which provide complementary performance functionality:Overview of Indexe...
2019-07-13 22:03:07 292
转载 Export/Import
转抄1、Export/Import的用处 Oracle Export/Import工具用于在数据库之间传递数据。 Export从数据库中导出数据到dump文件中 Import从dump文件中到入数据导数据库中 下面是一般使用他们...
2019-07-13 12:45:07 475
转载 script(3)
script(3)1. 监控事例的等待 select event,sum(decode(wait_Time,0,0,1)) "Prev", sum(decode(wait_Time,0,1,0)) "Curr",count(*)...
2019-07-12 07:12:06 255
转载 Oracle 释放过度使用的Undo表空间
本文系转载与互联网,只是为了查看方便。如有不妥,可以随时删除。[@more@]Oracle 释放过度使用的Undo表空间Oracle 释放过度使用的Undo表空间故障现象:UNDO表空间越来越大,长此下去最终数据因为磁盘空间不足...
2019-07-11 22:00:07 331
转载 如何得知生产系统高峰时期的最大连接数?
转抄pub帖子:可以参考v$license中的sessions_highwater测试了一下确实可以反映最大连接数SQL> select * from v$license2 ;SESSIONS_MAX SESSIONS_W...
2019-07-11 14:12:06 232
转载 关于itl引起的竞争:
Waits for TX in mode 4 can occur if the session is waiting for an ITL (interested transaction list) slot in a bloc...
2019-07-09 10:12:07 158
转载 突破windows 2g限制
转pub帖子:改了个SGA_MAX_SIZE,估计超过了2G,WIN,然后不能启动了conn sys/manager as sysdba说是协议适配器错误,啥都没动啊,这该死的Oracle,就算我把SGA改过大了,windows...
2019-07-07 08:18:05 276
转载 常用的SQL语句
常用的SQL语句供大家参考,希望对大家有所帮助。(会陆续加入) 常用的SQL语句常用的SQL语句供大家参考,希望对大家有所帮助。 说明:复制表(只复制结构,源表名:a 新表名:b) SQL: select * into ...
2019-07-06 15:36:05 249
转载 oracle cast function
cast函数In Oracle/PLSQL, the cast function converts one datatype to another.The syntax for the cast function is:cast...
2019-07-05 14:06:06 139
转载 怎么知道一个表有多少块在cache中?
问:怎么知道一个表有多少块在cache中? 答:you can get the # of blocks in cache. (note that there are alway blocks not rows in cache)...
2019-07-04 13:00:08 335
转载 Redo Wastage
一般的,lgwr写到current log buffer block并且包括current log buffer block,(writes up to and including the current log buffer ...
2019-06-28 16:21:05 138
转载 create index 与alter index 执行计划分析
数据库版本:SQL> select * from v$version;BANNER--------------------------------------------------------------...
2019-06-26 20:15:04 509
转载 oracle标签安全测试
oracle标签安全测试:参考:http://www.oracle.com/technology/oramag/oracle/03-jul/o43security.htmlhttp://www.itpub.net/showthr...
2019-06-26 14:33:06 177
转载 Primary Database Changes That Require Manual Intervention at a Physical Standby
Most structural changes made to a primary database are automatically propagated through redo data to a physical st...
2019-06-25 19:39:05 108
转载 表中重复记录
查找表中重复记录delete from test1 where rowid in (select rid from (select rowid rid,row_number() over(partition by id orde...
2019-06-24 16:51:06 183
转载 如何实现表转置
转摘pub:如何实现表转置?? 如何实现表转置?? SQL> select2 max(decode(rn, 1, field2)) a,3 max(decode(rn, 2, field2)) b,4 max(decode...
2019-06-24 07:42:06 211
转载 用rman创建duplicate数据库
一、手工创建辅助实例1。创建密码文件 orapwd file=F:oracleproduct10.1.0em_1databasePWDaux1.ora password=liang2. 创建参数文件initaux1.oraDB_...
2019-06-23 20:39:07 312
转载 data_object_id and object_id
object_id和data_object_id同样是表示数据库对象的一个唯一标志,但是object_id表示的是逻辑id,data_object_id表示的是物理id。如果一些object没有物理属性的话那它就不存在data_...
2019-06-22 22:24:05 217
转载 sys_contex应用举例
Syntax:SYS_CONTEXT('namespace', 'parameter' [, length ])Purpose:SYS_CONTEXT returns the value of parameter associa...
2019-06-22 13:45:06 126
转载 Redo Write Size
redo writes的大小是变化的,与要写的the amount of redo有关。从8i开始,LGWR试图避免等待向log buffer的不完全拷贝(也就是不等待正向log buffer拷贝redo的完成)。因此,对于后台...
2019-06-21 17:03:07 186
转载 Oracle 10.2.0.1和Oracle 11.1.0.6的差异概括
10.2.0.1 11.1.0.6 Supported Parameters 258 289 Unsupported Parameters...
2019-06-21 07:57:04 233
转载 oracle数据迁移方法
数据迁移一方面只是跨版本,如从低板本升级到高版本或从高版本到低版本;另一方面可能还需要跨操作系统平台,如从windows到unix; 还有可能是在不同数据库之间,如从sqlserver,db2到oracle. oracle中提供...
2019-06-19 12:54:06 313
转载 Enqueue Locks
Many of Oracle's locks are called enqueue locks. To enqueue a lock request is to place that request on the queue ...
2019-06-18 21:12:09 222
转载 Gathering Optimizer Statistics
This chapter explains why statistics are important for the cost-based optimizer and how to gather and use statisti...
2019-06-17 20:33:07 397
转载 Oracle审计
(转)Oracle审计(转)Oracle审计1.AUDIT_SYS_OPERATIONS = TRUE审计管理用户(以sysdba/sysoper角色登陆)windows平台会保存到Event Viewer日志文件中,诸如CON...
2019-06-17 18:57:06 130
转载 where a0与索引
有说法:不等于操作符是永远不会用到索引的,因此对它的处理只会产生全表扫描。 推荐方案:用其它相同功能的操作运算代替,如 a<>0 改为 a>0 or a<0通过实验可以看出:看来a<>0是...
2019-06-17 13:54:06 196
转载 Inserting Data Into Tables Using Direct-Path INSERT
Oracle Database inserts data into a table in one of two ways:(向表中插入数据有两种方法)During conventional INSERT operations, ...
2019-06-16 14:57:07 307
转载 Passing Schema Object Names As Parameters(用模式对象名称作为存储过程的参数)
Passing Schema Object Names As ParametersSuppose you need a procedure that accepts the name of any database table,...
2019-06-15 08:09:05 88
转载 Bitmap Indexes
位图索引的使用:1.Bitmap indexing benefits data warehousing applications 2.Bitmap indexes are not suitable for OLTP applic...
2019-06-14 12:48:07 282
转载 oracle temp表空间增长过快的解决方法
本文系转载与互联网,只是为了查看方便。如有不妥,可以随时删除。[@more@]oracle temp表空间增长过快的解决方法经常碰到temp表空间暴涨的问题,以及如何回收临时表空间,由于版本的不同,方法显然也多种多样,但这些方法...
2019-06-14 08:06:07 675
转载 oracle11g表空间加密
1。表空间加密(Tablespace encryption)加密整个表空间,创建在加密表空间中的所有对象自动加密。2。表空间加密保护整个表空间中的数据的安全,如:数据文件或数据文件备份若被窃取,没有密钥不可能查看到其中的数据,这...
2019-06-13 20:18:07 233
转载 pctfree对索引的影响:
Only applies to CREATE INDEX statement.Not used for subsequent inserts(先建索引,再插入数据(不受pctfree的影响)。与先插入数据,再建索引(受pctfr...
2019-06-13 20:00:07 323
转载 oracle10g中non-asm文件向asm文件迁移
non-asm文件向asm文件迁移只能使用rman或em来实现,这里具体介绍rman的手工迁移过程: (1 备份文件的备份副本。 BACKUP AS COPY INCREMENTAL LEVEL 0 DATABASE FORMA...
2019-06-13 09:27:05 148
转载 Log Buffer Guard Pages
在支持内存保护的平台上,在log buffer的两端有guard pages,这是一个内存保护单元(memory protection unit),大小通常为4K or 8K.在实例启动时,oracle使用mprotect() ...
2019-06-12 20:15:08 259
转载 Tuning Recovery Manager
The primary goal of RMAN tuning is to create an adequate flow of data between disk and storage device. Tuning RMAN...
2019-06-12 13:00:09 110
转载 Memory Utilities
oracle orastack or maxmemwindows orastack:Oracle supplies the ORASTACK utility to allow customers to modify the de...
2019-06-11 21:42:08 168
转载 Oracle数据库升级或数据迁移的方法探讨
本文详细论述了oracle数据库升级的升级前的准备、升级过程和升级后的测试与调整工作,并对各种升级方法在多种操作系统平台上作了测试。数据库升级的必要性数据库升级是数据库管理员经常要面对的问题,如果你的应用要使用新版本数据...
2019-06-08 09:00:08 365
转载 12小时制的nls_date_format
12小时制的nls_date_format hh:mi:ss默认是12小时制SQL> alter session set nls_date_format='yyyy-mm-dd hh12:mi:ss';Session al...
2019-06-06 22:48:05 117
转载 Redo Byte Address (RBA)
RBA由三部分组成:日志顺序号(4 bytes),日志文件块号(4 bytes),块中的字节偏置(2 bytes)Rba在他们的线程(redo thread)中,没有必要唯一,因为日志文件顺序号可能重置为一,当用resetlog...
2019-06-05 18:39:05 164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人