本文主要是介绍ORA-15032: not all alterations performed,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
好久没有写oracle了
其实单单看标题,大家能看出什么问题?
SQL> /NAME STATE TOTAL_MB FREE_MB
------------------------------ ----------- ---------- ----------
DGCRS MOUNTED 15360 14188
DGHPP65DATA02 MOUNTED 63488000 8983424
DGHPP65REDO02 MOUNTED 614400 539648
DGIBMV7DATA01 MOUNTED 110592000 10571712
DGIBMV7REDO01 MOUNTED 614400 539648
DGHPP65TDATA03 DISMOUNTED 0 06 rows selected.SQL> alter diskgroup DGHPP65TDATA03 mount;
alter diskgroup DGHPP65TDATA03 mount
*
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15260: permission denied on ASM disk group
问题原因是sqlplus / as sysdba 没得权限操作asm
所以sqlplus / as sysasm
[grid@IBM-PC-Server-1 ~]$ sqlplus / as sysasmSQL*Plus: Release 11.2.0.4.0 Production on Wed May 24 17:01:15 2017Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management optionsSQL> alter diskgroup DGHPP65TDATA03 mount;Diskgroup altered.SQL>
SQL> select name,state,total_mb,free_mb from v$asm_diskgroup;NAME STATE TOTAL_MB FREE_MB
------------------------------ ----------- ---------- ----------
DGCRS MOUNTED 15360 14188
DGHPP65DATA02 MOUNTED 63488000 8983296
DGHPP65REDO02 MOUNTED 614400 539648
DGIBMV7DATA01 MOUNTED 110592000 10559680
DGIBMV7REDO01 MOUNTED 614400 539648
DGHPP65TDATA03 MOUNTED 83968000 838133116 rows selected.
该问题是节点1 出了故障,硬件故障。所以down机
但是今天现场说恢复了,叫我们看下。
吐槽一下: 数据库多还稳定,主要是硬件环境不稳定,所以还是需要一个运维dba做支撑。
一看没有使用裸设备,并且属组不对。
于是chmod +chown
[root@IBM-PC-Server-1 dev]# chown grid:asmadmin /dev/mapper/mpath*
[root@IBM-PC-Server-1 dev]# ls -l /dev/mapper/mpath*
brw-rw---- 1 grid asmadmin 253, 16 May 24 16:44 /dev/mapper/mpath0
brw-rw---- 1 grid asmadmin 253, 17 May 22 17:03 /dev/mapper/mpath1
brw-rw---- 1 grid asmadmin 253, 26 May 22 17:03 /dev/mapper/mpath10
brw-rw---- 1 grid asmadmin 253, 122 May 22 17:03 /dev/mapper/mpath100
brw-rw---- 1 grid asmadmin 253, 123 May 22 17:03 /dev/mapper/mpath101
brw-rw---- 1 grid asmadmin 253, 124 May 22 17:03 /dev/mapper/mpath102
brw-rw---- 1 grid asmadmin 253, 125 May 22 17:03 /dev/mapper/mpath103
brw-rw---- 1 grid asmadmin 253, 126 May 22 17:03 /dev/mapper/mpath104
brw-rw---- 1 grid asmadmin 253, 127 May 22 17:03 /dev/mapper/mpath105
brw-rw---- 1 grid asmadmin 253, 128 May 22 17:03 /dev/mapper/mpath106
brw-rw---- 1 grid asmadmin 253, 129 May 22 17:03 /dev/mapper/mpath107
brw-rw---- 1 grid asmadmin 253, 130 May 22 17:03 /dev/mapper/mpath108
brw-rw---- 1 grid asmadmin 253, 131 May 22 17:03 /dev/mapper/mpath109
brw-rw---- 1 grid asmadmin 253, 27 May 22 17:03 /dev/mapper/mpath11
brw-rw---- 1 grid asmadmin 253, 132 May 22 17:03 /dev/mapper/mpath110
brw-rw---- 1 grid asmadmin 253, 133 May 22 17:03 /dev/mapper/mpath111
brw-rw---- 1 grid asmadmin 253, 134 May 22 17:03 /dev/mapper/mpath112
brw-rw---- 1 grid asmadmin 253, 94 May 22 17:03 /dev/mapper/mpath113
brw-rw---- 1 grid asmadmin 253, 95 May 22 17:03 /dev/mapper/mpath114
brw-rw---- 1 grid asmadmin 253, 96 May 22 17:03 /dev/mapper/mpath115
brw-rw---- 1 grid asmadmin 253, 97 May 22 17:03 /dev/mapper/mpath116
brw-rw---- 1 grid asmadmin 253, 98 May 22 17:03 /dev/mapper/mpath117
brw-rw---- 1 grid asmadmin 253, 99 May 22 17:03 /dev/mapper/mpath118
brw-rw---- 1 grid asmadmin 253, 100 May 22 17:03 /dev/mapper/mpath119
brw-rw---- 1 grid asmadmin 253, 28 May 22 17:03 /dev/mapper/mpath12
brw-rw---- 1 grid asmadmin 253, 101 May 22 17:03 /dev/mapper/mpath120
brw-rw---- 1 grid asmadmin 253, 102 May 22 17:03 /dev/mapper/mpath121
brw-rw---- 1 grid asmadmin 253, 103 May 22 17:03 /dev/mapper/mpath122
brw-rw---- 1 grid asmadmin 253, 104 May 22 17:03 /dev/mapper/mpath123
brw-rw---- 1 grid asmadmin 253, 105 May 22 17:03 /dev/mapper/mpath124
brw-rw---- 1 grid asmadmin 253, 106 May 22 17:03 /dev/mapper/mpath125
brw-rw---- 1 grid asmadmin 253, 107 May 22 17:03 /dev/mapper/mpath126
brw-rw---- 1 grid asmadmin 253, 108 May 22 17:03 /dev/mapper/mpath127
brw-rw---- 1 grid asmadmin 253, 109 May 22 17:03 /dev/mapper/mpath128
brw-rw---- 1 grid asmadmin 253, 110 May 22 17:03 /dev/mapper/mpath129
brw-rw---- 1 grid asmadmin 253, 29 May 22 17:03 /dev/mapper/mpath13
brw-rw---- 1 grid asmadmin 253, 111 May 22 17:03 /dev/mapper/mpath130
brw-rw---- 1 grid asmadmin 253, 112 May 22 17:03 /dev/mapper/mpath131
brw-rw---- 1 grid asmadmin 253, 113 May 22 17:03 /dev/mapper/mpath132
brw-rw---- 1 grid asmadmin 253, 114 May 22 17:03 /dev/mapper/mpath133
brw-rw---- 1 grid asmadmin 253, 115 May 22 17:03 /dev/mapper/mpath134
brw-rw---- 1 grid asmadmin 253, 116 May 22 17:03 /dev/mapper/mpath135
brw-rw---- 1 grid asmadmin 253, 31 May 22 17:03 /dev/mapper/mpath14
brw-rw---- 1 grid asmadmin 253, 32 May 22 17:03 /dev/mapper/mpath15
brw-rw---- 1 grid asmadmin 253, 33 May 22 18:00 /dev/mapper/mpath16
brw-rw---- 1 grid asmadmin 253, 34 May 22 17:03 /dev/mapper/mpath17
brw-rw---- 1 grid asmadmin 253, 35 May 22 17:03 /dev/mapper/mpath18
brw-rw---- 1 grid asmadmin 253, 36 May 22 17:03 /dev/mapper/mpath19
brw-rw---- 1 grid asmadmin 253, 18 May 22 17:03 /dev/mapper/mpath2
brw-rw---- 1 grid asmadmin 253, 37 May 22 17:03 /dev/mapper/mpath20
brw-rw---- 1 grid asmadmin 253, 38 May 22 17:03 /dev/mapper/mpath21
brw-rw---- 1 grid asmadmin 253, 39 May 22 17:03 /dev/mapper/mpath22
brw-rw---- 1 grid asmadmin 253, 40 May 22 17:03 /dev/mapper/mpath23
brw-rw---- 1 grid asmadmin 253, 41 May 22 17:03 /dev/mapper/mpath24
brw-rw---- 1 grid asmadmin 253, 42 May 22 17:03 /dev/mapper/mpath25
brw-rw---- 1 grid asmadmin 253, 43 May 22 18:00 /dev/mapper/mpath27
brw-rw---- 1 grid asmadmin 253, 45 May 22 17:03 /dev/mapper/mpath28
brw-rw---- 1 grid asmadmin 253, 46 May 22 17:03 /dev/mapper/mpath29
brw-rw---- 1 grid asmadmin 253, 19 May 22 17:03 /dev/mapper/mpath3
brw-rw---- 1 grid asmadmin 253, 47 May 24 16:44 /dev/mapper/mpath30
brw-rw---- 1 grid asmadmin 253, 48 May 24 16:44 /dev/mapper/mpath31
brw-rw---- 1 grid asmadmin 253, 49 May 24 16:44 /dev/mapper/mpath32
brw-rw---- 1 grid asmadmin 253, 50 May 22 18:00 /dev/mapper/mpath33
brw-rw---- 1 grid asmadmin 253, 30 May 22 17:03 /dev/mapper/mpath34
brw-rw---- 1 grid asmadmin 253, 44 May 22 17:03 /dev/mapper/mpath35
brw-rw---- 1 grid asmadmin 253, 51 May 22 17:03 /dev/mapper/mpath36
brw-rw---- 1 grid asmadmin 253, 52 May 22 17:03 /dev/mapper/mpath37
brw-rw---- 1 grid asmadmin 253, 53 May 22 17:03 /dev/mapper/mpath38
brw-rw---- 1 grid asmadmin 253, 54 May 22 17:03 /dev/mapper/mpath39
brw-rw---- 1 grid asmadmin 253, 20 May 22 17:03 /dev/mapper/mpath4
brw-rw---- 1 grid asmadmin 253, 55 May 22 17:03 /dev/mapper/mpath40
brw-rw---- 1 grid asmadmin 253, 56 May 22 17:03 /dev/mapper/mpath41
brw-rw---- 1 grid asmadmin 253, 57 May 22 17:03 /dev/mapper/mpath42
brw-rw---- 1 grid asmadmin 253, 1 May 22 17:03 /dev/mapper/mpath43
brw-rw---- 1 grid asmadmin 253, 3 May 22 17:03 /dev/mapper/mpath44
brw-rw---- 1 grid asmadmin 253, 5 May 22 17:03 /dev/mapper/mpath45
brw-rw---- 1 grid asmadmin 253, 6 May 22 17:03 /dev/mapper/mpath46
brw-rw---- 1 grid asmadmin 253, 8 May 22 17:03 /dev/mapper/mpath47
brw-rw---- 1 grid asmadmin 253, 10 May 22 17:03 /dev/mapper/mpath48
brw-rw---- 1 grid asmadmin 253, 11 May 22 17:03 /dev/mapper/mpath49
brw-rw---- 1 grid asmadmin 253, 21 May 22 17:03 /dev/mapper/mpath5
brw-rw---- 1 grid asmadmin 253, 0 May 22 17:03 /dev/mapper/mpath50
brw-rw---- 1 grid asmadmin 253, 2 May 22 17:07 /dev/mapper/mpath51
brw-rw---- 1 grid asmadmin 253, 4 May 22 17:03 /dev/mapper/mpath52
brw-rw---- 1 grid asmadmin 253, 7 May 22 17:03 /dev/mapper/mpath53
brw-rw---- 1 grid asmadmin 253, 9 May 22 17:03 /dev/mapper/mpath54
brw-rw---- 1 grid asmadmin 253, 12 May 22 17:03 /dev/mapper/mpath55
brw-rw---- 1 grid asmadmin 253, 13 May 22 17:03 /dev/mapper/mpath56
brw-rw---- 1 grid asmadmin 253, 14 May 22 17:03 /dev/mapper/mpath57
brw-rw---- 1 grid asmadmin 253, 15 May 22 17:03 /dev/mapper/mpath58
brw-rw---- 1 grid asmadmin 253, 58 May 24 16:44 /dev/mapper/mpath59
brw-rw---- 1 grid asmadmin 253, 22 May 22 17:03 /dev/mapper/mpath6
brw-rw---- 1 grid asmadmin 253, 59 May 22 17:03 /dev/mapper/mpath60
brw-rw---- 1 grid asmadmin 253, 60 May 24 16:44 /dev/mapper/mpath61
brw-rw---- 1 grid asmadmin 253, 61 May 22 18:00 /dev/mapper/mpath62
brw-rw---- 1 grid asmadmin 253, 62 May 24 16:44 /dev/mapper/mpath63
brw-rw---- 1 grid asmadmin 253, 63 May 22 17:03 /dev/mapper/mpath64
brw-rw---- 1 grid asmadmin 253, 64 May 22 18:00 /dev/mapper/mpath65
brw-rw---- 1 grid asmadmin 253, 65 May 22 17:03 /dev/mapper/mpath66
brw-rw---- 1 grid asmadmin 253, 66 May 22 17:03 /dev/mapper/mpath67
brw-rw---- 1 grid asmadmin 253, 67 May 22 17:03 /dev/mapper/mpath68
brw-rw---- 1 grid asmadmin 253, 68 May 22 17:03 /dev/mapper/mpath69
brw-rw---- 1 grid asmadmin 253, 23 May 22 17:03 /dev/mapper/mpath7
brw-rw---- 1 grid asmadmin 253, 69 May 22 17:07 /dev/mapper/mpath70
brw-rw---- 1 grid asmadmin 253, 70 May 22 17:03 /dev/mapper/mpath71
brw-rw---- 1 grid asmadmin 253, 71 May 22 17:03 /dev/mapper/mpath72
brw-rw---- 1 grid asmadmin 253, 72 May 22 17:03 /dev/mapper/mpath73
brw-rw---- 1 grid asmadmin 253, 73 May 22 17:03 /dev/mapper/mpath74
brw-rw---- 1 grid asmadmin 253, 74 May 22 17:03 /dev/mapper/mpath75
brw-rw---- 1 grid asmadmin 253, 75 May 22 17:03 /dev/mapper/mpath76
brw-rw---- 1 grid asmadmin 253, 76 May 22 17:03 /dev/mapper/mpath77
brw-rw---- 1 grid asmadmin 253, 77 May 22 17:03 /dev/mapper/mpath78
brw-rw---- 1 grid asmadmin 253, 78 May 22 17:03 /dev/mapper/mpath79
brw-rw---- 1 grid asmadmin 253, 24 May 22 17:03 /dev/mapper/mpath8
brw-rw---- 1 grid asmadmin 253, 79 May 22 18:00 /dev/mapper/mpath80
brw-rw---- 1 grid asmadmin 253, 80 May 22 17:03 /dev/mapper/mpath81
brw-rw---- 1 grid asmadmin 253, 81 May 22 17:03 /dev/mapper/mpath82
brw-rw---- 1 grid asmadmin 253, 82 May 22 17:03 /dev/mapper/mpath83
brw-rw---- 1 grid asmadmin 253, 83 May 22 17:03 /dev/mapper/mpath84
brw-rw---- 1 grid asmadmin 253, 84 May 22 17:03 /dev/mapper/mpath85
brw-rw---- 1 grid asmadmin 253, 85 May 22 17:03 /dev/mapper/mpath86
brw-rw---- 1 grid asmadmin 253, 86 May 22 17:03 /dev/mapper/mpath87
brw-rw---- 1 grid asmadmin 253, 87 May 22 17:03 /dev/mapper/mpath88
brw-rw---- 1 grid asmadmin 253, 88 May 22 17:03 /dev/mapper/mpath89
brw-rw---- 1 grid asmadmin 253, 25 May 22 17:03 /dev/mapper/mpath9
brw-rw---- 1 grid asmadmin 253, 89 May 22 17:03 /dev/mapper/mpath90
brw-rw---- 1 grid asmadmin 253, 90 May 22 17:03 /dev/mapper/mpath91
brw-rw---- 1 grid asmadmin 253, 91 May 22 17:03 /dev/mapper/mpath92
brw-rw---- 1 grid asmadmin 253, 92 May 22 17:03 /dev/mapper/mpath93
brw-rw---- 1 grid asmadmin 253, 93 May 22 17:03 /dev/mapper/mpath94
brw-rw---- 1 grid asmadmin 253, 117 May 22 17:03 /dev/mapper/mpath95
brw-rw---- 1 grid asmadmin 253, 118 May 22 17:03 /dev/mapper/mpath96
brw-rw---- 1 grid asmadmin 253, 119 May 22 17:03 /dev/mapper/mpath97
brw-rw---- 1 grid asmadmin 253, 120 May 22 17:03 /dev/mapper/mpath98
brw-rw---- 1 grid asmadmin 253, 121 May 22 17:03 /dev/mapper/mpath99
然后查看状态 4个online (心里暗喜)
这不是要收工的节奏么?
马上查看下实例,会不会自动也拉起了呢? 结果是节点1实例仍然没有启动。
这里我的想法是把grid搞定后,再看实例(反而此时,我想他报错,因为这个时候报错的几率不大, 如果报错,说明又可以学习点新东西)
SQL> /NAME STATE TOTAL_MB FREE_MB
------------------------------ ----------- ---------- ----------
DGCRS MOUNTED 15360 14188
DGHPP65DATA02 MOUNTED 63488000 8983424
DGHPP65REDO02 MOUNTED 614400 539648
DGIBMV7DATA01 MOUNTED 110592000 10571712
DGIBMV7REDO01 MOUNTED 614400 539648
DGHPP65TDATA03 DISMOUNTED 0 06 rows selected.SQL> alter diskgroup DGHPP65TDATA03 mount;
alter diskgroup DGHPP65TDATA03 mount
*
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15260: permission denied on ASM disk group
NND 看嘛,果然有个磁盘没有mount,结果手动alter,报权限不足。
心想难道又要折磨我?
结果才想起是sysdba角色,所以要切换到sysasm
[grid@IBM-PC-Server-1 ~]$ sqlplus / as sysasmSQL*Plus: Release 11.2.0.4.0 Production on Wed May 24 17:01:15 2017Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management optionsSQL> alter diskgroup DGHPP65TDATA03 mount;Diskgroup altered.SQL>
SQL> select name,state,total_mb,free_mb from v$asm_diskgroup;NAME STATE TOTAL_MB FREE_MB
------------------------------ ----------- ---------- ----------
DGCRS MOUNTED 15360 14188
DGHPP65DATA02 MOUNTED 63488000 8983296
DGHPP65REDO02 MOUNTED 614400 539648
DGIBMV7DATA01 MOUNTED 110592000 10559680
DGIBMV7REDO01 MOUNTED 614400 539648
DGHPP65TDATA03 MOUNTED 83968000 838133116 rows selected.SQL> exit
启动成功。
看下实例,如下图
嗯,问题不大。
正常了!!
然后高兴去交差
那么第二个问题来了,看图
因为我对应用也不是很了解,只能一个awr看问题。 结果吓尿了!!! DB_time 7379
客户把我们当智能系统了,在压力测试、。 详单 1000W/小时
查询了30+24=54天, 54*24*60*1000w= 777,600,000,000 条记录 。
在来看io等待
结果给现场项目经理吐槽了一下。
这篇关于ORA-15032: not all alterations performed的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!