• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Oracle学习笔记(六)

原作者: [db:作者] 来自: [db:来源] 收藏 邀请
一、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)创建数据库

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PostgreSQL使用IP无法连接的解决方法发布时间:2022-02-08
下一篇:
Postgresql开启远程访问的步骤全纪录发布时间:2022-02-08
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap