1. Oracle startup and Shutdown
1. In a single-host environment
To start or shut down the ORACLE system, you must first switch to the ORACLE user, as shown below:
Su-oracle
A. Start the ORACLE System
Oracle> svrmgrl
SVRMGR> connect internal
SVRMGR> startup
SVRMGR> quit
B. Disable the ORACLE system.
Oracle> svrmgrl
SVRMGR> connect internal
SVRMGR> shutdown
SVRMGR> quit
Run the following command to start the oracle9i database:
$ Sqlplus/nolog
SQL * Plus: Release 9.2.0.1.0-Production on Fri Oct 31 13:53:53 2003
Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.
SQL> connect/as sysdba
Connected to an idle instance.
SQL> startup ^ C
SQL> startup
ORACLE instance started.
2. In a dual-host environment
To start or shut down the ORACLE system, you must first switch to the root user, as shown below:
Su-root
A. Start the ORACLE System
Hareg-y oracle
B. Disable the ORACLE system.
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
Startup nomount
Alter database mount
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 Mode
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: startup pfile = E: Oracleadminoradbpfileinit. ora
8. startup EXCLUSIVE
[Content navigation] |
Page 7: Oracle startup and Shutdown |
Page 1: How to effectively use data dictionaries |
Page 1: view database SQL |
Page 4th: Oracle user connection management |
Page 6: SQL * PLUS |
Page 6th: SH file of Oracle logical backup |
Page 7th: Common SQL syntax and Data Objects in Oracle |
|