一、有关于数据库导出的语句。
1 将数据库TEST完全导出,用户名system 密码manager 导出到D:\daochu.dmp中
exp system/manager@TEST file=d:\daochu.dmp full=y
2 将数据库中system用户与sys用户的表导出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3 将数据库中的表table1 、table2导出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
4 将数据库中的表table1中的字段filed1以"00"打头的数据导出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"
二、有关于数据库导入的语句。
三、有关于数据库脚本导出的语句。
四、有关于数据库脚本导入的语句。
比如说我在oracle家目录下有a.sql文件
命令行sqlplus / as sysdba,进入后
SQL>@/home/oracle/a.sql;