查看oracle是否正常、表空间 (AIX)

摘要:
裁判http://blog.itpub.net/23556054/viewspace-1115506/===================================================================检查oracle数据库是否已启动:1。LINUX:

REF

http://blog.itpub.net/23556054/viewspace-1115506/

===================================================================

查看 oracle 数据库是否启动:

一、LINUX:

1、用  ps -ef|grep ora  查看,是否有oracle的进程,linux下还可以用ipcs查看

2、查看监听的方法

  cd /oracle/product/10.2.0/db_1/bin/
  lsnrctl status
  启动监听
  lsnrctl start


Message 1053 not found; No message file for product=network, facility=TNSMessage 1020 not found; No message file for product=network, facility=TNSMessage 1021 not found; No message file for product=network, facility=TNSMessage 1022 not found; No message file for product=network, facility=TNSMessage 1023 not found; No message file for product=network, facility=TNSMessage 1026 not found; No message file for product=network, facility=TNSMessage 1034 not found; No message file for product=network, facility=TNSMessage 1024 not found; No message file for product=network, facility=TNSMessage 1025 not found; No message file for product=network, facility=TNSMessage 1040 not found; No message file for product=network, facility=TNSMessage 1033 not found; No message file for product=network, facility=TNSMessage 1028 not found; No message file for product=network, facility=TNSMessage 1415 not found; No message file for product=network, facility=TNS  Message 1050 not found; No message file for product=network, facility=TNS
  Message 1050 not found; No message file for product=network, facility=TNS
Message 1029 not found; No message file for product=network, facility=TNSMessage 1411 not found; No message file for product=network, facility=TNS
  Message 1408 not found; No message file for product=network, facility=TNS
  Message 1408 not found; No message file for product=network, facility=TNS
Message 1411 not found; No message file for product=network, facility=TNS
  Message 1408 not found; No message file for product=network, facility=TNS
Message 1411 not found; No message file for product=network, facility=TNS
  Message 1408 not found; No message file for product=network, facility=TNS
Message 1052 not found; No message file for product=network, facility=TNS#

===================================================================

二、windows:

进到数据库里面看数据库当前状态
select instance_name,status from v$instance;

如果status = open 就说明oracle服务正常。
查看监听,执行lsnrctl  status,就可以看监听所对应的实例。
是否有scott用户,可以查看dba_users这个表的用户状态。

==================================================================

三、检查操作系统空间使用状态
   Linux命令:df -h或df -g
   window:查看磁盘管理器

==================================================================

四、表空间检查

 1、select tablespace_name,sum(bytes)/1024/1024 as total_size
    from dba_data_files
    group by tablespace_name

2、select tablespace_name,sum(bytes)/1024/1024 as total_size
    from dba_free_space

    group by tablespace_name

==================================================================

五、启动过程:
sqlplus /nolog    or  (sqlplus sys/passwd as sysdba)
conn sys/password as sysdba
SQL> select status from v$instance
ORA-01034: ORACLE not available ------------shutdown
SQL> startup nomount         ------------started
SQL> alter database mount   ------------mounted
SQL> alter database open     ------------open
==================================================================

6、检查表空间碎片
select tablespace_name, sqrt(MAX(blocks)/sum(blocks))*(100/sqrt(sqrt(COUNT(blocks)))) as

"FSFI%"
 from dba_free_space
 group by tablespace_name

==================================================================

免责声明:文章转载自《查看oracle是否正常、表空间 (AIX)》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Spring注解@Component、@Repository、@Service、@Controller @Resource、@Autowired、@Qualifier、@scopethis.$alert 方法下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

命名空间“System.Windows”中不存在类型或命名空间名“Forms”(是否缺少程序集引用?) ——c#

原因: 新建项目为类库时,项目不会自动引用System.Windows.Forms,当我们使用命名空间System.Windows.Forms时,就会报这个错误 解决方法: 右键引用——添加引用——框架——搜索System.Windows.Forms添加即可...

理解矩阵(二)

转自:http://blog.csdn.net/myan/article/details/649018 接着理解矩阵。 上一篇里说“矩阵是运动的描述”,到现在为止,好像大家都还没什么意见。但是我相信早晚会有数学系出身的网友来拍板转。因为运动这个概念,在数学和物理里是跟微积分联系在一起的。我们学习微积分的时候,总会有人照本宣科地告诉你,初等数学是研究常量的...

LSPCI具体解释分析

一、PCI简单介绍     PCI是一种外设总线规范。我们先来看一下什么是总线:总线是一种传输信号的路径或信道。典型情况是,总线是连接于一个或多个导体的电气连线,总 线上连接的全部设备可在同一时间收到全部的传输内容。总线由电气接口和编程接口组成。本文讨论Linux 下的设备驱动,所以,重点关注编程接口。     PCI是Peripheral Compon...

C# new和初始化

虽然知道使用new可以创建对象,但一直不是很理解初始化和new等知识的具体。 通过8个问题和需求,了解相关知识。 了解问题和需求 1.new 的三个步骤 2.初始化是什么意思。 3.变量声明后和变量赋值为null或变量调用了new的区别。 4.字段不是变量。 一、new的三个步骤: 1 在栈或者堆中开辟空间,空间的大小由类决定,进行内存空间指向。 2 在开...

智能手机跑大规模神经网络的主要策略

计算机具有高储量的硬盘和强大的CPU和GPU。但是智能手机却没有,为了弥补这个缺陷,我们需要技巧来让智能手机高效地运行深度学习应用程序。 介绍 深度学习是一个令人难以置信的灵活且强大的技术,但运行的神经网络可以在计算方面需要非常大的电力,且对磁盘空间也有要求。这通常不是云空间能够解决的问题,一般都需要大硬盘服务器上运行驱动器和多个GPU模块。 不幸的是,...

SQL中AVG、COUNT、SUM、MAX等聚合函数对NULL值的处理

一、AVG()求平均值注意AVE()忽略NULL值,而不是将其作为“0”参与计算  二、COUNT() 两种用法 1、COUNT(*)对表中行数进行计数不管是否有NULL 2、COUNT(字段名)对特定列有数据的行进行计数忽略NULL值  三、MAX()、MIN()求最大、最小值都忽略NULL  四、SUM()可以对单个列求和,也可以对多个列运算后求和忽略...