Oracle 查询最近创建的表

select * from user_objects where object_type='TABLE' order by created desc

Oracle 查询最近删除的表

select * from dba_recyclebin s where type='TABLE' and OWNER='WCECDB' order by droptime desc    //WCECDB查询的数据库

Oracle 查询最近修改的表

select uat.table_name,(select last_ddl_time from user_objects where object_name = uat.table_name) as lastddltime from user_all_tables uat
order by lastddltime desc

推荐地址:

 Oracle根据主键获取对应表,Oracle根据外键获取相关表

Oracle 查询当前数据库环境变量

select userenv('language') nls_lang from dual; 

1.右击"我的电脑" - "属性" - "高级" - "环境变量" - "系统环境变量":

 2.点击"新建", 变量名设置为"NLS_LANG", 变量值设置为"AMERICAN_AMERICA.ZHS16GBK", 点击"确定";   (数据库字段集)

 

posted on 2018-09-06 21:34  许一朵岁月  阅读(369)  评论(0编辑  收藏  举报