Thanks for the suggestion.
I created the view using SQL by selecting objectid, shape, and some other attribute columns from feature classes.
CREATE VIEW USER.TESTVIEW
(
OBJECTID,
COL_A,
COL_B,
SHAPE
)
AS
SELECT A.OBJECTID, A.COL_A, B.COL_B, A.SHAPE
FROM USER.TABLE_A A, USER.TABLE_B B
WHERE sde.ST_EnvIntersects (A.shape, B.shape) = 1;
From the first query in your posting, I didn't get any spatial reference ID returned...
One thing strange to me is that I can have this view registerd in the exact same process when the view is created in SDE schema.
I also tried to run 'Register as Geodatabase' tool in ArcCatalog and traced it in database-side then I found it stops at a similar statement:
SELECT layer_id, ly.description, gsize1, gsize2, gsize3, minx, miny, maxx, maxy, minz, minm, maxz, maxm, eflags, layer_mask, database_name, table_name, owner, spatial_column, cdate, layer_config, optimal_array_size, stats_date, minimum_id, base_layer_id, sr.falsex, sr.falsey, sr.xyunits, sr.falsez,sr.zunits, sr.falsem, sr.munits, sr.srtext, ly.srid,sr.object_flags,sr.xycluster_tol, sr.zcluster_tol, sr.mcluster_tol,sr2.falsex, sr2.falsey, sr2.xyunits, sr2.falsez,sr2.zunits, sr2.falsem, sr2.munits, ly.secondary_srid,sr2.object_flags FROM SDE.LAYERS ly LEFT OUTER JOIN SDE.spatial_references sr2 ON ly.secondary_srid = sr2.srid, SDE.spatial_references sr WHERE ly.srid = sr.srid AND ly.table_name = 'table_name' AND ly.owner = 'owner_name'
This didn't get any rows as well. Am I missing any neccessary steps to register a view that created using SQL?
+ It resulted the same error with '-C option' and there were some SRID values matched with AUTH_SRID by running the query.
Any further help would be appreciated.