Home > Database > Mysql Tutorial > body text

Linux下手动启动Oracle及常用命令

WBOY
Release: 2016-06-07 16:58:42
Original
1021 people have browsed it

最近自己的NC项目跑在Linux环境下。把安装过程慢慢的写下来。============手动启动oracle===========#注意:例子中的oralce命令在

最近自己的NC项目跑在Linux环境下。把安装过程慢慢的写下来。
============手动启动Oracle===========#注意:例子中的oralce命令在/home/oracle/oracle/product/10.2.0/db_1/bin目录。#你可以自己修改成自己的目录。1.需要设置环境变量
$cd /home/oralce
$gedit .bash_profile
2.追加下面语句:
export ORACLE_BASE=/home/oracle/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
3.然后注销,以oracle用户登录,手工启动oracle的命令为:
# $ORACLE_HOME/bin/dbstart
# $ORACLE_HOME/bin/lsnrctl start
=============linux下Oracle 相关命令===============#注意:例子中的oralce命令在/home/oracle/oracle/product/10.2.0/db_1/bin目录。#你可以自己修改成自己的目录。
A.#dbstart //启动数据库  
#dbshut //关闭数据库  
B.#emctl start dbconsole //开启企业管理器  
#emctl stop dbconsole //关闭企业管理器  
C.#lsnrctl start //启动监听  
#lsnrctl stop //关闭监听  
D.#emctl start agent //开启代理 
#emctl stop agent //关闭代理  
E.#sqlplus /nolog  
conn / as sysdba  
startup //启动实例  
shutdown immediate //关闭实例  
F.#tnsping 192.168.1.104 //测试Oracle数据库是否通  
G.:5560/isqlplus //isQL*Plus URL  
:5560/isqlplus/dba //isQL*Plus DBA URL
:1158/em //Enterprise Manager 10g Database

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template