基于asm的单实例数据库启动时报错ORA-15032 ORA-15063一例
--报错如下:
SQL> startup
ASM instance started
Total System Global Area 83886080 bytes
Fixed Size 1217836 bytes
Variable Size 57502420 bytes
ASM Cache 25165824 bytes
ORA-15032: not all alterations performed
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "DATA"
--查看错误信息:
[oracle@rhl5 ~]$...
ORACLE ASM常用命令
ASM常用命令
--创建磁盘组
--标准冗余
sql>create diskgroup dg01 normal redundancy
failgroup fg01 disk
'/dev/rhdisk5',
'/dev/rhdisk6'
failgroup fg02 disk
'/dev/rhdisk7',
'/dev/rhdisk8';
--外部冗余
sql>create diskgroup dg01 external redundancy
disk
'/dev/rhdisk5',
'/dev/rhdisk6'
--删除磁盘组
--卸载其他节点的磁盘组
sql>alter drop diskgroup dg1 dismount;
--从选定节点删除...
数据库从非ASM到ASM的迁移
数据库从非ASM到ASM的迁移
参考文档
Steps To Migrate/Move a Database From Non-ASM to ASM And Vice-Versa [ID 252219.1]
How to duplicate a controlfile when ASM is involved [ID 345180.1]
查看源文件系统
SQL> select * from v$version where rownum<5;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0...
OCR和Votedisk在没有备份的情况下损坏后的恢复
OCR和Votedisk损坏后的恢复(无备份)
--停止所有节点的CRS
[root@rac1 ~]# /opt/ora10g/product/crs/bin/crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@rac1 ~]# /opt/ora10g/product/crs/bin/crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot c...
ORACLE关于表上统计信息的备份与恢复
备份恢复表统计信息
在oracle中,统计信息是十分重要的,尤其在10g以后sql执行计划采用CBO后,表上的统计信息将直接影响CBO做出正确的执行计划。所以,我们对那些数据量较大,且其中的数据存在批量加载和删除的情形,我们一般建议在对该类表做完数据批量加载或删除之后,及时对其进行统计信息的收集,此刻,我们便可采用先将该类表之前的统计信息备份之后再次对其统计信息的收集,这样一来,即使新的统计信...
linux yum本地源配置
linux yum(yellowdog update manager)本地源配置
系统平台:Red Hat Enterprise Linux Server release 5
步骤:
1、 将DVD光盘挂载到/media/cdrom中;
2、 拷贝/media/cdrom中的所有文件到/soft/yum/yum0;(注:这一步不是必须的,挂载上去就行了)
3、在/etc/yum.repos.d下新建本地yum源的配置文件local.repo
参照/etc/yum.repos.d/rhel-debuginfo.repo的内容:
[m@localhost ~]$ cat /etc/yum.repos.d/r...
oracle账号频繁锁定问题定位及分析过程ORA-28000
oracle账号频繁锁定问题定位及分析过程
现象:
Enter password:
ERROR:
ORA-28000: the account is locked
Warning: You are no longer connected to ORACLE.
解决过程
查看锁定时间及锁定类别:
SQL> conn / as sysdba
Connected.
SQL> select username,to_char(lock_date,'yyyy/mm/dd hh24:mi:ss') as locktime,account_status from dba_users where username='***********...