一、启动数据库

1.进入到sqlplus启动监听

[oracle@redhat ~]$ su - oracle                                 --“切换到oracle用户”
Password:
[oracle@redhat ~]$ lsnrctl start                               --“打开监听”

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-OCT-2009 19:06:40
Copyright (c) 1991, 2005, Oracle.  All rights reserved.
Starting /home/oracle/product/10g/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /home/oracle/product/10g/network/admin/listener.ora
Log messages written to /home/oracle/product/10g/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=redhat)(PORT=1522)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC2)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                14-OCT-2009 19:06:40
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /home/oracle/product/10g/network/admin/listener.ora
Listener Log File         /home/oracle/product/10g/network/log/listener.log
Listening Endpoints Summary...
 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=redhat)(PORT=1522)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
 Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

2.启动数据库实例

[oracle@redhat ~]$ sqlplus /nolog                                --“进入到sqlplus”
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Oct 14 19:06:45 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
SQL> conn /as sysdba                                              --“连接到sysdba”
Connected to an idle instance.
SQL> startup                                                     --“启动数据库实例”
ORACLE instance started.
Total System Global Area  285212672 bytes
Fixed Size      1218968 bytes
Variable Size     88082024 bytes
Database Buffers   188743680 bytes
Redo Buffers      7168000 bytes
Database mounted.
Database opened.

二、关闭数据库

1.关闭实例

SQL> shutdown immediate                                          --“关闭数据库实例”
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

2.关闭监听

[oracle@redhat ~]$ lsnrctl stop                                 --“关闭监听”
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-OCT-2009 19:08:06
Copyright (c) 1991, 2005, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC2)))
The command completed successfully

##########################################################

启动EM控制台

1.[oracle@redhat ~]$ emctl start

// 用来检查EM工具是否已经安装配置,若没有配置可以使以下命令配置

2.[oracle@redhat ~]$emca -config dbcontrol db -repos recreate

3.[oracle@redhat ~]$emctl start  dbconsole           //启动EM控制台

转载于:https://blog.51cto.com/168ok8/1049509

Linux下启 停 oracle 以及em控制台相关推荐

  1. Linux下启停McAfee防病毒软件

    启停McAfee主要是启停cma 和nails服务. cma和nails命令的全部参数: [root@localhost bin]# service cma Usage: /etc/init.d/cm ...

  2. linux下oracle开机自启动,Linux下开机自动启动Oracle的设置

    让我手动启动数据库,我决定花点时间研究下Oracle随Linux自动重启的设置,具体方法如下: 因为办公室突然停电,服务器重启后,数据库并没有跟着重启,,我才发现原来所有的数据库都没有设置开机自动重启 ...

  3. Linux下静默安装Oracle数据库

    Linux下静默安装Oracle数据库 CentOS挂载镜像 修改主机名 Centos挂载镜像,配置本地yum源 安装Oracle依赖包 下载依赖包 优化OS内核参数 优化OS参数 Oracle设置s ...

  4. linux php连接orcel,Linux下PHP连接Oracle数据库

    Linux下PHP连接Oracle数据库2020-06-12 16:50:57 安装步骤: 一.安装oracle-instantclient 下载地址:http://www.oracle.com/te ...

  5. 創建oracle用戶及表空間,window,linux下創建oracle用戶及表空間 對比 易於學習

    1.window下創建oracle用戶及表空間 --創建數據表空間 create tablespace oras_data  --表空間的名字 logging datafile 'D:\oracle\ ...

  6. linux下imp导入oracle数据库,Oracle数据库Linux下的导入IMP

    和相关篇的EXP相对应的用了如下的导入方法. [oracle@localhost ~]$ imp Import: Release 11.2.0.1.0 - Production on Fri Sep ...

  7. Linux下自动备份Oracle数据库并删除指定天数前的备份

    说明: Oracle数据库服务器 操作系统:CentOS IP:192.168.0.198 端口:1521 SID:orcl Oracle数据库版本:Oracle11gR2 具体操作: 1.root用 ...

  8. aix oracle备份命令,Aix/Linux下自动备份oracle数据库

    曾经有个同事,来回操作开发和生产的数据库,结果误删了生产的数据库,那种心情我想不是一般人能理解的,虽然说oracle可以有方法还原,但并不是彻底的. 所以,在工作中,不管是开发还是维护,备份数据库是非 ...

  9. Linux下oracle em安装,关于在linux下手动安装oracle之后,安装em的问题

    linux是centos 7.2 mini版的. 在安装好数据库后,能正常启动使用, 但是在安装em时,过程如下 配置OEM的方法 1.设置export ORACLE_UNQNAME等于oracle_ ...

最新文章

  1. Django视图之介绍、项目准备、URL、路由命名、reverse反解析和Postman测试
  2. 开发日记-20190914 关键词 汇编语言王爽版 第六章
  3. DA14580做主机
  4. 研制一个生产计划编制的软件
  5. Linux系统下按了Ctrl+s锁定屏幕后怎么办?
  6. http请求post,返回excel文件,并接收
  7. python作中国地图背景气泡图_exce表格中怎么制作中国地图背景数据气泡图
  8. 瑞典卡罗林斯卡医学院博士后招聘,图像流行病学和深度学习领域
  9. 51Nod1682 中位数计数【中位数】
  10. 九小时九个人九扇门(01背包)
  11. Windows Azure 安全最佳实践 - 第 7 部分:提示、工具和编码最佳实践
  12. WorldView-2数据的预处理
  13. 二十年后的回眸(1)——报到上班
  14. 关于IplImage中widthstep的大小与width,nchanne
  15. UltraISO制作U盘系统盘安装CentOS经验分享
  16. gitbook 入门教程之还在搞公众号互推涨粉?gitbook 集成导流工具,轻轻松松躺增粉丝!...
  17. 图像融合论文及代码网址整理总结(1)——多聚焦图像融合
  18. 6-2 递归求阶乘和 (15 分)
  19. 简单的类实现接口的方法
  20. 丘成桐:赋比兴、境界与数学

热门文章

  1. c# 文件及目录操作类
  2. 整合初步---------SSH(注解版)
  3. windows server 2008 - 创建域和本机用户
  4. extjs中文字体在firefox和Adobe Air里显示偏小的问题
  5. seata-server没有从nacos配置中心读取配置_微服务新秀之Nacos,看了就会,我说的
  6. linux 关闭nginx进程,Linux环境下启动、停止、重启nginx
  7. 大专计算机学语数英理化生吗,学考11-13号报名啦!你知道语数英和政史地/物化生成绩有什么作用嘛?不懂你会后悔的!!...
  8. c盘python27文件夹可以删除嘛_电脑C盘那些文件夹可以删除
  9. 高性能服务器编程代码清单9-3,JRockit JVM优化清单/调优指南
  10. HTML从入门到进阶修炼