2020年7月17日
摘要:
数据库版本:Oracle11.2.0.4 架构:2节点RAC、单实例DG 问题描述:在RAC节点新增视图,可进行正常查询;但是在DG库查询视图是报错: 查询DG状态是正常的,但是执行SQL的时候报出ORA-06512 SQL> SQL> select count(*) from prod.VIEW_
阅读全文
posted @ 2020-07-17 15:13
helontian
阅读(1063)
推荐(0)
2020年7月16日
摘要:
Oracle RAC信息 数据库版本 Oracle11.2.0.4 节点数 2节点RAC 操作系统 Red Hat Enterprise Linux Server release 6.9 (Santiago) 故障现象: 节点2 实例宕机,vip飘到节点1 下列为故障时间段的alert日志和cssd
阅读全文
posted @ 2020-07-16 18:03
helontian
阅读(512)
推荐(0)
摘要:
故障排查: $ sqlplus srv_ze/"xx@19"@orcl SQL*Plus: Release 11.2.0.4.0 Production on Thu Jul 16 09:57:35 2020 Copyright (c) 1982, 2013, Oracle. All rights r
阅读全文
posted @ 2020-07-16 15:52
helontian
阅读(298)
推荐(0)
2020年6月22日
摘要:
手动创建Function 以SYS用户创建包、包体、函数 CREATE OR REPLACE TYPE WM_CONCAT_IMPL AS OBJECT ( CURR_STR VARCHAR2(32767), STATIC FUNCTION ODCIAGGREGATEINITIALIZE(SCTX
阅读全文
posted @ 2020-06-22 12:00
helontian
阅读(1795)
推荐(0)
2020年6月20日
摘要:
创建数据库对象的步骤 创建开发库dpgsql 、测试库ppgsql、生产库ppgsql 创建开发库对象为例: 创建用户srv_qpgsql,控制连接数,赋予登录权限create role srv_qpgsql with ENCRYPTED password 'srv_qpgsql' CONNECTI
阅读全文
posted @ 2020-06-20 23:32
helontian
阅读(1057)
推荐(0)
摘要:
数据库及pg_rman版本 postgresql:(PostgreSQL) 12.3 pg_rman:pg_rman-1.3.9-pg12.tar.gz tar -zxvf pg_rman-1.3.9-pg12.tar.gz -C /usr/local/ su - postgres cd /usr/
阅读全文
posted @ 2020-06-20 23:14
helontian
阅读(331)
推荐(0)
2020年5月25日
摘要:
一、服务器环境信息 软件版本:postgresql12.3 二进制安装:postgresql-12.3.tar.gz.tar.gz postgresql-12.3.tar.gz.md5:4aeff45d4180d8d8cdb907a0e4690da2 postgresql-12.3.tar.gz p
阅读全文
posted @ 2020-05-25 17:40
helontian
阅读(1293)
推荐(0)
2020年5月11日
摘要:
ORA-01031: insufficient privileges处理记录 SYS@orcl1> conn srv_elon/elonConnected.srv_elon@orcl1> srv_elon@orcl1> select count(*) from "SCOTT"."V_EMPLOYEE
阅读全文
posted @ 2020-05-11 16:59
helontian
阅读(185)
推荐(0)
2020年4月8日
摘要:
无法删除数据库 "",因为该数据库当前正在使用。 处理方式: use master go declare @dbname sysname set @dbname = 'prod' --这个是要删除的数据库库名 declare @s nvarchar(1000) declare tb cursor l
阅读全文
posted @ 2020-04-08 12:24
helontian
阅读(1012)
推荐(0)
2019年10月9日
摘要:
数据库日志是否报错信息 数据库session会话数 数据库是否存在死锁 Oracle DG主备库同步状态检测 Oracle DG备库是否实时同步 #SQL> select recovery_mode from v$archive_dest_status where dest_id=2; #RECOV
阅读全文
posted @ 2019-10-09 18:03
helontian
阅读(1661)
推荐(0)
2019年9月27日
摘要:
ORACLE 11GR2常用参数(含隐含参数)设置如下: alter system set "_PX_use_large_pool" = true scope=spfile;alter system set "_clusterwide_global_transactions" = false sco
阅读全文
posted @ 2019-09-27 08:57
helontian
阅读(4280)
推荐(0)
2019年9月26日
摘要:
http://www.fenxiangzhe.net/archives/50 在SAP HANA 运维过程我们经常遇到因前期HANA LOG模式未设置成OVERWIRTE或者日志备份时间设置过长导致日志磁盘空间被占满或者日志文件过大,这个时候可以使用如下办法处理: 1)文件系统未满 备份数据库 使用
阅读全文
posted @ 2019-09-26 10:04
helontian
阅读(3394)
推荐(0)
2019年9月18日
摘要:
磁盘挂载需求/cachesys 50G /journal 300G /wij 50G /dthealth 20G /data 500G /backup 500G #第1步,创建pv,并查状态信息。lsblk #显示块设备pvcreate /dev/sd[bc] #创建pv。格式说明:pvcreate
阅读全文
posted @ 2019-09-18 13:22
helontian
阅读(1961)
推荐(1)
摘要:
--查看被锁的表 select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id; OWNER OBJECT_NA
阅读全文
posted @ 2019-09-18 11:37
helontian
阅读(5379)
推荐(0)
2019年9月17日
摘要:
1. 安装软件.net framework3.5 1.在安装SQL SERVER 2012前需要3.5的支持。在WIN 2012系统可以在系统管理的添加角色和功能中安装,如下将【.NET Framework 3.5功能】、【.NET Framework 4.5功能】下的组件全部勾选上。 2. 在安装
阅读全文
posted @ 2019-09-17 18:32
helontian
阅读(1890)
推荐(0)
摘要:
诊断DB2系统性能:db2top -d DEMODB db2top详解:http://blog.sina.com.cn/s/blog_636d62310102v7lm.html
阅读全文
posted @ 2019-09-17 14:54
helontian
阅读(177)
推荐(0)
摘要:
执行时间最长的10条SQL语句(按时间降序排列),可保存为脚本方便调用:db2 "SELECT rows_read / (num_executions + 1) as avg_rows_read,rows_written / (num_executions + 1) as avg_rows_writ
阅读全文
posted @ 2019-09-17 14:33
helontian
阅读(295)
推荐(0)
2019年9月16日
摘要:
Back up the data and redo log entries from the data and log areas of your database to data carriers on a regular basis. Backups can be carried out in
阅读全文
posted @ 2019-09-16 15:55
helontian
阅读(275)
推荐(0)
2019年9月12日
摘要:
SAP MaxDB日常维护1、检查MaxDB状态,并启动su - pe0csccd /sapdb/SDB/db/bin./dbmcli -d SDB -u superdba,Mypassword db_stateOKStateONLINEMaxDB启动./dbmcli -d SDB -u super
阅读全文
posted @ 2019-09-12 17:49
helontian
阅读(618)
推荐(0)
2019年9月10日
摘要:
https://blog.csdn.net/qq_41981651/article/details/90314817 https://blog.csdn.net/roven257/article/details/78691892
阅读全文
posted @ 2019-09-10 14:40
helontian
阅读(475)
推荐(0)