ArcGIS SDE表匯入匯出

2021-08-26 21:43:06 字數 3752 閱讀 1660

1.1.1.1

sde命令匯出資料

指令sdeexport

-o create -t表名-f匯出檔案路徑-i sde:oracle10g -ssde伺服器ip-usde使用者名稱-psde使用者密碼@oracle服務名

指令執行環境:gis伺服器

如果sde安裝的版本為10g,則-i sde:oracle10g;

如果為11g,則為-i sde:oracle11g

例項如下:從172.168.10.250 機器中匯出sde資料庫中的t_gis_g100表資料到c:\\t_gis_g100.bak檔案(會自動建立)裡,命令如下:

sdeexport

-o create -tt_gis_g100-fc:\\t_gis_g100.bak-i sde:oracle10g -s172.168.10.250-usde-psde@sdeserver

1.1.1.2

批量匯出

使用如下指令碼建立bat檔案如:exportgis.bat

@echooff

echo此匯出程式使用oracle的直連方式

set/p sdeserverip=請輸入sde資料庫所在的機器ip:

set/p sdeuser=請輸入sde資料庫的使用者名稱:

set/p sdepwd=請輸入sde資料庫的密碼,格式:密碼@oracle服務名:

rem 下面為需要匯出的表名陣列,表名之間需要有空格

setsde_table=匯出的表名1 匯出的表名2 ………

echo程式將會匯出gis表為:%sde_table%

for%%ain(%sde_table%)do(

echo匯出%%a

sdeexport

-o create -t%%a-f%%a.bak -i sde:oracle10g -s%sdeserverip%-u%sdeuser%-p%sdepwd%

)echo匯出完成

pause<con>nul

雙擊exportgis.bat,根據要求輸入引數,則會在當前bat所在目錄下匯出表資料

注:1、

sde_table 需要自行設定匯出的表名陣列;

2、-i sde:oracle10g 需要根據sde版本設定;

1.1.1.3

sde命令匯入資料

根據匯出的資料檔案進行資料匯入。

指令:sdeimport

-o create -t匯入的表名-f

資料匯出檔案-i sde:oracle10g -ssde資料庫ip-usde使用者名稱-psde使用者密碼

指令執行環境:gis伺服器;

sdeimport命令匯入:會根據【匯入的表名】自行建立sde表,無需事先建立

如果sde安裝的版本為10g,則-i sde:oracle10g;

如果為11g,則為-i sde:oracle11g

例項如下:匯出c:\\t_gis_g100.bak檔案到172.168.10.250的sde庫中,命令如下:

sdeimport

-o create -tt_gis_g100-fc:\\t_gis_g100.bak-i sde:oracle10g -s172.168.10.250-usde-psde@sdeserver

1.1.1.4

批量匯入

使用如下指令碼建立bat檔案如:importgis.bat

@echooff

echo此匯入程式使用oracle的直連方式

set/p sdeserverip=請輸入sde資料庫所在的機器ip:

set/p sdeuser=請輸入sde資料庫的使用者名稱:

set/p sdepwd=請輸入sde資料庫的密碼,格式:密碼@oracle服務名:

rem 下面為需要匯入的表名陣列

setsde_table=匯出的表名1 匯出的表名2 ………

echo程式將會匯入的gis表為:%sde_table%

for%%ain(%sde_table%)do(

echo匯入%%a

sdeimport

-o create -t%%a-f %%.bak -i sde:oracle10g -s%sdeserverip%-u%sdeuser%-p%sdepwd%

)echo匯入完成

pause<con>nul

雙擊import.bat,根據要求輸入引數,則會在當前bat所在目錄下匯出表資料

注:1、

sde_table 需要自行設定匯出的表名陣列;

2、-i sde:oracle10g 需要根據sde版本設定;

mysql 匯入匯出表 mysql 匯出,匯入資料

windows下匯出mysql資料庫中的資料 1.mysql桌面管理工具,使用 select into outfile 語句匯出資料 1.1 進入管理工具後,選中要匯出的資料庫,右擊,選擇命令列頁面進入 1.2 輸入select from 表名into outfile 檔名 select from ...

表的匯入,匯出

if exists select from dbo.sysobjects where id object id n dbo librarycheck and objectproperty id,n isusertable 1 drop table librarycheck select into l...

Oracle 匯入匯出表

下面介紹的是匯入匯出的例項,向匯入匯出看例項基本上就可以完成,因為匯入匯出很簡單。資料匯出 1 將資料庫test完全匯出,使用者名稱system 密碼manager 匯出到d daochu.dmp中 exp system manager orcl 127.0.0.1 file d daochu.dm...