intel virtual tech. EPT VMM VT
intel virtual tech. EPT VMM VThttp://hi.baidu.com/zhanghuikl/blog/item/2b7c162472386120d40742f3.html[@more@]
drop materialized view hung !!!
Cause: when you drop the materialized view ,then oracle will to check the integrity of the materilized view , if the mview is created referencing remote object by db-link. then Oracle will access the remote object.Sometimes the db-link is expired, So when you drop mview at the moment, the process will hung and the wait events would be "single-task message" and "enq: TM-contention" .[@more@]
TNS-12523 故障一例
库启动正常,以前用作迁移开发。启动后,服务器本地可以连上,但是远程不行,报TNS-12523 。后台日志显示出 以前配置的网关连接失效。后来实在没招了,设置了本地监听参数,再试,竟然好了。唉,真神奇。。。alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.5.61)(PORT=1521))))' scope=both ;[@more@]
row-level dependency tracking (10g new feature) SCN_TO_TIMESTAMP ora_rowscn
row-level dependency tracking (10g new feature)SCN_TO_TIMESTAMP ora_rowscn SELECT ORA_ROWSCN,rowid from test;select SCN_TO_TIMESTAMP(205810284) from dual;refs:http://www.dbafan.com/blog/?p=194[@more@]
RAC+Dataguard环境中JDBC Failover配置
在rac+dataguard的环境中,为了减少应用宕机时间及改动,提高业务的可用性,要求jdbc客户端配置failover。同时为了很好地做应用分割,又不能load balance。即在第一个实例不行时,去偿试第二个实例,两个实例都不行时,去偿试data guard。这样的目的看起来简单,其实有些细小的地方值的注意。下面是一个配置的例子:jdbc:oracle:thin:@(description=(ADDRESS_LIST =(LOAD_BALANCE=OFF)(FAILOVER=ON)(ADDRESS = (PROTOCOL = TCP)(HOST = x)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = y)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(
11G物化视图支持基于DBLINK远程表的快速刷新,包含有LOB字段的表也可以进行快速刷新了。
11G物化视图支持基于DBLINK远程表的快速刷新,包含有LOB字段的表也可以进行快速刷新了。注意事项:1,在建立物化视图时,如果使用的是完全刷新,那么可以修改刷新方式为快速刷新,但是必须紧接着进行一次完全刷新,之后快速刷才会真正生效。2,基表发生了DDL操作(例如1,在建立物化视图时基表没有PKID,后来为了使用快速刷新,在基表上新加了PKID;2,基表从堆表转换为索引表),影响了数据模型,那么物化视图必须重新创建,否则快速刷新不可用。ALTER MATERIALIZED VIEW COMMONFRAMEWORK.TC_APP REFRESH FAST ;begin dbms_mview.refresh(
impdp -->ORA-600 [kpotcgah-9]
impdp 遭遇 ORA-600 错误,解决方法:去掉并行,parallel=1Mon Jun 20 14:49:44 2011DM00 started with pid=58, OS id=19464672, job HLDBA.SYS_IMPORT_SCHEMA_08Mon Jun 20 14:49:48 2011DW00 started with pid=59, OS id=2752626, wid=1, job HLDBA.SYS_IMPORT_SCHEMA_08Mon Jun 20 14:50:06 2011DW01 started with pid=60, OS id=5046318, wid=2, job HLDBA.SYS_IMPORT_SCHEMA_08Mon Jun 20 14:50:06 2011DW02 started with pid=63, OS id=13631978, wid=3, job HLDBA.SYS_IMPORT_SCHEMA_08Mon Jun 20 14:50:06 2011DW03 started with
悲剧的SEQUENCE。。。。。
悲剧的SEQUENCE。。。。。初步猜测可能是由于RAC 中手工修改sys.seq$表造成的。但是从报错的SEQUENCE NAME $ expdp '"hldba/azAZ123$%^"' directory=dump_dir3 logfile=exp_sales_salown061901.log dumpfile=sales_salown061901_%u.dmp schema>Export: Release 11.2.0.2.0 - Production on Sun Jun 19 19:50:16 2011Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit ProductionWith the Partitioning, Real
wait event ---asynch descriptor resize
1G里有个wait event 叫asynch descriptor resize ORACLE metalink里并没有描述 根据国外大神的研究 发现这个参数是 ORACLE 在调用direct I/O的时候。会调用OS 的syscall 来获取 AIO 的descriptors 。4096 descriptors per process 当你的执行结束的时候 ORACLE就会对其进行释放 于是就产生了 拿来 放下 拿来放下 的动作。 如果发现了这样的问题 那么首先请检查 是否超过1%的占用时间 在你的系统里 。如果不超过 那么无视他吧。如果超过了20% 那么你或许要考虑 SR了。 如果在1-20之间 首先请先考虑你的I/O子系统的问题 至此有个疑问 如
drop active rollback segs which corrupt.
refs:http://blog.csdn.net/hotye393/archive/2011/02/09/6176120.aspx [@more@]
nmon for linux
http://bluedata.org/2009/08/31/linux-nmon/http://nmon.sourceforge.net/pmwiki.php?n=Site.Download[@more@]
ORA-27102: out of memory lock_sga
ORA-27102: out of memory with lock_sga=true.出现这个错误,32位平台可能是因为SGA设置得过大。但64位平台也可能出现,在LINUX系统下,如果当前ORACLE用户权限不足,就会出现这个错误。解决办法如下:1, change system wide parameter in file : /etc/sysctl.conf# Controls the maximum shared segment size, in byteskernel.shmmax = 68719476736# Controls the maximum number of shared memory segments, in pageskernel.shmall = 42949672962,set user quota parameter on file /etc/security/limits.conf, following limit oracl
分区--复合分区
--测试总结:复合分区,有个很奇妙的地方,就是当数据插入到符合条件的第一个分区中。实现算法推测:对于按C1,C2两列进行复合分区的情况,插入时,首先判断是否小于C1,如果有匹配分区,则插入到符合条件的第一个分区中,否则如果插入的值=C1,则判断C2,如果有匹配分区,则插入到符合条件的第一个分区中。第二种理解:复合分区其实等同于单列分区,只是将多个列按二进制存放格式拼组在一起,组成一个单列字段。插入数据时,将分区字段值也按二进制存放格式拼组在一起进行单值判断。drop table pt1 ;create table pt1 (id1 number ,id2 n
用IMIPDP高效导入百万级以上数据
思路:1,备份目标系统元数据2,将目标系统用户DROP掉(这样可以快速DROP索引及约束)3,导入数据(这个步骤不导入索引及约束)4,导入索引约束及权限等元数据。5,作一次统计分析。--------CODE excerpt:1, expdp ... schemas=user1,user2 content=metadata_only2,drop user user1/user2 cascade ;3, impdp ... schemas=user1,user2 include=user,system_grant,role_grant,default_role,table/table,table_table_data parallel=4 4,impdp schemas=user1,user2 exclude=user,system_grant,role_grant,default_role,table/table,table_table
expdp, impdp, --- (query, sample, transform,include,parfile) parameter test,
expdp ' hldba/Thinkhl123@hluat ' directory=exp_dir dumpfile=t_owner_house02.dmp tables=owners.T_OWNER_HOUSE sample=1 compression=all query="" resblock_id=1618 ""reuse_dumpfiles=yimpdp ' hldba/Thinkhl123@hluat ' directory=exp_dir dumpfile=t_owner_house02.dmp sqlfile=owner_house.sqlimpdp ' hldba/Thinkhl123@hluat ' directory=exp_dir dumpfile=t_owner_house02.dmp sqlfile=owner_house2.sql transform=segment_attributes:nimpdp ' hldba/Thinkhl123@hluat ' directory=exp_dir dumpfile=t_ow
mount nfs 参数
ORA-19504: failed to create file "/dbbak/mesdb_03lmak8i_1_1"ORA-27054: NFS file system where the file is created or resides is not mounted with correct options增加mount参数:Mount -t nfs -o rw,hard,nointr,tcp,noac,vers=3,timeo=600,rsize=32768,wsize=32768 192.168.60.110:/exitgogo /free/oracle/orarch指定参数具体含义如下: rw 以读写方式安装文件系统(也必须要以相同的方式来导出)ro 以只读方式安装文件系统bg 如果安装失败(服务器没有响应),在后台一直尝试,继续发其它的安装请求hard 以硬方式安装
11.2.0.2 upgrade step
summary:shutdown db , and start upgrade.shutdown listener.@?/rdbms/admin/catupgrd.sql@?/rdbms/admin/utlu112s.sql@?/rdbms/admin/catuppst.sql@?/rdbms/admin/utlrp.sqlref:http://sky13and23.blog.163.com/blog/static/28693084201132032641442/http://hi.baidu.com/redflower1004/blog/item/4c2b6443e0f7a10572f05df5.htmlhttp://download.oracle.com/docs/cd/E11882_01/server.112/e17222/upgrade.htm#i1011398[@more@]
/*动态执行存储过程DEMO*/
/*动态执行存储过程DEMO*/http://www.cnblogs.com/qieyj/archive/2010/12/14/1905816.html[@more@]
Rman duplicate数据库复制(单系统)
Rman duplicate数据库复制(单系统)http://space.itpub.net/15142212/viewspace-617938[@more@]
expdp/impdp实例 详细
expdp/impdp实例 详细http://sgadba.blog.163.com/blog/static/1370466602011112113862/[@more@]