I am trying to get the WKT for an ST_GEOMETRY column, which appears to have an SRID of 300002

ORA-06520: PL/SQL: Error loading external library
ORA-06522: Unable to load DLL
ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 67
ORA-06512: at "SDE.ST_GEOMETRY_OPERATORS", line 118
06520. 00000 - "PL/SQL: Error loading external library"
*Cause: An error was detected by PL/SQL trying to load the external
library dynamically.
*Action: Check the stacked error (if any) for more details.
But I get the error shown above when I run the st_asText function
SELECT ROUTE_NAME, shape esri_shape_col,
sde.st_srid(shape) sridof_esrishape_col,
sde.st_astext(shape)
FROM LRSN_StateLog where objectid=188;
I welcome advice