随笔分类 -  oracle

摘要:select 'alter table '||table_name||' allocate extent;' from user_tables where segment_created='NO' 执行上方查询出来的alter语句即可 阅读全文
posted @ 2020-05-26 10:25 老孙家人 阅读(152) 评论(0) 推荐(0)
摘要:exp 用户名/密码@orcl owner=用户名 file=E:\123.dmp imp 用户名/密码@orcl fromuser=来自的数据库用户名 touser=导入的数据库用户名 file=E:\export\test.dmp ignore=y 阅读全文
posted @ 2020-04-09 16:39 老孙家人 阅读(604) 评论(0) 推荐(0)
摘要:一、查看当前用户下表名,及表名的备注 select * from user_tab_comments where table_name like 'T_ONLINE%' 二、查询数据字典 1. 具有dba权限用户导出数据字典 SELECT A.TABLE_NAME AS "表名",A.COLUMN_ 阅读全文
posted @ 2019-10-23 10:57 老孙家人 阅读(717) 评论(0) 推荐(0)