Linux Start Stop Oracle instance + How to start multiple instances __java

Source: Internet
Author: User
Tags db2 sqlplus
Start the database instance in two steps:
The first step, start listening;
[Oracle@wuzhq ~]$ su-oracle--"Switch to Oracle User"
[Oracle@wuzhq ~]$ lsnrctl Start--"turn on Listening"
The second step is to start the database instance.
[Oracle@wuzhq ~]$ Sqlplus/nolog--"Go to Sqlplus"
Sql> conn/as SYSDBA--"Connect to SYSDBA"
Sql> Startup--"Start database instance"
To close a database instance:
sql> shutdown Immediate--"Close database instance"
Sql> exit

[Oracle@redhat ~]$ Lsnrctl Stop

=========================================

If you have DB1 and DB2 two instances on your server, and these two instances are created by the same operating system user, log on to the server with this operating system user and Execute
Export ORACLE_SID=DB1
Sqlplus/nolog
Connect/as SYSDBA
Startup
Exit
Eof
Export ORACLE_SID=DB2
Sqlplus/nolog
Connect/as SYSDBA
Startup
Exit

==========================================

Sqlplus/as SYSDBA
startuppfile= $ORACLE _home/dbs/initdb1.ora
Exit

Sqlplus/as SYSDBA
startuppfile= $ORACLE _home/dbs/initdb2.ora
Exit

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.