自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(46)
  • 资源 (19)
  • 问答 (1)
  • 收藏
  • 关注

原创 uni.showModal的用法

【代码】uni.showModal的用法。

2023-10-25 09:12:07 2384

原创 [Vue warn]: Error in render: “TypeError: Cannot read property ‘substring‘ of undefined“解决办法

在级联展示时,如果三层级联,只能解析在data中定义也就是vue实例上的对象子一层的东西,对于孙一层的东西就被解析成不在vue实例上的。也就是报错的此属性不在vue实例上。vue界面显示Error in render: "TypeError: Cannot read property ‘substring’ of undefined"等问题,虽然不影响界面显示,但是打开控制台一大片红实在不美观。页面渲染刚开始的时候还没有拿到这个值,所以会报错。在vue中对该值进行if判断(v-if = " ")。

2023-06-17 08:38:41 1661

原创 SQLServer镜像数据库创建快照定时更新用于查询

SQLServer镜像数据库创建快照定时更新用于查询

2022-11-16 14:12:23 965 1

原创 sql2016创建镜像数据库时报错(Microsoft SQL Server, Error: 927)

在配置镜像最后一步报错:Database ‘XXX’ cannot be opened. It is in the middle of a restore. (Microsoft SQL Server, Error: 927)

2022-11-16 13:47:02 967

原创 Oracle使用DBLink跨库查询数据

Oracle使用DBLink跨库查询数据

2022-08-12 15:08:20 6460

原创 Toad Cannot load OCI DLL

最近在一台win10电脑上安装Toad出现这个问题Cannot load OCI DLL

2022-07-22 11:27:00 509

原创 Zabbix监控SQL Server数据库

Zabbix监控SQL Server数据库

2022-06-02 14:53:17 2763 11

原创 Oracle创建分区表(按年、季、月、日自动分区)

这种分区方式会根据插入的数据自动增加分区,不需要手工维护分区字段必须是日期类型按年分区create table test.test_r1(id NUMBER(20) not null primary key,name VARCHAR2(20) not null,joindate DATE not null) tablespace testpartition by range(joindate) interval (numtoyminterval(1,'year'))(partition

2022-05-09 11:57:44 10454

原创 Oracle创建分区表报错:ORA-14037: 分区 “PART_202108“ 的分区界限过高

创建分区表sql语句如下:create table test.test_r1(id NUMBER(20) not null primary key,name VARCHAR2(20) not null,joindate DATE not null,tel VARCHAR2(12) not null,WORK_DATE VARCHAR2(15)) tablespace testpartition by range(WORK_DATE)(partition part_2020 values

2022-05-09 11:01:16 1398

原创 Toad查看表的脚本时出错ORA-00904: “REF“: 标识符无效

Toad for Oracle查看表的脚本时出错ORA-00904: “REF”: 标识符无效Toad for Oracle版本12.8,Oracle版本19c11g没有问题,19c会报错简单的解决办法:在Schema browser—>选择表—>选择script—>选择Script Optins—>取消audit statements前面的勾。在模式浏览器—>选择表—>选择脚本—>选择查看/编辑脚本选项—>取消审计语句前面的勾。...

2022-04-13 16:33:09 921

原创 oracle报错:ORA-28001: the password has expired

忽然发现备份脚本不执行了,手动执行脚本报错ORA-28001: the password has expired,我用的system用户,用system登录数据库报同样的错oracle默认用户密码180天过期,应该是没有更改的问题解决办法:sqlplus / as sysdba查看密码有效期SQL> SELECT * FROM dba_profiles s WHERE s.profile=‘DEFAULT’ AND resource_name=‘PASSWORD_LIFE_TIME’;更改

2022-03-14 08:51:51 1240

转载 Zabbix批量导入主机

Zabbix批量导入主机在实际工作环境中我们一个集群里面可能有十几上百台一摸一样的主机,需要监控的内容也是一摸一样的,这个时候我们就可以使用下面的方式批量导入主机了1、我们先在Zabbix-web里面配置好一台主机,然后把配置的结果导出来,我们通过脚本批量替换一下就行<?xml version="1.0" encoding="UTF-8"?><zabbix_export> <version>3.4</version> <date&

2021-12-31 09:20:12 3047

原创 oracle数据库开启闪回及归档模式

一、oracle数据库开启闪回及归档模式1、设置闪回恢复区#设置闪回区大小SQL> show parameter recover;SQL> alter system set db_recovery_file_dest_size=100g scope=spfile;#设置闪回区位置SQL> alter system set db_recovery_file_dest='/archive' scope=spfile;#设置闪回目标为5天,以分钟为单位,每天为1440分钟,默认为1

2021-12-22 17:35:44 3770 4

原创 ORA-39181: Only partial table data may be exported due to fine grain access control on “OE“.“PURCHAS

执行expdp导出时报一个错误:ORA-39181: Only partial table data may be exported due to fine grain access control on “OE”.“PURCHASEORDER”解决的办法:将EXEMPT ACCESS POLICY这个权限赋给system用户:GRANT EXEMPT ACCESS POLICY to system;...

2021-12-22 16:43:21 283

原创 使用squid配置上网代理服务器

服务器端设置1.安装squid#ubuntu安装方法:sudo apt-get install squid#centos安装方法:yum install squid2.修改配置sudo vi /etc/squid/squid.conf3.定位到http_access allow#http_access allow localnethttp_access allow localhosthttp_access allow lan #授权lan组,可以自己命名# And fin

2021-12-21 17:19:28 1497

原创 centos7系统停用防火墙firewall和iptables

centos7系统iptables非常顽固,就是停不了以下方法可以停止yum install iptables-servicessystemctl stop iptablessystemctl disable iptablesyum install firewalldsystemctl stop firewalldsystemctl disable firewalld#如果还不行就卸载iptablesyum remove iptables...

2021-12-20 09:07:02 706

原创 ORA-04031: unable to allocate 4000 bytes of shared memory (“shared pool“

报错信息:ORA-04031: unable to allocate 4000 bytes of shared memory (“sharedpool”,“SELECT NAME NAME_COL_PLUS_SH…”,“sga heap(1,0)”,“kglsim heap”)错误解决办法SQL> show parameter shared_pool;NAME TYPE VALUEshared_pool_reserved_size big integer 6

2021-12-16 10:45:29 1674

原创 Nginx+Apache配置负载均衡

Naginx+Apache配置负载均衡nginx代理服务器10.251.144.64apache服务器10.251.144.62apache服务器10.251.144.63apache服务器配置:安装apache,确保网页能正常访问nginx服务器配置:yum -y install automake autoconf libtool makeyum -y install gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-d

2021-11-18 14:33:21 2376

原创 RHEL 7 安装oracle rac 11.2.0.4执行root.sh报错ohasd failed to start

RHEL 7 安装oracle rac 11.2.0.4执行root.sh报错ohasd failed to start报错原因:因为RHEL 7使用systemd而不是initd运行进程和重启进程,而root.sh通过传统的initd运行ohasd进程。解决方法:在RHEL 7中ohasd需要被设置为一个服务,在运行脚本root.sh之前。步骤如下:以root用户创建服务文件#touch /usr/lib/systemd/system/ohas.service#chmod 777 /us

2021-11-04 17:41:28 565

原创 Linux7安装Oracle 11g 86%报错:Error in invoking target ‘agent nmhs‘ of makefile

Linux7安装Oracle 11g 86%报错:Error in invoking target ‘agent nmhs’ of makefileOS:Oracle Linux 7.9 64bitDB:Oracle 11.2.0.486%时出现报错 Error in invoking target ‘agent nmhs’ of makefile解决方案#在makefile中添加链接libnnz11库的参数修改$ORACLE_HOME/sysman/lib/ins_emagent.mk,

2021-11-04 17:22:53 606

原创 ERROR 2002 (HY000) Can‘t connect to local MySQL server through socket ‘tmpmysql.sock‘ (2)

mysql登录时mysql -uroot -p报错ERROR 2002 (HY000) Can’t connect to local MySQL server through socket ‘tmpmysql.sock’ (2)虽然通过(mysql -uroot -h 10.207.237.124 -p)这样可以登录,但是不建议这样操作,毕竟问题没有解决解决办法:1、首先在配置文件my.cnf中要有相关的配置[client]socket=/mysql/data/3306/mysql.sock[

2021-11-02 13:55:40 161

原创 CentOS7配置LVS+Keepalived实现负载均衡和高可用

角色 IP地址 备注主LVS调度器(MASTER) 10.207.237.21 使用keepalived配置备LVS调度器(BACKUP) 10.207.237.22 使用keepalived配置HTTP服务器(RS1) 10.207.237.23 apache服务器HTTP服务器(RS2) 10.207.237.24 apache服务器虚拟IP地址(VIP) 10.207.237.25 虚拟IP地址| 角色 | IP地址 | 备注 || 主LVS调度器(MASTER) | 10.207.23

2021-10-28 17:12:40 526

原创 configure: error: C preprocessor “/lib/cpp“ fails sanity check错误解决办法

centos系统,在编译安装软件包时报错configure: error: C preprocessor “/lib/cpp” fails sanity check1.可能缺少gcc、gcc-++yum install glibc-headersyum install gcc-c++yum install gccyum install kernel-headers2.我的这些包都装了,还是报错,最后安装glibc-kernheaders问题解决yum -y install glibc-ker

2021-10-09 16:12:45 2131 1

原创 oracle查询正在执行的sql语句并杀掉

–查询Oracle正在执行的sql语句及执行该语句的用户SELECT b.sid oracleID, b.username 登录Oracle用户名, b.serial#, spid 操作系统ID, paddr, sql_text 正在执行的SQL, b.machine 计算机名FROM v$process a, v$session b, v$sqlarea cWHERE a.addr = b.paddr AND

2021-09-01 14:13:55 1060

原创 oracle19c安装

系统为oracle-linux7安装桌面挂在光盘配置yum源软件包yum -y install compat-libcap1 libstdc++-devel gcc-c++ ksh glibc-devel libaio-devel compat-libstdc++-33创建用户并修改密码groupadd -g 5001 oinstallgroupadd -g 5002 dbagroupadd -g 5003 operuseradd -u 6001 -g oinstall -G db

2021-09-01 10:35:13 152

原创 swap交换空间不足解决办法

[root@rac01 ~]# cd /#增加2G的空间[root@rac01 /]# dd if=/dev/zero of=/swap bs=1024 count=2000000[root@rac01 /]# mkswap /swap正在设置交换空间版本 1,大小 = 1999996 KiB无标签,UUID=214d57b0-cf57-47de-8078-58e3b8fac32a[root@rac01 /]# swapon /swap[root@rac01 /]# vim /etc/fsta

2021-09-01 08:05:57 677

原创 使用zabbix监控oracle数据库

以下是我安装的环境,实际部署时并不需要跟我的环境一样zabbix监控主机Redhat Linux 7.5 + Zabbix server 3.4 + Python 3.6 (系统默认的2.7,我改用的3.6) + Oracle Client 19.12 (x86_64)被监控主机 Oracle 11.2.0.4本文介绍的是使用external check方式去监控oracle数据库。以下所有操作均在zabbix服务器上面执行安装oracle客户端从官网下载如下三个rpm包https://www

2021-08-17 10:22:02 5512 15

原创 使用PL/SQL Developer连接远程oracle数据库

使用PL/SQL Developer连接远程数据库1、先到Oracle网站下载Instant Client :http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html根据你的操作系统选择不同的Instant Client版本我下载的是instantclient-basic-windows.x64-19.11.0.0.0dbru.zip下载会是一个压缩文件,解压之后的文件夹叫:instan

2021-08-12 15:04:10 706

原创 配置Toad连接远端数据库

网上找了好多配置资料都无法成功,根据提示的错误改了好几遍终于连上了1、我电脑是win10_64位,Toad版本是12.8在安装之前还需要下载两个32位包,base和sqlplus包https://www.oracle.com/technetwork/database/features/instant-client/index-097480.htmlinstantclient-basic-nt-19.11.0.0.0dbru.zipinstantclient-sqlplus-nt-19.11.0.0

2021-08-06 22:10:27 1870

原创 zabbix设置企业微信告警

zabbix设置企业微信告警1、找到alertscripts文件夹路径填入zabbix_server.conf[root@zabbixserver ~]# vim /etc/zabbix/zabbix_server.conf AlertScriptsPath=/usr/lib/zabbix/alertscripts2、设置脚本[root@zabbixserver alertscripts]# vim weixin.sh#!/bin/bashCropID='ww9c7af6b78fd0cf0b

2021-07-28 21:25:27 1445

原创 zabbix邮件告警设置外部邮箱或企业内部邮箱

1、安装邮件发送工具mailxyum install mailx2、配置Zabbix服务端外部邮箱或企业内部邮箱vi /etc/mail.rcset [email protected] set smtp=smtp.163.com //或企业内部邮箱SMTP服务器ip:端口号set [email protected] //邮箱账号set smtp-auth-password=123456 //上面邮箱对应的密码set smtp-auth=login3、测试ech

2021-07-26 20:33:04 1283

原创 zabbix-agent5.4安装centos6/7/8/windows

1、linux客户端安装zabbix-agent服务:在线安装下载并安装[root@centos ~]# rpm –ivh https://repo.zabbix.com/zabbix/5.4/rhel/8/x86_64/zabbix-release-5.4-1.el8.noarch.rpm安装zabbix-agent[root@centos ~]# yum install zabbix-agent -y离线安装,下载zabbix-agent导入到linux系统https://repo.za

2021-07-20 17:01:48 1095

原创 zabbix5.4安装部署centos8.4+zabbix5.4+myql8.0+Nginx或Apache

关闭selinux和iptables[root@localhost ~]# systemctl stop firewalld[root@localhost ~]# systemctl disable firewalld[root@localhost ~]# setenforce 0修改主机名[root@localhost ~]# vim /etc/hosts #添加192.168.20.200 zabbixserver下载安装mysql-8.0.25-1.el8.x86_64.rpm-bun

2021-07-18 19:09:03 1934 3

原创 centos7磁盘在线扩容

centos7磁盘在线扩容1、添加新磁盘2、fdisk -l查看磁盘被识别的名称3、如果输入fdisk -l命令没有找到新的磁盘4、 fdisk /dev/sdb输入n-p-1,后面的都按默认值输入继续输入t-L-8e输入wpartprobe /dev/sda创建物理卷pvcreate /dev/sdb1查看物理卷pvdisplayvgdisplay将新增的分区加入/dev/sdb1加入到根目录分区centos_centos7中vgextend centos_centos7 /

2021-07-08 15:17:43 220

原创 Centos7下NFS服务器搭建及客户端连接配置

服务端配置1.关闭防火墙[root@centos7 ~]# systemctl stop firewalld.service[root@centos7 ~]# systemctl disable firewalld.service[root@centos7 ~]# firewall-cmd --statenot running2.关闭selinux临时关闭[root@centos7 ~]# setenforce 0永久关闭[root@centos7 ~]# sed -i 's/^ *

2021-07-08 14:18:59 494

原创 xenserver用xe命令导出/导入虚拟机或快照

用xe命令导出/导入虚拟机或快照导出/导入虚拟机:1、关闭需要导出的虚拟机[root@xenserver /]# xe vm-reset-powerstate force=truevm=虚拟机名2、导出虚拟机[root@xenserver /]# xe vm-export vm=虚拟机名 filename=/my_iso/虚拟机名.xva参数说明:filename=导出虚拟机的路径,这个需要提前挂载一个移动硬盘,或者直接在存储上划分挂载一个LVM卷,我用的是NFS共享3、导入虚拟机(可

2021-07-08 11:46:02 1160

原创 oracle解决sqlplus乱码问题

安装readline和rlwrap解决sqlplus乱码#安装readline#OS的安装光盘里提供了readline包[root@oracle11g ~]# rpm -Uvh readline* [root@oracle11g ~]# rpm -Uvh libtermcap-devel-2.0.8-46.1.i386.rpm [root@oracle11g ~]# rpm -Uvh readline* package readline-5.1-1.1 is already installed

2021-07-06 22:16:27 223

原创 CentOS系统设置Oracle数据库开机自启动

[oracle@localhost ~]$ vim /etc/orataborcl:/u01/app/oracle/product/19.3/dbhome_1:Y #N改为Y[oracle@localhost ~]$ vim $ORACLE_HOME/bin/dbstart[oracle@localhost ~]$ vim $ORACLE_HOME/bin/dbshut#上面两个文件将ORACLE_HOME_LISTNER=$1,修改为ORACLE_HOME_LISTNER=$ORACLE_HOME

2021-07-06 22:09:25 208

原创 oracle学习记录

1.由于安装数据库dbca进行一半时关机,再次dbca,提示(SID)"orcl"已经存在,请指定另一个SID。解决办法:把 /etc/oratab里面对应的记录注释或者删除掉vim /etc/oratab#orcl:/u01/app/oracle/product/19.3/dbhome_1:N2.安装oracle环境变量设置,不需要太复杂,以下设置就行了# vim ~oracle/.bash_profileexport ORACLE_BASE=/u01/app/oracleexport O

2021-06-28 16:40:53 113

原创 docker容器设置ssh登录(ubuntu/centos)

Ubantudocker创建端口映射,并设置ssh登录创建容器(容器内的镜像版本采用ubuntu 20.04.2)[root@localhost ~]# docker run -it -p 1000:22 ubuntu:20.04.2 /bin/bashroot@936d94e0ecb1:/# exitexit查看容器iddocker ps -a启动容器docker start 936d94e0ecb1进入容器docker exec -it 936d94e0ecb1 /bin/

2021-06-18 11:41:29 1518 2

ToadforOracle12.8使用指南中文版.pdf

ToadforOracle12.8使用指南中文版

2021-10-22

rlwrap-0.45.2.tar.gz

解决oracle sqlplus乱码问题

2021-06-30

npc-2.0.4.tar.gz

Nagios的一個插件,可以顯示圖表,非常好用

2014-10-17

nrpe及配置說明

nrpe及配置說明,非常詳細,下載會有很大的驚喜

2014-10-17

nrpe-2.15.tar

用於Nagios監控linux系統的插件

2014-10-17

Win2008_R2_VDI动手实验系列

Win2008_R2_VDI动手实验系列,桌面虚拟化配置文档

2014-01-22

VMware_VDI部署攻略之三:VDI安装及配置

VMware_VDI部署攻略之三:VDI安装及配置

2014-01-22

vmware_View4.5快速部署手册

vmware_View4.5快速部署手册,值得收藏那

2014-01-22

VMware_View_5.1快速安装部署手册v1

VMware_View_5.1快速安装部署手册v1

2014-01-22

VMware_VDI部署实战攻略

VMware_VDI部署实战攻略,桌面虚拟化配置文档

2014-01-22

VMware_VDI部署攻略之二:最佳实践及部署准备

VMware_VDI部署攻略,vdi桌面虚拟化测试文档

2014-01-22

vdi桌面虚拟化文档

vdi桌面虚拟化文档,相当的不错,值得收藏

2014-01-22

rrdtool-1.4.8.tar.gz

rrdtool-1.4.8.tar.gz ,好用的不得了,

2013-09-07

centreon-2.4.4.tar.gz

centreon-2.4.4.tar.gz 很好用,欢迎下载

2013-09-07

cacti-spine-0.8.8b.tar.gz

cacti-spine-0.8.8b.tar.gz 欢迎下载,很好用

2013-09-07

cacti-0.8.8b.tar.gz

cacti-0.8.8b.tar.gz欢迎下载,很好用

2013-09-07

settings-0.5.tar.gz

settings-0.5.tar.gz,目前比较稀缺,欢迎下载,亲测可用

2013-09-06

thold-0.4.3.tar.gz

thold-0.4.3.tar.gz,cacti插件,目前比较稀缺,欢迎下载

2013-09-06

monitor-0.4.3.tar.gz

cacti插件目前比较稀缺,monitor欢迎下载,亲测可用

2013-09-06

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

TA关注的人

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