Manual Oracle startup and Common commands in Linux

Source: Internet
Author: User

Recently, my NC project runs in Linux. Write down the installation process.
============= Manually start Oracle ======## note: in this example, the oralce command is in the/home/oracle/product/10.2.0/db_1/bin directory. # You can change it to your own directory. 1. You need to set Environment Variables
$ Cd/home/oralce
$ Gedit. bash_profile
2. append the following statement:
Export ORACLE_BASE =/home/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1
Export ORACLE_SID = orcl
Export PATH = $ PATH: $ ORACLE_HOME/bin
3. log out and Log On As an oracle user. The command to manually start oracle is:
# $ ORACLE_HOME/bin/dbstart
# $ ORACLE_HOME/bin/lsnrctl start
============== Oracle commands in linux ==================## note: in this example, the oralce command is in the/home/oracle/product/10.2.0/db_1/bin directory. # You can change it to your own directory.
A. # dbstart // start the database
# Dbshut // shut down the database
B. # emctl start dbconsole // Enable Enterprise Manager
# Emctl stop dbconsole // disable Enterprise Manager
C. # lsnrctl start // start the listener
# Lsnrctl stop // disable the listener
D. # emctl start agent // enable proxy
# Emctl stop agent // disable the agent
E. # sqlplus/nolog
Conn/as sysdba
Startup // start the instance
Shutdown immediate // shut down the instance
F. # tnsping 192.168.1.104 // test whether the Oracle database is connected
G. http: // 10.0.0.77: 5560/isqlplus // isQL * Plus URL
Http: // 10.0.0.77: 5560/isqlplus/dba // isQL * Plus DBA URL
Http: // 10.0.0.77: 1158/em // Enterprise Manager 10g Database

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.