oracle命令隨筆

  • 查詢表空間佔用大小
SELECT segment_name AS TABLENAME,BYTES b,BYTES / 1024 KB,BYTES / 1024 / 1024 MB FROM user_segments
WHERE segment_name = '表名'
  • 查詢所有表名稱
select * from all_tables where owner='TEST';
  • 導入命令
imp 用戶/密碼 file=文件路徑 full=y ignore=y;
  • 導出命令
exp test/test@orcl file=D:\export\test.dmp statistics=none owner=test
 --指定不導出表 誰用誰知道
expdp test/test@orcl schemas=test exclude=TABLE:\"IN('TEST1', 'TEST2')\" dumpfile=test.dmp
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章