4、配置imp、exp
root用户登录:
# cd /opt/Oracle/instantclient_10_2/
# scp root@192.168.21.16:/oracle/orahome/product/10.2.0/bin/imp ./
root@192.168.21.16's password:
imp 100% 348KB 348.3KB/s 00:00
# scp root@192.168.21.16:/oracle/orahome/product/10.2.0/bin/exp ./
root@192.168.21.16's password:
exp 100% 697KB 697.1KB/s 00:00
# cd rdbms/mesg/
# scp root@192.168.21.16:/oracle/orahome/product/10.2.0/rdbms/mesg/impus.msb ./
root@192.168.21.16's password:
impus.msb 100% 16KB 15.5KB/s 00:00
# scp root@192.168.21.16:/oracle/orahome/product/10.2.0/rdbms/mesg/expus.msb ./
root@192.168.21.16's password:
expus.msb 100% 17KB 16.5KB/s 00:00
#
测试用户下运行imp和exp
$ imp
Import: Release 10.2.0.4.0 - Production on 星期五 8月 3 11:31:24 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Username:
$ exp
Export: Release 10.2.0.4.0 - Production on 星期五 8月 3 11:31:13 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Username:
Ok!
5、配置tkprof
Tkprof是一个格式化sql trace文件的工具,在简单客户端中,我们也可以添加进来:
root用户登录:
# cd /opt/oracle/instantclient_10_2/
# scp root@192.168.21.16:/oracle/orahome/product/10.2.0/bin/tkprof ./
root@192.168.21.16's password:
tkprof 100% 135KB 135.1KB/s 00:00
# mkdir -p oracore/mesg/
# cd oracore/mesg/
# scp root@192.168.21.16:/oracle/orahome/product/10.2.0/oracore/mesg/lrmus.msb ./
root@192.168.21.16's password:
lrmus.msb 100% 4608 4.5KB/s 00:00
#
测试用户下执行
$ tkprof
Usage: tkprof tracefile outputfile [explain= ] [table= ]
[print= ] [insert= ] [sys= ] [sort= ]
table=schema.tablename Use 'schema.tablename' with 'explain=' option.
explain=user/password Connect to ORACLE and issue EXPLAIN PLAN.
print=integer List only the first 'integer' SQL statements.
aggregate=yes|no
insert=filename List SQL statements and data inside INSERT statements.
sys=no TKPROF does not list SQL statements run as user SYS.
record=filename Record non-recursive statements found in the trace file.
waits=yes|no Record summary for any wait events found in the trace file.
sort=option Set of zero or more of the following sort options:
prscnt number of times parse was called
……
tkprof可以运行了
