ORACLE19.8 RAC搭建ADG-主备都在原主机上 静态监听

news2024/11/18 7:24:28

ORACLE19.8 RAC搭建ADG-主备都在原主机上配置关于PDB连接

标签: oracle19c

我们知道多租户环境下,pdb中建立的普通用户连接pdb需要通过tnsnames.ora或ezconnect的方式连接。而pdb的连接需要通过IP、端口和PDB服务名来连接,那么相同主机adg的情况下,备库的IP和PDB和主库是完全相同的。所以我们只能考虑通过区分端口来进行主备pdb的连接。

配置需要考虑如下步骤:

1.grid通过netca创建新的监听服务比如DGLISTENER,端口为2521(不能使用主机已经占用的端口)

2.grid用户创建好新的监听后,修改监听文件添加静态注册参数:

节点1添加实例1的名称:

 
  1. DGLISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=DGLISTENER)))) # line added by Agent

  2. LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent

  3. LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent

  4. ASMNET1LSNR_ASM=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=ASMNET1LSNR_ASM)))) # line added by Agent

  5. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_ASMNET1LSNR_ASM=ON # line added by Agent

  6. VALID_NODE_CHECKING_REGISTRATION_ASMNET1LSNR_ASM=SUBNET # line added by Agent

  7. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent

  8. VALID_NODE_CHECKING_REGISTRATION_LISTENER_SCAN1=OFF # line added by Agent - Disabled by Agent because REMOTE_REGISTRATION_ADDRESS is set

  9. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent

  10. VALID_NODE_CHECKING_REGISTRATION_LISTENER=SUBNET # line added by Agent

  11. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_DGLISTENER=ON # line added by Agent

  12. VALID_NODE_CHECKING_REGISTRATION_DGLISTENER=SUBNET # line added by Agent

  13. SID_LIST_LISTENER =

  14. (SID_LIST =

  15. (SID_DESC =

  16. (GLOBAL_DBNAME = orcl)

  17. (ORACLE_HOME = /oracle/app/oracle/product/19c/dbhome_1)

  18. (SID_NAME = orcl1)

  19. )

  20. (SID_DESC =

  21. (GLOBAL_DBNAME = orcl_DGMGRL)

  22. (ORACLE_HOME = /oracle/app/oracle/product/19c/dbhome_1)

  23. (SID_NAME = orcl1)

  24. )

  25. )

  26. SID_LIST_DGLISTENER =

  27. (SID_LIST =

  28. (SID_DESC =

  29. (GLOBAL_DBNAME = dgorcl)

  30. (ORACLE_HOME = /oracle/app/oracle/product/19c/dbhome_1)

  31. (SID_NAME = dgorcl1)

  32. )

  33. (SID_DESC =

  34. (GLOBAL_DBNAME = dgorcl_DGMGRL)

  35. (ORACLE_HOME = /oracle/app/oracle/product/19c/dbhome_1)

  36. (SID_NAME = dgorcl1)

  37. )

  38. )

节点2添加实例2的名称:

 
  1. DGLISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=DGLISTENER)))) # line added by Agent

  2. LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent

  3. LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent

  4. ASMNET1LSNR_ASM=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=ASMNET1LSNR_ASM)))) # line added by Agent

  5. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_ASMNET1LSNR_ASM=ON # line added by Agent

  6. VALID_NODE_CHECKING_REGISTRATION_ASMNET1LSNR_ASM=SUBNET # line added by Agent

  7. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent

  8. VALID_NODE_CHECKING_REGISTRATION_LISTENER=SUBNET # line added by Agent

  9. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent

  10. VALID_NODE_CHECKING_REGISTRATION_LISTENER_SCAN1=OFF # line added by Agent - Disabled by Agent because REMOTE_REGISTRATION_ADDRESS is set

  11. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_DGLISTENER=ON # line added by Agent

  12. VALID_NODE_CHECKING_REGISTRATION_DGLISTENER=SUBNET # line added by Agent

  13. SID_LIST_LISTENER =

  14. (SID_LIST =

  15. (SID_DESC =

  16. (GLOBAL_DBNAME = orcl)

  17. (ORACLE_HOME = /oracle/app/oracle/product/19c/dbhome_1)

  18. (SID_NAME = orcl2)

  19. )

  20. (SID_DESC =

  21. (GLOBAL_DBNAME = orcl_DGMGRL)

  22. (ORACLE_HOME = /oracle/app/oracle/product/19c/dbhome_1)

  23. (SID_NAME = orcl2)

  24. )

  25. )

  26. SID_LIST_DGLISTENER =

  27. (SID_LIST =

  28. (SID_DESC =

  29. (GLOBAL_DBNAME = dgorcl)

  30. (ORACLE_HOME = /oracle/app/oracle/product/19c/dbhome_1)

  31. (SID_NAME = dgorcl2)

  32. )

  33. (SID_DESC =

  34. (GLOBAL_DBNAME = dgorcl_DGMGRL)

  35. (ORACLE_HOME = /oracle/app/oracle/product/19c/dbhome_1)

  36. (SID_NAME = dgorcl2)

  37. )

  38. )

重启监听:

srvctl stop listener -l LISTENER
srvctl stop listener -l DGLISTENER
srvctl start listener -l LISTENER
srvctl start listener -l DGLISTENER

检查服务:

lsnrctl status LISTENER
lsnrctl status DGLISTENER

3.oracle用户添加tnsnames.ora

两个节点内容一致,设置如下:

 
  1. [oracle@rac1 admin]$ cat tnsnames.ora

  2. # tnsnames.ora Network Configuration File: /oracle/app/oracle/product/19c/dbhome_1/network/admin/tnsnames.ora

  3. # Generated by Oracle configuration tools.

  4. scan-orcl =

  5. (DESCRIPTION =

  6. (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))

  7. (CONNECT_DATA =

  8. (SERVER = DEDICATED)

  9. (SERVICE_NAME = orcl)

  10. )

  11. )

  12. scan-dgorcl =

  13. (DESCRIPTION =

  14. (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 2521))

  15. (CONNECT_DATA =

  16. (SERVER = DEDICATED)

  17. (SERVICE_NAME = dgorcl)

  18. )

  19. )

  20. scan_orcl_pdb =

  21. (DESCRIPTION =

  22. (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))

  23. (CONNECT_DATA =

  24. (SERVER = DEDICATED)

  25. (SERVICE_NAME = pdb)

  26. )

  27. )

  28. scan_dgorcl_pdb =

  29. (DESCRIPTION =

  30. (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 2521))

  31. (CONNECT_DATA =

  32. (SERVER = DEDICATED)

  33. (SERVICE_NAME = pdb)

  34. )

  35. )

  36. scan_orcl_jyc =

  37. (DESCRIPTION =

  38. (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))

  39. (CONNECT_DATA =

  40. (SERVER = DEDICATED)

  41. (SERVICE_NAME = jyc)

  42. )

  43. )

  44. scan_dgorcl_jyc =

  45. (DESCRIPTION =

  46. (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 2521))

  47. (CONNECT_DATA =

  48. (SERVER = DEDICATED)

  49. (SERVICE_NAME = jyc)

  50. )

  51. )

  52. orcl =

  53. (DESCRIPTION =

  54. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 1521))

  55. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 1521))

  56. (CONNECT_DATA =

  57. (SERVER = DEDICATED)

  58. (SERVICE_NAME = orcl)

  59. )

  60. )

  61. dgorcl =

  62. (DESCRIPTION =

  63. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 2521))

  64. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 2521))

  65. (CONNECT_DATA =

  66. (SERVER = DEDICATED)

  67. (SERVICE_NAME = dgorcl)

  68. )

  69. )

  70. tns_orcl =

  71. (DESCRIPTION =

  72. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 1521))

  73. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 1521))

  74. (CONNECT_DATA =

  75. (SERVER = DEDICATED)

  76. (SERVICE_NAME = orcl)

  77. )

  78. )

  79. tns_dgorcl =

  80. (DESCRIPTION =

  81. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 2521))

  82. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 2521))

  83. (CONNECT_DATA =

  84. (SERVER = DEDICATED)

  85. (SERVICE_NAME = dgorcl)

  86. )

  87. )

  88. orcl_pdb =

  89. (DESCRIPTION =

  90. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 1521))

  91. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 1521))

  92. (CONNECT_DATA =

  93. (SERVER = DEDICATED)

  94. (SERVICE_NAME = pdb)

  95. )

  96. )

  97. dgorcl_pdb =

  98. (DESCRIPTION =

  99. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 2521))

  100. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 2521))

  101. (CONNECT_DATA =

  102. (SERVER = DEDICATED)

  103. (SERVICE_NAME = pdb)

  104. )

  105. )

  106. orcl_jyc =

  107. (DESCRIPTION =

  108. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 1521))

  109. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 1521))

  110. (CONNECT_DATA =

  111. (SERVER = DEDICATED)

  112. (SERVICE_NAME = jyc)

  113. )

  114. )

  115. dgorcl_jyc =

  116. (DESCRIPTION =

  117. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 2521))

  118. (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 2521))

  119. (CONNECT_DATA =

  120. (SERVER = DEDICATED)

  121. (SERVICE_NAME = jyc)

  122. )

  123. )

tnsping 服务名测试,确认OK:

[oracle@rac1 admin]$ tnsping orcl

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 31-JUL-2020 11:22:18

Copyright (c) 1997, 2020, Oracle.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK (0 msec)
[oracle@rac1 admin]$ tnsping dgorcl

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 31-JUL-2020 11:22:21

Copyright (c) 1997, 2020, Oracle.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.183)(PORT = 2521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.52.184)(PORT = 2521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = dgorcl)))
OK (0 msec)

4.修改LOCAL_LISTENER、remote_listener

增加scan listener端口

srvctl modify scan_listener -endpoints "TCP:1521/TCP:2521"

节点1:
export ORACLE_SID=orcl1
sqlplus / as sysdba
alter system set local_listener ='(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.52.183)(PORT=1521))' scope=both sid='orcl1';
alter system set remote_listener ='rac-scan:1521' scope=both sid='orcl1';
export ORACLE_SID=dgorcl1
sqlplus / as sysdba
alter system set local_listener ='(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.52.183)(PORT=2521))' scope=both sid='dgorcl1';
alter system set remote_listener ='rac-scan:2521' scope=both sid='dgorcl1';

节点2:
export ORACLE_SID=orcl2
sqlplus / as sysdba
alter system set local_listener ='(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.52.184)(PORT=1521))' scope=both sid='orcl2';
alter system set remote_listener ='rac-scan:1521' scope=both sid='orcl2';
export ORACLE_SID=dgorcl2
sqlplus / as sysdba
alter system set local_listener ='(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.52.184)(PORT=2521))' scope=both sid='dgorcl2';
alter system set remote_listener ='rac-scan:2521' scope=both sid='dgorcl2';

重启监听:

srvctl stop listener -l LISTENER
srvctl stop listener -l DGLISTENER
srvctl start listener -l LISTENER
srvctl start listener -l DGLISTENER

检查服务,确认端口1521只监听主库的服务,2521只监听备库的服务,基本就没问题了。一般测试过程结合数据库后台日志alert查看是否有异常,根据问题再排查处理即可。

lsnrctl status LISTENER
lsnrctl status DGLISTENER

5.测试连接:

sqlplus sys/oracle@orcl as sysdba
sqlplus sys/oracle@dgorcl as sysdba
sqlplus jyc/jyc@dgorcl_pdb
sqlplus jyc/jyc@dgorcl_jyc

[oracle@rac1 ~]$ sqlplus sys/oracle@dgorcl as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Fri Jul 31 11:27:13 2020
Version 19.8.0.0.0

Copyright (c) 1982, 2020, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.8.0.0.0

SQL> show parameter name;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cdb_cluster_name                     string
cell_offloadgroup_name               string
db_file_name_convert                 string      +DATA, +DATA
db_name                              string      orcl
db_unique_name                       string      dgorcl
global_names                         boolean     FALSE
instance_name                        string      dgorcl1
lock_name_space                      string
log_file_name_convert                string      +DATA, +DATA
pdb_file_name_convert                string
processor_group_name                 string

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
service_names                        string      dgorcl
SQL> select INSTANCE_NUMBER from v$instance;

INSTANCE_NUMBER
---------------
              1

SQL> conn jyc/jyc@dgorcl_pdb
ERROR:
ORA-01109: database not open


Warning: You are no longer connected to ORACLE.
SQL> conn jyc/jyc@dgorcl_pdb
ERROR:
ORA-01109: database not open


SQL> conn jyc/jyc@dgorcl_jyc
ERROR:
ORA-01109: database not open


SQL> conn sys/oracle@dgorcl as sysdba
Connected.
SQL> show pdbs;

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 PDB                            MOUNTED
         4 JYC                            MOUNTED
SQL> alter pluggable database all open instances=all;

Pluggable database altered.

SQL> show pdbs;

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 PDB                            READ ONLY  NO
         4 JYC                            READ ONLY  NO
SQL> alter database recover managed standby database using current logfile disconnect;

Database altered.

SQL> set line 160
SQL> set wrap off
SQL> col inst_id for 99
SQL> col FORCE_LOGGING for a4
SQL> select INST_ID, dbid,name,DB_UNIQUE_NAME,current_scn,protection_mode,database_role,force_logging,open_mode,switchover_status from gv$database

INST_ID       DBID NAME      DB_UNIQUE_NAME                 CURRENT_SCN PROTECTION_MODE      DATABASE_ROLE    FORC OPEN_MODE            SWITCHOVER_STATUS
------- ---------- --------- ------------------------------ ----------- -------------------- ---------------- ---- -------------------- --------------------
      1 1574560670 ORCL      dgorcl                             4477548 MAXIMUM PERFORMANCE  PHYSICAL STANDBY YES  READ ONLY WITH APPLY NOT ALLOWED
      2 1574560670 ORCL      dgorcl                             4477548 MAXIMUM PERFORMANCE  PHYSICAL STANDBY YES  READ ONLY WITH APPLY NOT ALLOWED

SQL> conn sys/oracle@orcl as sysdba
Connected.
SQL> select INST_ID, dbid,name,DB_UNIQUE_NAME,current_scn,protection_mode,database_role,force_logging,open_mode,switchover_status from gv$database;

INST_ID       DBID NAME      DB_UNIQUE_NAME                 CURRENT_SCN PROTECTION_MODE      DATABASE_ROLE    FORC OPEN_MODE            SWITCHOVER_STATUS
------- ---------- --------- ------------------------------ ----------- -------------------- ---------------- ---- -------------------- --------------------
      2 1574560670 ORCL      orcl                               4477580 MAXIMUM PERFORMANCE  PRIMARY          YES  READ WRITE           TO STANDBY
      1 1574560670 ORCL      orcl                               4477580 MAXIMUM PERFORMANCE  PRIMARY          YES  READ WRITE           TO STANDBY

SQL> conn jyc/jyc@dgorcl_pdb
Connected.
SQL> conn jyc/jyc@dgorcl_jyc
Connected.
SQL> 

版权声明:本文为jycjyc原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:oracle19.8 rac搭建adg-主备都在原主机上配置关于pdb连接_adg 备库pdb连接_好记忆不如烂笔头abc的博客-CSDN博客

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/852514.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

轻辙视觉引擎以多种AI算法工具,助力纺织行业断线检测智能识别

近年来,人工智能技术在各行各业的应用愈发广泛,机器视觉作为人工智能的重要分支,成为当下的研究热点。机器视觉技术的发展,大幅提升了工业、农业、医疗等领域的效率和精度。尤其在工业领域,随着智能制造的进一步发展&a…

如何更改或伪装浏览器指纹?

跨境出海经常会出现被某些网站“禁止访问”的情况,为什么呢?其中一部分原因就是因为你的浏览器制备被网站和在线平台识别到,从而得出设备和网络详细信息,从而禁止你的访问。这种独特的配置文件称为“浏览器指纹”,使网…

艺术创作的新纪元:如何训练Lora模型打造令人惊叹的AI绘画

目录 前言一、🦁 选择合适的云端平台1-1、云端平台的优势1-2、选择适合的云端平台 二、🦁 账号注册三、🦁 开始炼丹3-1、购买算力并创建工作空间3-2、启动工作空间3-3、应用市场一键安装 四、🦁 使用Stable-Diffusion作图4-1、国风…

软考高项(八)项目整合管理 ★重点集萃★

👑 个人主页 👑 :😜😜😜Fish_Vast😜😜😜 🐝 个人格言 🐝 :🧐🧐🧐说到做到,言出必行&am…

循环结构进阶

二重循环 import java.util.Scanner;public class Demo01 {public static void main(String[] args) {Scanner scanner new Scanner(System.in);// 二重循环 外循环班级 内循环学生for (int i1; i<3; i) { // 外循环班级System.out.println("请输入第" i "…

WebDAV之π-Disk派盘+麻雀记

麻雀记是一款专注个人记录的优秀软件。正所谓麻雀虽小五脏俱全,麻雀记app亦是如此,虽然这款软件非常的小巧,但是它的功能却非常的丰富强大。全新的Focus页面功能,可以将你置顶的笔记整合在一个页面中,然后结合番茄钟功能来实现专注功能,提高你的专注力与效率。同时还提供…

原型设计工具大盘点:Figma VS 蓝湖 VS Axure VS 摹客

从事互联网行业以来&#xff0c;我在很多平台都可以看到这样的问题&#xff1a;原型设计工具推荐有哪些&#xff1f;产品经理有什么好用的原型设计工具&#xff1f; 的确&#xff0c;原型设计工具在产品设计领域扮演着至关重要的角色&#xff0c;一款高效简单的原型工具对于产…

基于低代码和数字孪生技术的电力运维平台设计

电力能源服务商在为用能企业提供线上服务的时候&#xff0c;不可避免要面对用能企业的各种个性化需求。如果这些需求和想法都要靠平台厂家研发人员来实现&#xff0c;那在周期、成本、效果上都将是无法满足服务运营需要的&#xff0c;这也是目前很多线上能源云平台应用效果不理…

仓储13代拣货标签操作指导

服务器使用 V1.4基站已经内置服务程序&#xff0c;无需搭建服务&#xff1b;可跳至第1.4部分 服务器搭建 安装mysql5.7, 创建db_wms数据库并导入原始数据库文件 安装jdk1.8, 配置java环境变量 下载tomca8.0, 部署wms.war到tomcat, 并启动tomcat 下载资源 Windows 64bit:…

汽车上的电源模式详解

① 一般根据钥匙孔开关的位置来确定整车用电类别&#xff0c;汽车上电源可以分为常电&#xff0c;IG电&#xff0c;ACC电 1&#xff09;常电。常电表示蓄电池和发电机输出直接供电&#xff0c;即使点火开关在OFF档时&#xff0c;也有电量供应。一般来讲模块的记忆电源及需要在车…

spss--因子分析案例介绍

这篇文章向大家介绍一个因子分析的实践操作案例。 这篇文章使用的数据集来自于一份问卷&#xff0c;数据集包括31个题目&#xff0c;178个观测&#xff08;因子分析对观测数有规定&#xff0c;一般要求观测的记录数为题目数量的5到10倍&#xff0c;至少5倍&#xff0c;此数据集…

微服务学习笔记-基本概念

微服务是一种经过良好架构设计的分布式架构方案。根据业务功能对系统做拆分&#xff0c;每个业务功能模块作为独立项目开发&#xff0c;称为一个服务。 微服务的架构特征&#xff1a; 单一职责&#xff1a;微服务拆分粒度更小&#xff0c;每一个服务都对应唯一的业务能力&…

回调函数和一般函数的区别

回调函数&#xff1a;不是我能控制的&#xff0c;通过外界信号触发调用&#xff0c;例如下面是chatter 一般函数&#xff1a;我能控制的&#xff0c;顺序调用

微信开发调试有哪些技巧?快解析开发调试方案

由于小程序的火爆,很多程序员自己学习微信小程序开发文档,下载微信开发者工具,试着开发小程序&#xff0c;但是开发过程中需要使用电脑进行一定的调试。调试在程序编程中是非常重要的&#xff0c;调试可以帮助我们解决很多技术性的问题&#xff0c;但是还有很多小伙伴们不知道如…

Kubernetes工作原理

一、案例概述 传统部署时代&#xff1a; 早期是在物理服务器上运行应用程序。无法为物理服务器中的应用程序定义资源边界&#xff0c;这会导致资源分配出现问题。例如&#xff1a;如果在物理服务器上运行多个应用程序&#xff0c;则可能会出现一个应用程序占用大部分资源的情况…

工具推荐:Wireshark网络协议分析工具(对比tcpdump)

文章首发地址 Wireshark是一款开源的网络协议分析工具&#xff0c;可以捕获网络数据包并对其进行详细的分析和解释。下面是Wireshark的详细介绍&#xff1a; Wireshark 工作原理 Wireshark通过捕获网络接口上的数据包&#xff0c;将其转换为可读的格式&#xff0c;并在界面…

clion使用qDebug()控制台无输出的可能解决方法

给项目添加一个环境变量 QT_ASSUME_STDERR_HAS_CONSOLE1参考网址&#xff1a;https://youtrack.jetbrains.com/issue/CPP-24369/Auto-enable-qDebug-console.log-output-to-the-debug-console-for-Qt-projects-on-Windows

【深度学习注意力机制系列】—— SCSE注意力机制(附pytorch实现)

SCSE注意力模块&#xff08;来自论文[1803.02579] Concurrent Spatial and Channel Squeeze & Excitation in Fully Convolutional Networks (arxiv.org)&#xff09;。其对SE注意力模块进行了改进&#xff0c;提出了cSE、sSE、scSE三个模块变体&#xff0c;这些模块可以增…

爬虫ip池越大越好吗?

作为一名资深的程序员&#xff0c;今天我要给大家分享一些关于爬虫ip池的知识。关于ip代理池的问题&#xff0c;答案是肯定的&#xff0c;池子越大越好。下面跟我一起来盘点一下ip池大的好处吧&#xff01; 1、提高稳定性 爬虫ip池越大&#xff0c;意味着拥有更多可用的爬虫ip…

推荐几个不错的昇腾AscendCL学习资源

AscendCL&#xff08;Ascend Computing Language&#xff09;是一套用于在昇腾平台上开发深度神经网络推理应用的API库&#xff0c;支持C&C、Python语言&#xff0c;提供Device管理、Context管理、Stream管理、内存管理、模型加载与执行、算子加载与执行、媒体数据处理等AP…