为了账号安全,请及时绑定邮箱和手机立即绑定

同事搭一个测试RAC说节点2发现idle了,报ORA-00304

标签:
Oracle


---------- --------------- ------------------------------------------------
1 1 testrac1
SQL> select GROUP#,THREAD# from v$log;

GROUP# THREAD#
---------- ----------
1 1
2 1
3 1

SQL> select MEMBER from v$logfile;

MEMBER
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+DATADG/testrac/onlinelog/group_1.257.995827307
+DATADG/testrac/onlinelog/group_2.258.995827307
+DATADG/testrac/onlinelog/group_3.259.995827309


SQL> alter database add logfile thread 2 ('+datadg','+datadg') size 100m;

Database altered.

SQL> alter database add logfile thread 2 ('+datadg','+datadg') size 100m;

Database altered.

SQL> alter database add logfile thread 2 ('+datadg','+datadg') size 100m;

Database altered.


SQL> select GROUP#,THREAD# from v$log;

GROUP# THREAD#
---------- ----------
1 1
2 1
3 1
4 2
5 2
6 2

6 rows selected.

SQL> alter database enable thread 2;

Database altered.

难道安装时候没勾选节点2,他说从节点1拷贝了一个参数文件,下面的3个参数也没改。。。能启动才怪
#testrac2.instance_number=1
testrac2.instance_number=2
*.open_cursors=300
*.pga_aggregate_target=1649410048
*.processes=150
*.remote_listener='racscanip:1521'
*.remote_login_passwordfile='exclusive'
*.sga_target=4949278720
#testrac2.thread=1
testrac2.thread=2
#testrac2.undo_tablespace='UNDOTBS1'
testrac2.undo_tablespace='UNDOTBS2'

[oracle@testrac2 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Wed Jan 16 19:34:42 2019

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

Connected to an idle instance.

SQL> startup pfile='/u01/app/oracle/11204/dbs/inittestrac2.ora';
ORACLE instance started.

Total System Global Area 4927172608 bytes
Fixed Size 2261648 bytes
Variable Size 1090522480 bytes
Database Buffers 3825205248 bytes
Redo Buffers 9183232 bytes
Database mounted.
Database opened.
SQL> select status from v$instance;

STATUS
------------------------------------
OPEN

SQL> select INST_ID ,INSTANCE_NUMBER ,INSTANCE_NAME from gv$instance;

INST_ID INSTANCE_NUMBER INSTANCE_NAME
---------- --------------- ------------------------------------------------
2 2 testrac2
1 1 testrac1

SQL> 
可以了正常了。。。

作者:ritchy

原文链接:https://www.cnblogs.com/ritchy/p/10279060.html


点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消