oracle扩容日志文件,ORACLE 加大日志文件

--新建临时日志文件

alter database add logfile group 4 (‘/u01/app/oracle/oradata/orcl/redo04.log‘) size 10m;

alter database add logfile group 5 (‘/u01/app/oracle/oradata/orcl/redo05.log‘) size 10m;

alter database add logfile group 6 (‘/u01/app/oracle/oradata/orcl/redo06.log‘) size 100m;

--切换日志文件

alter system switch logfile;

alter system switch logfile;

--删除旧文件

alter database drop logfile group 1;

alter database drop logfile group 2;

alter database drop logfile group 3;

--操作系统删掉1,2,3

--新建3个

alter database add logfile group 1 (‘/u01/app/oracle/oradata/orcl/redo01.log‘) size 200m;

alter database add logfile group 2 (‘/u01/app/oracle/oradata/orcl/redo02.log‘) size 200m;

alter database add logfile group 3 (‘/u01/app/oracle/oradata/orcl/redo03.log‘) size 200m;

--切换日志文件

alter system switch logfile;

alter system switch logfile;

--删旧日志组

alter database drop logfile group 4;

--操作系统删掉4,5

--备份控制文件

SQL> connect / as sysdba

SQL> alter database backup controlfile to trace resetlogs

原文:http://www.cnblogs.com/wolil/p/6657250.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/540899.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

java多线程总结(二)

线程一般有6个状态: 新建状态:NEW 可运行状态:RUNNABLE 休眠状态:TIMED_WAITING 等待状态:WAITING 阻塞状态:BLOCKED 终止状态“TERMINATED 当我们使用new创建线程之后,线程处于新建状态,当调用…

scandir函数_PHP scandir()函数与示例

scandir函数PHP scandir()函数 (PHP scandir() function) The full form of scandir is "Scan Directory", the function scandir() is used to get the list of the files and directories available in the specified directory. scandir的完整格式为“ Scan Direc…

韩顺平.2011最新版.玩转oracle视频教程笔记,韩顺平.2011最新版.玩转oracle视频教程(笔记)...

韩顺平.2011最新版.玩转oracle视频教程ORA-01045: user XIAOMING lacks CREATE SESSION privilege; logon denied 警告: 您不再连接到 ORACLE。 SQL> show user; USER 为 ""SQL> conn system/p; 已连接。SQL> grant connect to xiaoming; 授权成功。SQL>…

方幂序列 c+~+_C ++编程中的Trigraph序列

方幂序列 c~Trigraph Sequences in C are the set of three characters starting from double question marks (??). These set of the characters replaces by a single character specified in the below table, C 中的Trigraph序列是从双问号( ?? )开始的三个…

oracle sysauth,sysauth$基表的用户权限的一点分析

select privilege#,level from sysauth$ connect by grantee#prior privilege# and privilege#>0 start with grantee#:1 and privilege#>0如上的sql语句频繁执行,其实对于递归sql对于自己初始oracle才一年的菜鸟一般是略去不看的,eygle前辈们有时…

ansys 内聚力_内聚力 软件工程

ansys 内聚力凝聚 (Cohesion) In general terms, the word cohesion means the action or act of forming a united whole. According to the definition of Cambridge University, cohesion is defined as "the state of sticking together, or being in close agreement…

oracle认证都需要考哪几个方面,Oracle OCP认证要通过哪些考试

Oracle OCP认证要通过哪些考试Oracle OCP DBA认证是所有Oracle认证中最普及的一种认证,这一认证过程是专为那些想要从事Oracle管理的专业数据库管理人员设计的,适用于Oracle9I DBAs的OCP认证通过改进,删除了备份和恢复以及网络考试&#xff0…

左侧固定 右侧自适应三种方法

第一种&#xff1a;float 单一层浮动法 例如&#xff1a;左侧固定成100px; 则核心代码 左侧&#xff1a;width:100px;float:left; 右侧 width:auto;margin-left:100px; 实例&#xff1a; <!DOCTYPE html> <html> <head> <meta charset"utf-8&q…

ruby 集合 分组_在Ruby中打印集合的元素

ruby 集合 分组We have gone through the implementation of sets in Ruby. They are very similar to arrays. Now, let us see how we print the elements present in a set. There are no indexes present in the sets because sets are used to store the large elements. …

linux下tmp目录属性,Linux:文件夹属性及umask

回顾&#xff1a;文件在小&#xff0c;也要占用一个Block如&#xff1a;echo > a1.logls a1.log(文件大小为1k)du a1.log(文件大小也应该为1k&#xff0c;如果不是1k&#xff0c;可能selinux是打开的)du -s a1.log文件夹的权限&#xff0c;系统中的文件夹默认权限基本上都为…

python浅复制与深复制_Python中的浅复制与深复制

python浅复制与深复制In python, the assignment operator does not copy the objects, instead, they create bindings between an object and the target. The object, if a collection that is mutable or consists of mutable items uses the copy so that one can change …

逻辑回归 数据_数据科学中的逻辑回归

逻辑回归 数据逻辑回归 (Logistic Regression) Logistic regression is an applied mathematics analysis methodology accustomed to predict a data price supported previous observations of a data set. Logistic regression has become a very important tool within the…

Dede 删除文档同时文章中的图片的方法

首先,在"/include"目录下建立"extend.func.php"文件. 然后,将以下内容保存在"extend.func.php"文件中,一共三个函数&#xff1a;//解析body数据&#xff0c;获得所有图片的绝对地址function GetPicsTruePath($body,$litpic){$delfiles array();…

《linux操作系统》第06章在线测试,Linux系统管理一测试题-附答案.doc

Linux系统管理一测试题-附答案Linux系统管理一测试题姓名&#xff1a;班级&#xff1a;考试时间180分钟,ls,ifconfig,hostname,cd的程序文件在哪里which mkdir ls ifconfig hostname cd查看当前的PATH变量的值echo $PATH在根下新建一个目录study&#xff0c;在study目录下建子目…

java8-02-Stream-API

[TOC] 0 Stream简介 家庭住址 &#xff1a;java.util.stream.Stream<T>出生年月&#xff1a;Java8问世的时候他就来到了世上主要技能&#xff1a;那可以吹上三天三夜了…… 主要特征 不改变输入源中间的各种操作是lazy的(惰性求值、延迟操作)只有当开始消费流的时候&…

跟随者数字解码_跟随模式的数字

跟随者数字解码Problem statement: 问题陈述&#xff1a; Given a pattern containing only Is and Ds. I stands for increasing and D for decreasing. Devise an algorithm to print the minimum number following that pattern. Digits are from 1-9 and digits cant repe…

Linux内核机器ID,linux-如何强制内核重新读取/重新初始化PCI设备ID?

我的机器(正在运行Linux内核3.2.38的计算机)在引导时具有错误的PCI设备的子系统ID(子设备和子供应商ID).如果我然后在系统仍处于启动状态(即热插拔)时物理地拔出PCI设备并重新插入,则它将获得正确的ID.请注意,错误的子设备ID和子供应商ID与设备的设备ID和供应商ID相同(请参见下…

Android ImageButton示例代码

1) XML File: activity_main 1)XML文件&#xff1a;activity_main <?xml version"1.0" encoding"utf-8"?><android.support.constraint.ConstraintLayout xmlns:android"http://schemas.android.com/apk/res/android"xmlns:app"…

IIS 伪静态下 利用PHP获取 网址后缀

$_SERVER[HTTP_X_ORIGINAL_URL];转载于:https://www.cnblogs.com/paddygege/p/7238228.html

kotlin 小数位数_Kotlin程序生成4位数OTP

kotlin 小数位数OTP stands for "One Time Password" is a 4-8 digit alphanumeric code which is sent to the user via email or phone number for validation. As the name suggests, it can be used once only. OTP代表“ 一次密码”&#xff0c;它是4-8位的字母…