首页 > 数据库 >更改数据库实例名(生产勿操作)

更改数据库实例名(生产勿操作)

时间:2024-08-09 19:23:26浏览次数:13  
标签:testosa testosc testosb 更改 数据库 实例 ONLINE OFFLINE ora

单实例修改实例名

单实例的数据库修改SID比较简单,只需要修改pfile相关参数,就可以挂载数据库

RAC 更改实例名

环境说明

#集群状态
[root@testosa ~]# crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.DATA02.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.GRID.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.LISTENER.lsnr
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.RECOVERY.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.asm
               ONLINE  ONLINE       testosa                  Started             
               ONLINE  ONLINE       testosb                  Started             
               ONLINE  ONLINE       testosc                  Started             
ora.gsd
               OFFLINE OFFLINE      testosa                                      
               OFFLINE OFFLINE      testosb                                      
               OFFLINE OFFLINE      testosc                                      
ora.net1.network
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.ons
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       testosa                                      
ora.cvu
      1        ONLINE  ONLINE       testosa                                      
ora.oc4j
      1        ONLINE  ONLINE       testosa                                      
ora.rac_db.db
      1        ONLINE  ONLINE       testosc                  Open                
      2        ONLINE  ONLINE       testosa                  Open                
      3        ONLINE  ONLINE       testosb                  Open                
ora.scan1.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosa.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosb.vip
      1        ONLINE  ONLINE       testosb                                      
ora.testosc.vip
      1        ONLINE  ONLINE       testosc                                      
[root@testosa ~]# 


[root@testosa ~]# srvctl status database -d rac_db
Instance racdb_2 is running on node testosa
Instance racdb_3 is running on node testosb
Instance racdb_1 is running on node testosc
[root@testosa ~]# 



#sql查询实例相关信息
SQL> select HOST_NAME,INSTANCE_NUMBER,INSTANCE_NAME,STATUS from gv$instance order by 1;

HOST_NAME INSTANCE_NUMBER INSTANCE_NAME STATUS
--------- --------------- ------------- ------
testosa                 2 racdb_2       OPEN
testosb                 3 racdb_3       OPEN
testosc                 1 racdb_1       OPEN

SQL> 

现在需要修改为以下效果:

HOST_NAME INSTANCE_NUMBER INSTANCE_NAME STATUS
--------- --------------- ------------- ------
testosa                 1 racdb_1       OPEN
testosb                 2 racdb_2       OPEN
testosc                 3 racdb_3       OPEN

更改实例名步骤

修改各个节点数据库参数

-- 查看参数类型
SQL> select NAME,VALUE,ISDEFAULT,ISSES_MODIFIABLE,ISSYS_MODIFIABLE,ISINSTANCE_MODIFIABLE,ISMODIFIED,ISBASIC
  2  from v$parameter where name = 'instance_name';

NAME          VALUE   ISDEFAULT ISSES_MODIFIABLE ISSYS_MODIFIABLE ISINSTANCE_MODIFIABLE ISMODIFIED ISBASIC
------------- ------- --------- ---------------- ---------------- --------------------- ---------- -------
instance_name racdb_1 TRUE      FALSE            FALSE            FALSE                 FALSE      FALSE


-- 修改 INSTANCE_NAME 参数
SQL> alter system set INSTANCE_NAME='racdb_1' scope=spfile sid='racdb_2';

System altered.

SQL> alter system set INSTANCE_NAME='racdb_2' scope=spfile sid='racdb_3';

System altered.

SQL> alter system set INSTANCE_NAME='racdb_3' scope=spfile sid='racdb_1';

System altered.

-- 重启所有实例
[root@testosa ~]# srvctl stop database -d rac_db
[root@testosa ~]# 
[root@testosa ~]# srvctl start database -d rac_db
[root@testosa ~]# 

-- 查询实例运行状态
[root@testosa ~]# srvctl status database -d rac_db
Instance racdb_1 is running on node testosa
Instance racdb_2 is running on node testosb
Instance racdb_3 is running on node testosc
[root@testosa ~]# 

-- sql查询实例相关信息
SQL> select HOST_NAME,INSTANCE_NUMBER,INSTANCE_NAME,STATUS from gv$instance order by 1;

HOST_NAME  INSTANCE_NUMBER INSTANCE_NAME                    STATUS
---------- --------------- -------------------------------- ------------------------
testosa                  1 racdb_1                          OPEN
testosb                  2 racdb_2                          OPEN
testosc                  3 racdb_3                          OPEN

如上可以看出参数里面修改OK了

#查询集群资源信息
[root@testosa ~]# crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.DATA02.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.GRID.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.LISTENER.lsnr
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.RECOVERY.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.asm
               ONLINE  ONLINE       testosa                  Started             
               ONLINE  ONLINE       testosb                  Started             
               ONLINE  ONLINE       testosc                  Started             
ora.gsd
               OFFLINE OFFLINE      testosa                                      
               OFFLINE OFFLINE      testosb                                      
               OFFLINE OFFLINE      testosc                                      
ora.net1.network
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.ons
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       testosa                                      
ora.cvu
      1        ONLINE  ONLINE       testosb                                      
ora.oc4j
      1        ONLINE  ONLINE       testosb                                      
ora.rac_db.db
      1        ONLINE  ONLINE       testosc                  Open              # 还需要修改此处信息
      2        ONLINE  ONLINE       testosa                  Open                
      3        ONLINE  ONLINE       testosb                  Open                
ora.scan1.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosa.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosb.vip
      1        ONLINE  ONLINE       testosb                                      
ora.testosc.vip
      1        ONLINE  ONLINE       testosc                                      
[root@testosa ~]# 

如上集群的信息里面,还是乱的

更新ocr信息

移除数据库注册信息
#先停止数据库
[root@testosa ~]# srvctl stop database -d rac_db
[root@testosa ~]# 

#移除数据库注册信息
[root@testosa ~]# srvctl remove database -d rac_db
Remove the database rac_db? (y/[n]) y
[root@testosa ~]# 


#查询集群资源信息
[root@testosa ~]# crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.DATA02.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.GRID.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.LISTENER.lsnr
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.RECOVERY.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.asm
               ONLINE  ONLINE       testosa                  Started             
               ONLINE  ONLINE       testosb                  Started             
               ONLINE  ONLINE       testosc                  Started             
ora.gsd
               OFFLINE OFFLINE      testosa                                      
               OFFLINE OFFLINE      testosb                                      
               OFFLINE OFFLINE      testosc                                      
ora.net1.network
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.ons
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       testosa                                      
ora.cvu
      1        ONLINE  ONLINE       testosb                                      
ora.oc4j
      1        ONLINE  ONLINE       testosb                                      
ora.scan1.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosa.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosb.vip
      1        ONLINE  ONLINE       testosb                                      
ora.testosc.vip
      1        ONLINE  ONLINE       testosc                                      
[root@testosa ~]# 
重新注册数据库(oracle用户操作)
[oracle@testosa:/home/oracle]$srvctl add database -d rac_db -o /oracle/app/oracle/product/11.2.0/db_1
[oracle@testosa:/home/oracle]$

#查询集群资源状态
[root@testosa ~]# crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.DATA02.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.GRID.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.LISTENER.lsnr
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.RECOVERY.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.asm
               ONLINE  ONLINE       testosa                  Started             
               ONLINE  ONLINE       testosb                  Started             
               ONLINE  ONLINE       testosc                  Started             
ora.gsd
               OFFLINE OFFLINE      testosa                                      
               OFFLINE OFFLINE      testosb                                      
               OFFLINE OFFLINE      testosc                                      
ora.net1.network
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.ons
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       testosa                                      
ora.cvu
      1        ONLINE  ONLINE       testosb                                      
ora.oc4j
      1        ONLINE  ONLINE       testosb                                      
ora.rac_db.db
      1        OFFLINE OFFLINE                                                   
ora.scan1.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosa.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosb.vip
      1        ONLINE  ONLINE       testosb                                      
ora.testosc.vip
      1        ONLINE  ONLINE       testosc                                      
[root@testosa ~]# 
重新注册实例信息
[root@testosa ~]# srvctl add instance -d rac_db -i racdb_1 -n testosa
[root@testosa ~]# 
[root@testosa ~]# srvctl add instance -d rac_db -i racdb_2 -n testosb
[root@testosa ~]# 
[root@testosa ~]# srvctl add instance -d rac_db -i racdb_3 -n testosc
[root@testosa ~]# 



#查询集群资源状态
[root@testosa ~]# crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.DATA02.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.GRID.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.LISTENER.lsnr
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.RECOVERY.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.asm
               ONLINE  ONLINE       testosa                  Started             
               ONLINE  ONLINE       testosb                  Started             
               ONLINE  ONLINE       testosc                  Started             
ora.gsd
               OFFLINE OFFLINE      testosa                                      
               OFFLINE OFFLINE      testosb                                      
               OFFLINE OFFLINE      testosc                                      
ora.net1.network
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.ons
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       testosa                                      
ora.cvu
      1        ONLINE  ONLINE       testosb                                      
ora.oc4j
      1        ONLINE  ONLINE       testosb                                      
ora.rac_db.db
      1        OFFLINE OFFLINE                                                   
      2        OFFLINE OFFLINE                                                   
      3        OFFLINE OFFLINE                                                   
ora.scan1.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosa.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosb.vip
      1        ONLINE  ONLINE       testosb                                      
ora.testosc.vip
      1        ONLINE  ONLINE       testosc                                      
[root@testosa ~]# 


#启动数据库
[root@testosa ~]# srvctl start database -d rac_db
[root@testosa ~]# 


#查询集群资源状态
[root@testosa ~]# crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.DATA02.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.GRID.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.LISTENER.lsnr
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.RECOVERY.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.asm
               ONLINE  ONLINE       testosa                  Started             
               ONLINE  ONLINE       testosb                  Started             
               ONLINE  ONLINE       testosc                  Started             
ora.gsd
               OFFLINE OFFLINE      testosa                                      
               OFFLINE OFFLINE      testosb                                      
               OFFLINE OFFLINE      testosc                                      
ora.net1.network
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.ons
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       testosa                                      
ora.cvu
      1        ONLINE  ONLINE       testosb                                      
ora.oc4j
      1        ONLINE  ONLINE       testosb                                      
ora.rac_db.db
      1        ONLINE  ONLINE       testosa                  Open                
      2        ONLINE  ONLINE       testosb                  Open                
      3        ONLINE  ONLINE       testosc                  Open                
ora.scan1.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosa.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosb.vip
      1        ONLINE  ONLINE       testosb                                      
ora.testosc.vip
      1        ONLINE  ONLINE       testosc                                      
[root@testosa ~]# 

检查实例名

#数据库查询
SQL> select HOST_NAME,INSTANCE_NUMBER,INSTANCE_NAME,STATUS from gv$instance order by 1;

HOST_NAME  INSTANCE_NUMBER INSTANCE_NAME                    STATUS
---------- --------------- -------------------------------- ------------------------
testosa                  1 racdb_1                          OPEN
testosb                  2 racdb_2                          OPEN
testosc                  3 racdb_3                          OPEN

SQL> 

#集群资源查询
[root@testosa ~]# crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.DATA02.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.GRID.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.LISTENER.lsnr
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.RECOVERY.dg
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.asm
               ONLINE  ONLINE       testosa                  Started             
               ONLINE  ONLINE       testosb                  Started             
               ONLINE  ONLINE       testosc                  Started             
ora.gsd
               OFFLINE OFFLINE      testosa                                      
               OFFLINE OFFLINE      testosb                                      
               OFFLINE OFFLINE      testosc                                      
ora.net1.network
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
ora.ons
               ONLINE  ONLINE       testosa                                      
               ONLINE  ONLINE       testosb                                      
               ONLINE  ONLINE       testosc                                      
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       testosa                                      
ora.cvu
      1        ONLINE  ONLINE       testosb                                      
ora.oc4j
      1        ONLINE  ONLINE       testosb                                      
ora.rac_db.db
      1        ONLINE  ONLINE       testosa                  Open                
      2        ONLINE  ONLINE       testosb                  Open                
      3        ONLINE  ONLINE       testosc                  Open                
ora.scan1.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosa.vip
      1        ONLINE  ONLINE       testosa                                      
ora.testosb.vip
      1        ONLINE  ONLINE       testosb                                      
ora.testosc.vip
      1        ONLINE  ONLINE       testosc                                      
[root@testosa ~]# 

参考资料

https://blog.csdn.net/weixin_42405705/article/details/116328072

https://blog.csdn.net/weixin_39992199/article/details/116328076

标签:testosa,testosc,testosb,更改,数据库,实例,ONLINE,OFFLINE,ora
From: https://blog.csdn.net/weixin_tank88921/article/details/140880268

相关文章

  • Oracle数据库巡检
    数据库巡检列表序号业务系统1主机名2操作系统4单机/RAC4IP地址5地址类型6数据类型7数据库版本8实例名巡检方案检查方面具体检查内容检查标准集群配置集群软件版本集群软件版本要等于或高于DB软件版本集群服务状态各种服务状态(除GSD外)需是ONLINE注:使用asfforrac的环境下......
  • 瞎猫碰到死耗子,安卓nt_qq数据库密钥算法
    这个我实际上弄了很久了,一开始更新的时候,发现数据库操作都是在so里,那时候是在libkernel.so里直接hooksqlcipher的密钥函数拿到的密钥,32位字符串,很容易让人联想到md5,但是没有找到在哪里计算的最近又想着做一下,这时打开数据库的so就变了,这是easyFrida的sofileopen插件hook出来的......
  • 数据库索引技术概览
    目录前言B-Tree(B树)索引:Hash索引:倒排索引(InvertedIndex):空间索引(SpatialIndex):时序索引(TemporalIndex):BitmapIndex(位图索引):R-Tree/R+Tree索引:Trie(字典树)索引:LSMTree(Log-StructuredMergeTree)索引:GiST(GeneralizedSearchTree)索引:数据库索引技术对比分析结论......
  • 达梦数据库有关hash及分组等操作相关优化
    最近在项目中调试存储过程碰到一些关于hash及分组相关的性能问题示例1:在调试过程中, 该sql执行很久后面报超出全局hashjoin空间的错误,重新调整HJ_BUF_GLOBAL_SIZE,执行一个小时也不出结果。INSERTINTOt_test(SELECTFundID,SeatNo,SUM(Balance),SUM(Available),SUM(In......
  • MySQL数据库迁移到Postgres
    一、使用pgloader进行迁移1.安装pgloader:sudoapt-getinstallpgloader2.使用pgloader迁移数据:pgloadermysql://username:password@localhost/source_dbpostgresql://username:password@localhost/destination_dbQ、异常解析Q1KABOOM!FATALerror:Failedtocon......
  • 数据库安全-ElasticSearch漏洞复现
    CVE-2014-3120命令执行漏洞一、漏洞详情老版本ElasticSearch支持传入动态脚本(MVEL)来执行一些复杂的操作,而MVEL可执行Java代码,而且没有沙盒,所以我们可以直接执行任意代码。MVEL执行命令代码:importjava.io.*;newjava.util.Scanner(Runtime.getRuntime().exec("whoami").getIn......
  • LVS原理及实例
    目录LVS原理LVS概念lvs集群的类型lvs-nat解释传输过程lvs-dr解释传输过程 特点lvs-tun LVS(LinuxVirtualServer)常见的调度算法防火墙标记(FirewallMarking)结合轮询调度实战案例lvs的nat模式配置准备工作配置过程测试结果lvs的dr模式综合实践虚拟机配置......
  • 派胜OA ExpressOA 3.0 现已支持 PostgreSQL 16 开源数据库
    ExpressOA3.0跨平台,高性能,现代化的协同办公平台系统。ExpressOA3.0现已支持PostgreSQL16开源数据库-世界上功能最强大的开源数据库。下载派胜OA最新版:www.paioffice.comPostgreSQL是全球最先进的开源数据库,它的全球社区是一个拥有数以千计的用户、贡献者、公司和组织组......
  • JSP古诗词学习系统3we8k(程序+源码+数据库+调试部署+开发环境)
    本系统(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面。系统程序文件列表技术要求:开发语言:JSP前端使用:HTML5,CSS,JSP动态网页技术后端使用SpringBoot,Spring技术主数据库使用MySQL开题报告内容一、项目背景与意义古诗词作为中华文......
  • JSP个人信息管理系统0w9j8--程序+源码+数据库+调试部署+开发环境
    本系统(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面。系统程序文件列表系统功能:用户,密码表,账单表,记事本,备忘录,充电站,学习总结,工作总结,好友列表开题报告内容一、项目背景与意义随着信息技术的飞速发展,个人信息的管理变得越......