search
HomeDatabaseMysql Tutorialazure 云上 oracle11.2.0.4里dataguard归档日志传输 1034 问题详

1 , dataguard 搭建好后,归档日志传输不过去 去查看master库上面的日志 tail –f /data/oracle/diag/rdbms/test_m1/powerdes/trace/alert_powerdes.log,显示信息如下: Sun May 08 00:34:17 2016 Error 1034 received logging on to the standby PING[ARC

 

1dataguard搭建好后,归档日志传输不过去

去查看master库上面的日志

tail –f /data/oracle/diag/rdbms/test_m1/powerdes/trace/alert_powerdes.log,显示信息如下:

Sun May 08 00:34:17 2016

Error 1034 received logging on to the standby

PING[ARC2]: Heartbeat failed to connect to standby 'test_m2'. Error is1034.

 

 

2tnsping earch_m2是通的

[oracle@azure_test_dbm1_3_111 admin]$ tnsping test_m3

 

TNS Ping Utility for Linux: Version 11.2.0.4.0 - Production on 08-MAY-2016 09:13:42

 

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

 

Used parameter files:

 

 

Used TNSNAMES adapter to resolve the alias

Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.112)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = test_m2)))

OK (0 msec)

[oracle@azure_test_dbm1_3_111 admin]$

 

3,去standby备库上,Check检查下service_name,看到service_names确实是test_m2

看起来service_name也没用错,如下所示:

[oracle@azure_test_dbm1_3_112 admin]$ rlwrap sqlplus / as sysdba

 

SQL*Plus: Release 11.2.0.4.0 Production on Sun May 8 09:15:27 2016

 

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

 

 

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options                                                                                                                 

 

SQL> show parameter name;

 

NAME                                        TYPE       VALUE

------------------------------------ ----------- ------------------------------

cell_offloadgroup_name               string

db_file_name_convert                   string     /oracle/app/oracle/oradata/pow

                                                         erdes, /oracle/app/oracle/orad

                                                         ata/powerdes

db_name                                 string     powerdes

db_unique_name                            string     test_m2

global_names                         boolean FALSE

instance_name                                string     powerdes

lock_name_space                 string

log_file_name_convert                  string     /data/oracle/oradata/powerdes,

                                                          /data/oracle/oradata/pwerdes

 

NAME                                        TYPE       VALUE

------------------------------------ ----------- ------------------------------

processor_group_name                string

service_names                                 string     test_m2

SQL>

 

文章来源blog地址:http://blog.csdn.net/mchdba/article/details/51344246,谢绝转载


4,在master库、standby库,通过sqlplus登录报错

# 主库登录sqlplus报错

[oracle@azure_test_dbm1_3_111 admin]$ sqlplus sys/testsys@test_m2 as sysdba                                                                                                       

 

SQL*Plus: Release 11.2.0.4.0 Production on Sun May 8 09:19:48 2016

 

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

 

ERROR:

ORA-12514: TNS:listener does not currently know of service requested in connect

descriptor

 

 

Enter user-name:

 

# 备库sqlplus登录报错

[oracle@azure_test_dbm1_3_112 admin]$ sqlplus sys/testsys@test_m2 as sysdba

 

SQL*Plus: Release 11.2.0.4.0 Production on Sun May 8 09:18:39 2016

 

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

 

ERROR:

ORA-12514: TNS:listener does not currently know of service requested in connect

descriptor

 

 

Enter user-name:

 

 

都报错:ORA-12514:TNS:listener does not currently know of service requested in connect descriptor这个问题一般就涉及到的是tnsnames.ora里面的service_name没有写对了。

 

5,替换service_name,问题解决

回忆这个备库的搭建过程,我刚建库dbca的时候,设置的service_name是powerdes,我在配置dataguard的时候,修改了参数文件initpowerdes.ora,有在里面新设置*.db_unique_name=test_m2,再次create spfile frompfile;然后以新的参数文件启动数据库后,看到service_names变成了test_m2了,而我就在tnsnames.ora里面设置了新的service_names名字test_m2,这个新的test_m2没有生效结果报错ORA-12514了。

 

因此,我要将没有生效的test_m2换成原来的powerdes,需要换的地方有2个,一个是listener.ora,一个是tnsnames.ora,主库master库和备库standby库都要修改如下所示:

#主库master库修改1个文件tnsnames.ora

# tnsnames.ora文件

[oracle@azure_test_dbm1_3_111 admin]$ vim tnsnames.ora

test_m2 =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.112)(PORT = 1521))                                                                                                            

    )

    (CONNECT_DATA =

      (SERVICE_NAME = powerdes)

    )

  )

 

#备库standby库需要修改2个文件listener.oratnsnames.ora

# listener.ora文件

[oracle@azure_test_dbm1_3_112 admin]$ vim listener.ora

 

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/dbhome_1)

      (PROGRAM = extproc)

    )

    (SID_DESC =

      (SID_NAME = powerdes)

      (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/dbhome_1)

    )

  )

 

 

ADR_BASE_LISTENER = /oracle/app/oracle

 

# tnsnames.ora文件

[oracle@azure_test_dbm1_3_112 admin]$ vim tnsnames.ora

test_m2 =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.112)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVICE_NAME = powerdes)

    )

  )

 

 

修改完配置后,然后重启lsnrctl监听服务,再在备库使用sqlplus登录test_m2,登录成功:

[oracle@azure_test_dbm1_3_112 admin]$ sqlplus sys/testsys@test_m2 as sysdba                                                                                                   

 

SQL*Plus: Release 11.2.0.4.0 Production on Sun May 8 09:34:51 2016

 

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

 

 

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

SQL>

 

再去看主库master库的后台alert日志,就会发现已经有开始传输归档日志的记录了:

……

******************************************************************

LGWR: Setting 'active' archival fordestination LOG_ARCHIVE_DEST_2

******************************************************************

LGWR: Standby redo logfile selected toarchive thread 1 sequence 26

LGWR: Standby redo logfile selected forthread 1 sequence 26 for destination LOG_ARCHIVE_DEST_2

Thread 1 advanced to log sequence 26 (LGWRswitch)

 Current log# 2 seq# 26 mem# 0:/oracle/app/oracle/oradata/powerdes/redo02.log

Sun May 08 01:12:22 2016

Archived Log entry 22 added for thread 1sequence 25 ID 0xcf7feffa dest 1:

ARC0: Standby redo logfile selected forthread 1 sequence 25 for destination LOG_ARCHIVE_DEST_2

Destination LOG_ARCHIVE_DEST_2 isSYNCHRONIZED

……

 

PS:这里问题比较奇怪,我上次这里service_name需要修改成新的参数文件里面的test_m2才能归档日志传输到备库standby上面,但是这次确需要保持原来的service_name。看来这里面还有别的奥妙所在。需要去探索清楚了。


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
错误代码 801c03ed:如何在 Windows 11 上修复它错误代码 801c03ed:如何在 Windows 11 上修复它Oct 04, 2023 pm 06:05 PM

错误801c03ed通常附带以下消息:管理员策略不允许此用户加入设备。此错误消息将阻止你安装Windows并加入网络,从而阻止你使用电脑,因此尽快解决此问题非常重要。什么是错误代码801c03ed?这是一个Windows安装错误,由于以下原因而发生:Azure设置不允许新用户加入。Azure上未启用设备对象。Azure面板中的硬件哈希出现故障。如何修复Windows801上的错误代码03c11ed?1.检查Intune设置登录到Azure门户。导航到“设备”,然后选择“设备设置”。将“用户可以将

利用Azure语义搜索与OpenAI,打造认知搜索系统利用Azure语义搜索与OpenAI,打造认知搜索系统Oct 12, 2023 am 10:18 AM

旨在简化文档搜索,多种服务和平台的结合都是获得无与伦比性能的关键。在本文中,我们将探索一种将 Azure 认知服务的强大功能与 OpenAI 的功能相结合的整体方法。通过深入研究意图识别、文档过滤、特定领域的算法和文本摘要,您将学习创建一个不仅可以理解用户意图而且可以有效处理和呈现信息的系统。

微软 Azure OpenAI 服务现已支持 GPT-4 Turbo with Vision微软 Azure OpenAI 服务现已支持 GPT-4 Turbo with VisionDec 18, 2023 am 08:18 AM

本站12月17日消息,AzureOpenAI服务提供对OpenAI强大语言模型的RESTAPI访问,这些模型包括GPT-4、GPT-3.5-Turbo和嵌入模型系列。微软宣布进一步加强AzureOpenAI服务的功能,并为客户提供了最新的GPT-4TurbowithVision的公开预览版本这个先进的多模态AI模型继承了GPT-4Turbo的所有强大功能,并且还加入了图像处理和分析的能力。这样一来,我们就有了利用GPT-4处理更多任务的机会,比如改进无障碍辅助功能、解释和分析可视化数据,以及进行

微软 Azure 将从 10 月开始推行强制性多因素身份验证功能微软 Azure 将从 10 月开始推行强制性多因素身份验证功能Aug 17, 2024 am 07:40 AM

本站8月16日消息,微软昨日发布了一条公告,宣布将从10月开始强制实施多因素身份验证(MFA)功能,以帮助降低账户被入侵的可能性。微软表示,MFA可以阻止99.2%以上的此类账户入侵攻击,因此该措施是强制性的。据介绍,这一过程将分为两个阶段逐步实施,本站总结如下:第1阶段:从10月开始,登录Azure门户、MicrosoftEntra管理中心和Intune管理中心都将需要MFA,但不会影响其他Azure客户端。第2阶段:从2025年初开始,MFA要求将逐步拓展到其他Azure客户端,例如Azur

Go语言如何支持云上的文件系统操作?Go语言如何支持云上的文件系统操作?May 17, 2023 am 08:12 AM

随着云计算技术的不断发展,越来越多的应用程序被迁移到了云上。由于云上的文件系统不同于本地文件系统,开发者需要使用不同的语言和工具来操作这些文件系统。Go语言是一种快速、高效、并发的编程语言,越来越受到开发者的青睐。本文将介绍如何使用Go语言来支持云上的文件系统操作。Go语言对云上文件系统的支持Go语言通过标准库提供了一组能够操作本地文件系统的函数,例如:os

Windows Server VNext Preview 内部版本 25099 现已推出Windows Server VNext Preview 内部版本 25099 现已推出Apr 14, 2023 pm 01:55 PM

微软已发布 Windows Server Insider Preview 的新版本。本周的 build 25099 现在可以从Windows Server Insider 网站下载 ISO和 VHDX,但按照惯例,没有完整的变更日志可言,因此不清楚有什么新内容。微软再次表示该品牌尚未更新,在预览版中仍为 Windows Server 2022。此外,微软鼓励内部人员在Azure

微软在应对3.47 Tbps DDoS攻击中创下防御记录微软在应对3.47 Tbps DDoS攻击中创下防御记录Apr 22, 2023 am 08:52 AM

微软去年11月,它缓解了3.47TbpsDDoS(分布式拒绝服务)攻击,无意中创造了新记录。在一篇博文中,这家Redmond巨头分享了2021年第三季度的AzureDDoS保护数据。该公司指出,2021年下半年DDoS攻击数量有所增加。由于攻击服务价格低廉,DDoS是一种任何人都可以使用的流行攻击方法。2021年下半年,微软平均每天缓解1,955次攻击,比上半年增加40%。然而,与2021年8月10日缓解的4,296次攻击相比,这相形见绌。总体而言,

如何利用React和Microsoft Azure构建可靠的云端应用如何利用React和Microsoft Azure构建可靠的云端应用Sep 26, 2023 am 11:01 AM

如何利用React和MicrosoftAzure构建可靠的云端应用随着云计算的发展,越来越多的应用程序开始迁移到云端。在这个过程中,选择一种可靠、高效的开发框架是非常重要的。React作为一种流行的前端框架,具有高效的组件化开发和虚拟DOM更新等特性,而MicrosoftAzure则是一种灵活的云服务平台,提供了强大的计算、存储和部署等能力。本文将介绍如

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.