Home > Database > Mysql Tutorial > body text

SUSE Linux 启动Oralce服务及Oralce实例

WBOY
Release: 2016-06-07 16:47:36
Original
925 people have browsed it

SUSE Linux 启动Oralce服务及Oralce实例

通过ssh连接到SUSE Linux服务上。
 
设置系统时间命令:2014-04-01 10:00
 
date --set=“04/01/14 10:00”


第一步,启动监听;
  su - Oracle --“切换到oracle用户”
  lsnrctl start --“打开监听”
 第二步,启动数据库实例。
 
 sqlplus /nolog --“进入到sqlplus”


SQL> conn /as sysdba --“连接到sysdba”
 SQL> startup --“启动数据库实例”

假如你的服务器上有DB1和DB2两个实例,且这两个实例都是由同一个操作系统用户创建的,用此操作系统用户登录到服务器,
 执行
 

export ORACLE_SID=DB1
 sqlplus /nolog
 connect scott/tiger as sysdba
 startup
 exit EOF
 

export ORACLE_SID=DB2
 sqlplus /nolog
 connect scott/tiger as sysdba
 startup 

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