Oracle 導入dmp文件命令


1. 導入dmp 文件OEM_PART_CAR 表

imp "'test/test@orcl as sysdba'" file=F:\0708.dmp buffer=30720 commit=no full=no grants=yes ignore=yes indexes=yes rows=yes show=no 
constraints
=yes TABLES=(table1,table2) log=D:\epc.log

table1 和 table2 為導入的目標表名稱

2. 表空間設置大小和自動擴展

 select tablespace_name,file_name,autoextensible from dba_data_files where tablespace_name = 'SYSTEM';
 
 alter tablespace SYSTEM  add datafile 'E:\APP\ADMINISTRATOR\ORADATA\ORCL\SYSTEM02.DBF' size 4194303; 

http://gqsunrise.iteye.com/blog/2015692  Oracle修改表空間為自動擴展
alter database datafile 'E:\APP\ADMINISTRATOR\ORADATA\ORCL\SYSTEM02.DBF' autoextend on;
File size (8960000 blocks) exceeds maximum of 4194303 blocks

3. 刪除表SQL

1  drop table table;--刪除表
2 
3  purge recyclebin;--清除回收站
4 
5  TRUNCATE TABLE table; --刪除表

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM