Oracle startup and shutdown in the Oracle sqlplus command

Source: Internet
Author: User

This article describes how to start and disable Oracle in the running of the Oracle sqlplus command. If you are interested in the content of the Oracle sqlplus command, you may wish to read the following articles to gain a deeper understanding of them.

Oracle startup and Shutdown

1. to enable or disable the Oracle System in a single-host environment, you must first switch to the Oracle user su-Oracle as follows:

A. Start the Oracle System

 
 
  1. Oracle>svrmgrl  
  2. SVRMGR>connect internal  
  3. SVRMGR>startup  
  4. SVRMGR>quit   

B. Disable the Oracle system.

 
 
  1. Oracle>svrmgrl  
  2. SVRMGR>connect internal  
  3. SVRMGR>shutdown  
  4. SVRMGR>quit  

To start the Oracle9i database command in the Oracle sqlplus command:

 
 
  1. $ sqlplus /nolog  
  2. SQL*Plus: Release 9.2.0.1.0 - Production on Fri Oct 31
     13:53:53 2003  
  3. Copyright (c) 1982, 2002, Oracle Corporation. 
    All rights reserved.  
  4. SQL> connect / as sysdba  
  5. Connected to an idle instance.  
  6. SQL> startup^C  
  7. SQL> startup  
  8. Oracle instance started.  

2. to enable or disable the Oracle System in a dual-host environment, you must first switch to the root user.

 
 
  1. su - root  

A. Start the Oracle System

 
 
  1. hareg -y Oracle 

B. Disable the Oracle system.

 
 
  1. hareg -n Oracle 

Oracle Database startup Methods

Note:

There are several startup methods:

1. startup nomount

Non-installation startup. In this mode, you can execute: re-build the control file and re-build the database.

Read the init. ora file and start the instance, that is, start the SGA and background processes. To start the process, you only need the init. ora file.

2. startup mount dbname

Install and start. In this mode, run:

Database Log archiving,

Database media recovery,

Online or offline data files,

Locate the data file and redo the log file.

Execute "nomount", open the control file, and confirm the location of the data file and the on-line log file,

However, data files and log files are not verified at this time.

3. startup open dbname

Run "nomount" first, then "mount", and then open all database files including the Redo log file,

In this way, you can access data in the database.

4. startup, which is equal to the following three commands

 
 
  1. startup nomount  
  2. alter database mount  
  3. alter database open  

5. startup restrict

Constraint-based startup

This method can start the database, but only allow access by users with certain privileges

When a non-authorized user accesses the service, the following prompt is displayed:

ERROR:

ORA-01035: Oracle only allows users with restricted session Permissions

6. startup force

Force-start in the running of Oracle sqlplus command bitsCN.com China Network Management Alliance

When the database cannot be closed, you can use startup force to close the database.

Shut down the database first, and then execute the normal database startup command

7. startup pfile = parameter file name

Startup method with initialization parameter file

Read the parameter file first, and then start the database according to the settings in the parameter file.

Example:

 
 
  1. startup pfile=E:Oracleadminoradbpfileinit.ora 

The above content is an introduction to how to run the Oracle sqlplus command.

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.