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

[经验分享] Oracle pfile UNDOTBS参数配置错误案例模仿

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-1-29 09:12:13 | 显示全部楼层 |阅读模式
《DBA入门、进阶与诊断案例》中2.3.1章节的案例进行模拟
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[oracle@021Y-SH-BKAP dbs]$ vi initorcl.ora
orcl.__db_cache_size=2885681152
orcl.__java_pool_size=67108864
orcl.__large_pool_size=67108864
orcl.__oracle_base='/DBBK/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=2684354560
orcl.__sga_target=4026531840
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=939524096
orcl.__streams_pool_size=0
*.audit_file_dest='/DBBK/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/DBBK/oracle/oradata/orcl/control01.ctl','/DBBK/oracle/oradata/orcl/control03.ctl','/DBBK/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_cache_size=25165824
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='/DBBK/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/DBBK/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.fast_start_mttr_target=180
*.memory_target=6689914880
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS2'



我修改了pfile中的undo_tablespace='UNDOTBS2'参数值,重新以加载pfile文件的方式启动数据库。
1
2
3
4
5
6
7
8
9
10
11
12
SQL> startup pfile='/DBBK/oracle/product/11.2.0.1.0/dbs/initorcl.ora'
ORACLE instance started.
Total System Global Area 6680915968 bytes
Fixed Size                  2213936 bytes
Variable Size            3758098384 bytes
Database Buffers         2885681152 bytes
Redo Buffers               34922496 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-30012: undo tablespace 'UNDOTBS2' does not exist or of wrong type
Process ID: 11428
Session ID: 96 Serial number: 3



查看alter_<sid_name>.log中的记录发现如下报错:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Errors in file /DBBK/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_11428.trc:

ORA-30012: undo tablespace 'UNDOTBS2' does not exist or of wrong type

Errors in file /DBBK/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_11428.trc:

ORA-30012: undo tablespace 'UNDOTBS2' does not exist or of wrong type

Error 30012 happened during db open, shutting down database

USER (ospid: 11428): terminating the instance due to error 30012

Instance terminated by USER, pid = 11428

ORA-1092 signalled during: ALTER DATABASE OPEN...

opiodr aborting process unknown ospid (11428) as a result of ORA-1092

Tue Jan 27 17:43:33 2015

ORA-1092 : opitsk aborting process



查看ORA报错信息的解释
1
2
3
4
5
6
7
8
9
[oracle@021Y-SH-BKAP dbs]$ oerr ora 30012

30012, 00000, "undo tablespace '%s' does not exist or of wrong type"

// *Cause:   the specified undo tablespace does not exist or of the

//           wrong type.

// *Action:  Correct the tablespace name and reissue the statement.



1
2
3
4
5
6
7
8
9
10
11
12
13
[oracle@021Y-SH-BKAP dbs]$ oerr ora 1092

01092, 00000, "ORACLE instance terminated. Disconnection forced"

// *Cause:  The instance this process was connected to was terminated

//          abnormally, probably via a shutdown abort. This process

//          was forced to disconnect from the instance.

// *Action: Examine the alert log for more details. When the instance has been

//          restarted, retry action.



检查UNDO控件是否存在:
1
2
cd $ORACLE_BASE/oradata/orcl
-rw-r----- 1 oracle oinstall 104865792 Jan 27 17:43 undotbs01.dbf



启动数据库都mount状态
1
2
3
4
5
6
7
8
SQL> startup mount pfile='/DBBK/oracle/product/11.2.0.1.0/dbs/initorcl.ora';
ORACLE instance started.
Total System Global Area 6680915968 bytes
Fixed Size                  2213936 bytes
Variable Size            3758098384 bytes
Database Buffers         2885681152 bytes
Redo Buffers               34922496 bytes
Database mounted.



查看启动参数,发现数据库mount的是UNDOTBS2
1
2
3
4
5
6
7
8
SQL> show parameter undo_tablespace
NAME                                 TYPE                              VALUE
------------------------------------ --------------------------------- ------------------------------
undo_tablespace                      string                            UNDOTBS2
SQL> show parameter pfile
NAME                                 TYPE                              VALUE
------------------------------------ --------------------------------- ------------------------------
spfile                               string



那么这里可以确定,因为我启动的时候没有使用SPFILE,或者另一种情况SPFILE中的参数值被我不小心改错了。导致启动时候加载错误而参数的报错。


运维网声明 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-41688-1-1.html 上篇帖子: Oracle Study之--基于ASM的TSPITR(基于表空间的完全恢复) 下篇帖子: AIX7.1安装oracle 11g Oracle
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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

扫描微信二维码查看详情

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


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


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


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



合作伙伴: 青云cloud

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