linux下怎么用exp和imp导出和导入指定的oracle数据库表?

数据库名是aaa,密码是123,顺便解释一下语句的意思,谢谢啦
补充一下,我看了exp一些基本的方法,有几个问题:需要启动数据库为归档模式吗?scott/tiger是什么意思?

先谢谢上面的回答

我照着上面的回答写了exp aaa/123 tables=(a1) grants=y file='/localhost/1.dmp
提示为“syntax error near unexpected token '(’”什么意思啊?

exp help=y
imp help=y
说的很清楚
数据库归档不归档都可以,scott是一个用户名,tiger是这个用户的密码,举两个例子
exp scott/tiger owner=scott file=temp.dmp log=temp.log
exp scott/tiger tables=(emp,dept) file=temp.dmp log=temp.log
温馨提示:答案为网友推荐,仅供参考
第1个回答  推荐于2017-10-07
例如将scott用户下所有表,导入到test用户下
1 exp scott/tiger file=scott.dmp owner=scott
2 (1) 如果test用户下有scott的表,哪些需要先删除在导入
conn test/test
select 'drop table '||table_name||' purge;' from user_tables;
imp test/test file=scott.dmp fromuser=scott touser=test
(2) 如果test用户下没有scott用户的表,可以直接导入
imp test/test file=scott.dmp fromuser=scott touser=test
第2个回答  2010-11-18
导入导出与归不归档没有关系

用oracle用户命令行下输入 exp scott/tiger file='保存路径' full=y 这样就可以全库导出

还有一个问题是scott用户不定要解锁,否则会无法连接数据库
解锁命令是sqlplus 下的输入alter user scott account unlock;
第3个回答  2010-11-18
不需要!
用户名/密码
第4个回答  2018-06-19
linux系统无法读取(字符,把括号去掉就可以了
相似回答