Archive for 十一月, 2007

Oracle Database 10g Release 2 New Features in Backup and Recovery

星期五, 十一月 30th, 2007

1 RMAN Encrypted Backups 加密备份

2 闪回数据库增加,OPEN RESETLOGS后 之前的备份仍可用

3 Restore Points

Restore Points are aliases for SCNs, which eliminate the need to manually research and record SCNs or timestamps to use for Flashback Database and Flashback Table operations

4 Guaranteed Restore Points

5 Incremental Roll Forward of Database Copy

(全文…)

management undo tablespaces

星期五, 十一月 30th, 2007

UNDO的作用:

1 回滚事务

2 恢复数据

3提供一致性读

4 使用FLASHBACK 恢复逻辑错误

关于UNDO的管理,一般自动

(全文…)

management datafiles and tempfiles

星期五, 十一月 30th, 2007

数据文件和临时文件是数据库的数据在操作系统上的物理文件

每个数据文件都有两个文件号相关联,他们是FILE#或者FILE_ID,这些都可以通过查看V$DATAFILE、V$TEMPFILE或dba_data_files、dba_temp_files

例如:

SQL> select file#,name from v$datafile;

     FILE# NAME
———- ————————————————–
         1 F:\APP\BOSON.SUN\ORADATA\ORCL\SYSTEM01.DBF
         2 F:\APP\BOSON.SUN\ORADATA\ORCL\SYSAUX01.DBF
         3 F:\APP\BOSON.SUN\ORADATA\ORCL\UNDOTBS01.DBF
         4 F:\APP\BOSON.SUN\ORADATA\ORCL\USERS01.DBF
         5 F:\APP\BOSON.SUN\ORADATA\ORCL\EXAMPLE01.DBF
         6 F:\APP\BOSON.SUN\ORADATA\ORCL\P1.DBF
         7 F:\APP\BOSON.SUN\ORADATA\ORCL\P2.DBF
         8 F:\APP\BOSON.SUN\ORADATA\ORCL\P3.DBF
         9 F:\APP\BOSON.SUN\ORADATA\ORCL\P4
        10 F:\APP\BOSON.SUN\ORADATA\ORCL\DEMO.DBF
        11 F:\APP\BOSON.SUN\PRODUCT\11.1.0\DB_1\BOSON.DBF

     FILE# NAME
———- ————————————————–
        12 F:\APP\BOSON.SUN\PRODUCT\11.1.0\DB_1\DEMO01.DBF

已选择12行。

(全文…)

management tablespaces

星期四, 十一月 29th, 2007

首先说下多表空间的好处:

1 从数据字典中分离用户数据,减少IO争用

2 从应用中分离数据,避免多个应用受单一表空间的影响。

3 数据文件分布在不同磁盘的表空间中,减少IO争用

4 提供更好的可用性,某个表空间的OFFLINE不影响别的表空间的应用

5 Optimizing tablespace use by reserving a tablespace for a particular type of database use, such as high update activity, read-only activity, or temporary segment storage.

6 备份单独表空间

(全文…)

db link

星期四, 十一月 29th, 2007

刚才在群里看到有人问DB LINK相关问题。。就搜索了下,感觉不错记录在此。

数据库dblink简单介绍
数据库之间的链接建立在DATABASE LINK上。要创建一个DB LINK,必须先
在每个数据库服务器上设置链接字符串。
 
  1、  链接字符串即服务名,首先在本地配置一个服务名,地址指向远程的数据库地址,服务名取为将来你要使用的数据库链名:
 
2、创建数据库链接,
进入系统管理员SQL>操作符下,运行命令:
 
SQL>create public database link beijing connect to scott identified by tiger 
            using ‘tobeijing’;
 

(全文…)