查看: 19403|回复: 40

[新特性] Oracle 11g的数据库创建

[复制链接]
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
跳转到指定楼层
1#
发表于 2007-6-27 14:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
以oracle用户运行dbca,

#su - oracle
[oracle@ractest database]$ dbca

d1.jpg (43.61 KB, 下载次数: 102)

d1.jpg

d2.jpg (44.38 KB, 下载次数: 72)

d2.jpg
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
2#
 楼主| 发表于 2007-6-27 14:31 | 只看该作者
我一般选择自定义数据库

d3.jpg (52.63 KB, 下载次数: 47)

d3.jpg

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
3#
 楼主| 发表于 2007-6-27 14:32 | 只看该作者
输入数据库名称:orcl

d4.jpg (50.45 KB, 下载次数: 48)

d4.jpg

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
4#
 楼主| 发表于 2007-6-27 14:33 | 只看该作者
不选择配置Enterprise manager,

并手工输入sys和system的密码,我这里配置相同的密码,也可以不同。

d5.jpg (61.64 KB, 下载次数: 42)

d5.jpg

d6.jpg (50.77 KB, 下载次数: 40)

d6.jpg

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
5#
 楼主| 发表于 2007-6-27 14:35 | 只看该作者
设置secure setting,使用默认值

d7.jpg (47.64 KB, 下载次数: 52)

d7.jpg

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
6#
 楼主| 发表于 2007-6-27 14:35 | 只看该作者
secure setting稍后会继续观察该选项对应参数。。。。应该是11g的一个新特性,观察中。。。。

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
7#
 楼主| 发表于 2007-6-27 14:37 | 只看该作者
分别是数据文件存放方式、路径、要安装的数据库选件

d9.jpg (71.97 KB, 下载次数: 40)

d9.jpg

d10.jpg (55.11 KB, 下载次数: 44)

d10.jpg

d11.jpg (54.18 KB, 下载次数: 46)

d11.jpg

d12.jpg (60.45 KB, 下载次数: 45)

d12.jpg

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
8#
 楼主| 发表于 2007-6-27 14:40 | 只看该作者
在配置sga的时候发现gui界面聪明了一些,有几处变化:

多了内存分配比例的滚动条

typical分配和custom分配数值相关联

custom分配多了manual选项

看起来也算合理

d13_1.jpg (63.85 KB, 下载次数: 44)

d13_1.jpg

d13_2.jpg (58.56 KB, 下载次数: 46)

d13_2.jpg

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
9#
 楼主| 发表于 2007-6-27 14:41 | 只看该作者
下面的又都是一样的。。。。

d14.jpg (47.76 KB, 下载次数: 55)

d14.jpg

d15.jpg (49.48 KB, 下载次数: 47)

d15.jpg

d16.jpg (63.78 KB, 下载次数: 41)

d16.jpg

d17.jpg (77.26 KB, 下载次数: 50)

d17.jpg

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
10#
 楼主| 发表于 2007-6-27 14:44 | 只看该作者
创建完毕。

确认数据库状态:

[php]

[oracle@ractest trace]$  sysdba

SQL*Plus: Release 11.1.0.4.0 - Beta on Thu Jun 28 04:42:32 2007

Copyright (c) 1982, 2007, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.4.0 - Beta
With the Partitioning, OLAP and Data Mining options

SQL> select * from v$version ;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.4.0 - Beta
PL/SQL Release 11.1.0.4.0 - Beta
CORE11.1.0.4.0Beta
TNS for Linux: Version 11.1.0.4.0 - Beta
NLSRTL Version 11.1.0.4.0 - Beta

SQL>


SQL> select status from v$instance ;

STATUS
------------
OPEN

SQL> select open_mode from v$database ;

OPEN_MODE
----------
READ WRITE



[root@ractest ~]# su  - oracle
[oracle@ractest ~]$ ls -l
total 48
drwxr-xr-x  60 oracle dba 4096 Jun 28 03:40 11g
drwxr-x---   3 oracle dba 4096 Jun 28 04:35 admin
drwxr-x---   4 oracle dba 4096 Jun 28 04:24 cfgtoollogs
drwxr-x---   3 oracle dba 4096 Jun 28 04:35 diag
drwxr-x---   3 oracle dba 4096 Jun 28 04:35 oradata
drwxrwx---   5 oracle dba 4096 Jun 28 03:40 oraInventory
[oracle@ractest ~]$ cd admin/
[oracle@ractest admin]$ ls
orcl
[oracle@ractest admin]$ ls -l
total 8
drwxr-x---  5 oracle dba 4096 Jun 28 04:35 orcl
[oracle@ractest admin]$ cd orcl/
[oracle@ractest orcl]$ ls
adump  dpdump  pfile
[oracle@ractest orcl]$ ls -l
total 24
drwxr-x---  2 oracle dba 4096 Jun 28 04:36 adump
drwxr-x---  2 oracle dba 4096 Jun 28 04:35 dpdump
drwxr-x---  2 oracle dba 4096 Jun 28 04:35 pfile
[oracle@ractest orcl]$ ls -l
total 24
drwxr-x---  2 oracle dba 4096 Jun 28 04:36 adump
drwxr-x---  2 oracle dba 4096 Jun 28 04:35 dpdump
drwxr-x---  2 oracle dba 4096 Jun 28 04:35 pfile
[oracle@ractest orcl]$ ps -ef|grep ora
root     11522 11342  0 02:25 pts/3    00:00:00 su - oracle
oracle   11523 11522  0 02:25 pts/3    00:00:00 -bash
oracle   19779 11523  0 04:21 pts/3    00:00:00 /bin/sh -f /home/oracle/11g/bin/dbca
.....

oracle   20177 19780  2 04:35 pts/3    00:00:01 /home/oracle/11g/bin/sqlplus -S      
oracle   20190     1  0 04:35 ?        00:00:00 ora_pmon_orcl
oracle   20192     1  0 04:35 ?        00:00:00 ora_vktm_orcl
oracle   20194     1  0 04:35 ?        00:00:00 ora_diag_orcl
oracle   20196     1  0 04:35 ?        00:00:00 ora_dbrm_orcl
oracle   20198     1  0 04:35 ?        00:00:00 ora_psp0_orcl
oracle   20202     1  0 04:35 ?        00:00:00 ora_dia0_orcl
oracle   20204     1  0 04:35 ?        00:00:00 ora_mman_orcl
oracle   20206     1  0 04:35 ?        00:00:00 ora_dbw0_orcl
oracle   20208     1  3 04:35 ?        00:00:03 ora_lgwr_orcl
oracle   20210     1  0 04:35 ?        00:00:00 ora_ckpt_orcl
oracle   20212     1  0 04:35 ?        00:00:00 ora_smon_orcl
oracle   20214     1  0 04:35 ?        00:00:00 ora_reco_orcl
oracle   20216     1  0 04:35 ?        00:00:00 ora_cjq0_orcl
oracle   20218     1  0 04:35 ?        00:00:00 ora_mmon_orcl
oracle   20220     1  0 04:35 ?        00:00:00 ora_mmnl_orcl
oracle   20230     1  0 04:35 ?        00:00:00 ora_smco_orcl
oracle   20232     1  0 04:36 ?        00:00:00 ora_fbar_orcl
oracle   20234     1  0 04:36 ?        00:00:00 ora_qmnc_orcl
oracle   20241     1 85 04:36 ?        00:00:40 oracleorcl (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   20243     1  0 04:36 ?        00:00:00 ora_w000_orcl
oracle   20246     1  0 04:36 ?        00:00:00 ora_q000_orcl
root     20280 20248  0 04:36 pts/2    00:00:00 su - oracle
oracle   20281 20280  0 04:36 pts/2    00:00:00 -bash
oracle   20314 20281  0 04:36 pts/2    00:00:00 ps -ef
oracle   20315 20281  0 04:36 pts/2    00:00:00 grep ora
[oracle@ractest orcl]$ export ORACLE_SID=orcl
[oracle@ractest orcl]$ sysdba

SQL*Plus: Release 11.1.0.4.0 - Beta on Thu Jun 28 04:36:57 2007

Copyright (c) 1982, 2007, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.4.0 - Beta
With the Partitioning, OLAP and Data Mining options

SQL> show parameter backgr

NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
background_core_dump     string partial
background_dump_dest     string /home/oracle/diag/rdbms/orcl/o
rcl/trace
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.4.0 - Beta
With the Partitioning, OLAP and Data Mining options
[oracle@ractest orcl]$ cd /home/oracle/diag/rdbms/orcl/orcl/trace/
[oracle@ractest trace]$ ls -l
total 128
-rw-r-----  1 oracle dba 8823 Jun 28 04:37 alert_orcl.log
-rw-r-----  1 oracle dba  785 Jun 28 04:35 orcl_dia0_20202.trc
-rw-r-----  1 oracle dba  116 Jun 28 04:35 orcl_dia0_20202.trm
-rw-r-----  1 oracle dba  785 Jun 28 04:35 orcl_diag_20194.trc
-rw-r-----  1 oracle dba  116 Jun 28 04:35 orcl_diag_20194.trm
-rw-r-----  1 oracle dba  850 Jun 28 04:35 orcl_lgwr_20208.trc
-rw-r-----  1 oracle dba  116 Jun 28 04:35 orcl_lgwr_20208.trm
-rw-r-----  1 oracle dba  794 Jun 28 04:35 orcl_ora_20187.trc
-rw-r-----  1 oracle dba  151 Jun 28 04:35 orcl_ora_20187.trm
-rw-r-----  1 oracle dba  969 Jun 28 04:36 orcl_ora_20222.trc
-rw-r-----  1 oracle dba  188 Jun 28 04:36 orcl_ora_20222.trm
-rw-r-----  1 oracle dba  805 Jun 28 04:35 orcl_pmon_20190.trc
-rw-r-----  1 oracle dba  152 Jun 28 04:35 orcl_pmon_20190.trm
-rw-r-----  1 oracle dba  802 Jun 28 04:36 orcl_qmnc_20234.trc
-rw-r-----  1 oracle dba  116 Jun 28 04:36 orcl_qmnc_20234.trm
[oracle@ractest trace]$ tail -f alert_orcl.log
CREATE SMALLFILE TABLESPACE "USERS" LOGGING DATAFILE '/home/oracle/oradata/orcl/users01.dbf' SIZE 5M REUSE AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO
Completed: CREATE SMALLFILE TABLESPACE "USERS" LOGGING DATAFILE '/home/oracle/oradata/orcl/users01.dbf' SIZE 5M REUSE AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO
ALTER DATABASE DEFAULT TABLESPACE "USERS"
Completed: ALTER DATABASE DEFAULT TABLESPACE "USERS"
Thu Jun 28 04:36:19 2007
Thread 1 advanced to log sequence 2
  Current log# 2 seq# 2 mem# 0: /home/oracle/oradata/orcl/redo02.log
Thu Jun 28 04:37:00 2007
Thread 1 advanced to log sequence 3
  Current log# 3 seq# 3 mem# 0: /home/oracle/oradata/orcl/redo03.log
Thu Jun 28 04:37:34 2007
Thread 1 advanced to log sequence 4
  Current log# 1 seq# 4 mem# 0: /home/oracle/oradata/orcl/redo01.log
Thu Jun 28 04:38:09 2007
Thread 1 advanced to log sequence 5
  Current log# 2 seq# 5 mem# 0: /home/oracle/oradata/orcl/redo02.log


[/php]

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表