![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Oracle Concept
文章平均质量分 81
songyb
这个作者很懒,什么都没留下…
展开
-
Oracle datafile在linux文件系统上的头大小
Oracle在linux文件系统上,用一个表空间block size大小字节的空间,作为OS文件的头。验证如下:07:01:27 SYS@ora11g> create tablespace test datafile '/u01/app/oracle/oradata/ora11g/test.dbf' size 10m blocksize 32k;create tablespace...原创 2020-03-03 20:11:46 · 333 阅读 · 0 评论 -
code 6101 和 code 6111的解决办法
<<<< code 6101 和 code 6111的解决办法<<<<<<<< kdbchk: row locked by non-existent transaction<<<< table=0 slot=0<<<< lockid=2...原创 2020-03-02 09:26:15 · 3046 阅读 · 0 评论 -
Monitor Oracle Resource Consumption in UNIX (Doc ID 148466.1)
For more up to date unix os commands, review following note: Note:293561.1 Unix Commands on Different OS's ============================================================================================翻译 2014-11-04 20:34:49 · 640 阅读 · 0 评论 -
Master Note: Overview of Database Startup and Shutdown (Doc ID 1505155.1)
In this Document Purpose Details Oracle Database and Instance Database Startup Nomount Stage Mount Stage翻译 2014-11-04 20:21:03 · 882 阅读 · 0 评论 -
Master Note: Troubleshooting Database Transaction Recovery (Doc ID 1494886.1)
In this Document Purpose Details Concepts 12c Multitnenant Database: Modes of Transaction Recovery Parallel翻译 2014-11-04 20:14:02 · 1472 阅读 · 0 评论 -
对表进行delete&shrink&move无法提高rman的备份效率
结论:首先rman备份时会备份被使用过的块。对表进行delete&shrink&move是无法提高rman的备份效率,resize可以。delete、shrink、move不会改变备份集合大小。下面将通过简单的测试来证明。原创 2014-04-05 18:39:35 · 864 阅读 · 0 评论 -
TECH: Unix Semaphores and Shared Memory Explained (Doc ID 15566.1)
PURPOSE Shared memory and semaphores are two important resources for an Oracle instance on Unix. An instance cannot start if it is unable to allocate what it needs. This paper primarily discu翻译 2014-11-04 20:43:39 · 844 阅读 · 0 评论 -
Troubleshooting Database Startup/Shutdown Problems (Doc ID 851057.1)
In this Document Purpose Troubleshooting Steps Issues Encountered During Database Shutdown Diagnostic Information to be Collected for Trou翻译 2014-11-04 20:26:01 · 2382 阅读 · 0 评论 -
关于监听密码的设置问题
pre-10gR1=======有两种办法设置密码,分为明文和暗文:1.Clear text Password(i)Add PASSWORDS_ entry to your existing listener.ora file.e.g.PASSWORDS_listener1 = (p1,p2)(ii)Stop your listener, and restart it.Now p原创 2017-08-29 21:44:00 · 1687 阅读 · 0 评论 -
bind peeking
Bind Variable11.1.3 BindVariable PeekingIn bind variablepeeking (also known asbind peeking), the optimizer looks at thevalue in a bind variable when the database performs a hard parse of astatem翻译 2015-01-15 11:32:50 · 1224 阅读 · 0 评论 -
Higher 'direct path read' Waits in 11g when Compared to 10g (Doc ID 793845.1)
In this Document Symptoms Changes Cause Solution ReferencesAPPLIES TO:Oracle Database - Enterprise Edition -翻译 2014-11-05 22:26:27 · 658 阅读 · 0 评论 -
Oracle为什么不按照estimate_percent来分析表?
DB 11.2.0.3.0redhat 5.7创建一个测试表:SQL> conn user1/oracleConnected.SQL> create table test1 as select * from dba_objects;Table created.SQL> col table_name for a10SQL> select table_name, num_ro原创 2014-11-27 14:27:14 · 2169 阅读 · 1 评论 -
Determine JAVA_POOL_SIZE minimum value (Doc ID 269231.1)
APPLIES TO:Oracle Database - Enterprise Edition - Version 8.1.7.4 to 9.2.0.7 [Release 8.1.7 to 9.2]Information in this document applies to any platform.GOAL To assist with determining the mi翻译 2014-11-05 20:35:43 · 926 阅读 · 0 评论 -
Master Note: Database System Monitor Process (SMON) (Doc ID 1495163.1)
In this Document Purpose Scope Details Concepts Instance Recovery When Oracle Database Performs Instance Rec翻译 2014-11-04 20:18:59 · 717 阅读 · 0 评论 -
Optimizer_mode For 11R2 (Doc ID 1537762.1)
In this Document Goal SolutionAPPLIES TO:Oracle Communications Billing and Revenue Management - Version 7.5.0.0.0 and laterInformation in this document翻译 2014-11-04 19:40:42 · 468 阅读 · 0 评论 -
表在nologging与logging模式下执行append插入,redo大小差别
下图为表在noarchivelog&archive、nologging&logging模式下,带index与不带index时,执行append插入所产生的redo大小差别汇总,到底哪种模式下产生日志最小呢?请仔细看下图:======================================================================================原创 2013-06-28 21:23:49 · 824 阅读 · 0 评论 -
表空间、域索引、位图索引杂烩
表空间存储参数设置~~~~~~~~~~~~~~create tablespace local datafile '/tmp/local.dbf' size 10M default storage (initial 100K next 1024K maxextents 120 pctincrease 0);SQL> SELECT Tablespace_N原创 2013-06-28 21:27:53 · 948 阅读 · 0 评论 -
在线日志文件学习
=======redo log file=======bash-2.05b$ sqlplus "/as sysdba"SQL*Plus: Release 9.2.0.4.0 - Production on Fri Apr 17 16:22:45 2009Copyright (c) 1982, 2002, Oracle Corporation. All rights reserve原创 2013-06-28 21:25:42 · 721 阅读 · 0 评论 -
ORACLE实例维护
================SPFILE,PFILE,STARTUP ,SHUTDOWN================ 查看初始化参数启用模式show parameter spfile ;==显示有值表示采用spfile启动SQL> SELECT ISSPECIFIED,count(*) FROM v$spparameter group by ISSPECIFIED;原创 2013-06-28 21:24:55 · 775 阅读 · 0 评论 -
约束学习
deferrable约束的 deferred/immdiate状态测试======================SQL> create table t_12 (a number, b varchar2(1));表已创建。SQL> alter table t_12 add constraint pk_t_12 primary key (a) deferrable initially原创 2013-06-28 21:27:40 · 840 阅读 · 0 评论 -
外部用户操作系统验证学习
操作系统外部用户~~~~~~~~~~~~~~A, os_authent_prefix='ops$' , remote_os_authent=FALSE 现在这两个参数等于默认值,我们来进行测试SQL> show parameter authNAME TYPE VALUE--------------原创 2013-06-28 21:26:48 · 757 阅读 · 0 评论 -
controlfile 维护
=======control file=======bash-2.05b$ sqlplus "/as sysdba"SQL*Plus: Release 9.2.0.4.0 - Production on Fri Apr 17 21:16:03 2009Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved原创 2013-06-28 21:25:24 · 558 阅读 · 0 评论 -
quorum failgroup disk (3)
需求:共两个diskgroup,+DATA和+SYS。其中+DATA有n个盘,external redundancy 类型;+SYS有3块盘,normal redundancy类型。需要将OCR和VOTE存放到+SYS diskgroup,并将OCR冗余到+DATA diskgroup。另外还需要将SYSTEM表空间存放到+SYS diskgroup,保证同一个extent,分布到不同原创 2013-06-27 18:14:09 · 1312 阅读 · 0 评论 -
quorum failgroup disk (2)
需求:希望将votedisk直接放到含有两个failgroup的diskgroup上结论:失败,normal redundancy的diskgroup,要存放votedisk,必须至少有3个failgroup。SQL> create diskgroup normaldg normal redundancy 2 regular failgroup nofg1 disk '原创 2013-06-27 18:13:47 · 1384 阅读 · 0 评论 -
quorum failgroup disk (1)
当前状态:当前+SYS有4块盘,normal redundancy,存放ocr&vote。目标:将+SYS修改为3块盘,normal redundancy,并且一个是quorum failgroup。然后冗余OCR到+DATA。操作步骤简要:1、从+SYS中删除2块盘alter diskgroup sys drop regular disk 'SYS_0002','SY原创 2013-06-27 18:13:29 · 1930 阅读 · 0 评论 -
ORACLE体系结构学习
oracle体系结构学习==============[1.1] 内存设置 [1.1.1]9i SGA设置 [1.1.2]10G SGA设置 [1.1.3]9i PGA设置 [1.1.3]10g PGA设置[1.2] 进程设置 [1.1.1]9i SGA设置==========[1.1.1.1] SGAsqlplus "/a原创 2013-06-28 21:24:24 · 781 阅读 · 0 评论 -
表空间与碎片
在本地管理的表空间中,怎么预防空间碎片问题呢?要想防止,就得很好的理解碎片如何产生。在本地管理的表空间,可以继续选择更细的管理方式:统一尺寸(uniform)还是自动分配(autoallocate)。若选择了统一尺寸,则可以详细指定每个区间(extent)的大小,若不加指定,则默认每个extent使用1MB的大小,这个时候,每个bit位图表示一个extent;若选择自动分配,则表明让oracle来原创 2013-06-28 21:26:06 · 1039 阅读 · 0 评论 -
约束对效率的影响
约束对效率的影响==========sqlplus scott/tigerSQL> create table t1 pctfree 0 2 as 3 select * from dba_objects where 1=2;Table created.SQL> alter table T1 2 add constraint T1_PK primary key (OB原创 2013-06-28 21:27:21 · 1128 阅读 · 0 评论 -
9I在线重定义测试
在9I前我们一般通过MOVE的方式来对表的数据重整,如果表非常大,而IO又不块的时候,MOVE的的过程可能相当漫长,甚至不能在线完成,而且还需要REBUILD索引,这样降低的高可用性。因此9I提出了DBMS_REDEFINITION包引入了在线表重定义的功能。该原理类似MV-物化视图在线重定义由三个大的步骤组成完全同步 => 增量同步 =>切换注: oracle9i环境中,不要在原创 2013-06-28 21:26:25 · 1063 阅读 · 0 评论 -
11g RAC 时间向回调整
NTP时间同步超前,需要将集群时间向后调整。下面是调整过程的测试,调整步骤:1、停集群2、修改系统时间3、同步硬件时钟4、启动集群Last login: Mon Mar 11 01:30:25 2013 from 196.128.1.234[root@node1 ~]# [root@node1 ~]# [root@node1 ~]# uname -a原创 2013-06-27 18:13:03 · 2715 阅读 · 0 评论