11 2020 档案
摘要:数据库版本:11.2.0.4 su - gridrm -rf $ORACLE_HOME/*rm -rf $ORACLE_BASE/*[root@localhost grid]# rm -f /etc/oracle/ocr.loc删除相应的文件[root@oracle grid]# cd /etc/o
阅读全文
摘要:MongoDB 默认是不会进行切割日志的,除非我们配置了 logRotate = rename,并且重启 MongoDB 服务,才会进行切割日志的,那么为了避免实际中我们一个日志文件过大,我们需要对日志进行切割,有两个办法方法1:use admindb.auth("sa","123456");db.
阅读全文
摘要:1.下载相应的版本https://www.mongodb.com/download-center/community我这里下载的是mongodb-linux-x86_64-rhel70-4.2.9.tgz 安装部署 1.创建安装目录192.168.1.169:28001对应的安装目录[root@te
阅读全文
摘要:环境: OS:Centos 7 DB:11.2.0.1 Grid infrastructure for a Standalone Server HAS不需要停掉,删除过程会自动停掉,该方法删除后,asm磁盘里的内容同时会清理掉. [grid@localhost deinstall]su - grid
阅读全文
摘要:1.查看多少key/usr/local/services/redis/bin/redis-cli -h 192.168.1.100 -p 6379 -a testtest KEYS "*STOCK*"|wc -l2.导出key到文件/usr/local/services/redis/bin/redi
阅读全文
摘要:1.生成key 192.168.1.50:6379> set name1 hxlOK192.168.1.50:6379> set name2 hxl02OK192.168.1.50:6379> set name3 hxl03OK192.168.1.50:6379> get name1"hxl"192
阅读全文
摘要:tar -xvf mysql-5.7.32-1.el7.x86_64.rpm-bundle.tar得到如下各文件:mysql-community-client-5.7.32-1.el7.x86_64.rpmmysql-community-common-5.7.32-1.el7.x86_64.rpmm
阅读全文
摘要:问题:修改主机名称后,has无法启动hostnamectl set-hostname hxlhostgrid修改主机名后报错误[root@hxlhost bin]# ./crsctl start hasCLSU-00100: Operating System function: opendir fa
阅读全文
摘要:1.使用 fdisk -l 查看到这块新盘为/dev/sde:Disk /dev/sde: 53.7 GB, 53687091200 bytes, 104857600 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/
阅读全文
摘要:1.创建表空间存放目录注意创建的目录不能在data目录下mkdir -p /opt/mysql5730/tps_hxl修改目录属主chown -R mysql:mysql /opt/mysql5730/tps_hxl2.创建表空间mysql> CREATE TABLESPACE tps_hxl AD
阅读全文
摘要:环境: DB:5.7 OS:Centos 7 1.修改配置文件(my.cnf)plugin_dir='/opt/mysql5730/lib/plugin/'2.重新启动/opt/mysql5730/bin/mysqld --defaults-file=/opt/mysql5730/conf/my.c
阅读全文
摘要:cd /downloadwget https://cdn.mysql.com/archives/mysql-utilities/mysql-utilities-1.6.5.tar.gztar xvf mysql-utilities-1.6.5.tar.gzcd mysql-utilities-1.6
阅读全文
摘要:1.尝试导出整个库[root@localhost data]# mysqldump --set-gtid-purged=OFF --tab=/tmp/data db_hxl -u root -pmysqlmysqldump: [Warning] Using a password on the com
阅读全文
摘要:环境: OS:Centos 7 DB:5.7 1.主库创建表,并尝试写入数据create table flush_test( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id', name varchar(32), PRIM
阅读全文
摘要:1.下载mysql5.7我这里下载的是mysql-5.7.32-winx64 2.解压文件夹命名为:D:\soft\mysql57_host01 3.创建相应的目录D:\soft\mysql57_host01\confD:\soft\mysql57_host01\dataD:\soft\mysql5
阅读全文
摘要:机器突然断电导致磁盘组无法使用,尝试对该磁盘组进行重新创建 ORA-15032: not all alterations performedORA-15096: lost disk write detected 1.删除掉磁盘组drop diskgroup data force including
阅读全文
摘要:环境: OS:Centos 7 1.生产规则文件 for i in b c d; do echo "KERNEL==\"sd*\", ENV{DEVTYPE}==\"disk\",SUBSYSTEM==\"block\", PROGRAM==\"/lib/udev/scsi_id -g -u -d
阅读全文
摘要:环境:单节点的Standalone serverasm创建spfile[grid@localhost dbs]$ echo $ORACLE_SID+ASMSQL> create spfile from pfile='/tmp/init+ASM.ora';create spfile from pfil
阅读全文
摘要:原因: 这种问题一般是系统中上次已经装过grid或是没有装成功,而再次安装时报的错 解决方法: [root@localhost grid]# more /etc/oracle/ocr.loc[root@localhost grid]# find / -name "ocr.loc" find: ‘/r
阅读全文