杂项记录
杂项
Python类汇总
python方法汇总
Extended RAC and N-Way streams Replication
今日在DBA-Oracle上看到一篇问答,很有意思,故转载以记录Oracle n-way Streams replicationOracle Database Tips by Burleson ConsultingFebruary 9, 2015Question: What is Oracle n-way Streams ...
解决library cache pin等待事件
本人最后一个9i的客户前两天出了性能问题,一线生产数据库,十万火急,结果发现9i数据库的一个节点连接数为1300左右,尽然有240个异常等待事件,绝大部分是library cache pin和library cache lock,翻出05年写的一遍手记,感觉真的老,解决此问题,如下:造成数据库性能下降或挂起的原因很多,“library cache pin”等...
非常规方法,轻松应对Oracle数据库危急异常
相信很多Oracle DBA在职业生涯中或多或少都遇到过这样的情况:数据文件被误删了,存储坏了无法识别数据文件,最糟糕的是,竟然rman备份也是坏的…… 遇到问题凌乱慌张是没用的,而贸然动手也是非常危险的,当遇到紧急问题,最重要的就是冷静分析,临危不乱。 下面我通过几个实战案...
Oracle BBED 工具说明
一. BBED 介绍有关BBED 详细使用说明的pdf 文档,也是从网上下载的:http://download.csdn.net/source/1902555Thename bbed is an acronym for Block Browser and EDitor and it is shipped with thedatabase. Itis intended for Oracle internal use only and the company neverpublishes any details about it. It is...
How To Configure Server Side Transparent Application Failover
How To Configure Server Side Transparent Application Failover (文档 ID 460982.1)转到底部In thi...
runInstaller 报错:Memory fault
最近在一个客户那里安装9iforAIX,结果运行runInstaller报错如下:security properties not found. using defaults.stackpointer=42ba1f70Writing Java core file ....Written Java core to /tmp/javacore434372.1262950584.txt/tmp/OraInstall2010-01-08_07-36-16PM/installer: 434372 Memory fault(coredump)在metalink没有找到一样环境一样报错的情况,于是检查了很多相关的设置,包括操作系统的补丁和内核等等,没有发现问题。只可能是安装介质的问题了,结果重新上传了安装介质,安装成功。[@more@]
Remove a node from Oracle10g RAC cluster and add back for IBM AIX
1. REMOVING A NODE FROM A 10g RAC CLUSTERAssume you want to delete node 2 from cluster1> srvctl stop nodeapps -n (run on delete node)2> run netca to delete listener that on the delete node3> srvctl remove nodeapps -n (run on delete node) 4> on remaining node : run the installer with theupdateNodeList option ,you can run this command with local_node=host_name option just when the command run unsuccessfullyexport DISPLAY=XXX.XXX.XXX.XXX:X.0$ORACLE_HOME/oui/bin/runInstaller -updateNode
oracle9207 rac 升级到9208异常问题
今天晚上在贵州电信升级一套rac,发生异常,数据库升级到9208以后无法以cluster的方式启动,在metalink查了好多文档,都没有能够匹配的,见了鬼了,最终经过5个小时折腾终于找到了答案。[@more@]环境:oracle9207 rac 升级到oracle9208 rac问题现象:升级完成后两个节点的数据库无法同时启动,只能启动一个,无论先启动哪个节点,另外一个节点都无法启动,在mount阶段hang报错:node1:Sat Jan 9 03:13:27 2010starting up 1 shared server(s) ...starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP)
RAC的TAF简单测试
ZT: http://yangtingkun.itpub.net/测试一Oracle的RAC的高可用功能除了负载均衡还包括TAF(Transparent Application Failover)。RAC的TAF是指会话连接到一个实例上,如果这个实例出现了故障,Oracle会自动将会话迁移到另一个实例上。看一个简单的例子。首先不配置TAF,在客户端TNSNAMES.ORA中进行如下的测试:TESTRAC =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 172.25.198.224)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 172.25.198.225)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = testrac)))
On AIX RAC中global cache cr rquest的的处理方法
在statspack中有大量的global cache cr request:这个等待事件主要是节点间通讯异常造成的.1.需要确定应用的分布,尽量将不同的业务类型分配到不同的instance上面2. 确定inter connect网络状态[root]# netstat -p udpudp:3500183652 datagrams received0 incomplete headers0 bad data length fields0 bad checksums8402728 dropped due to no socket12017785 broadcast/multicast datagrams dropped due to no socket231620 socket buffer overflows3479531519 delivered3119249970 datagrams output如果存在较大的socket buffer overflows
create a physical standby db
create a physical standby database steps:1.physical standby 是将primary database的archielog apply 到standby database,从而完成primary database 和 standby database的数据一致性2.standby 有以下先决条件必须满足:2.1 oracle的版本必须一致2.2 操作系统必须一致(版本没有要求)2.3 primary database 必须运行在archive mode下2.4 数据库文件结构和名称必须一致,如果不一致,则必须在standby machine 做链接文件2.5 primary database必须 force logging mode3.下面以primary 和standby 分部在不同host上为例:3.1 确认primary 运行在
rman总结(包含10g rman中的新特性)
正在不断更新中......[@more@]1>10grman在backup的时候将当前没有用的到block跳过,不备份.而在以前的版本中rman只是跳过never been allocated blocks.2>The CONFIGURE DEVICE TYPE ... PARALLELISM command specifies the number ofautomatic channels to allocate for a specified device type. For example, if you configure parallelism to 3 for a device type, then RMAN allocates three channels for the device type when using automatic channels.3>并行通道的个数应该和物理设备的match,也就是说如果只有一个磁带设备
在单机linux上安装两个不同版本数据库时注意事项
在linux上安装两个不同版本的oracle时,在安装第二个版本时要将/etc/oraInst.loc文件中的inventory_loc改成正确的路径,以免在安装时oracle自动往原来的安装路径下写东西而造成对文件或者路径没有写权限的错误。[@more@]
v$parameter
v$parameter中的ISSES_MODIFIABLE记录哪些参数可以在session级别动态修改,ISSYS_MODIFIABLE记录哪些参数可以在instance级别动态修改。[@more@]
前两天遇到了一个错误 ora-27121 unable to determine size of shared memory segment
OS: Solaris db version: 9.2[@more@]问题描述: db 没有shudown 就关闭了OS再启动db就报ora-27121.metalink上的建议是用ipcs查看ORPHANED SHARED MEMORY SEGMENTS AND SEMAPHORES然后用ipcrm Remove orphaned shared memory segments and semaphores.用ipcs -a查看发现并没有oracle占用的orphaned shared memory segments and semaphores,到是root用户占用了.用ipcs -a 找到root占用的ID,然后用ipcrm -m <ID> - for shared memory ipcrm -s <ID> - for semaphores 释放后再启动db,一切正常.
Full of fight --- Stephen Jackson
If you're a friend of Pacers' Jackson, he's got your backIn the concrete world of Port Arthur, Texas, where Stephen Jackson grew up, family and friends stuck together. Thick or thin, right or wrong, bonds were absolute, and when conflict arose, the plan was simple and direct: Act now and deal with the consequences later.There was the time, for example, when he and a high school teammate, Isaac Washington, walked five miles across town to an unfamiliar park to play basketball. When their claim fo
install oracle92 on redhat as4 x86-64
Install racle92 no redhat as4 x86-64Pre-installation Tasks 安装之前要确定一下的RPM包已经打上,其实包的版本略有不同感觉问题不大,起码在安装的并没有报错.但要注意这些包的后缀应该为x86-64,不能是i386.还要注意的是这些包可能相互有依赖性,也会依赖于其他包,请一一下载安装.可以在 http://rpm.pbone.net/ 搜索下载所需RPM包安装前先用rpm –qa来检查一下安装情况,如果未曾安装则用rpm –ihv安装.Download and Install Required Packages The following packages (or later versions) must be installed: compat-db-4.1.25-9compat-g
天台北望东卫城
天好像灰蒙蒙的哦,呵呵[@more@]