设为首页 收藏本站
查看: 1348|回复: 0

[经验分享] OCP课程实验问题1- ORA-01092

[复制链接]

尚未签到

发表于 2016-9-4 10:22:24 | 显示全部楼层 |阅读模式
  1、执行手工建库语句:

create database welson
user sys identified by oracle
user system identified by oracle
logfile group 1 ('/u01/app/oradata/welson/redo01.log') size 50M,
group 2 ('/u01/app/oradata/welson/redo02.log') size 50M,
group 3 ('/u01/app/oradata/welson/redo03.log') size 50M
maxlogfiles 5
maxlogmembers 5
maxloghistory 1
maxdatafiles 500
maxinstances 1
character set AL32UTF8
national character set UTF8
datafile '/u01/app/oradata/welson/system.dbf' size 500M
extent management local
sysaux datafile '/u01/app/oradata/welson/sysaux01.dbf' size 500M
default tablespace users01
datafile '/u01/app/oradata/welson/user01.dbf' size 100M
default temporary tablespace temp
tempfile '/u01/app/oradata/welson/temp01.dbf' size 50M
undo tablespace undotbs
datafile '/u01/app/oradata/welson/undo.dbf' size 50M;
  报错

create database welson
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
  查看$ORACLE_BASE/admin/welson/bdump/alert_welson.log文件,

Thu Jun 20 15:19:41 2013
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_1 parameter default value as /u01/app/oracle/dbs/arch
Autotune of undo retention is turned on.
IMODE=BR
ILAT =10
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
__shared_pool_size       = 83886080
__large_pool_size        = 4194304
__java_pool_size         = 4194304
__streams_pool_size      = 0
sga_target               = 285212672
control_files            = /u01/app/oradata/welson/control01.ctl, /u01/app/oradata/welson/control02.ctl
db_block_size            = 8192
__db_cache_size          = 188743680
undo_management          = AUTO
undo_tablespace          = UNDOTBS1
db_name                  = welson
PMON started with pid=2, OS id=3074
PSP0 started with pid=3, OS id=3076
MMAN started with pid=4, OS id=3078
DBW0 started with pid=5, OS id=3080
LGWR started with pid=6, OS id=3082
RECO started with pid=9, OS id=3088
SMON started with pid=8, OS id=3086
MMON started with pid=10, OS id=3090
MMNL started with pid=11, OS id=3092
CKPT started with pid=7, OS id=3084
Thu Jun 20 15:20:04 2013
create database welson
user sys identified by *user system identified by *logfile group 1 ('/u01/app/oradata/welson/redo01.log') size 50M,
group 2 ('/u01/app/oradata/welson/redo02.log') size 50M,
group 3 ('/u01/app/oradata/welson/redo03.log') size 50M
maxlogfiles 5
maxlogmembers 5
maxloghistory 1
maxdatafiles 500
maxinstances 1
character set AL32UTF8
national character set UTF8
datafile '/u01/app/oradata/welson/system.dbf' size 500M
extent management local
sysaux datafile '/u01/app/oradata/welson/sysaux01.dbf' size 500M
default tablespace users01
datafile '/u01/app/oradata/welson/user01.dbf' size 100M
default temporary tablespace temp
tempfile '/u01/app/oradata/welson/temp01.dbf' size 50M
undo tablespace undotbs
datafile '/u01/app/oradata/welson/undotbs1.dbf' size 50M
Thu Jun 20 15:20:16 2013
Database mounted in Exclusive Mode
Thu Jun 20 15:20:42 2013
Successful mount of redo thread 1, with mount id 1925487268
Assigning activation ID 1925487268 (0x72c49aa4)
Thread 1 opened at log sequence 1
Current log# 1 seq# 1 mem# 0: /u01/app/oradata/welson/redo01.log
Successful open of redo thread 1
Thu Jun 20 15:20:43 2013
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Thu Jun 20 15:20:43 2013
create tablespace SYSTEM datafile  '/u01/app/oradata/welson/system.dbf' size 500M
EXTENT MANAGEMENT LOCAL online
Thu Jun 20 15:20:43 2013
SMON: enabling cache recovery
Thu Jun 20 15:21:23 2013
Completed: create tablespace SYSTEM datafile  '/u01/app/oradata/welson/system.dbf' size 500M
EXTENT MANAGEMENT LOCAL online
Thu Jun 20 15:21:23 2013
create rollback segment SYSTEM tablespace SYSTEM
storage (initial 50K next 50K)
Completed: create rollback segment SYSTEM tablespace SYSTEM
storage (initial 50K next 50K)
Thu Jun 20 15:21:33 2013
CREATE UNDO TABLESPACE UNDOTBS DATAFILE  '/u01/app/oradata/welson/undotbs1.dbf' size 50M
Thu Jun 20 15:21:38 2013
ORA-30012 signalled during: CREATE UNDO TABLESPACE UNDOTBS DATAFILE  '/u01/app/oradata/welson/undotbs1.dbf' size 50M
...
Thu Jun 20 15:21:38 2013
Errors in file /u01/app/admin/welson/udump/welson_ora_3093.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-30012: undo tablespace 'UNDOTBS1' does not exist or of wrong type
Thu Jun 20 15:21:38 2013
Errors in file /u01/app/admin/welson/udump/welson_ora_3093.trc:
ORA-01501: CREATE DATABASE failed
ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 5792
ORA-00604: error occurred at recursive SQL level 1
ORA-30012: undo tablespace 'UNDOTBS1' does not exist or of wrong type
Error 1519 happened during db open, shutting down database
USER: terminating instance due to error 1519
Instance terminated by USER, pid = 3093
ORA-1092 signalled during: create database welson
user sys identified by *user system identified by *logfile group 1 ('/u01/app/oradata/welson/redo01.log') size 50M,
group 2 ('/u01/app/oradata/welson/redo02.log') size 50M,
group 3 ('/u01/app/oradata/welson/redo03.log') size 50M
maxlogfiles 5
maxlogmembers 5
maxloghistory 1
maxdatafiles 500
maxinstances 1
character set AL32UTF8
national character set UTF8
datafile '/u01/app/oradata/welson/system.dbf' size 500M
extent management local
sysaux datafile '/u01/app/oradata/welson/sysaux01.dbf' size 500M
default tablespace users01
datafile '/u01/app/oradata/welson/user01.dbf' size 100M
default temporary tablespace temp
tempfile '/u01/app/oradata/welson/temp01.dbf' size 50M
undo tablespace undotbs
datafile '/u01/app/oradata/welson/undotbs1.dbf' size 50M...
  
  解决方案:
  在init.ora中,如果undo_management设为auto,undo_tablespace等等的名字必须与手工建立的undotbs一致,此处中,undo tablespace undotbs应该改为undo tablespace undotbs1
  initwelson.ora文件:

*.control_files='/u01/app/oradata/welson/control01.ctl','/u01/app/oradata/welson/control02.ctl'
*.db_name='welson'
*.db_block_size=8192
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.sga_target=285212672
  
  问题解决。
  
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-267419-1-1.html 上篇帖子: 第四章 开放封闭原则OCP 下篇帖子: OCP-1Z0-052-V8.02-105题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表