摘要: DB version:11.2.0.3.0 OS version:rhel 6.3 PS:测试用的数据库是一个刚刚模拟断电的库 打开归档模式 已sysdba身份登录数据库 [oracle@oracle ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0. 阅读全文
posted @ 2024-04-29 16:15 Coye 阅读(2) 评论(0) 推荐(0) 编辑
摘要: OS :Red Hat Enterprise Linux Server release 6.3 (Santiago) DB :11.2.0.4.0 设置 行的 宽度 和 页的行数 SQL> set line 233 pages 233 设置 long 的长度 SQL> set long 233 显示 阅读全文
posted @ 2024-04-24 14:30 Coye 阅读(1) 评论(0) 推荐(0) 编辑
摘要: ORACLE version: 11.2.0.4 OS: RHEL 6.3 背景:数据库几年没用了,傻乎乎的项目组要恢复出来查数据,也不知道咋想的,咱也不敢问。。。就开始着手恢复了,得亏nub上有备份 恢复过程中,报错 ORA-27211: Failed to load Media Manageme 阅读全文
posted @ 2024-04-18 17:36 Coye 阅读(5) 评论(0) 推荐(0) 编辑
摘要: OS: AIX 5300-12-05-1140 背景: 上了一台很老的 Oracle 查问题,手滑了,直接vi 了alert日志,报错了... 1. 报错如下 oraprd> vi alert_PRD.log ex: 0602-101 Out of memory saving lines for u 阅读全文
posted @ 2024-04-18 16:54 Coye 阅读(2) 评论(0) 推荐(0) 编辑
摘要: SQL*Plus Connection and DBCA Fails With: ORA-12547: TNS:Lost Contact 背景:某个SAP 的数据库的系统盘有问题了,需要迁移,当时数据库文件尚未损坏,于是将数据库软件连同数据文件一起 scp 到新的服务器 OS version: DB 阅读全文
posted @ 2024-04-11 16:55 Coye 阅读(1) 评论(0) 推荐(0) 编辑
摘要: version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 通过sqlplus 获取视图的 DDL 的两种方法 先设置格式 set line 233 pages 233 long 9999 通过 all_views/dba_v 阅读全文
posted @ 2024-04-09 19:34 Coye 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 文件按照大小排序 OS:Red Hat Enterprise Linux Server release 7.9 (Maipo) 用的时候,经常盘就满了,得找最大的那个表,到数据库里面去查还得写sql ,就干脆查文件就得了,以下是用了个空库的查询结果 通过 ll 排序,对文件夹不够友好 desc 排序 阅读全文
posted @ 2024-03-26 19:36 Coye 阅读(3) 评论(0) 推荐(0) 编辑
摘要: too many files open in system 查看哪个用户或进程占用的文件多 #查看进程打开文件数最多的前5个进程 lsof | awk '{print $2}' | sort | uniq -c | sort -rn | head -n 5 lsof -n| awk '{print 阅读全文
posted @ 2024-03-12 10:12 Coye 阅读(2) 评论(0) 推荐(0) 编辑
摘要: workbench 下载地址 https://dev.mysql.com/downloads/workbench/ 环境 虚拟机: 16C 32G mysql: percona 5.7.19 测试 CREATE TABLE `a` ( `account` varchar(50) NOT NULL, 阅读全文
posted @ 2023-08-14 17:28 Coye 阅读(33) 评论(0) 推荐(0) 编辑
摘要: emmm...也不知道为啥....密码不能过期...虽然不符合审计要求,但是用的爽啊.... `version:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit` 0、检查用户密码过期时间 ``` SQL> SELEC 阅读全文
posted @ 2023-06-25 09:59 Coye 阅读(61) 评论(0) 推荐(0) 编辑