1. 程式人生 > >Exp等程序從oracle中剝離

Exp等程序從oracle中剝離

執行文件 存在 執行 用戶 family user 根據 pro 網絡相關

1、從oracle安裝目錄找到exp執行文件,復制到指定目錄:/home/fm/server/lib/oci/lib

2、將oracle安裝目錄下面$ORACLE_HOME/rdbms目錄復制到指定目錄:/home/fm/server/lib/oci/lib

3、修改上述兩步復制過來文件或者文件夾所屬用戶和用戶組:

[[email protected] bin]# chown fm:fm /home/fm/server/lib/oci/lib/exp

[[email protected] dbhome_1]# chown -R fm:fm /home/fm/server/lib/oci/lib/rdbms

4、設置fm用戶下的$ORACLE_HOME、$ORACLE_SID,根據實際情況設置

[[email protected] ~]$ vim .bash_profile

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

export ORACLE_SID=orcl

5、執行exp命令:

[[email protected] ~]$ 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

該目錄存放了許多和網絡相關的庫文件,必須同步復制過來;

Exp等程序從oracle中剝離