在stackoverflow中找到了终极解决办法:>>> import matplotlib >>> matplotlib.matplotlib_fname() # This is the file location in Ubuntu‘/etc/matplotlibrc‘找到matplotlibrc之后,将backend从tkAGG修改为AGG http://stackoverflow.com/questions/2801882/generating-a-png-with-matplotlib-when-display-is-undefined原文:http://www.cnblogs.com/yumtaoist/p/4249840.html
前提 SQL执行计划仍在Shared Pool中函数体 DBMS_XPLAN.DISPLAY_CURSOR( sql_id IN VARCHAR2 DEFAULT NULL, child_number IN NUMBER DEFAULT NULL, format IN VARCHAR2 DEFAULT ‘TYPICAL‘);参数sql_id 指位于库缓存执行计划中SQL语句的父游标。默认值为null。当使用默认值时当前会话的最后一条SQL语句的执行计划将被返回 可以通过查询V$SQL 或 V$SQLAREA的SQL_ID列来获...