最近查看慢查询日志,一直有看到SELECT * FROM tb_name的SQL语句,在之前SQL审核的时候,也没发现有这些SQL的存在,所以很好奇这里怎么出现的,后来用了vc-mysql-sniffer脚本去抓SQL来分析,也没有找出SELECT * 之类的SQL,下面我上图让分析一下: slow ...
分类:
其他好文 时间:
2017-11-28 11:55:24
阅读次数:
179
控制文件 1》 查看控制文件信息 v$controlfile Select name from v$controlfile 2》 创建控制文件 a) 查询数据文件(记录下来) Select name from v$datafile; b) 查询日志文件(记录下来) Select group#,mem ...
分类:
其他好文 时间:
2017-11-23 08:16:05
阅读次数:
163
一、完整命令 二、完整过程 1.以root用户登录linux,然后切换到oracle用户,以sysdba的身份登录oracle 2.创建表空间和临时表空间 2.1 表空间: 一般在开发情况下,我们当然不会使用用户的默认表空间,所以这时我们需要创建一个表空间. 注:datafile后面是表空间的物理存 ...
分类:
数据库 时间:
2017-11-22 17:48:24
阅读次数:
236
最近发现生产环境主要表空间增长过快,每天几个G,想查看一下原因。查看快照信息:select * from DBA_HIST_SNAPSHOT order by 1 desc根据快照信息,查看历史端使用情况:create table t1 as select * from DBA_HIST_SEG_S ...
分类:
其他好文 时间:
2017-11-11 11:42:13
阅读次数:
246
alter system dump datafile 8 block 2523;Block dump from disk:buffer tsn: 87 rdba: 0x160dd924 (88/907556)scn: 0x0d5e.326709f3 seq: 0x01 flg: 0x06 tail: ...
分类:
数据库 时间:
2017-11-11 11:39:13
阅读次数:
238
What is the impact of the results of the output of the following command?RMAN> report unrecoverable database;Report of files that need backup due to u ...
分类:
其他好文 时间:
2017-11-10 20:14:57
阅读次数:
164
Given the scriptcreate script db_backup_datafile_script{backup datafile and 1, and2 plus archivelog delete input;}What is the result of running this c ...
分类:
其他好文 时间:
2017-11-10 15:09:07
阅读次数:
195
Win+R调查运行窗口,输入cmd回车 连接到本地oracle库 创建名为“SXSJ”的表空间,其初始大小为512M,支持自动扩展,每次增量为32M; create tablespace SXSJ datafile 'D:\app\LZB\oradata\SXSJ' size 512M autoex ...
分类:
数据库 时间:
2017-11-10 12:46:30
阅读次数:
264
Your database has experienced a loss of datafile users_01.dbf, which is associated with a ablespace called USERS. The database is still running. Which ...
分类:
其他好文 时间:
2017-11-08 19:41:58
阅读次数:
110
Which view provides information on the backup status of the datafiles in the database?A. V$BACKUPB. V$BACKUP_STATUSC. V$BACKUP_DATAFILED. V$DATAFILE_B ...
分类:
其他好文 时间:
2017-11-08 15:55:58
阅读次数:
91