Oracle学习笔记(六)


本文整理自网络,侵删。

一、oracle
oracle服务器有Oracle instace 和Oracle database
instance有memory structure 和 background process 组成。
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、开启和关闭数据库
开启数据库Starting Up a Database
shutdown、nomount、mount、open
nomount——startup instance
used to create db,create controlfile
mount——open controlfile
used to change log mode,rename file,db recovery...
startup [nomount|mount|open]
pfile=
restrict
recovery
force

修改数据库指令( alter database command)
1、改变数据库从nomount状态为mount;
alter database db_01 mount;
2、打开一个只读的数据库
alter database db_01 open read only;

关闭数据库Shutting 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

相关阅读 >>

如何在springboot项目中使用oracle11g数据库

oracle数据库sql的优化总结

oracle怎么查询当前时间

oracle查询慢怎么办?

数据库oracle数据的异地的自动备份

oracle中多表查询如何使用natural join使用方法?

oracle rman快速入门指南

oracle 9i服务器端中文安装教程图解 32位64位

python实现与oracle数据库交互操作示例

oracle递归查询start with connect by prior的用法

更多相关阅读请进入《oracle》频道 >>


数据库系统概念 第6版
书籍

数据库系统概念 第6版

机械工业出版社

本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...