惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
爱范儿
爱范儿
T
The Exploit Database - CXSecurity.com
量子位
T
Tailwind CSS Blog
T
Threatpost
The GitHub Blog
The GitHub Blog
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
K
Kaspersky official blog
P
Proofpoint News Feed
博客园 - 司徒正美
L
LangChain Blog
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
S
Secure Thoughts
The Last Watchdog
The Last Watchdog
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
T
Troy Hunt's Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
T
Tor Project blog
T
The Blog of Author Tim Ferriss
I
Intezer
P
Privacy & Cybersecurity Law Blog
美团技术团队
N
Netflix TechBlog - Medium
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
Google Developers Blog
Attack and Defense Labs
Attack and Defense Labs
T
Tenable Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Last Week in AI
Last Week in AI

博客园 - 迷

如何升级一台老macbook air的macOS到最新版本 IDEA错误的忽略了智能补全代码,导致正确的代码自动提示不出来的问题 校准liunx时间简单好用的命令 服务器安装Ubuntu的那些坑 闭包的应用案例 Activiti 乱码问题 Activiti 整合的小插曲 IDEA 提示找不到 javax 等 tomcat 的相关包 一些好用的 Oracle 批处理和语句 WebPack 从安装到闲置 Android Studio 编译提示 No installed build tools found. Please install the Android build tools VBox 安装 Ubuntu Server 的那些坑,键盘乱码、网卡互连、共享目录等 nginx 的 upstream timed out 问题 产品是什么? 如何管理? 如何远程工作? 远程工作的手段 PhoneGap 3.4 开发配置及问题 错误:找不到或无法加载主类
Oracle 日志报错导致的 “没有登录” 问题
· 2017-08-08 · via 博客园 - 迷

2017-08-08 16:43    阅读(844)  评论()    收藏  举报

遇到的问题是日志空间满了,导致Oracle无法登陆,但用PL/SQL登录仅会提示“没有登录”

# 首先检查日志空间是否满了,并删除过期日志

rman target sysdba/password@orcl

RMAN> list archivelog all;

RMAN> crosscheck archivelog all;

RMAN> delete expired archivelog all;

# 也可以删除 7 天之前的日志

RMAN> DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7';

# 如果还不行,使用SQLPlus先登录本地 sys 账号

sqlplus /nolog

SQL> conn /as sysdba

# 查看日志分配的空间,以及空间占比,我查询出来占比已达到99.92%说明日志满了

SQL> show parameter db_recovery_file_dest;

SQL> select * from v$flash_recovery_area_usage;

# 如果太小可以重新分配,我这里分配了16G

SQL> alter system set db_recovery_file_dest_size=16g;

# 尝试下数据库状态是否正常,如果报错可以看错误码

SQL> alter database open;

SQL> select * from all_users;

# 看看日志是否正常,不正常的话状态一般都是 NO

SQL> select group#,sequence#,archived,status from v$log;

# 尝试清理并重建日志
SQL> alter database clear logfile group 3;

# 如果是该日志组还没有归档,则需要用
SQL> alter database clear unarchived logfile group 3;