2022年2月15日
摘要: --查看每天产生的归档日志大小: select aa.ArchiveDate,aa.ArchiveSize from (select trunc(first_time) as ArchiveDate,sum(block_size * blocks) / 1024 / 1024 / 1024 as A 阅读全文
posted @ 2022-02-15 15:47 水语者9 阅读(3262) 评论(0) 推荐(0) 编辑
摘要: 在实际生产中有这样的需求: 业务用户A有比较大的权限,外部访问数据库,如果通过A,安全隐患较多,所以需要创建一个用户B,B只能查询A拥有的表或视图等对象,无法 insert/update/delete 1.创建用户B create user userB identified by "userB " 阅读全文
posted @ 2022-02-15 15:30 水语者9 阅读(3493) 评论(0) 推荐(0) 编辑
摘要: 上脚本: 1.查看用户下所有的数据对象的大小: select temp.owner,temp.table_name,temp.column_name,temp.segment_name,'truncate table '|| temp.segment_name ||' DROP STORAGE;' 阅读全文
posted @ 2022-02-15 11:05 水语者9 阅读(4236) 评论(0) 推荐(0) 编辑
摘要: 参考文章:https://www.cnblogs.com/nanqiang/p/7824870.html 1.当前连接数量,查询视图 v$process select count(*) as 当前连接数 from v$process; --即实时连接数量 2.最大连接数量 --通过查询参数的视图 v 阅读全文
posted @ 2022-02-15 10:32 水语者9 阅读(481) 评论(0) 推荐(0) 编辑