Exp等程序从oracle中剥离

1、从oracle安装目录找到exp执行文件,复制到指定目录:/home/fm/server/lib/oci/lib

2、将oracle安装目录下面$ORACLE_HOME/rdbms目录复制到指定目录:/home/fm/server/lib/oci/lib

3、修改上述两步复制过来文件或者文件夹所属用户和用户组:

[root@huydvm bin]# chown fm:fm /home/fm/server/lib/oci/lib/exp

[root@huydvm dbhome_1]# chown -R fm:fm /home/fm/server/lib/oci/lib/rdbms

4、设置fm用户下的$ORACLE_HOME、$ORACLE_SID,根据实际情况设置

[fm@huydvm ~]$ vim .bash_profile

export ORACLE_HOME=/home/fm/server/lib/oci/lib

export ORACLE_SID=orcl

5、执行exp命令:

[fm@huydvm ~]$ exp

Export: Release 11.2.0.4.0 - Production on Thu Sep 14 16:22:40 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

Username:

6、到输入用户名的地方,就说明配置全部完成;

7、但是要连上数据库,还是存在问题!

8、将oracle安装$ORACLE_HOME/network目录复制到指定目录:/home/fm/server/lib/oci/lib

该目录存放了许多和网络相关的库文件,必须同步复制过来;

posted @ 2017-09-30 22:11  Mr.R123  阅读(408)  评论(0编辑  收藏  举报