Oracle DBA常用查询】的更多相关文章

Oracle DBA常用查询 –1. 查询系统所有对象select owner, object_name, object_type, created, last_ddl_time, timestamp, statusfrom dba_objectswhere owner=upper('scott') –2. 查看系统所有表select owner, table_name, tablespace_name from dba_tables –3. 查看所有用户的表select owner, tabl…
1. 查询系统所有对象 select owner, object_name, object_type, created, last_ddl_time, timestamp, statusfrom dba_objectswhere owner=upper('scott') –2. 查看系统所有表select owner, table_name, tablespace_name from dba_tables –3. 查看所有用户的表select owner, table_name, tablesp…
oracle数据库常用查询一 sqlplus / as sysdba; 或sqlplus sys/密码 as sysdba;两者都是以sys登录.conn scott/tiger@orcl; conn sys/密码@orcl as sysdba; ============================= 1.查看SERVICE_NAME---show parameter service_name; 2.查看监听状态,在非sqlplus窗口下---lsnrctl status 监听名(缺省为li…
ORACLE数据库常用查询 1.查看表空间对应数据文件情况: SQL MB,AUTOEXTENSIBLE FROM DBA_DATA_FILES; TABLESPACE_NAME FILE_NAME MB AUTOEXTENSIBLE ------------------------------ -------------------------------------------------------------- ---- -------------- USERS D:\APP\ADMIN…
1.2 DBA常用的表1.2.1  dba_开头    dba_users数据库用户信息    dba_segments  表段信息    dba_extents    数据区信息    dba_objects    数据库对象信息    dba_tablespaces   数据库表空间信息    dba_data_files    数据文件设置信息    dba_temp_files   临时数据文件信息    dba_rollback_segs   回滚段信息    dba_ts_quota…
监控SQL 1.监控事例的等待: select event,sum(decode(wait_time,0,0,1)) prev, sum(decode(wait_time,0,1,0)) curr,count(*) from v$session_wait group by event order by 4; 2.回滚段的争用情况: select name,waits,gets,waits/gets ratio from v$rollstat a,v$rollname b where a.usn=…
/*查看表空间的名称及大小*/ SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size FROM dba_tablespaces t, dba_data_files d WHERE t.tablespace_name = d.tablespace_name GROUP BY t.tablespace_name; /*查看表空间物理文件的名称及大小*/ SELECT tablespace_name, file_i…
1.[oracle@dbserver ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Tue Mar 15 15:16:03 2022Copyright (c) 1982, 2013, Oracle.  All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Product…
1.查看表空间的名称及大小 select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_sizefrom dba_tablespaces t, dba_data_files dwhere t.tablespace_name = d.tablespace_namegroup by t.tablespace_name; 2.查看表空间物理文件的名称及大小 select tablespace_name, file_id, file_name…
☆dba_开头.....   dba_users      数据库用户信息   dba_segments  表段信息   dba_extents    数据区信息   dba_objects    数据库对象信息   dba_tablespaces   数据库表空间信息   dba_data_files    数据文件设置信息   dba_temp_files   临时数据文件信息   dba_rollback_segs   回滚段信息   dba_ts_quotas   用户表空间配额信息  …