Manually start/disable Oracle services in RedHat Linux

Source: Internet
Author: User

In the RedHat Linux environment, set to manually start the Oracle 10 Gb Database

1. Modify the file/oracle/product/10.2.0/db_1/bin/dbstart.

# Vi/oracle/product/10.2.0/db_1/bin/dbstart

Modify the following content:

ORACLE_HOME_LISTNER =/oracle/product/10.2.0/db_1/(correct the path of the oracle listener)

2. Modify the file etc/oratab (if this file is not available, run the root command in the/oracle/product/10.2.0/db_1 directory. sh file. After 10 Gb of installation, you will be prompted to run this script)

# Vi etc/oratab -- this user must be root

Modify the following content:

SiebelDB:/oracle/product/10.2.0/db_1: Y -- (Change N to Y. uppercase is required)

Start oracle database:

[Oracle @ crmdb ~] $ Lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0-Production on 17-APR-2012 16:21:36

Copyright (c) 1991,200 5, Oracle. All rights reserved.

Starting/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.1.0-Production

System parameter file is/oracle/product/10.2.0/db_1/network/admin/listener. ora

Log messages written to/oracle/product/10.2.0/db_1/network/log/listener. log

Listening on: (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1 )))

Listening on: (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = crmdb) (PORT = 1521 )))

Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 )))

STATUS of the LISTENER

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

Alias LISTENER

Version TNSLSNR for Linux: Version 10.2.0.1.0-Production

Start Date 17-APR-2012 16:21:37

Uptime 0 days 0 hr. 0 min. 0 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File/oracle/product/10.2.0/db_1/network/admin/listener. ora

Listener Log File/oracle/product/10.2.0/db_1/network/log/listener. log

Listening Endpoints Summary...

(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1 )))

(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = crmdb) (PORT = 1521 )))

Services Summary...

Service "PLSExtProc" has 1 instance (s ).

Instance "PLSExtProc", status UNKNOWN, has 1 handler (s) for this service...

The command completed successfully

[Oracle @ crmdb ~] $ Dbstart

Processing Database instance "SiebelDB": log file/oracle/product/10.2.0/db_1/st artup. log

[Oracle @ crmdb ~] $ Emctl start dbconsole

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

Copyright (c) 1996,200 5 Oracle Corporation. All rights reserved.

Http: // crmdb: 1158/em/console/aboutApplication

Starting Oracle Enterprise Manager 10g Database Control.

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

Logs are generated in directory/oracle/product/10.2.0/db_1/crmdb_SiebelDB/sysman/log

[Oracle @ crmdb ~] $

Disable the oracle10g Service

Stop EM service: emctl stop dbconsole

Stop oracle service: dbshut

Stop listening service: lsnrctl stop

[Oracle @ crmdb ~] $ Lsnrctl stop

LSNRCTL for Linux: Version 10.2.0.1.0-Production on 08-MAY-2012 22:13:18

Copyright (c) 1991,200 5, Oracle. All rights reserved.

Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 )))

The command completed successfully

[Oracle @ crmdb ~] $

Emctl status dbconsole -- View EM status

If two instances are installed, run the following command to start the EM of the first instance:

[Oracle @ crmdb ~] $ Export ORACLE_SID = UATDB -- UATDB is the SID of the second instance.

[Oracle @ crmdb ~] $ Emctl start dbconsole

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

Copyright (c) 1996,200 5 Oracle Corporation. All rights reserved.

Http: // crmdb: 5500/em/console/aboutApplication

Starting Oracle Enterprise Manager 10g Database Control.

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

Logs are generated in directory/oracle/product/10.2.0/db_1/crmdb_UATDB/sysman/log

[Oracle @ crmdb ~] $

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.