版本10.2

在9i下dbstart存在一bug:dbstart启动时在$ORACLE_HOME/dbs下寻找initSID.ora,事实上在该目录下不存在这个pfile,在9i 已经使用了spfile,所以要想正常通过dbstart启动db,需要在目录$ORACLE_HOME/dbs下创建一个initSID.ORA文件,10g中我发现修正了这一问题。不过10g中dbstart在自动启动listener时存在一问题:dbstart脚本中存在下面一行:#ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle

致使启动是出现错误:

[oracle@xys bin]$ dbstart

Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr

Processing Database instance "TEST": log file /opt/app/oracle/product/10.2.0/db_1/startup.log

该错误显示listener不能正常启动,但是instance可以正常启动,原因就是ORACLE_HOME_LISTNER设置的不对,我们修正一下,注释下面一行,增加:

#ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle

ORACLE_HOME_LISTNER=$ORACLE_HOME即可[@more@]

修正之后启动和停止测试如下:

[oracle@xys bin]$ dbstart

Processing Database instance "TEST": log file /opt/app/oracle/product/10.2.0/db_1/startup.log

[oracle@xys bin]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 07-AUG-2008 12:17:51

Copyright (c) 1991, 2005, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xys)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production

Start Date 07-AUG-2008 12:17:27

Uptime 0 days 0 hr. 0 min. 23 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /opt/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

Listener Log File /opt/app/oracle/product/10.2.0/db_1/network/log/listener.log

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xys)(PORT=1521)))

Services Summary...

Service "ORCL" has 1 instance(s).

Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...

Service "TEST" has 2 instance(s).

Instance "TEST", status UNKNOWN, has 1 handler(s) for this service...

Instance "TEST", status READY, has 1 handler(s) for this service...

Service "test_XPT" has 1 instance(s).

Instance "TEST", status READY, has 1 handler(s) for this service...

The command completed successfully

[oracle@xys bin]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Aug 7 12:17:55 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

SQL> select status from v$instance;

STATUS

------------

OPEN

SQL> exit

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

[oracle@xys bin]$ dbshut

shutdown之后发现listener并没有stop,查看dbshut脚本发现该脚本中没有lsnrctl stop命令,也就是说dbshut只是停止instance而并不会停止listener,如果想让dbshut在停止instance的同时也停止listener,可以简单的在dbshut的结尾加上lsnrctl stop.

[oracle@xys bin]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 07-AUG-2008 12:18:48

Copyright (c) 1991, 2005, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xys)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production

Start Date 07-AUG-2008 12:17:27

Uptime 0 days 0 hr. 1 min. 20 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /opt/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

Listener Log File /opt/app/oracle/product/10.2.0/db_1/network/log/listener.log

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xys)(PORT=1521)))

Services Summary...

Service "ORCL" has 1 instance(s).

Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...

Service "TEST" has 1 instance(s).

Instance "TEST", status UNKNOWN, has 1 handler(s) for this service...

The command completed successfully

[oracle@xys bin]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Aug 7 12:19:11 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to an idle instance.

SQL> exit

Disconnected

[oracle@xys bin]$ echo $ORACLE_SID

TEST

[oracle@xys bin]$

linux db 启动盘,在linux下使用dbstart和dbshut启动和关闭db!相关推荐

  1. 【学点Linux】U盘安装Linux系统

    U盘安装Linux系统 直接在电脑上安装 Linux 系统的常用方法有 2 种,分别是用光盘安装和用 U 盘(包括移动硬盘)安装.但由于光盘介质不方便携带.多数电脑不自带光驱等因素,这种安装方式正逐渐 ...

  2. linux sd卡启动盘制作工具,使用Etcher来创建可启动盘(可引导的USB盘或SD卡)的方法...

    本文介绍在 Linux 下安装 Etcher 的方法及使用 Etcher 来创建可启动盘,即创建一个可引导的 USB 盘或 SD 卡.同时它还能在 Windows.MacOS 上使用,Etcher L ...

  3. USE启动盘制作linux服务器/桌面系统搭建(Universal USB Installer)

    很多新手都有一个很疑惑的问题:"Linux我听过,但是学习linux系统,能在上面干什么呢,或者说linux系统具体能做什么",带着这个疑问,我们先来了解下Linux的意义和重要性 ...

  4. 克制linux启动盘,制作Linux启动盘的四种方法

    出处: Linux的启动软盘有boot盘和boot/root盘之分,所谓的boot盘只能用来启动已经安装在硬盘上的 Linux系统,而boot/root盘本身就是一个迷你Linux系统.Linux启动 ...

  5. Linux工作笔记029---Centos7.3 服务器下查看tomcat服务是否启动,重启,查看错误日志等基本操作

    JAVA技术交流QQ群:170933152 启动:一般是执行sh tomcat/bin/startup.sh  停止:一般是执行sh tomcat/bin/shutdown.sh脚本命令  查看:执行 ...

  6. 红旗linux做成u盘,红旗linux下如何用u盘

    2006-08-23 怎样用u盘制作Linux系统的启 1.使用mkbootdisk工具为当前系统制作启动盘 mkbootdisk --device /dev/fd0 `uname -r` 参数说明: ...

  7. linux服务器u盘挂载,Linux系统下如何挂载FAT32的U盘

    Linux挂载U盘步骤如下 1:将U盘插入USB接口,检查是否插好 2:用fdisk命令检查分区和USB设备信息 [root@wgods ~]# fdisk -l Disk /dev/sda: 100 ...

  8. Linux如何制作efi启动盘,教你制作macOS+Ubuntu+WindowsPE超级启动盘(仅支持UEFI)

    对于多系统用户,有没有觉得每一个系统一个U盘很麻烦而且浪费U盘,本文会教你如何制作macOS+Ubuntu+WindowsPE多系统启动盘.注意:建议使用博主分享的PE,其他PE文件结构或许不同,不确 ...

  9. 不用启动盘安装linux系统,不用制作启动盘安装Windows操作系统的最简单办法

    网上流传和被熟知的重装Windows操作系统的办法的前几个步骤通常要制作U盘启动盘或光盘启动盘,在重启计算后全新安装操作系统.这对于没有U盘或者光盘.没有光驱又想全新安装Windows操作系统(也就是 ...

最新文章

  1. 用python实现杨辉三角的几种不同方式
  2. mysql监控nginx_mysql和nginx服务是否正常监控脚本
  3. Spring JDBC-使用XML配置声明式事务
  4. OpenCV FileStorage类的数据读写操作
  5. 深度学习框架Neon
  6. 10进制转化为16进制以内的转化
  7. 靶场练习第十二天~vulnhub靶场之dc-4
  8. 利用光学流跟踪关键点---30
  9. 一种基于伪标签半监督学习的小样本调制识别算法
  10. 如果张东升是个程序员,你还有机会吗?
  11. iOS开发计算工程里面的代码行数
  12. 40 多套 Java 完整实战项目,各个精品!
  13. 域名解析中TTL是什么意思
  14. word 排版大师1.36版本发布啦。
  15. 自问自答系列——商城相关
  16. git恢复某个文件到上一个提交版本
  17. 名帖49 王羲之 小楷《黄庭经》
  18. iPhone12充电头怎么选
  19. 多媒体计算机系统主要分为三类,03多媒体计算机系统组成.ppt
  20. 360全景拍摄方式总结:360度全景拍摄有哪些种类?

热门文章

  1. Android数据存储和读取的三种方法
  2. 戴凌龙, MIMO, OFDM, 5G
  3. 手把手Java爬虫教学 - 2. 爬虫项目创建 需求说明
  4. 文件压缩:WinRAR设置默认压缩格式为.zip
  5. 马德里商标注册注意事项
  6. 2013-2014嵌入式开发从业人员调查报告
  7. 【Codeforces 652 C Foe Pairs 】
  8. plsql是oracle客户端吗,plsql不使用oracle客户端
  9. win7摄像头不在计算机,笔记本专用win7系统打不开摄像头的三种解决方法
  10. fastjson中List和JSONArray的相互转换