Oracle学习笔记(六)

来源:asp之家 时间:2012-01-05 18:55:27 

一、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,学习笔记
0
投稿

猜你喜欢

  • 破解 屏蔽 防框架代码 top.location != self.location

    2008-11-27 12:59:00
  • 网页设计中的对比原则

    2010-03-20 21:50:00
  • 有效地使用 SQL事件探查器的提示和技巧

    2009-01-15 13:39:00
  • 什么是JSON及JSON的结构

    2008-06-15 07:16:00
  • 用 prototype 定义自己的方法

    2010-03-17 20:44:00
  • 删除数组中重复项(uniq)

    2009-12-28 12:23:00
  • SQL语句实例说明 方便学习mysql的朋友

    2012-11-30 20:02:43
  • 自动备份Oracle数据库

    2010-07-31 13:10:00
  • SQL 2005 sa islock用户不能正常登录的现象

    2008-12-05 15:49:00
  • 如何把Recordset转换成彩色的XML文件?

    2009-11-02 20:22:00
  • Silverlight 3 Beta出来了

    2009-03-19 13:17:00
  • 从外到内提高SQL Server数据库性能

    2009-01-22 14:12:00
  • 发一个较复杂的字符串截取函数

    2009-12-08 16:23:00
  • 为博客增加社会化分享按钮代码

    2010-01-31 16:52:00
  • MySQL 视图,第1349号错误

    2008-05-18 13:04:00
  • 在oracle 数据库中查看一个sql语句的执行时间和SP2-0027错误

    2009-10-09 13:04:00
  • 数据库主键的故事

    2008-05-31 07:50:00
  • Asp中通过简单的例子理解下ByVal和ByRef的用法

    2011-02-20 10:57:00
  • asp分段插入数据库

    2010-07-02 13:13:00
  • Study jQuery in a Simplified Way

    2010-01-30 12:55:00
  • asp之家 网络编程 m.aspxhome.com