摘要:
博客来源:http://t.zoukankan.com/wuchangsoft-p-12039663.html,请阅读原博客 1、检查oracle用户的资源上限:cat /etc/security/limits.conforacle soft nproc 2047 # oracle告警线程oracl 阅读全文
摘要:
PostgreSQL数据库对于大小写的处理规则比较特殊. 简要总结如下:1.PG数据库是严格区分大小写的.2.默认情况下,PG数据库会把所有的SQL语句都转化成小写然后再执行.说明:加双引号的语句除外.换句话说,如果想成功执行名称中带有大写字母的对象,则需要把对象名称加上双引号. -- 创建exec 阅读全文
摘要:
1. 修改linux系统配置 1.1、修改/etc/sysctl.conf shmall 是全部允许使用的共享内存大小,shmmax 是单个段允许使用的大小。这两个可以设置为内存的 90%。例如 16G 内存,16 * 1024 * 1024 * 1024 * * 90% = 15461882265 阅读全文
摘要:
1. oracle 加密解密: 1)进入oracle命令行(sqlplus /as sysdba) 或登录oracle 管理员账号 2)执行赋权命令-赋权命令需在加密解密函数之前执行 ehrds 是用户名grant execute on sys.dbms_crypto to ehrds; grant 阅读全文
摘要:
1. 转发ip和端口 listen 9800; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location /{ proxy_pass http://11.55.38.60:9800; 阅读全文
摘要:
1. 多键唯一索引 a.loc 和 a.qty 为符合多键索引 db.collection.createIndex( { "a.loc": 1, "a.qty": 1 }, { unique: true } ) 如: db.getCollection("Name,idcardNo").createI 阅读全文
摘要:
mongo 4.2- 4.4 1. 启用安全认证 修改配置文件: security: authorization: enabled 2. 创建用户密码:用户是相对于数据库而言的,也要设置 admin 数据库的密码 db.createUser({ user: "admin", pwd: "123qwe 阅读全文
摘要:
思路:1.为了保证数据的一致性,必须先关闭应用的写服务。2.提升要升级为Primary节点的Secondary节点的优先级。 操作如下,在主节点上执行: arps:PRIMARY> config=rs.conf() //查看当前配置,存入config变量中。 arps:PRIMARY> config 阅读全文
摘要:
声明:博客来源: https://zhuanlan.zhihu.com/p/90211788 掌握如下内容 mongodb数据库前提: 1 连接 MongoDB 数据库 1.1 创建工程(maven:jar) 在 POM 文件中添加 MongoDB 驱动坐标 <!-添加 MongoDB驱动坐标 -- 阅读全文
摘要:
1. 官方链接: https://docs.mongodb.com/v4.4/tutorial/install-mongodb-enterprise-on-red-hat/ 1、配置存储库。 创建一个/etc/yum.repos.d/mongodb-enterprise-4.4.repo文件,以便您 阅读全文