我的编程空间,编程开发者的网络收藏夹
学习永远不晚

oracle 11g DataGuad如何修改sys密码

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

oracle 11g DataGuad如何修改sys密码

这篇文章主要介绍oracle 11g DataGuad如何修改sys密码,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

一、环境描述

    database version:11.2.0.4

    单实例DataGuard

    rhel 6.6

二、实验过程

  1. 主库修改sys密码

SQL> alter user sys identified by oracle321;

User altered.

SQL> alter system switch logfile;

System altered.

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /arch
Oldest online log sequence     125
Next log sequence to archive   127
Current log sequence           127
SQL> alter system switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /arch
Oldest online log sequence     127
Next log sequence to archive   129
Current log sequence           129

2.备库查看是否正常同步数据

SQL> select applied,sequence# from v$archived_log order by 2;

APPLIED    SEQUENCE#
--------- ----------
YES              106
YES              107
YES              108
YES              109
YES              110
YES              111
YES              112
YES              113
YES              114
YES              115
YES              116

APPLIED    SEQUENCE#
--------- ----------
YES              117
YES              118
YES              119
YES              120
YES              121
YES              122
YES              123
YES              124
YES              125
YES              126
YES              127

APPLIED    SEQUENCE#
--------- ----------
IN-MEMORY        128

3.备库取消应用后,再启用mrp进程查看

SQL> alter database recover managed standby database cancel;

SQL> alter database recover managed standby database using current logfile disconnect from session;

SQL> select applied,sequence# from v$archived_log order by 2;

APPLIED    SEQUENCE#
--------- ----------
YES              107
YES              108
YES              109
YES              110
YES              111
YES              112
YES              113
YES              114
YES              115
YES              116
YES              117

APPLIED    SEQUENCE#
--------- ----------
YES              118
YES              119
YES              120
YES              121
YES              122
YES              123
YES              124
YES              125
YES              126
YES              127
YES              128

APPLIED    SEQUENCE#
--------- ----------
YES              129
IN-MEMORY        130

4.重启备库,然后启用mrp进程,再观察

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 1653518336 bytes
Fixed Size                  2253784 bytes
Variable Size            1526729768 bytes
Database Buffers          117440512 bytes
Redo Buffers                7094272 bytes
Database mounted.
Database opened.
SQL> alter database recover managed standby database using current logfile disconnect from session;

Database altered.

SQL> select message from v$dataguard_status;

MESSAGE
--------------------------------------------------------------------------------
ARC0: Archival started
ARC1: Archival started
ARC2: Archival started
ARC3: Archival started
ARC1: Becoming the 'no FAL' ARCH
ARC2: Becoming the heartbeat ARCH
ARC2: Becoming the active heartbeat ARCH
Error 1017 received logging on to the standby
FAL[client, ARC3]: Error 16191 connecting to orcl for fetching gap sequence  --报错
ARC4: Archival started
Attempt to start background Managed Standby Recovery process

MESSAGE
--------------------------------------------------------------------------------
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery starting Real Time Apply

13 rows selected.

5.主库同步密码文件

<roidb01:orcl:/u01/app/oracle/product/11.2.0/dbhome_1/dbs>$scp orapworcl roidb02:/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapworcldg
oracle@roidb02's password:
orapworcl                                                                                          100% 1536     1.5KB/s   00:00    
<roidb01:orcl:/u01/app/oracle/product/11.2.0/dbhome_1/dbs>$

SQL> select message from v$dataguard_status;

MESSAGE
--------------------------------------------------------------------------------
ARC0: Archival started
ARC1: Archival started
ARC2: Archival started
ARC3: Archival started
ARC1: Becoming the 'no FAL' ARCH
ARC2: Becoming the heartbeat ARCH
ARC2: Becoming the active heartbeat ARCH
Error 1017 received logging on to the standby
FAL[client, ARC3]: Error 16191 connecting to orcl for fetching gap sequence
ARC4: Archival started
Attempt to start background Managed Standby Recovery process

MESSAGE
--------------------------------------------------------------------------------
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery starting Real Time Apply
RFS[1]: Assigned to RFS process 2723
RFS[2]: Assigned to RFS process 2725
RFS[3]: Assigned to RFS process 2727
RFS[4]: Assigned to RFS process 2729
ARC4: Beginning to archive thread 1 sequence 131 (1137893-1138457)
ARC4: Completed archiving thread 1 sequence 131 (0-0)
Media Recovery Log /arch/1_132_955700418.dbf
Media Recovery Log /arch/1_133_955700418.dbf
Media Recovery Log /arch/1_134_955700418.dbf

MESSAGE
--------------------------------------------------------------------------------
Media Recovery Waiting for thread 1 sequence 135
Primary database is in MAXIMUM PERFORMANCE mode
RFS[5]: Assigned to RFS process 2731
ARC1: Beginning to archive thread 1 sequence 135 (1139616-1140903)
ARC1: Completed archiving thread 1 sequence 135 (0-0)
Media Recovery Log /arch/1_135_955700418.dbf
Media Recovery Waiting for thread 1 sequence 136 (in transit)
ARC4: Beginning to archive thread 1 sequence 136 (1140903-1141035)
ARC4: Completed archiving thread 1 sequence 136 (0-0)
Media Recovery Waiting for thread 1 sequence 137 (in transit)

32 rows selected.

以上是“oracle 11g DataGuad如何修改sys密码”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

oracle 11g DataGuad如何修改sys密码

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

oracle中两个服务器连接中sys密码修改问题

问题描述:orcl服务器要连接orclstd想要sqlplus sys/410526@orclstd as sysdba 连接orclstd数据库,但是发现啥意思密码不对,就对sys密码进行重新设置1.在orcl服务器上连接orclstd服务器[oracle@
oracle中两个服务器连接中sys密码修改问题
2019-04-29

如何修改oracle数据库密码

要更改 oracle 数据库密码,请执行以下步骤:连接到数据库并使用当前密码登录。使用 alter user 语句更改密码,然后提交更改。关闭数据库连接。如何修改 Oracle 数据库密码第一步: 连接到数据库打开 SQL*Plus 或
如何修改oracle数据库密码
2024-04-19

如何修改mysql密码

如何修改 mysql 密码直接修改登录 MySQL 数据库:使用以下命令,用 root 用户名和现有密码登录:mysql -u root -p输入当前密码:系统会提示您输入当前密码。更改密码:输入以下命令,将密码更改为您选择的新密码:
如何修改mysql密码
2024-06-12

oracle数据库密码过期如何修改

在Oracle数据库中,可以通过以下步骤来修改密码过期的问题:1. 登录到数据库服务器的命令行终端或使用Oracle SQL开发工具,例如SQL*Plus或SQL Developer。2. 使用具有SYSDBA或SYSOPER角色的管理员账
2023-09-15

win10如何修改密码

这篇文章主要讲解了“win10如何修改密码”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“win10如何修改密码”吧!1、首先点击左下角开始,然后进入上面的头像。 2、然后点击里面的“更改账户
2023-07-02

redis如何修改密码

如何修改 redis 密码:停止 redis 服务。创建密码文件 redis.conf,添加 requirepass new_password。保存并启动 redis 服务。使用 -a new_password 连接 redis 验证密码。
redis如何修改密码
2024-04-20

编程热搜

目录