一、引言
学习使用了
oracle这几年,现在用起来,有时候仍然感觉到没有熟灿于心,运用起来不能够收发自如。因此下定决心,从头来过,梳毛篦虱,进行一次oracle的基础夯实工程,力争能达到运用自如。
二、数据库的概念
在oracle的官方文档中是这样描述oracle database。
An Oracle database is a collection of
data treated as a unit. The purpose of a database is to store and retrieve related information. A database
server is the key to solving the problems of information management. In general, a server reliably manages a large amount of data in a multiuser environment so that many users can concurrently access the same data. All this is accomplished while delivering high performance. A database server also prevents unauthorized access and provides efficient solutions for failure recovery.
The database has logical structures and physical structures. Because the physical and logical structures are separate, the physical storage of data can be managed without affecting the access to logical storage structures.
数据库实质上就是一个数据集合,它为用记提供了一种并发访问数据的途径。从物理上看,它是一组存放在磁盘上的操作系统文件。
二、实例的概念
实例是由分配给oracle的内存区域及其一组相关的后台进程的集合。实例是用户访问数据库的唯一途径和接口。
三、数据库和实例的关系
数据库文件存于磁盘,而实例信息存在于内存。数据库
服务器关机后,只要磁盘不损坏,则数据库依然存在,只不过此时处于静态而已,而实例则不复存在了。没有实例的数据库是没用的数据库,就像是没有发动机的汽车,就是一堆废铁。实例是灵魂,而数据库是肉体。实例可以先于数据库而存在(比如用ORADIM单独定义实例,,但是就是孤魂野鬼。所以实例和数据库是互为存在,才能有用的。一个实例只能访问一个数据库,一个数据库可由多个实例访问(比如
RAC环境)。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23947808/viewspace-663468/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23947808/viewspace-663468/