Instance database dbid sid tnsname等概念混个眼熟

简介: Instance  database  dbid  sid  tnsname等概念混个眼熟 一、  instance 要理解instance_name首先要知道instance是什么东西,实例是由进程和内存组成,在系统中是一个临时的区...

Instance  database  dbid  sid  tnsname等概念混个眼熟

一、  instance

要理解instance_name首先要知道instance是什么东西,实例是由进程和内存组成,在系统中是一个临时的区域,会随着关闭而消失,反应了数据库的某一时刻的状态,通常情况下一个database对应着只有一个instance,但是在rac或其它集群的情况下一个database可以相对拥有多个instance

二、  database

database是由重做日志文件,控制文件,参数文件,数据文件,临时文件等文件的一个集合,并且是永久存在的。

三、  dbid

DBID是不是用来标识db_name的序列号,用来作为数据库的唯一标识,一般可用于数据库的恢复

四、  sid

很多人容易把sid和instance_name搞混来,实际上,简单点就是配置的操作系统环境变量,这个变量名必须与instance_name的值相同,否则我发链接到对应的instance

五、  tnsname

是为了方便远程的用户通过监听中指定的tnsname链接到对应的数据库。监听文件里面同样有一个server_name这个名称对应的就是instance_name.

 

注意:一个数据库可以包含多个实例,一个实例只属于一个数据库,一台主机上可以部署多个实例。

目录
相关文章
|
8月前
|
数据库
【YashanDB知识库】YAS-02547 there is a gap in the restored archived logs on instance 1, reason: start of restored archive 35 is greater than database last archive 21
【YashanDB知识库】YAS-02547 there is a gap in the restored archived logs on instance 1, reason: start of restored archive 35 is greater than database last archive 21
|
8月前
|
数据库
【YashanDB知识库】YAS-02547 there is a gap in the restored archived logs on instance 1, reason: start of restored archive 35 is greater than database last archive 21
【YashanDB知识库】YAS-02547 there is a gap in the restored archived logs on instance 1, reason: start of restored archive 35 is greater than database last archive 21
|
数据库连接 数据库
PLSQL_Database Link的基本概念和用法(概念)
2014-06-08 Created By BaoXinjian 一、总结 1. 建立数据库连接的方式 2. 查询方式 3. 连接类型 4. 常用的查询   二、具体分析 1. 建立数据库连接的方式     (1).
816 0
|
SQL Oracle 关系型数据库
WARNING: Too Many Parse Errors With error=911 When Running a JDBC Application Connected to an Oracle 19c database
WARNING: Too Many Parse Errors With error=911 When Running a JDBC Application Connected to an Oracle 19c database (
441 2
|
Oracle 关系型数据库
19c 开启Oracle Database Vault
19c 开启Oracle Database Vault
311 1
|
SQL Oracle 关系型数据库
Connect to Autonomous Database Using Oracle Database Tools
Connect to Autonomous Database Using Oracle Database Tools
204 1
|
人工智能 Oracle 关系型数据库
一篇文章弄懂Oracle和PostgreSQL的Database Link
一篇文章弄懂Oracle和PostgreSQL的Database Link
|
Oracle 关系型数据库 Linux
Requirements for Installing Oracle Database/Client 19c on OL8 or RHEL8 64-bit (x86-64) (Doc ID 2668780.1)
Requirements for Installing Oracle Database/Client 19c on OL8 or RHEL8 64-bit (x86-64) (Doc ID 2668780.1)
171 0
|
SQL Oracle 安全
Oracle Database Vault Access Control Components
Oracle Database Vault Access Control Components
131 0

热门文章

最新文章