![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql
沧白
这个作者很懒,什么都没留下…
展开
-
[Oralce]执行sql共享池报错ORA-04031: unable to allocate 4120 bytes of shared memory (“shared pool“,...)
大概率是缓存给小了解决方案:刷共享池,说在数据库使用量大的时候执行,可能会导致宕机,所以本人没有尝试过alter system flush shared_pool;修改缓存大小,需要重启服务器以后才能生效[oracle@localhost ~]$ sqlplus / as sysdbaSQL> show parameter sga;SQL> alter system set sga_max_size=2048m scope=spfile;SQL> alter sy原创 2022-03-17 18:50:43 · 923 阅读 · 0 评论 -
[Oracle]Oracle中查询该表中的主键被哪些表引用,该表中的外键来源于哪些表
Oracle中查询该表中的主键被哪些表引用的SQL语句:select c.TABLE_NAME from all_constraints p, all_constraints c where p.table_name = '表名' and p.OWNER = SYS_CONTEXT('USERENV', 'CURRENT_SCHEMA') and c.OWNER=S原创 2017-10-30 17:32:28 · 987 阅读 · 0 评论