Skip to Main Content

Data Science & Machine Learning

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!

Is it possible to connect to ADW using ROracle (OS:Oracle Linux , Rver:4.2)

User_EIKIKMay 24 2022

클라이언트는 ADW의 데이터에 액세스하기를 원합니다.
현재로서는 ROracle을 사용하는 것이 분명한 대안인것으로 알고 있습니다.
그러나 R 4.2 버전에서 어떻게 ADW에 연결할 수 있습니까?
나는 아래 링크들을 모두 참고했고, 권고하는 방식에 따라 모두 시도를 해보았지만 ORA-28860 : Fatal ssl error() 로 SSL 이슈로 연동이 지연되고 있습니다.
제발 도와주세요.
(저는 ADW용 ORE의 빠른 릴리스를 희망하지만 그 동안 ROracle 작업을 할 수 있습니까? ) Code Snippet이 도움이 될 것입니다.
[Google Translation]
Clients want to access data in ADW. For now, I know that using ROracle is an obvious alternative.
But how can I connect to ADW in R 4.2 version?
I have referred to all the links below and tried all of them according to the recommended method, but the connection is delayed due to an SSL issue due to ORA-28860: Fatal ssl error().
Please help me.
(I'm hoping for a quick release of the ORE for ADW, but in the meantime can I get some ROracle working?) Code Snippet might help.

reference:
[1]
https://blogs.oracle.com/machinelearning/post/configuring-an-roracle-client-with-
autonomous-data-warehouse

[2]
https://www.rdocumentation.org/packages/ROracle/versions/1.3-1.1/topics/dbConnect-methods

[3]
ROracle installation with Oracle 12 libraries (0 Bytes)[4]
https://medium.com/analytics-vidhya/how-to-install-roracle-on-windows-10-144b0b923dac

Comments

Integration isn't rarely done and I've not looked at current mechanics. Can you utilize a custom authentication package in APEX, set the http header when you call PHP, and utilize a callback (to APEX or directly to the DB if the authentication state is stored in a table)  to verify the header token value is current?

jstem1177

Hello cj,

Yes we can utilise custom authentication. This is already the mechanic I'm using. As far as mechanics go, I thing any login system "RETURNS" the result to the calling function, whether ti be on login page of a function (aka silent logins).

I think the key is the APEX session id.

If you always pass the session id between PHP and APEX, then within PHP you could easily have a generic routines to get and set APEX session state values.

Really, you would be just writing wrappers around htmldb_util.get_session_state and htmldb_util.set_session_state.

If you wanted to store additional values from PHP, you could either use wwv_flow_preferences.get_preference and wwv_flow_preferences.set_preference, or create your own tables and api package.

Not sure how to go about the whole thing though. Need to give this some more thought.

JAn S.

It would be great to hear how you put it all together in the end.

904494

It is also importance that your apex is to be flag as sign that it is authenticated.

jstem1177

Will post an update if I ever get it to work.

1 - 5

Post Details

Added on May 24 2022
0 comments
154 views