Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Spatial query does not work with DB-link in a spatial view

603540Jan 15 2009
I have spatial data in different database schema. But I would only work with the main schema. So, I built views with the database link to the views of the secondary schema and filled the user_sdo_geom_metadata for new views.

A "normal" query on an attribute works fine, but not a spatial query:

SQL:
select count(*) from VIEW_NAME a
where sdo_relate(
a.geom,
MDSYS.sdo_geometry(
3003,
31466,
null,
mdsys.sdo_elem_info_array(1,1003,3),
mdsys.sdo_ordinate_array( x1, y1, 0, x2, y2, 0)), 'mask=ANYINTERACT') = 'TRUE';

Result:
Error starting at line 2 in command:
select count(*) from VIEW_NAME a
where sdo_relate(
a.geom,
MDSYS.sdo_geometry(
3003,
31466,
null,
mdsys.sdo_elem_info_array(1,1003,3),
mdsys.sdo_ordinate_array(+x1+, y1, 0, x2, y2, 0)), 'mask=ANYINTERACT') = 'TRUE'
Error report:
SQL Error: ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table
ORA-02063: preceding line from DB-LINK-NAME
01445. 00000 - "cannot select ROWID from, or sample, a join view without a key-preserved table"
*Cause:
*Action:


The spatial select statement works in the original schema.

Anyone an idea?

Thanks,
Cord

Comments

Jani Rautiainen-Oracle

I think the main issue you have is the SFTP connection. AFAIK only HTTPS connections are allowed. The documentation states:

Remote invocations with a transport protocol other than HTTPS (including plain text HTTP).

Not applicable.

does the 3rd party provide a web service to obtain the data ?

--

Jani Rautiainen

Fusion Applications Developer Relations

https://blogs.oracle.com/fadevrel/

Vasanth Gokul

Hi ,

3rd party doesn't have any web-service in place.

I heard ICS supports most of the 3rd party integration. But looks like they are not yet released. Hence trying to find some feasible options through JCS.

Since JCS (SAAS Extension) supports java based applications, can we use some 3rd party libraries in JCS to connect with SFTP through Java application ?

Appreciate your help.

Thanks,

Vasanth

Jani Rautiainen-Oracle

I am not sure; the documentation is fairly clear that only HTTPS is allowed. That said the JCS console does have some SFTP configurations listed so maybe there is some functionality, unfortunately I have no knowledge of this and have to leave it up to guys from JCS to confirm. AFAIK the SFTP details on the console are used for JDeveloper DB Cart functionality to move DM & data between systems..

--

Jani Rautiainen

Fusion Applications Developer Relations

https://blogs.oracle.com/fadevrel/

Vasanth Gokul

Hi Jani ,

Thanks for your reply.

Instead of JCS SAAS, can i use plain JCS to connect the third party system through SFTP. If so , is there any documentation or examples available on the available approached for using SFTP in JCS ? 

And also need your help to know , if not here, which is the right forum to ask our technical queries on JCS? 

Appreciate your help!

Thanks,

Vasanth

Unfortunately I am also only developer using JCS-SaaS so I cannot give definite answers on "plain JCS" as I do not have an instance to test with so I am limited to the documentation. This is the right forum to ask questions on JCS, I think there was a public holiday in US yesterday so hopefully the JCS guys will give definitive answers soon. I did forward the thread to the JCS product manager.

--

Jani Rautiainen

Fusion Applications Developer Relations

https://blogs.oracle.com/fadevrel/

Vasanth Gokul

Any updates or inputs on the JCS part. Appreciate your help.

Thanks,

Vasanth

1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 12 2009
Added on Jan 15 2009
0 comments
286 views