zoukankan      html  css  js  c++  java
  • 常用Oracle的SQL语句

    select open_mode from v$database;  #查看数据库的状态模式

    select count(*) from dba_users; #查看有多少dba角色的用户

    select status,instance_name from v$instance; #查看实例状态,名称

    select member from v$logfile;  #查看日志组成员

    show parameter spfile; #查看有关参数文件

    show parameter  【*a-zA-Z0-9】#类似like,模糊匹配查找有关的参数

    sqlplus /@实例名 as sysdba #切换实例

    ps -ef|grep smon #查看Oracle有多少实例

    v$diag_info告警日志文件系统视图 select name,value from v$diag_info;

    -------oracle 查看已经执行过的sql 这些是存在共享池中的 --------->
    select * from v$sqlarea t order by t.LAST_ACTIVE_TIME desc
    -----------查看oracle会话----------------------------》
    select * from v$session t order by t.LAST_ACTIVE_TIME desc

    select value from v$parameter where name like 'proc%'; --查看最大会话数
    select count(*) from v$process;--显示数据库当前的连接数
    select value from v$parameter where name ='processes' --显示数据库最大连接数

    假设是一种超能力
  • 相关阅读:
    RabbitMQ安装
    Redis安装
    spring boot 与 vue 配置 https
    JAVA 注解
    Java 获取两个日期之间的所有日期
    数组排序
    el-table表格高度自适应
    Windows使用Nexus搭建Maven私服
    SpringCloud 整合 Python
    SpringCloud 整合 Python
  • 原文地址:https://www.cnblogs.com/Haihong72H/p/11646813.html
Copyright © 2011-2022 走看看