数据库端迁移sde导入后,在sde端启动服务报错:
-------------------------------------------------------
 ArcSDE 10.0  for Oracle11g Build 685 Fri May 14 12:05:43  2010
 -------------------------------------------------------
ST_Geometry Schema Owner: (SDE) Type Release: 1007
 Instance initialized for ((sde)) . . .
Connected to instance . . .
 Error checking the existence of system tables. Run
 the Upgrade Geodatabase tool to install/upgrade system tables (-64).
 Refer ArcSDE installation guide for instructions.
sde端尝试重建sde软件,sde服务,oracle客户端指定等等,均一样报错。
最终处理:重导库后解决。报错以为需要更新数据库?不是的。应该是导库缺少对象或权限了。
询问导库人员的导库过程:
并行导出,导入到存储过程后有报错失败:

而后排除存储过程导入:
impdp system/xxx dumpfile=pump:sde_20240522.dmp full=y logfile=impdp.log exclude=procedure
在包含存储过程导入不报错:
impdp system/xxx dumpfile=pump:sde_20240522.dmp full=y logfile=impdp.log include=procedure
导入后的操作:
1.赋权sde
 grant CREATE SESSION to sde;
 grant CREATE VIEW to sde;
 grant CREATE ANY INDEX to sde;
 grant CREATE TABLE to sde;
 grant CREATE TRIGGER to sde;
 grant CREATE PROCEDURE to sde;
 grant CREATE SEQUENCE to sde;
 grant CREATE INDEXTYPE to sde;
 grant CREATE LIBRARY to sde;
 grant CREATE PUBLIC SYNONYM to sde;
 grant CREATE OPERATOR to sde;
 grant DROP PUBLIC SYNONYM to sde;
 grant ADMINISTER DATABASE TRIGGER to sde;
 grant execute on DBMS_LOCK to public;
 grant execute on DBMS_PIPE to public;
 grant dba to sde;
 alter package sde.pinfo_util compile;
 alter package sde.lock_util compile;
 alter package sde.version_user_ddl compile;
 2.创建library
 create or replace library ST_SHAPELIB as 'E:\app\teamsun\product\11.2.0\st_shapelib.dll';
 /
 select * from user_libraries;
 select sde.ST_AsText(SDE.ST_Geometry('POINT (10 10)', 0)) from dual;--测试确保正常返回值
 3.编译失效对象
 sqlplus / as sysdba
 @?/rdbms/admin/utlrp.sql
 SQL> set line 132
 SQL> col object_name for a30
 SQL> col OWNER for a10
 SQL> select owner,object_name,object_type from dba_objects where status='INVALID';
OWNER                          OBJECT_NAME          OBJECT_TYPE
 ------------------------------ -------------------- -------------------
 SDE                            SP_TARSTATION_AREA   PROCEDURE
 SDE                            SP_GJ2WG             PROCEDURE
 SDE                            SP_TGX_SYNCMULLINETO PROCEDURE
                                OLT
 4.启sde成功
其它参考:
操作方法:执行 Oracle 企业级地理数据库的方案恢复