ArcGIS oracle空間資料庫的備份,匯入
阿新 • • 發佈:2018-12-07
前提:保證ArcSDE能用
第一步,檢查資料庫字符集是否一致
SQL>select userenv(‘language’) from dual;
第二步,匯出資料庫1 SDE表空間
Exp sde/[email protected] file=D:\exp\exp.dmp
第三步,匯入原sde資料內容
首先停止ArcSDE伺服器中的sde服務,刪除資料庫2中的sde使用者及表空間。
drop tablespace sde including contents and datafiles;
drop user sde cascade;
使用sql語句建立新的sde使用者及空的表空間,並授權SDE使用者相同的許可權(cmd sysdba連線)
create tablespace sde
logging
datafile 'D:\app\Administrator\product\11.2.0\client_2\sde.dbf'
size 3072m
autoextend on
next 1050m maxsize 20480m
extent management local;
create user sde identified by sde default tablespace sde temporary tablespace temp;
grant CREATE SESSION to sde;
grant CREATE TABLE to sde;
grant CREATE PROCEDURE to sde;
grant CREATE SEQUENCE to sde;
grant CREATE TRIGGER to sde;
grant CREATE TYPE to sde;
grant CREATE LIBRARY to sde;
grant CREATE PUBLIC SYNONYM to sde;
grant CREATE OPERATOR to sde;
grant CREATE INDEXTYPE to sde;
grant DROP PUBLIC SYNONYM to sde;
grant CREATE VIEW to sde;
grant UNLIMITED TABLESPACE to sde;
grant ADMINISTER DATABASE TRIGGER to sde;
grant connect,resource,dba to sde;
grant EXECUTE ON dbms_pipe to sde;
grant EXECUTE ON dbms_lock to sde;
第四步,重新啟動Arcsde伺服器上的服務,成功
注:(cmd sysdba連線資料庫)
1.sqlplus /nolog
2.connect sys/ [email protected]/myorcl as sysdba(conn /as sysdba;)
SQLPLUS SYS/[email protected] AS SYSDBA