自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(32)
  • 资源 (5)
  • 收藏
  • 关注

原创 oracle ebs 克隆时的一些常用命令

kill process# ps -fu appldev2 | awk '{print $2}' | xargs kill -9;ps -fu oradev2 | awk '{print $2}' | xargs kill -9;

2019-06-29 23:56:49 208

原创 oracle ebs 数据库定时删除trc文件

deltrc.sh$ vi /home/oraprod/backup/scripts/deltrc.shfind /ebsfs/EBSPROD/db/tech_st/11.2.0/admin/EBSPROD_ovmoradb/diag/rdbms/ebsprod/EBSPROD/trace -name "EBSPROD*.trc" -mtime +7 | xargs rm -rffind /...

2019-06-29 23:54:11 782

原创 Oracle Enterprise Manager Cloud Control 的简介之一 安装

os: centos 7.6db: oracle 19.3em: emcc 13.3本次实验环境 emcc 和 数据库运行在同一台机器上,且数据库运行在单实例,非归档,无备份下.生产环境慎重慎重os 设置参考《centos 7.x for oracle 12c 18c 的 dbf 安装》db 安装参考《centos 7.4 + dbf + 18.3 单节点安装》instance ...

2019-06-28 14:55:10 3952

原创 centos 7 默认 Java 为 OpenJDK ,如何替换为 Oracle JDK

os: centos 7默认为OpenJDK# java -versionopenjdk version "1.8.0_212"OpenJDK Runtime Environment (build 1.8.0_212-b04)OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)# rpm -qa |grep -i jdkja...

2019-06-27 16:39:28 2003

原创 检测 12c 数据库大小 使用率 的 sql

set lines 500set pages 500 col gather_level format a20col database_name format a8col tablespace_name format a20col datafile_name format a40col autoextensible format a10col maxsum_gb format 9...

2019-06-27 11:23:45 303

原创 postgresql 12 新增参数 shared_memory_type

os: centos 7.6db: oracle 19.3postgresql 12 新增参数 shared_memory_type ,但同时又涉及到 dynamic_shared_memory_type 参数,需要了解下这两个参数的作用及代表的含义postgresql.conf 文件#shared_memory_type = mmap # the default is the firs...

2019-06-26 11:36:45 2806

原创 oracle 隐含参数查看与设置

os: centos 7.6db: oracle 19.3oracle 隐含参数主要是通过 sys.x$ksppi,sys.x$ksppcv(sys.x$ksppsv) 关联获得.$ sqlplus / as sysdbaSQL> set lines 200;set pages 200;col inst_id format 99;col con_id format 99;c...

2019-06-25 17:22:07 836

原创 ORA-04036: PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT

os: centos 7.6db: oracle 19.3oracle rac 环境,其中一台实例报错如下.alert 日志报错$ tail -f /u01/app/oracle/diag/rdbms/orcls1/orcls12/trace/alert_orcls12.log2019-06-25T08:24:42.755760+08:00Errors in file /u01/ap...

2019-06-25 16:21:52 17770

原创 Creating a PDB in a Primary Database using CREATE PLUGGABLE DATABASE FROM

os: centos 7.6db: oracle 19.3oracle active dataguard 环境下,在 primary 上创建的pdb.enabled_pdbs_on_standbySQL> show parameter enabled_pdbs_on_standby;NAME TYPE VALUE------------------------...

2019-06-24 20:57:06 1151

原创 Creating a PDB in a Primary Database using CREATE PLUGGABLE DATABASE

os: centos 7.6db: oracle 19.3oracle active dataguard 环境下,在 primary 上创建 pdb.enabled_pdbs_on_standbySQL> show parameter enabled_pdbs_on_standby;NAME TYPE VALUE------------------------...

2019-06-21 15:16:21 675

原创 postgresql 启动报错 FATAL: could not create semaphores

os: ubuntu 16.04db: postgresql 9.6使用 patroni 做的 pgsql 高可用,发现 pgsql 无法启动,查看 syslog 时报错# tail -n 200 /var/log/syslogJun 19 15:43:54 PGNODE1 patroni[66763]: 2019-06-19 15:43:54.374 CST [73241] FATAL...

2019-06-20 16:00:45 4478

原创 如何降低 postgresql 的 postgres 主进程被 oom killer 干掉的风险

os: ubuntu 16.04db: postgresql 9.6前段时间碰到 postgres 主进程被 oom killer 杀掉的情况,初步研究了下.postgres 是 postgresql 的主进程,如果它被 oom killer 干掉了,那 postgresql 数据库就关闭了.其他进程异常了就会进行 crash recovery,自动重启数据库.restart_after...

2019-06-20 11:15:08 1192

原创 使用dbca建库时报错 [FATAL] [DBT-50000] Unable to check for available memory.

os: centos 7.6db: oracle 19.3使用 dbca 建库时,在内存选择那一页报错:[FATAL] [DBT-50000] Unable to check for available memory.[FATAL] [DBT-50001] Unable to check the value of kernel parameter {0}在网上搜索后提示,需要在运行...

2019-06-20 08:19:24 6298

转载 Pre-12c,12c Role Transition Syntax for Physical Standby Databases

12c 的一些角色命令和之前的稍有不同,如下.switchoverPre-12cTo switchover to a physical standby database, on the primary databaseSQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY;SQL> ALTER DATABASE...

2019-06-19 10:52:43 231

原创 oracle 19c acitve dataguard 环境下在 standby 执行 dml 时重定向功能参数adg_redirect_dml

os: centos 7.6db: oracle 19.3Oracle 19c 新特性之一,adg的自动 dml 重定向.就是在 ADG 环境下,连接到 standby 的数据库执行 dml.这个特性在 18c 是作为隐含参数 _enable_proxy_adg_redirect 调整的,但在 19c 中,通过显式参数 ADG_REDIRECT_DML 参数调整.adg_redirect...

2019-06-19 10:07:06 1241

原创 Warning: ORA-16853: apply lag has exceeded specified threshold

os: centos 7.6db: oracle 19.3oracle active dataguard 环境,通过 dgmgrl 设置一个 standby 的 delay 为120后,执行 show configuration verbose 出现 Warning: ORA-16853: apply lag has exceeded specified thresholdedit data...

2019-06-18 14:19:13 2661

转载 Manual Performing a Failover to a Physical Standby Database 19c

os: centos 7.6db: oracle 19.3primary DB_UNIQUE_NAME: BOSTONstandby DB_UNIQUE_NAME: CHICAGO如果使用了 dgmgrl 配置的,就使用 dgmgrl 执行 failover 操作如果使用了 sqlplus 配置的,就执行如下命令.12c 比之前的命令有所简化.执行 failover 说明很大概率 pr...

2019-06-18 11:21:11 314

转载 Manual Performing a Switchover to a Physical Standby Database 19c

os: centos 7.6db: oracle 19.3primary DB_UNIQUE_NAME: BOSTONstandby DB_UNIQUE_NAME: CHICAGO如果使用了 dgmgrl 配置的,就使用 dgmgrl 执行 switchover 操作如果使用了 sqlplus 配置的,就执行如下命令.12c 比之前的命令有所简化.1. Verify that the ...

2019-06-18 10:32:47 353

原创 oracle active dataguard 环境下执行报错:ORA-25153: Temporary Tablespace is Empty

os: centos 7.6db: oracle 19.3adg 环境,在 primary 上创建永久表空间,临时表空间,用户.数据库切换后,发现新的priamry上报错,排查后发现是临时表空间没有临时数据文件.SQL> set lines 200;set pages 200;col username format a30;col default_tablespace forma...

2019-06-17 20:01:28 566

原创 oracle 删除表空间

os: centos 7.6db: oracle 19.3如果表空间非空,就无法删除,所以在删除表空间时,需要删除相关的用户,或者移动对象到别的表空间.老是忘记语法,记录一下.强烈建议 sqlplus 实现 help drop tablespace删除用户SQL> drop user user_name cascade;删除空的表空间,但是不包含物理文件SQL> d...

2019-06-17 17:22:56 1402

原创 oom killer 导致 oracle instance 崩溃

os: centos 7.6db: oracle 19.3oracle 不支持在 ubuntu 上安装,但是修修改改也可以安装.测试环境倒无所谓,生产环境一定不要安装在ubuntu上.今早看到测试环境的一台oracle机器实例宕掉Mon Jun 17 07:46:57 2019Thread 1 advanced to log sequence 3187 (LGWR switch) C...

2019-06-17 11:16:55 861

原创 Oracle Enterprise Manager Database Control 的简介

os: centos 7.6db: oracle 11.0.2.4oracle 12c 之前随库安装的,主要通过 emca 和 emctl 操作.配置 dbconsole$ emca -repos drop $ emca -repos create $ emca -repos recreate 配置数据库的 Database ControlRAC 需要添加 -cluster 参...

2019-06-14 11:53:58 914 1

原创 Oracle Enterprise Manager Database Express 的简介

os: centos 7.6db: oracle 19.3Enterprise Manager Database Control is no longer available in Oracle Database 12c.You can use Enterprise Manager Cloud Control 12c or EM Express 12c to manage your Orac...

2019-06-13 23:54:13 2731 1

原创 buffer busy waits

os: centos 7.6db: oracle 19.3使用 swingbench 做的10G数据量压测,然后查看 AWR 报表时,分析一下 Top 10 Foreground Events by Total Wait Time.buffer busy waits10.3.2 buffer busy waitsThis wait indicates that there ar...

2019-06-13 09:45:17 707

原创 oracle owi 之 log file sync

os: centos 7.6db: oracle 19.3使用 swingbench 做的10G数据量压测,然后查看 AWR 报表时,分析一下 Top 10 Foreground Events by Total Wait Time.log file sync这个等待事件靠前基本说明两点:commit 太频繁disk io 不行改进方法对应为commit 提交方式改...

2019-06-13 08:29:59 643

原创 AWR 报告 SQL ordered by Elapsed Time

os: centos 7.6db: oracle 19.3使用 swingbench 做的10G数据量压测,然后查看 AWR 报表时,分析一下 SQL ordered by Elapsed Time.可以看出 56pwkjspvmg3h,gkxxkghxubh1a,b5dk0t95fhyd7,89b7r2pg1cn4a,01jzc2mg6cg92这几个 sql 单次执行都是比较慢的.5...

2019-06-12 14:28:38 6586

原创 supplemental log 之二

os: centos 7.6db: oracle 19.3今天在看 oracle supplemental log 时发现多了两个选项$ sqlplus / as sysdba;SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jun 11 14:47:28 2019Version 19.3.0.0.0Copyright (c) 19...

2019-06-11 15:13:49 432

原创 oracle dataguard 环境下处理从库归档日志的缺失

1、在备库检查是否有日志缺失SQL> select * from V$ARCHIVE_GAP;2、在主库中查询缺失的日志的所在路径和名称SQL> SELECT NAME FROM V$ARCHIVED_LOG WHERE 1=1 AND THREAD#=1 AND DEST_ID=1 AND SEQUENCE# BETWEEN 99 AND 109;...

2019-06-10 17:34:15 809

原创 oracle 压测工具 swingbench

os: centos 7.6db: oracle 19.3oracle 安装的是 19.3 版本,使用的是 oracle MAA 架构。To install Swingbench release 2.5 or 2.6, all you need to do is ensure you have a Java 8 JVM available and then unzip the swingbe...

2019-06-10 15:43:32 2927

原创 oracle 压测工具 BenchmarkSQL

os: centos 7.6db: oracle 19.3oracle 安装的是 19.3 版本,使用的是 oracle MAA 架构。BenchmarkSQL 有一些依赖,先处理好依赖配置 epel 源# wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo# yum clean all # yu...

2019-06-10 11:00:57 3597

原创 dataguard 执行 switchover 失败后报错 ORA-19970: multi-instance standby role transition in progress

primary orcls2standby orclp其中 orcls2 是单实例,orclp 是 rac,版本均为 19.3使用 data guard broker 执行 switchover 失败后,再次 switchover 时发生一些问题.DGMGRL> show configuration;Configuration - dgconf Protection Mod...

2019-06-06 11:27:40 733

原创 oracle gi 使用 udp 作为私有网络数据交换

HAIP is a clusterware feature that allows redundancy on the private interconnect for RAC database and ASM.As a result, the use of HAIP is recommended, but in RDS environment, HAIP is not supported.H...

2019-06-04 10:02:08 647

ibatis 2.3

ibatis java jdbcibatis java jdbc

2009-07-17

J2se 1.5 api 文档

J2se api J2se api J2se api J2se api

2009-07-17

Spring 学习手册

Spring 学习手册Spring 学习手册Spring 学习手册

2009-07-17

J2ee API文档

J2ee API文档,对呢的学习绝对有帮助!

2009-07-15

j2ee 1.3 英文文档

j2ee 1.3的英文doc!描述的还算清晰

2009-02-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除