Solve the problem that SDE10.1 cannot connect

 environment

         Database / OS: Oracle 10.0.2.4/AIX6.1

         ArcGIS/ OS:10.1/Windows 2008 R2

question

         The user database server is powered off, causing the entire database to hang. The database administrator backed up the data by means of full database backup, re-created the database instance, and imported the original full database of data into the new instance at the same time. In this process, the SDE space library also adopts the method of full library backup and recovery.

         After the database is restored, when connecting to SDE in ArcMap , the problem of "Connection failed, operation failed" is displayed.

The machine where the original ArcMap is located has already installed Oracle 32 -bit client software. Before the database hangs up, the entire GIS environment is running normally. At the same time, the user in the SDE library uses the ST_Geometry function, and an error is also reported when such a function is executed.

solve

         The earliest solutions are: 1. Back up data; 2. Use the [Create Geodatabase] tool to reconstruct the SDE spatial database. However, during the test, it was found that other accounts using the database could not connect to the database in ArcMap . Since 10.1 , the direct connection mode can be directly connected to the database. If this step cannot be performed, then the second step of this method cannot be performed.

         Later, change the idea and check the execution of the ST_Geometry function to see the situation. During execution, an error is reported. Since it is re-importing the whole library, I suspect that ST_Geometry has not been compiled and recompiled again (compiled in PLSQL ). During the editing process, it prompts [ identifier 'SYS.DBMS_LOCK' must be declared ], [ identifier 'SYS .DBMS_CRYPTO' must be declared ] and [ identifier 'SYS.DBMS_PIPE' must be declared ] error, the symptom should be that SDE does not have this permission. Execute the command to grant SDE permissions: 

         GRANT EXECUTE ON SYS.DBMS_LOCK TO SDE;

       GRANT EXECUTE ON SYS.DBMS_LOCK TO SDE;

GRANT EXECUTE ON SYS.DBMS_LOCK TO SDE;

       After recompiling, the ST_Geometry function can be executed normally and connected to the SDE spatial library in ARCMap . After testing, the entire spatial library works normally.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326666135&siteId=291194637