摘要: 点击查看代码 命令 scp -3r user@ip:/path/file user@ip:/path/ 远程主机(源)-》中转机-》远程主机(目标) 如果要实现免密需要 ssh-copy-id user@ip 将本地的 SSH 公钥快速复制到远程主机的 ~/.ssh/authorized_keys 阅读全文
posted @ 2025-10-14 12:35 夜说的世界 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.mes 阅读全文
posted @ 2025-07-28 09:21 夜说的世界 阅读(4) 评论(0) 推荐(0)
摘要: 看技术群里有人从9.2版本升级到12版本,性能变得很差。 群里回复说:old_snapshot_threshold 这个参数14版本前不建议开启。开启该参数可能造成回收不了死元组,导致索引不生效。 原理未知,记录一下。 阅读全文
posted @ 2025-07-21 17:35 夜说的世界 阅读(6) 评论(0) 推荐(0)
摘要: ORA-01152: file 1 was not restored from a sufficiently old backup ORA-01110: data file 1: '/u02/oracle/oradata/mingya/system01.dbf' 由于控制文件的SCN大于数据文件的S 阅读全文
posted @ 2025-07-16 16:12 夜说的世界 阅读(71) 评论(0) 推荐(0)
摘要: 使用alter database create standby controlfile 方式备份的控制文件,会根据db_file_name_convert的设置自动转换路径,report schema查看。 而使用buckup current controlfile方式不会根据db_file_nam 阅读全文
posted @ 2025-07-16 09:51 夜说的世界 阅读(30) 评论(0) 推荐(0)
摘要: 密码文件需要PWCOPY到ASM中,不要指定绝对路径,使用+DATA就行,它会生成对应的目录。 然后使用SRVCTL添加到CONFIG中。 还需要把密码文件CP到ORACLE_HOME/dbs中。 SPFILE使用 create spfile="+data" from pfile=''命令即可。 也 阅读全文
posted @ 2025-07-02 16:23 夜说的世界 阅读(26) 评论(0) 推荐(0)
摘要: 点击查看代码 删除七天前的归档 delete noprompt archivelog all completed before 'sysdate - 7'; 参考:https://www.cnblogs.com/fiberhome/p/7698254.html 阅读全文
posted @ 2025-07-02 16:23 夜说的世界 阅读(4) 评论(0) 推荐(0)
摘要: 需要从两个节点都配置TNSNAMES把两个节点的归档都传输到备库上,不能只配置一个节点的TNSNAMES. 阅读全文
posted @ 2025-07-02 16:22 夜说的世界 阅读(22) 评论(0) 推荐(0)
摘要: 参考以下文章解释 https://www.modb.pro/db/24699 阅读全文
posted @ 2025-06-30 10:46 夜说的世界 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 postgres=# select * from pg_hba_file_rules; line_number | type | database | user_name | address | netmask | auth_method | options | error + + + 阅读全文
posted @ 2025-06-27 18:36 夜说的世界 阅读(12) 评论(0) 推荐(0)