• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

嘻哈小王

欢迎来到我的乐园
  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2025年3月21日

oracle--批量修改sequence值

摘要: declare seq_name varchar2(100); l_currval number; --序列的当前值 cursor seq_cur is select ur.sequence_name from user_sequences ur; --将当前数据库所有序列的名称存放到游标中 beg 阅读全文

posted @ 2025-03-21 11:15 琅琊小王 阅读(59) 评论(0) 推荐(0)

oracle--查询oracle比较慢的session和sql

摘要: 1)查询最慢的sql select * from ( select parsing_user_id,executions,sorts command_type,disk_reads,sql_text from v$sqlarea order by disk_reads desc )where row 阅读全文

posted @ 2025-03-21 11:14 琅琊小王 阅读(24) 评论(0) 推荐(0)

oracle--查询次数最多的SQL

摘要: select * from (select s.SQL_TEXT, s.EXECUTIONS "执行次数", s.PARSING_USER_ID "用户名", rank() over(order by EXECUTIONS desc) EXEC_RANK from v$sql s left join 阅读全文

posted @ 2025-03-21 11:11 琅琊小王 阅读(29) 评论(0) 推荐(0)

oracle-查询执行最慢的SQL

摘要: select * from (select sa.SQL_TEXT, sa.SQL_FULLTEXT, sa.EXECUTIONS "执行次数", round(sa.ELAPSED_TIME / 1000000, 2) "总执行时间", round(sa.ELAPSED_TIME / 1000000 阅读全文

posted @ 2025-03-21 11:09 琅琊小王 阅读(48) 评论(0) 推荐(0)

oracle-查询最占资源的SQL

摘要: select sql_text from v$sql where disk_reads > 1000 or (executions > 0 and buffer_gets / executions > 30000); 阅读全文

posted @ 2025-03-21 11:05 琅琊小王 阅读(16) 评论(0) 推荐(0)

oracle 查询某个对象被引用得位置

摘要: select * from dba_dependencies where referenced_name='被引用的对象名' 阅读全文

posted @ 2025-03-21 11:01 琅琊小王 阅读(6) 评论(0) 推荐(0)

java中链接ftp并实现上传和下载

摘要: 添加maven依赖 <!--连接ftp使用--> <dependency> <groupId>commons-net</groupId> <artifactId>commons-net</artifactId> <version>3.3</version> </dependency> <!--打印日 阅读全文

posted @ 2025-03-21 10:58 琅琊小王 阅读(158) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3