利用归档来做数据文件的恢复
数据库是归档状态,但是没有做过全库备份。归档文件全部都在。利用归档文件来进行恢复操作,操作过程如下: 启库时,提示如下错误信息 SYS@testdb>alter database open; alter database open * ERROR at line 1: ORA-01147: SYSTEM tablespace file 8 is offline ORA-01110: data file 8: '/oracle/ora1...
10g数据库从10.2.0.4升级到10.2.0.5
10g数据库从10.2.0.4升级到10.2.0.5
OCM实验-使用在线重定义方式迁移表
要求使用在线重定义方式迁移表 优点:支持在线读/写,不影响大查询,对海量数据的表进行操作效率非常好,实质只更新数据字典,不移动数据 缺点:在线重定义后表上的主键、索引不会同步过来,必须重建,只变换表名.在finish转换过程中原表是锁定状态 官方文档: PL/SQL Packages and Types Reference -> 搜索在线重...
含有特殊字符的数据文件处理
检查数据文件,以24号数据文件存在特殊字符为例。 SQL> select file#,name from v$datafile; FILE# NAME ---------- ------------------------------------------------------------ 23 /ora10g/oradata/ssc620.data11 ...
OCM实验-GC资源管理器资源消耗组演示
要求: 1.定义2个资源消耗组(OLTP事务处理资源消耗组和DSS数据仓库资源消耗组) 2.创建一个日程计划schedule 3.对于OLTP资源消耗组,我们最多不能有超过50个活动会话数,如果超过了50个活动会话那么就应该中止120秒后再请求 4.对于DSS资源消耗组,我们最多不能超过10个活动会话数,如果超过了10个活动会话...
GC启动报OEM 503 Service Unavailable
servlet error service is not initialized correctly verify that the repository connection 检查监听 [oracle@ocm2 ~]$ lsnrctl status LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 28-JAN-2014 10:52:08 Copyright (c) 1991, 2005, Oracle. All rights reserved. Connecting to (ADDRESS=(...
OCM实验-创建含特殊字段类型的表
创建具有ROWID及时间戳类型字段的表并插入数据.这个实验很简单 首先,我们需要建一个具有rowid 以及时间戳字段的表 TESTDB@PROD>create table t1 (text rowid,insert_time timestamp with local time zone); Table created. 其次,向该表中插入一些数据 TESTDB@PROD>insert into t1 select rowid,current_timestamp f...
OCM实验-监控索引使用情况
监控索引使用情况,主要用于判断该索引是否为无效索引,如果为无效索引最好是将该索引删除 官方文档 http://docs.oracle.com/cd/B19306_01/server.102/b14231/indexes.htm#sthref2560 首先,我们先建立测试表和索引 SYS@PROD>create table testdb.t as select * from dba_objects; Table created. SYS@PROD>conn te...
OCM实验-分区表
要求:创建一个分区表,共有4个分区,每个分区独立使用一个表空间,使用非标准块,块大小16k,创建一个全区索引,truncate掉一个分区数据并保证全局索引有效。 1 准备分区数据 create table t2 (itemid number(10),name varchar2(10),itemdate date); create index idx_t2 on t2(itemid); insert into t2 values (1,...
OCM实验-外部表
要求从PROD数据库卸载数据,然后再OCM2库加载该数据,使用数据泵的方式。 外部表适用于导出的数据可用于二次开发或者数据迁移 1)从PROD数据库导出数据 SYS@PROD>create user exp identified by exp default tablespace users; User created. SYS@PROD>grant dba to exp; Grant succeeded. SYS@PROD>cre...
OCM实验-物化视图
要求创建跨库物化视图并可手动更新 1)创建基表。在catalog所在的数据库,新建用户并创建一个基表t,插入一些测试记录 SYS@OCM2>select tablespace_name from dba_tablespaces; TABLESPACE_NAME ------------------------------ SYSTEM UNDOTBS SYSAUX TEMPTS1 USERS MGMT_TABLESPACE MGMT_ECM_D...
flashback的配置
在10g,11g中,flashback默认是关闭的。这个功能在处理表误删除或者数据误删除的恢复中还是有很重要的作用的。建议将其开启。 开启过程如下: 1)检查数据库flashback是否开启 SYS@PROD>select open_mode,log_mode,flashback_on from v$database; OPEN_MODE LOG_MODE FLASHBACK_ON ---------- ------------ -----------...
控制文件-control file
什么是控制文件 Every Oracle database has a control file. A control file is a small binary file that records the physical structure of the database and includes: The database name Names and locations of associated datafiles and online redo log files The timestamp of the database creation...
数据库启动归档模式
启动数据库的归档模式
ORA-00845 MEMORY_TARGET not supported
ORA-00845: MEMORY_TARGET not supported on this system
启动监听报TNS-01150错误处理
启动监听时报TNS-01150: The address of the specified listener name is incorrect错误的处理。
OCM实验-grid control agent安装
OCM实验-grid control agent安装
OCM实验-grid control安装
OCM实验-grid control安装
rman 建立catalog库
rman 建立catalog库
OCM实验-网络配置
OCM实验-网络配置