oracle 11g 手动启动过程

本文详细介绍了如何启动Oracle 11g RAC数据库集群,包括使用root用户启动Oracle集群堆栈、启动所有ASM实例、启动所有RAC实例以及启动使用Oracle数据库的应用程序等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

These steps were tested on a 11.2 Oracle clusterware/ 11.2 Oracle database. When you run srvctl you will perform an operation for the database or for the cluster. If the operation if related to the database you must use the srvctl command from the ORACLE_HOME, and if the operation is related to the cluster, you must use the srvctl from the GRID_HOME.

 

 

1. Ensure that you are logged in as the root Linux/ UNIX user.

   

    If you are not connected as root OS user, you must switch to the oracle OS user

    su - root

 

 

2. Start (startup) the Oracle cluster stack

 

su - root

cd $CRS_HOME/bin

# ./crsctl start crs              (must be run on each node)

 

 

3. Startup (start) all Oracle ASM instances on all nodes. (If you are not using the ASM you must skip this step.)

 

su - oracle  (you must be logged as oracle)

 

To shut down an Oracle ASM instance, enter the following command, where node_name is the name of the node where the Oracle ASM instance is running: $ oracle_home/bin/srvctl start asm -n node_name

 

 

4. Startup (start) all Oracle RAC instances on all nodes.

 

To shut down all Oracle RAC instances for a database, enter the following command, where db_name is the name of the database: $ srvctl start database -d db_name   (srvctl  from ORACLE_HOME)     (this command is starting all the instances)

 

 

 

5. Startup (start) all applications using the Oracle database.

 

    This step includes stopping (shutting down) the Oracle Enterprise Manager Database Control:

 

    $ emctl start dbconsole

    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0     Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.     https://dev1rac.mfol.dgti.ro:1158/em/console/aboutApplication     Stopping Oracle Enterprise Manager 11g Database Control ...     ... Stopped.  

 

Attention: In previous releases of Oracle Database, you were required to set environment variables for ORACLE_HOME and ORACLE_SID to start, stop, and check the status

of Enterprise Manager. With Oracle Database 11g release 2 (11.2) and later, you need to set the environment variables ORACLE_HOME and ORACLE_UNQNAME to use or manage the Enterprise Manager.

 

export ORACLE_UNQNAME=GlobalUniqueName

 

If you want to check if the Entreprise Manager Database Console is running or not:

 

emctl status dbconsole Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. https://dev1rac:1158/em/console/aboutApplication EM Daemon is not running.  

emctl status dbconsole Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. https://dev1rac:1158/em/console/aboutApplication Oracle Enterprise Manager 11g is running.

转载于:https://www.cnblogs.com/terrytsang/archive/2013/05/23/3095262.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值