linux 常用查看命令 目录 linux 常用查看命令 linux 查看内存/进程-ps/top linux 查看磁盘存储-df linux 查看io读写-iotop linux 查看端口占用-netstat linux 查看内存/进程-ps/top ps和top的语法 [ranan@hadoop102 ~]$ ps -aux top动态监控 [ranan@hadoop102 ~]$ top linux 查看磁盘存储-df 磁盘相关笔记 [ranan@hadoop102 ~]$ df -h l…
1.查看数据库归档是开启还是关闭SQL> archive log list 更改数据库归档模式: SQL> shutdown immediateSQL> startup mountSQL> alter database archivelog(改为归档)/noarchivelog(改为非归档)SQL> alter database open 查看参数/控制/数据/日志/归档/告警日志(bdump目录下,以alert打头)文件位置:SQL> show parameter s…
获取表: select table_name from user_tables; //当前用户的表 select table_name from all_tables; //所有用户的表 select table_name from dba_tables; //包括系统表 select table_name from dba_tables where owner='用户名' user_tables: table_name,tablespace_name,last_analyzed等 dba_ta…
转自:http://www.cnblogs.com/qingsong-do/archive/2011/11/29/2267244.html 获取表: select table_name from user_tables; //当前用户的表 select table_name from all_tables; //所有用户的表 select table_name from dba_tables; //包括系统表 select table_name from dba_tables where own…
1.查看当前数据库实例名称:select * from v$instance;2.查看当前用户的角色:select * from user_role_privs;3.查看当前用户下所有的表:select * from user_tables;4.查看当前名称包含admin字符的表:select object_name,object_id from user_objects where instr(object_name,'admin')>0;…
Oracle查询完整格式如下: Select * from XX where XX group by YY having XX order by YY Select count(*), XX from tt group by XX 对结果统计计数 下面针对group by的用途进行说明. 一.概述 "Group By"从字面意义上理解就是根据"By"指定的规则对数据进行分组,所谓的分组就是将一个"数据集"划分成若干个"小区域&quo…
1. 查看当前库sehcma大小,并按schema排序 SELECT schema_name, pg_size_pretty(sum(table_size)::bigint) as "disk space", ( as "percent" FROM ( SELECT pg_catalog.pg_namespace.nspname as schema_name, pg_relation_size(pg_catalog.pg_class.oid) as table_si…