贺盛瑞阿阿阿中阿中阿中阿中阿中英法阿中英法阿中英法阿中英法俄西,拜仁拜仁拜仁拜仁,朱庇特朱庇特朱庇特,范仲淹?范仲淹?范仲淹!
哎哎哎哎,阿芝网格(网格)阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金阿金
霍阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉阿吉
[甲骨文@ edsir P1 P8-ASM ~]$ CRS _ stat-t
名称类型目标状态主机
-
现在就去。日期。dgora.我.起来。键入在线edsir P1 P8
奥拉。阿斯莫拉。ASM。typeonline edsir 1 P8
奥拉。cssdora。cssd。typeonline edsir 1 P8
现在,迪斯科舞厅.我.打开。typeonline edsir 1 P8阿久2高丽高丽高丽
1.
[甲骨文@ edsir P1 P8-ASM ~]$ tail-3/etc/oratab
[prod 4360/u01/app/Oracle/product/11。2 .0/db _ 1:n
emrep 3360/u01/app/Oracle/product/11。2 .0/db _ 1:n
ASM 3330/u01/app/Oracle/product/11。2 .0/网格3330n
-贺盛瑞?贺盛瑞2.crs_stat
贺盛瑞贺盛瑞,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不,不
[Oracle @ edsir P1 P8-ASM ~]$ srvctlddd数据库-dprod 4-o/u01/app/Oracle/product/11。2 .0/db _ 1
[Oracle @ edsir P1 P8-ASM ~]$ srvctlconfigdatabase-鲁仲尼鲁仲尼鲁仲尼鲁仲尼,阿俊
[甲骨文@ edsir P1 P8-ASM ~]$ srvctlddlistener-llistener-p 01521-o/u01/app/or
ECE/product/11。2 .0/db _ 1 PRC-20661360故障列表错误。监听程序。损失系数
prn-2063360端口1521是一个可实现的目标
中国-2035:端口1521 isnotavailableonnode或virtual host 3330 edsir 1 P8。美国.
奥拉厘升
e.com
--关监听
[oracle@edsir1p8-+ASM ~]$ lsnrctl stop [oracle@edsir1p8-+ASM ~]$ srvctl add listener -l listener -p 1521 -o /u01/app/oracle/pr oduct/11.2.0/db_1 [oracle@edsir1p8-+ASM ~]$ srvctl config listener --查看监听是否注册成功
[oracle@edsir1p8-+ASM ~]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.DATA.dg ora....up.type ONLINE ONLINE edsir1p8 ora....ER.lsnr ora....er.type OFFLINE OFFLINE ora.asm ora.asm.type ONLINE ONLINE edsir1p8 ora.cssd ora.cssd.type ONLINE ONLINE edsir1p8 ora.diskmon ora....on.type ONLINE ONLINE edsir1p8 ora.prod4.db ora....se.type OFFLINE OFFLINE
=============================================================
--重启服务器,看效果
oracle@edsir1p8- ~]$ ps -ef | grep smon oracle 5387 5106 0 09:25 pts/2 00:00:00 grep smon --没有实例启动 [oracle@edsir1p8- ~]$ lsnrctl status -bash: lsnrctl: command not found --没有任何的Oracle环境变量
[oracle@edsir1p8- ~]$ . oraenv ORACLE_SID = [oracle] ? +ASM The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid is /u01/app/oracle [oracle@edsir1p8-+ASM ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 22-JUN-2017 09:25:58 Copyright (c) 1991, 2009, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused --监听没有启动
[oracle@edsir1p8-+ASM ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 22 09:28:48 2017 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance.
SQL> quit Disconnected
[oracle@edsir1p8-+ASM ~]$ srvctl start database -d PROD4 PRCD-1027 : Failed to retrieve database PROD4 PRCR-1070 : Failed to check if resource ora.prod4.db is registered Cannot communicate with crsd
[oracle@edsir1p8-+ASM ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 22 09:30:20 2017 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance.
SQL> startup ORA-01078: failure in processing system parameters ORA-29701: unable to connect to Cluster Synchronization Service SQL> quit Disconnected
[oracle@edsir1p8-+ASM ~]$ crsctl start has CRS-4123: Oracle High Availability Services has been started.
[oracle@edsir1p8-+ASM ~]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.DATA.dg ora....up.type ONLINE OFFLINE ora....ER.lsnr ora....er.type ONLINE ONLINE edsir1p8 ora.asm ora.asm.type ONLINE OFFLINE ora.cssd ora.cssd.type ONLINE OFFLINE ora.diskmon ora....on.type ONLINE ONLINE edsir1p8 ora.prod4.db ora....se.type OFFLINE OFFLINE
[oracle@edsir1p8-+ASM ~]$ crsctl enable has CRS-4622: Oracle High Availability Services autostart is enabled. --必须开机自启动,只有他开机自启动,注册到里面的资源才能开机自启动
重启服务器,看效果
===========================================================
--集群管理的方式将数据库开
[oracle@edsir1p8-+ASM ~]$ srvctl start database -d PROD4 --执行相反操作 srvctl remove database -d PROD4 ---移除数据库 srvctl remove listener -l listener ---如果注册错误可以使用该命令删除
以上是“如何自动启动数据库”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!
内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/116462.html