本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
MAXAIO导致Oracle启动hang问题     Oracle数据库,10.2.0.4 for linux x86,在正常重启时,到open阶段僵死。在操作系统上看到一些因计划任务启动的用户进程CPU使用率几乎100%,很明显处于等待状态。在Oracle的bdump目录下也很快生成有trc文件。这些文件的内容关键点是这样:    WARNING:io_submit failed due to kernel limitations MAXAIO for process=0 pending aio=0    WARNING:asynch I/O kernel limits is set at AIO-MAX-NR=65536 AIO-NR=65536    WARNING:Oracle process running out of OS kernel I/O resources (1)    从字面上理解是,是操作系统的MAXAIO限制了Oracle用户进程操作。我们知道,Linux的核心参数AIO-MAX-NR是与异步IO相关的,对于异步IO的简单解释如下:在一个程序中如果涉及到磁盘的IO操作时,有两种情况1. 程序等待IO操作完成,CPU再接下来处理程序的其他部分(等待IO的时间段内,CPU处于Idle Waiting状态)。2. 程序不等待IO操作完成,允许CPU处理接下来的其他任务(或者理解为允许CPU处理接下来的不依赖于IO完成的任务)。显然,第一种情况,CPU的资源白白的浪费了...
安装好oracle后,进行em登陆后,发现报错: java.lang.Exception: IOException in sending Request :: Connection refused: connect java.lang.Exception: Exception in sending Request :: null  解决方案:找到下面的文件 $ORACLE_HOME\db_1\$HOSTNAME\sysman\config\emd.properties 其中的agentTZRegion缺省是GMT,改为你所在的时区即可,例如,我修改为:Asia/Shanghai,也就是上海,注意大小写. agentTZRegion=Asia/Chungking 修改后保存,如果提示没有权限,可以将该文件拷贝出去,修改完成后在赋值进原文件夹进行覆盖.  时区支持的列表文件:10.2.0\db_1\sysman\admin\supportedtzs.lst 然后先停止 dbconsole 使时区设置生效并重启OracleDBConsole: emctl stop dbconsole emctl resetTZ agent emctl config agent getTZ emctl start dbconsole 如以下截图:重启成功后,再次登陆,发现问题解决……
ORA-12012 error on auto execute of job 8887   alter日志中报了如下错误Errors in file /oracle/app/oracle/admin/hbtms/bdump/hbtms_j000_889114.trc:ORA-12012: error on auto execute of job 8887ORA-44003: invalid SQL name 查询trace文件/oracle/app/oracle/admin/hbtms/bdump/hbtms_j000_889114.trcOracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit ProductionWith the Partitioning, OLAP and Data Mining optionsORACLE_HOME = /oracle/app/oracle/product/10.2System name:    AIXNode name:      bill570aRelease:        3Version:        5Machine:        00C3F2DB4C00Instance name: hbtmsRedo thread mounted by this instance: 1Oracle process number: 39Unix process pid: 889114, image: oracle@bill570a (J000) *** ACTION NAMEAUTO_SPACE_ADVISOR_JOB) 2009-10-05 22:09:24.149*** MODULE NAMEDBMS_SCHEDULER) 2009-10-05 22:09:24.149*...
ORACLE Memory Notification: Library Cache Object loaded into SGA 1.问题现象数据库日常巡检过程中,在alert日志中发现如下警告信息……省略……Thu Apr 15 22:06:31 2010Memory Notification: Library Cache Object loaded into SGAHeap size 3215K exceeds notification threshold (2048K)KGL object name :SELECT TOWNER, TNAME, NAME, LENGTH, PRECISION, SCALE, TYPE, ISNULL,             CONNAME, COLID, INTCOLID, SEGCOLID, COMMENT$, DEFAULT$, DFLTLEN,             ENABLED, DEFER, FLAGS, COLPROP, ADTNAME, ADTOWNER, CHARSETID,             CHARSETFORM, FSPRECISION, LFPRECISION, CHARLEN, TFLAGS, TYPESYN,             COLCLASS      FROM   SYS.EXU10COE      WHERE  TOBJID = :1      ORD...
使用Sqlserver事务发布实现数据同步(sql2008)事务的功能在sqlserver中由来已久,因为最近在做一个数据同步方案,所以有机会再次研究一下它以及快照等,发现还是有很多不错的功能和改进的。这里以sqlserver2008的事务发布功能为例,对发布订阅的方式简要介绍一下操作流程,一方面做个总结备份,一方面与大家进行一下分享和交流事务的功能在sqlserver中由来已久,因为最近在做一个数据同步方案,所以有机会再次研究一下它以及快照等,发现还是有很多不错的功能和改进的。这里以sqlserver2008的事务发布功能为例,对发布订阅的方式简要介绍一下操作流程,一方面做个总结备份,一方面与大家进行一下分享和交流。费话就不多说了,进入一下今天的正题:)     这里要说明一下环境:首先我在本地局域网内有两台安装有sqlserver2008的机器(注意:已发布的快照版本无法向老版本数据库兼容,意味着2008下创建的事务或快照发布,无法被sqlserver2005订阅)。当然这两台机器要放在同一个网段,一方面出现性能和安全性考虑,另一方面是我目前还没有找到跨不同网段的快照应用方案(可行性的那种)。     好了,这里我以我们产品数据库为准来介绍一...
oracle将system表空间的数据文件变小    问题描述:今天闲的蛋疼,在自己破电脑上面跑了一下这个过程:create or replace procedure pro_test_pga isbegin  insert into t_test2  select t.*  from t_test t,(select rownum from dual connect by rownum <= 10 )  order by t.object_name;  commit;end pro_test_pga;当时t_test有2883968行数据,这个过程跑下来各种direct path read temp因为我的pga_aggregate_target只有可怜的194M,其实开始跑这个过程的目的是验证把pga_aggregate_target调小会不会让速度更慢,因为这个数字是我建库的时候用的默认值,结果跑了5455.62秒,心都碎了,我的机器上的数据库是开了归档的,反正硬盘只这么多,他一边产生我一边删,不然空间一没,就停在那了,本来还想来个把pga_aggregate_target设置为10M试试的,但后来想想还是算了,至少这周算了,以后有时间试试,挂一晚...
Guide: Installing Oracle Enterprise Manager 10g Grid Control Rel 5 on Oracle Database 11g and Linux by Mike Revitt Install Oracle Enterprise Manager 10g Grid Control Rel 5 against an existing Oracle 11g database on Oracle Enterprise Linux version 5, step by step. Published July 2009 Contents Introduction Prerequisites Reference Information Creating the Oracle Enterprise Template Prepare the DVD ...
UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6For Oracle Automatic Storage Manager (ASM) to use disks, it needs to be able to identify the devices consistently and for them to have the correct ownership and permissions. In Linux you can use ASMLib to manage these tasks, but it is seen as an additional layer of complexity and has never really gained any popularity. Instead, many people use the Linux device manager "udev" to perform these tasks. This article presents a brief overview of setting up udev rules with respect to disks for use with ASM in Oracle 11g. The examples are all done using Oracle Linux 5 and 6, so they will be consistent with RHEL and CentOS 5 and 6.BackgroundIdentify the Disks (/sbin/scsi_id)Make SCSI Devices TrustedCreate UDEV Rules FileLoad Updated Block Device Partitions (/sbin/partprobe)Test Rules (udevtest)Restart UDEV ServiceCheck Ownership and PermissionsBackgroundEssentially, what udev does is apply rules defined in files in the &quo...
oracle中的exists 和not exists 用法详解有两个简单例子,以说明 “exists”和“in”的效率问题1) select * from T1 where exists(select 1 from T2 whereT1.a=T2.a) ; select e.first_name,e.job_id,e.salary from employees e where exists ( select d.department_id from departments d where e.department_id=d.department_id and d.department_name='IT'); 使用exists 查看所在部门为IT的 员工信息。  T1数据量小而T2数据量非常大时,T1<<T2 时,1)的查询效率高。2) select * from T1 where T1.a in (select T2.a from T2) ;    T1数据量非常大而T2数据量小时,T1>>T2 时,2)的查询效率高。exists 用法:请注意 1)句中的有颜色字体的部分 ,理解其含义;其中 “select 1 from T2 where T1.a=T2.a” 相当于一个关联表查询,相当于“select 1 fromT1,T2    where T1.a=T2.a”但是,如果你当当执行 1) 句括号里的语句,是会报语法错误的,这也是使用exists需要注意的地方。“exists(xxx)”就表示括号里的语句能不能查出记录,它要查的记录是否存在。因此“select 1”这里的“...
 
0

Oracle表碎片整理

发表者:admin分类:数据库2015-08-24 17:26:50 阅读[1742]
 Oracle表碎片整理  数据库在日常使用过程中,不断的insert,delete,update操作,导致表和索引出现碎片是在所难免的事情,碎片多了,sql的执行效率自然就差了,道理很简单,高水位线(HWL)下的许多数据块都是无数据的,但全表扫描的时候要扫描到高水位线的数据块,也就是说oracle要做许多的无用功!因此oracle提供了shrink space碎片整理功能。对于索引,可以采取rebuild online的方式进行碎片整理,一般来说,经常进行DML操作的对象DBA要定期进行维护,同时注意要及时更新统计信息!一:准备测试数据,使用HR用户,创建T1表,插入约30W的数据,并根据object_id创建普通索引,表占存储空间34M左右,索引占6M左右的存储空间 SQL> conn /as sysdba 已连接。 SQL> select default_tablespace from dba_users where username='HR';  DEFAULT_TABLESPACE ------------------------------------------------------------ USERS  SQL> conn hr/hr 已连接。  SQL> insert into t1 select * from t...
    总共51页,当前第26页 | 页数:
  1. 16
  2. 17
  3. 18
  4. 19
  5. 20
  6. 21
  7. 22
  8. 23
  9. 24
  10. 25
  11. 26
  12. 27
  13. 28
  14. 29
  15. 30
  16. 31
  17. 32
  18. 33
  19. 34
  20. 35
  21. 36