首页 > 数据库 >oracle删除alert_orcl.log

oracle删除alert_orcl.log

时间:2023-03-15 16:44:25浏览次数:32  
标签:... log alert will orcl file oracle ALERT

数据库正在运行着,如何清理太大的alert.log文件?
不能用mv方法.

官方建议:

How Do You Reduce The Size Of An Alert Log That Is Too Large To Edit while the DB is running? (Doc ID 296354.1)

GOAL:
How do you reduce the size of the alert log while the database is still running and is too large to edit?

SOLUTION:

There really is no way to reduce the size other than start a new file

 

1) COPY the alert log to a new name

EXAMPLE:

cp ALERT_MYSID.LOG ALERT_MYSID.2004 首先保障2倍空间,但是如果很大会不会?

2) Delete the existing alert log

EXAMPLE:

rm ALERT_MYSID.LOG

After this the database should recreate an empty file and continue logging to it.

If the log will not delete due to file locking ... you will need to delete the copy and try steps
1 and 2 again until it succeeds ... if you continue to fail ... you will need to shutdown to do
the process.

你看,最后一段说明,多麻烦,还是定期重启数据库大 法好,重启时趁机改名字或rm岂不简单。

标签:...,log,alert,will,orcl,file,oracle,ALERT
From: https://www.cnblogs.com/cinemaparadiso/p/17219079.html

相关文章

  • oracle vm 的nat,主机直接访问内网,forward地址转发
     使用oracle的vm7版本内部虚拟化主机的ip,为10.0.2.4通过主机ip的90口,访问内部的80口作映射通过主机22口映射,为内部的22口,用来登录ssh  作转发规则  ......
  • oracle怎么增加表空间大小
    转至:https://blog.csdn.net/m0_54434140/article/details/126536817第一步:查看表空间的名字及文件所在位置:selecttablespace_name,file_id,file_name,round(bytes/(......
  • Oracle 删除表空间回收磁盘空间
    转至:https://blog.csdn.net/catoop/article/details/1287981321.查询表空间和表空间数据库文件路径SQL>select*fromdba_data_files;2.删除表空间SQL>droptabl......
  • EEPROM_I2C_verilog
    1、I2C通讯协议I2C通讯协议(Inter-IntegratedCircuit)是由Philips公司开发的一种简单、双向二线制同步串行总线,只需要两根线即可在连接于总线上的器件之间传送信息。1.......
  • ERROR 10516 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
    在IDEA上运行程序时遇到如下问题:如果你跟我一样也遇到了这个问题,那么大概率是端口冲突造成的。可能是之前运行的程序没有完全关闭从而影响到了现在的程序运行,最根本的解......
  • centOS 密码正确,无法登录:login incorrect
    root用户密码正确,但是登录时提示:loginincorrect,回想一下无法登录前在系统进行修改文件权限的操作导致出现问题步骤1:进入单用户模式    a.开机启动时,快速按住键......
  • oracle的建库和启停命令
    转至:https://blog.csdn.net/x629242/article/details/120809433建库一准备补丁包rlwrap-0.37-1.el6.x86_64.rpm二建库1画面映射到WindowsexportDISPLAY=192.168.16......
  • Oracle 数据核对测试
    主键唯一性检测selectcount(distinctpk_id)-count(*)frompk_id_test;createtablestudent(snovarchar(10),snamevarchar(10),sagedate,ssexvar......
  • oracle 导入 dmp
      查询用户有哪些?select*fromdba_users;   select*fromall_users;   select*fromuser_users;  导入命令,必须在dos命令行中执行,而不是sqlplus下......
  • Loguru—轻量日志
    目录Loguru的功能Loguru的示例Loguru是一个轻量级的Python日志库,使日志记录变得简单而美观。它具有易于使用的API,可以轻松地集成到任何Python应用程序中。Loguru的功能......