01 2024 档案
摘要:环境:OS:Centos 7DB:v11.5.6 主库:192.168.1.135 host135从库:192.168.1.134 host134 说明:a.主库已经运行并有数据库DB_HXL,DB_HXL01可以使用如下命令查看:db2 list database directory b.主数据库
阅读全文
摘要:环境: Os:Centos 7 DB:V11.5.6 1.查看数据库是否处于归档模式 [db2inst1@host135 SQL00001]$ db2 get db cfg for db_hxl|grep LOGARCH First log archive method (LOGARCHMETH1)
阅读全文
摘要:环境 OS:Centos 7 DB:11.5.6 1.登录数据库 [db2inst1@host135 SQL00001]$ db2 db2 => connect to db_hxl 2.列出当前实例上所有的数据库 [db2inst1@host135 backup]$ db2 list databas
阅读全文
摘要:环境:OS:Centos 7DB:v11.5.6 1.解压[root@host135 db2]# tar -xvf v11.5.6_linuxx64_server_dec.tar.gz[root@host135 db2]# mv server_dec /opt/db2 2.检查安装环境[root@h
阅读全文
摘要:[root@localhost scripts]# more run_mongodb_cmd.sh #!/bin/bash /usr/local/services/mongodb/bin/mongo localhost:28001 << EOF use admin db.auth("root","1
阅读全文
摘要:环境:OS:Centos 7DB:4.4.13 1.创建账号并授权(在admin下创建账号) /usr/local/services/mongodb/bin/mongo localhost:28001 use admin db.auth("root","root123"); db.createUse
阅读全文
摘要:环境:OS:Centos 7db:4.4.13 1.下载相应的版本https://www.mongodb.com/download-center/community我这里下载的是mongodb-linux-x86_64-rhel70-4.4.13.tgz 2.创建安装目录[root@test ser
阅读全文
摘要:环境:OS:Centos 7ES:6.8.5 1.查看当前的安装的插件[root@hadoop-slave1 soft]# curl -u elastic:123456 -X GET "http://192.168.1.63:19200/_cat/plugins?v&s=component&h=na
阅读全文
摘要:环境: OS:windows server 2019 db:sql server 2012
阅读全文
摘要:环境: python:3.6.5 pymssql:2.1.5 db:sql server 2012 #!/usr/bin/env python #coding=utf-8 import os, json, urllib, datetime, shutil import time import pym
阅读全文
摘要:环境:OS:Centos 7DB:sql server 2017 1.数据存放目录:[root@cdc-henan-cdhworker02 data]# pwd/var/opt/mssql/data 2.登录查询(必须输入go):sqlcmd -S localhost -U sa -P 'Aa123
阅读全文