psu遇到The opatch minimum version
现象:[root@ora1 OPatch]# ./opatch auto /software/psu/21523375/ -ocmrf /software/ocm.rsp Executing /u01/app/11.2.0/grid/perl/bin/perl ./crs/patch11203.pl -patchdir /software/psu -patchn 21523375 -ocmrf /software/ocm.rsp -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_paramsThis is th...
11.2.0.4psu到11.2.0.4.8
1、grid用户创建ocm.rspexport ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1$ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /software/ocm.rspchmod 775 /software/ocm.rsp2、root用户逐个节点执行下列命令./opatch auto /software/psu/21523375/ -ocmrf /software/ocm.rsp 如果...
ORACLE普通表转换成分区表的操作
【前言】oracle官方建议当表的大小大于2GB的时候就使用分区表进行管理,分区表相对于小的表管理和性能上都有很大的优势,本文档暂时不介绍具体的优势,主要介绍几种普通表转换成分区表的方法;【方法概述】oracle官方给了以下四种操作的方法: A) Export/import method(导入导出) B) Ins...
duplicate复制数据库(rac-rac)
rac-rac使用duplicate进行数据迁移配置监听SID_LIST_LISTENER= (SID_LIST= (SID_DESC= (GLOBAL_DBNAME=dup1) (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1) (SID_NAME=test))) &n...
duplicate复制数据库(rac-单实例)
辅助库配置(auxiliary):创建pfile和密码口令文件(复制主库的密码口令文件到备库)pfile:*.db_name='test'*.compatible='11.2.0.4.0'*.control_files='/dup1/control01.ctl'*.db_create_file_dest='/dup1'*.db_file_name_convert='+oradata','/dup1'*.db_recovery_file_dest='/arch'*.db_recovery_file_dest...
grep文件比对
一、文件test1.txt和test2.txt过滤test2.txt有 test1.txt没有的信息grep -vFf test1.txt test2.txt二、grep 显示前后几行grep 后面带上-A -B -C 参数可以多显示几行内容grep -A 5 可以显示匹配内容以及后面的5行内容grep -B 5 可以显示匹配内容以及前面的5行内容grep -C 5 可以显示匹配内容以及前后面的5行内...
duplicate搭建DG最大性能(rac-单实例)
备库操作:一、创建pfile和密码口令文件我创建的pfile如下:*.control_files='/dup1/control01.ctl'*.db_block_size=8192*.db_create_file_dest='/dup1'*.db_file_name_convert='+oradata','/dup1'*.db_name='test'*.db_recovery_file_dest='/arch'*.db_recovery_file_dest_size=4621074432*.fal_client='dup1'...
Python 解析配置模块之ConfigParser
1.基本的读取配置文件-read(filename) 直接读取ini文件内容-sections() 得到所有的section,并以列表的形式返回-options(section) 得到该section的所有option-items(section) 得到该section的所有键值对-get(section,option) 得到section中option的值,返回为string类型-geti...
一节点启动不起来(ocssd)
日志报错:[cssd(28117)]CRS-1603:CSSD on node rztjdb2 shutdown by user.2017-04-19 22:37:07.426: [ohasd(27732)]CRS-2765:Resource 'ora.cssdmonitor' has failed on server 'rztjdb2'.2017-04-19 22:37:08.940: [cssd(3684)]CRS-1713:CSSD daemon is started in clustered mode2017-04-19 22:37:10.6...
怎样清除v$archived_log视图中的过期信息
在使用RMAN命令删除归档后,查询v$archived_log视图会发现name列为空了,但其他列的信息还保留,时间长了会留下很多过期的信息,影响维护工作。首先模拟下问题的出现过程:--删除归档日志之前查看v$archived_log视图,情况正常SQL> select dest_id,sequence#,name,blocks from...
统计某个时间段的归档日志大小
通过v$archived_log视图V$ARCHIVED_LOG displays archived log information from the control file, includingarchive log names. An archive log record is inserted after the online redo log issuccessfully archived or cleared (name column is NULL if the log was cleared). If the logis archived twice, the...
linux系统查看wwn号
WWN是 /sys/class/fc_host/hostX/port_name状态是 /sys/class/fc_host/hostX/port_state当前接口速率是 /sys/class/fc_host/hostX/speed当前接口类型是 /sys/class/fc_host/hostX/port_type
Oracle使用over()partition by删除重复记录
--删除rn不等于1的rowid所在行的记录delete from fhx_db_time t2 where t2.rowid in(select t1.rid from (--使用row_number() over(partition by XX order by XX)函数对重复数据加标识select fdt.*,row_number()over (partition by dbuid ,end_interval_time order by dbuid) rn ,rowid rid from fhx...
lv扩展过程中遇到的错误
错误:[root@dbabc.net ~]# lvextend -L +100 /dev/vg01/stripe_lv Using stripesize of last segment 64.00 KB Rounding size (1558 extents) down to stripe boundary size for segment (1557 extents) Extending logical volume stripe_lv to 6.08 GB Insufficient suitable allocatable ...
修改Python默认的执行版本
1.备份旧版本python,链接新版本python在/usr/bin中有python、python2、python2.7三个文件依次指向后者1 sudo mv python python.bak,2 sudo ln -s /usr/local/python3/bin/python3 /usr/bin/python2.修改yum配置文件sudo vi /usr/bin/yum 将第一行指定的python版本改为python2.7(#!/usr/bin/pytho...
mysqldump备份脚本
[root@sq1 /]# cat logic_backup.sh#!/bin/bashCUR_DATE=`date +%Y%m%d` #获取当前的系统日期#innobackupex --defaults-file=/home/...
分区表之间隔分区(interval)
When to Use Range or Interval PartitioningRange partitioning is a convenient method for partitioning historical data. Theboundaries of range partitions define the ordering of the partitions in the tables orindexes.Interval partitioning is an extension to range partitioning in which, beyond a ...
oracle几个不常用但是会对性能有提升的视图
一、DBA_TABLESPACE_USAGE_METRICSDBA_TABLESPACE_USAGE_METRICS describes tablespace usage metrics for all types oftablespaces, including permanent, temporary, and undo tablespaces.通过这个视图可以直接查出表空间的使用率。二、V$ASM_DISKGROUP_STATV$ASM_DISKGROUP_STAT displays performance stati...
python3.x的异常处理
以前的python2.x的时候:try: fp=urllib.request.urlopen(blogurl) except Exception, e: print (e) print('download exception %s' % blogurl) return 0 现在python3.x的时候:...
su - username -c执行多条命令
实例如下:su - oracle -c 'export ORACLE_SID=test;echo "show parameter local_l" | sqlplus -s / as sysdba'