您好,欢迎访问一九零五行业门户网

Oracle 10g AND Oracle 11g手工建库案例--Oracle 11g

oracle 10g and oracle 11g手工建库案例--oracle 11g
系统环境:
操作系统: redhat el6
oracle: oracle 10g and oracle 11g
手工建库相对来说很容易实现,本案例是从10g和11g,通过手工建库的方式做一个简单的对比,可以看出11g和10g之间的一个简单的差异!
vmware+linux+oracle 10g rac全程详细图解
案例二:
在oracle 11g 环境下手工建库
db_name='test1'
instance_name='test1'
1、建立instance的初始化参数文件和口令文件
[oracle@rh6 dbs]$cat inittest1.ora
db_name='test1'
memory_target=400m //oracle 11g增加了内存自动管理
processes = 150
audit_file_dest='$oracle_base/admin/test1/adump'
audit_trail ='db'
db_block_size=8192
db_domain=''
open_cursors=300
remote_login_passwordfile='exclusive'
undo_tablespace='undotbs1'
# you may want to ensure that control files are created on separate physical
# devices
control_files = /u01/app/oracle/oradata/test1/control01.ctl
compatible ='11.2.0'
[oracle@rh6 dbs]$ orapwd file=orapwtest1 password=oracle entries=3
2、建立数据库相关的目录
oracle 11g增加了diagnostic directory,,默认的为$oracle_base
[oracle@rh6 dbs]$ mkdir -p $oracle_base/admin/test1/adump
[oracle@rh6 dbs]$ mkdir -p /u01/app/oracle/oradata/test1
3、建立建库脚本
[oracle@rh6 ~]$ cat cr_db.sql
create database test1
user sys identified by oracle
user system identified by oracle
logfile
group 1 ('/u01/app/oracle/oradata/test1/redo01a.log') size 50m ,
group 2 ('/u01/app/oracle/oradata/test1/redo02a.log') size 50m
maxlogfiles 10
maxlogmembers 5
maxloghistory 1
maxdatafiles 200
character set zhs16gbk
datafile '/u01/app/oracle/oradata/test1/system01.dbf' size 325m reuse
sysaux datafile '/u01/app/oracle/oradata/test1/sysaux01.dbf' size 325m reuse
default temporary tablespace tempts1
tempfile '/u01/app/oracle/oradata/test1/temp01.dbf'
size 100m reuse
undo tablespace undotbs1
datafile '/u01/app/oracle/oradata/test1/undotbs01.dbf'
size 200m reuse autoextend on maxsize unlimited;
4、启动instance并建立数据库
[oracle@rh6 ~]$ export oracle_sid=test1
[oracle@rh6 ~]$ sqlplus '/as sysdba'
sql*plus: release 11.2.0.1.0 production on wed may 21 10:59:58 2014
copyright (c) 1982, 2009, oracle. all rights reserved.
connected to an idle instance.
10:59:59 sys@ test1>startup nomount;
oracle instance started.
total system global area 417546240 bytes
fixed size 2213936 bytes
variable size 268437456 bytes
database buffers 142606336 bytes
redo buffers 4288512 bytes
11:00:12 sys@ test1>@/home/oracle/cr_db
database created.
elapsed: 00:01:23.44
11:01:51 sys@ test1>
建库告警日志:
create tablespace sysaux datafile '/u01/app/oracle/oradata/test1/sysaux01.dbf' size 325m reuse
extent management local segment space management auto online
wed may 21 11:01:08 2014
completed: create tablespace sysaux datafile '/u01/app/oracle/oradata/test1/sysaux01.dbf' size 325m reuse
extent management local segment space management auto online
processing ?/rdbms/admin/dplsql.bsq
processing ?/rdbms/admin/dtxnspc.bsq
create undo tablespace undotbs1 datafile '/u01/app/oracle/oradata/test1/undotbs01.dbf'
size 200m reuse autoextend on maxsize unlimited
wed may 21 11:01:23 2014
successfully onlined undo tablespace 2.
completed: create undo tablespace undotbs1 datafile '/u01/app/oracle/oradata/test1/undotbs01.dbf'
size 200m reuse autoextend on maxsize unlimited
create temporary tablespace tempts1 tempfile '/u01/app/oracle/oradata/test1/temp01.dbf'
size 100m reuse
completed: create temporary tablespace tempts1 tempfile '/u01/app/oracle/oradata/test1/temp01.dbf'
size 100m reuse
alter database default temporary tablespace tempts1
completed: alter database default temporary tablespace tempts1
alter database default tablespace system
completed: alter database default tablespace system
processing ?/rdbms/admin/dfmap.bsq
processing ?/rdbms/admin/denv.bsq
processing ?/rdbms/admin/drac.bsq
processing ?/rdbms/admin/dsec.bsq
processing ?/rdbms/admin/doptim.bsq
processing ?/rdbms/admin/dobj.bsq
processing ?/rdbms/admin/djava.bsq
processing ?/rdbms/admin/dpart.bsq
wed may 21 11:01:34 2014
processing ?/rdbms/admin/drep.bsq
processing ?/rdbms/admin/daw.bsq
processing ?/rdbms/admin/dsummgt.bsq
processing ?/rdbms/admin/dtools.bsq
processing ?/rdbms/admin/dexttab.bsq
processing ?/rdbms/admin/ddm.bsq
processing ?/rdbms/admin/dlmnr.bsq
processing ?/rdbms/admin/ddst.bsq
wed may 21 11:01:43 2014
smon: enabling tx recovery
starting background process smco
wed may 21 11:01:44 2014
smco started with pid=17, os id=2816
wed may 21 11:01:50 2014
replication_dependency_tracking turned off (no async multimaster replication found)
starting background process qmnc
wed may 21 11:01:50 2014
qmnc started with pid=20, os id=2826
completed: create database test1
user sys identified by ****user system identified by ****logfile
group 1 ('/u01/app/oracle/oradata/test1/redo01a.log') size 50m ,
group 2 ('/u01/app/oracle/oradata/test1/redo02a.log') size 50m
maxlogfiles 10
maxlogmembers 5
maxloghistory 1
maxdatafiles 200
character set zhs16gbk
datafile '/u01/app/oracle/oradata/test1/system01.dbf' size 325m reuse
sysaux datafile '/u01/app/oracle/oradata/test1/sysaux01.dbf' size 325m reuse
default temporary tablespace tempts1
tempfile '/u01/app/oracle/oradata/test1/temp01.dbf'
size 100m reuse
undo tablespace undotbs1
datafile '/u01/app/oracle/oradata/test1/undotbs01.dbf'
size 200m reuse autoextend on maxsize unlimited
更多详情见请继续阅读下一页的精彩内容:
10grac-10.2.0.4-dbca建库时配置oem遇到bug-p8350262
oracle 11g r2 手动建库(create database manually)
oracle 11g + asm dbca 建库问题解决心得
linux下oracle 10g手工建库全过程
oracle 9i数据库手工建库过程简记
静默安装oracle 11gr2软件并且手动建库
其它类似信息

推荐信息