arcgis地理空間數據庫學習記錄02-地理數據庫遷移

二、地理數據庫遷移

2.1 數據量不是很多的情況下

       直接通過ArcMap導出到本地,之後再導入到新庫

2.2 數據量較多的情況下

        對於Oracle數據庫,可以使用oracle的數據泵工具進行地理數據庫的遷移。

以oracle 11g遷移至12c爲例

1. sde用戶登錄,執行語句

①sqlplus sde/[email protected]/orcl

②create or replace directory sde_dump as ‘C:/beifen’

2.退出sqlplus,執行導出命令

expdp sde/[email protected]/singledat directory=sde_dump dumpfile=singledat_2019_0912.dmp logfile=singledat_2019_0912.log schemas=sde parallel=10

3.在12c機器上新建sde用戶

①show pdbs

②alter session set container=orclpdb;commit;

③創建sde表空間(dbf文件不能放在根目錄下)

④創建用戶

create user sde identified by sde default tablespace sde quota unlimited on sde

⑤授權sde dba權限

   grant dba to sde

⑥創建目錄

⑦導入(pdb,默認的是orclpdb,需要了解pdb和cdb的區別)

 

參考:https://desktop.arcgis.com/zh-cn/arcmap/latest/manage-data/geodatabases/what-is-a-geodatabase.htm 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章