重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

oracle怎么生成快照,oracle查看快照

各位大神Oracle VM VirtualBox虚拟机怎么用快照功能?备份后怎么恢复?

虚拟机运行的时候选择“控制”-“生成备份”。

创新互联建站主要企业基础官网建设,电商平台建设,移动手机平台,微信小程序开发等一系列专为中小企业按需求定制设计产品体系;应对中小企业在互联网运营的各种问题,为中小企业在互联网的运营中保驾护航。

备份完成要恢复的话,在快速修复页面,点击已备份项右键恢复备份即可。

oracle中我要去特定时间内额awr报告,需要创建快照,怎么弄?

你还是系统的看一下关于AWR报告的资料吧,系统默认是一小时自己创建一次快照,但是根据快照来取某个时间段的报告,则需要DBA介入。通过你提问问题的方式,建议你系统查找awr的资料,不然即使给你提供了包,你也不会用。

Oracle VM VirtualBox虚拟机怎么用快照功能?备份后怎么恢复?

在 Oracle VM VirtualBox 管理器界面\x0d\x0a右上角, 有 "明细" 与 "备份"\x0d\x0a \x0d\x0a点到 "备份"\x0d\x0a会列出当前虚拟机, 都有哪些备份。\x0d\x0a \x0d\x0a点击选择好后, 鼠标右键, 会出现 “恢复备份” 与 “删除备份”

如何生成Oracle AWR报告

oracle手工生成AWR报告方法记录

AWR(Automatic Workload Repository)报告是DBA进行日常数据库性能评定、问题SQL发现的重要手段。熟练掌握AWR报告,是做好开发、运维DBA工作的重要基本功。

1、 运行脚本

首先,准备一个目录作为AWR生成报告的路径。

[oracle@bspdev /]$ ls -l | grep test

drwxr-xr-x. 2 oracle oinstall 4096 Jun 21 13:01 test

[oracle@bspdev /]$ cd test

启动sqlplus等开发工具,调用生成脚本。程序脚本一般保存在$ORACLE_HOME下的rdbms/admin中,名称为awrrpt.sql。

[oracle@bspdev test]$ sqlplus /nolog

SQL*Plus: Release11.2.0.1.0 Production on Tue Jun 21 13:04:44 2011

Copyright (c) 1982, 2009, Oracle. All rights reserved.

SQL conn / as sysdba

Connected.

--调用脚本,生成文件

SQL @?/rdbms/admin/awrrpt.sql

之后进入报告参数输入模块。

2、输入报告参数

之后,要持续输入一系列的报告参数。

ü 输入生成报告类型,目前AWR提供txt和html两种格式。需要确认生成格式,默认是html格式。

Current Instance

~~~~~~~~~~~~~~~~

DB Id DB Name Inst Num Instance

----------- ------------ -------- ------------

4143510747 ORA11G 1 ora11g

Specify the Report Type

~~~~~~~~~~~~~~~~~~~~~~~

Would you like an HTML report, or a plain text report?

Enter 'html' for an HTML report, or 'text' for plain text

Defaults to 'html'

ü 报告涉及天数范围

启动报告后,会显示生成实例的名称等基本信息。

默认情况下,AWR会将镜像信息保留一个月。手工生成的时候,需要确认生成AWR报告的时间范围。一般情况下,特别是生产环境下,我们通常设置1-7天也就够用了。

Instances in this Workload Repository schema

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DB Id Inst Num DB Name Instance Host

------------ -------- ------------ ------------ ------------

* 4143510747 1 ORA11G ora11g bspdev.local

domain

Using 4143510747 for database Id

Using 1 for instance number

Specify the number of days of snapshots to choose from

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Entering the number of days (n) will result in the most recent

(n) days of snapshots being listed. Pressing without

specifying a number lists all completed snapshots.

Enter value for num_days:3

ü 输入开始和结束的snapshot编号

输入天数信息后,AWR生成代码会将天数范围内的snapshot镜像点列出,供输入选择。

Listing the last 3 days of Completed Snapshots

Snap

Instance DB Name Snap Id Snap Started Level

------------ ------------ --------- ------------------ -----

ora11g ORA11G 1789 20 Jun 2011 13:01 1

1790 20 Jun 2011 14:00 1

1791 20 Jun 2011 15:00 1

1792 20 Jun 2011 16:00 1

(篇幅原因,有省略……)

1811 21 Jun 2011 11:00 1

1812 21 Jun 2011 12:00 1

1813 21 Jun 2011 13:00 1

Specify the Begin and End Snapshot Ids

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

之后,我们需要根据列出的时间范围,输入开始和结束的snap编号。

Specify the Begin and End Snapshot Ids

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Enter value for begin_snap:1796

Begin Snapshot Id specified: 1796

Enter value for end_snap:1813

ü 确定报告名称

最后就是确定生成报告的名称。一般采用默认的名称就可以了。

Specify the Report Name

~~~~~~~~~~~~~~~~~~~~~~~

The default report file name is awrrpt_1_1796_1813.html. To use this name,

press to continue, otherwise enter an alternative.

Enter value for report_name:

之后输出内容很多,此处不加以累述。最后提示报告生成成功。

Report written to awrrpt_1_1796_1813.html

于是,指定目录上可以看到相应的报告文件。

[oracle@bspdev test]$ ls -l

total 508

-rw-r--r--. 1 oracle oinstall 515262 Jun 21 13:10 awrrpt_1_1796_1813.html


分享题目:oracle怎么生成快照,oracle查看快照
地址分享:http://cqcxhl.cn/article/hdojee.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP