First step: Login
After root login, switch to Oracle user, enter
Su Oracle
Step Two: Connect
Under Oracle user, enter
Sqlplus/nolog
Step Three: Use Administrator privileges
Input
Connect/as SYSDBA
Fourth step: Start/Close Service
Input
Startup
Startup parameters
Start the DB instance without parameters and open the database so that the user can use the database, and in most cases, use this method!
Nomount, just start the DB instance, but don't open the database, use it when you want to create a new database, or use it when you need it!
Mount, which is used when renaming a database. This time the database is open and ready to use!
Thank you! Inaccurate Place please advise!
Shutdown
Parameters of the shutdown
Normal needs to wait for all users to disconnect
Immediate waits for the user to complete the current statement
Transactional waiting for the user to complete the current transaction
Abort does not do any waiting, directly shuts down the database
Normal needs to shut down the database task after all the connected users are disconnected, so sometimes it looks as if the command is not running! New connections are not allowed after this command is executed
Immediate disconnects the user after the user finishes executing the statement, and does not allow the new user to connect.
Transactional disconnects when it advocates executing the current thing, and does not allow new users to connect to the database.
Abort executes a forcibly disconnected connection and shuts down the database directly.
Fifth step: To start the service, to turn on monitoring
Exit Sqlplus mode, enter
Lsnrctl start
Oracle database Startup and shutdown operations under Linux