随笔分类 - oracle
摘要:1.注册归档日志 catalog start with '/u01/archivelog/arch_bak/1_5_1172593408.dbf'; 2.校验归档日志 crosscheck archivelog all; 3.清理物理删除了的归档日志(控制文件还存在记录) delete expire
阅读全文
摘要:环境:OS:Centos 7DB:19.24.0 1.节点1打包grid软件(root账号操作)[root@rac01 grid]# pwd/u01/grid[root@rac01 grid]# lsgrid_base grid_home oraInventory[root@rac01 grid]#
阅读全文
摘要:https://yum.oracle.com/oracle-linux-isos.html
阅读全文
摘要:>> su - grid vim $GRID_HOME/crs/install/s_crsconfig_*_env.txt #备份cp $GRID_HOME/crs/install/s_crsconfig_ora112_env.txt $GRID_HOME/crs/install/s_crsconf
阅读全文
摘要:1.数据库处于mount状态 SQL>start mount 2.做完全恢复 #!/bin/bash . /etc/profile . ~/.bash_profile export ORACLE_SID=epidb export ORACLE_BASE=/u01/app/oracle export
阅读全文
摘要:1.数据库处于mount模式 SQL>start mount 2.执行不完全恢复 #!/bin/bash . /etc/profile . ~/.bash_profile export ORACLE_SID=mydb export ORACLE_BASE=/u01/app/oracle export
阅读全文
摘要:环境:OS:Centos 7db:12CR2 1.主机层面加盘虚拟机加盘需要停掉数据库和主句,生产环境之间划分lun给到主机,不需要重启.multipath -ll 找到新加磁盘的UUID 2.配置多路径每个节点上都要操作 [root@rac02 ~]# more /etc/multipath.co
阅读全文
摘要:1.查看当前的虚拟机 C:\Users\Administrator>cd C:\Program Files\Oracle\VirtualBox C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list vms "12C-rac01-ogg" {0f
阅读全文
摘要:建议目的端执行(源端也可以执行) rman target sys/oracle@tnsora11g_source auxiliary sys/oracle@tnsora11g_target run{ allocate channel prmy1 type disk; allocate channel
阅读全文
摘要:Oracle 数据库官方文档地址: http://docs.oracle.com/en/database/
阅读全文
摘要:[oracle@lenovo scripts]$ more check_db_block_corruption.sh #!/bin/bash ##source /etc/profile export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1
阅读全文
摘要:环境:主库:win2012 server从库:centos 6db:11.2.0.4 1.主库上创建表空间 create tablespace tps_win01 logging datafile 'c:\oracle\app\oradata\win11g\tps_win01.dbf' size 5
阅读全文
摘要:环境:OS:Centos 7DB:12.2.0.1源库:2节点RAC目的库:单节点 1.源库创建表空间 create tablespace tps_test logging datafile '+DATA' size 50m autoextend on next 10m maxsize 2048m
阅读全文
摘要:1.查看更新列表https://support.oracle.com/knowledge/Oracle%20Cloud/2521164_1.html 2.各补丁下载地址查询入口https://support.oracle.com/epmos/faces/PatchHome?_adf.ctrl-sta
阅读全文
摘要:环境:OS:Centos 7DB:12.2.0.1 当Oracle ASM实例查找初始化参数文件时,会从GPnP profile文件中查找 获取spfile文件 [grid@rac01 ~]$ cd $ORACLE_HOME/gpnp/rac01/profiles/peer [grid@rac01
阅读全文
摘要:OS:CentOS 7源库:2节点组成的RAC,SID:slnngk1,slnngk2,db_name:slnngk目的库:单机,sid:slnngkb,db_name:slnngkb数据库版本:12.2.0.1 注意:目的端的db_name必须与源端保持一致 1.异地机器安装相同版本的数据库软件和
阅读全文
摘要:环境:OS:Centos6.9DB:11.2.0.4主库SID:slnngka备库SID:slnngkb 1.异地机器安装相同版本的数据库软件安装步骤省略,注意只安装软件和启动监听器(没有监听任何服务器)确保监听器已经启动 [oracle@slnngkb rmanbak]$ lsnrctl stat
阅读全文
摘要:环境:OS:Centos 7DB:11.2.0.4 1.备份加密文件拷贝到另外的目录或是重命名[oracle@ora11g wallet]$ mv ewallet.p12 bak_ewallet.p12 2.这个时候尝试关闭或是打开SQL> alter system set wallet close
阅读全文
摘要:环境: Os:Centos 7 DB:11.2.0.4 说明:创建了wallet后一定要备份wallet目录下的文件,否则丢失了的话,使用该wallet加密的数据和表空间也会丢失. 1.先要创建一个"wallet钱包",这个钱包里面保存着密钥,Oracle就是通过这个密钥对列进行加密和解密的.su
阅读全文
摘要:环境: OS:Centos 6 DB:11.2.0.4 3节点组成的rac环境 说明:创建了wallet后一定要备份wallet目录下的文件,否则丢失了的话,使用该wallet加密的数据和表空间也会丢失. 1.先要创建一个"wallet钱包",这个钱包里面保存着密钥,Oracle就是通过这个密钥对列
阅读全文