Oracle
发布时间:2022-05-17 发布网站:大佬教程 code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Oracle学习笔记(六),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
Oracle服务器有
Oracle instace 和
Oracle Database instance有memory structure 和
BACkground process 组成。 @H_213_1
@memory structure包括shared pool、 SGA(System Global Area). SGA包括:Database buffer cache 和 Redo log buffer cache.
show sga;
show parameter shared;
show parameter db_cache;
show parameter log;
alter system set shared_pool_size=65M; Process 包括User process、Server process、
BACkground process;
databasey有data file 和 log file 和 control file组成。
database逻辑结构:
表空间(tablespaces)、
段(segments)、分区(
extents)、块(blocks) ODCA(
Oracle Database Configuration Assistant)
:创建数据库
:配置数据库选项
:删除数据库
:管理数据库模板
二、管理数据库实例
1、创建和管理初始
参数文件initialization parameter files
系统
参数文件system parameter file——spfilesID,spfile
初始
参数文件init parameter file——initsID
.ora
放置位置
在Oracle安装目录下database文件下
参数分:显示参数explicit、隐式参数implicit、动态、静态
2、configure omf
v$system_parameter动态性能表
创建spfile
create spfile from pfile
create spfile='d:\spfile
.ora' from pfile; 创建
表空间 create tablespace test1
DATAFILE='d:\12.dbf' size 3M; 3、开启和关闭数据库
开启数据库Star
Ting Up a Database
shutdown、nomount、mount、open
nomount——startup instance
used to create db,create
CONTROLFILE @H_213_1
@mount——open
CONTROLFILE used to change log mode,r
ename file,db recovery...
startup [nomount|mount|open]
pfile=
re
Strict
recovery
force 修改数据库指令( alter database command)
1、改变数据库从nomount状态为mount;
alter database db_01 mount;
2、打开一个只读的数据库
alter database db_01 open read only; 关闭数据库Shut
Ting Down the Database
shutdown mode:normal、
transactional、immediate、abort
4、监视和使用diagnostic files
alter log file——alertsID.log
BACkground tace file、use trace files
三、创建一个Oracle数据库
1、使用ODCA(
Oracle Database configuration assistant)创建数据库
大佬总结
以上是大佬教程为你收集整理的Oracle学习笔记(六)全部内容,希望文章能够帮你解决Oracle学习笔记(六)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。