Тёмный

Oracle REST Data Services Development with Oracle SQL Developer 

Jeff Smith
Подписаться 9 тыс.
Просмотров 41 тыс.
50% 1

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 49   
@Anonymousvlogger1
@Anonymousvlogger1 3 года назад
Hi Jeff, Thanks for the video. I am trying to implement one after insert trigger on a table. Whenever there is a new insert action happens on that table, trigger should get enabled and it should hit one API without expecting any response. Can you please guide me how to implement this... Thanks in advance🙏
@JeffSmiththat
@JeffSmiththat 3 года назад
You want a REST APi to insert a record for a table?
@Anonymousvlogger1
@Anonymousvlogger1 3 года назад
@@JeffSmiththat No, I just want to hit the API URL through table specific trigger. Basically that trigger will be of type "after insert". So whenever user inserts data into that particular table, trigger should get enabled and should hit that api URL. Create trigger Mytrigger After Insert On Test_table For each row Declare Api_url varchar2(100) := 'testing.test.com:5550/checkrow'; Body_url varchar2(100) := 'row inserted'; Begin // Need to know what to write here to hit above mentioned URL with that body and without expecting any response End;
@JeffSmiththat
@JeffSmiththat 3 года назад
@@Anonymousvlogger1 what does your URL do? The db can make api calls with the HTP.P() interface or you can use a handy package from APEX if that's installed, APEX_WEB_SERVICE oracle-base.com/articles/misc/apex_web_service-consuming-soap-and-rest-web-services
@Anonymousvlogger1
@Anonymousvlogger1 3 года назад
@@JeffSmiththat that API URL will call one service written Python to process that inserted row. And thank you very much for quick replies 🙏🙏😊
@deepakdakhore
@deepakdakhore 5 лет назад
Hi Jeff, Thanks for your video, Can you please explain how to use POST method API?
@JeffSmiththat
@JeffSmiththat 4 года назад
That's a broad question...one example would be calling a stored procedure which makes a change to your data. It could return a status and message or perhaps a link to an added resource. Example here www.thatjeffsmith.com/archive/2018/11/building-a-web-service-for-uploading-and-downloading-files-the-video/
@anusuyaperumal2155
@anusuyaperumal2155 4 года назад
hi Jeff, thanks you for the video, can monitor the ORDS?
@JeffSmiththat
@JeffSmiththat 4 года назад
Tomcat and WebLogic have this out of the box. If you're running ORDS standalone you would need a URL you could hit for a heartbeat...and you'd check the ords process itself obviously. You can also enable access logs for the Jetty webserver
@JeffSmiththat
@JeffSmiththat 4 года назад
Here's how to enable the access logging krisrice.io/2017-01-12-how-to-add-ncsa-style-access-log-to/
@anusuyaperumal2155
@anusuyaperumal2155 4 года назад
​@@JeffSmiththat hi Jeff , thank you for your quick reply am using tomcat not a standalone I have to do monitoring we can use any other technologies you have any idea please suggest me
@JeffSmiththat
@JeffSmiththat 4 года назад
@@anusuyaperumal2155 there's a wide range of free and $ monitoring solutions for Tomcat, plus tomcat docs shows how to do this via tomcat.apache.org/tomcat-7.0-doc/monitoring.html
@stepping2211
@stepping2211 4 года назад
@@JeffSmiththat hi smith i have one doubt how to use like operater ( %parameter%) in GET P_source
@booyaadotorg
@booyaadotorg 7 лет назад
Hey Jeff, I tried to create the hello world (message) module (at 9:59) in an existing schema (non-ORDS related) and I got the following error when the SQL code to run packages ORDS.DEFINE_MODULE, ORDS.SET_MODULE_ORIGINS_ALLOWED and ORDS.DEFINE_TEMPLATE: Failed to process SQL command - ORA-01403: no data found ORA-06512: at "ORDS_METADATA.ORDS_INTERNAL", line 617 ORA-06512: at "ORDS_METADATA.ORDS_SECURITY", line 63 ORA-06512: at "ORDS_METADATA.ORDS", line 722 ORA-06512: at line 2 I'm running ORDS in stand alone mode (install looks good). Furthermore I can see ORDS_METADATA and ORDS_PUBLIC_USER schemas. Did I need to grant ORDS related roles to my schema?
@booyaadotorg
@booyaadotorg 7 лет назад
Fixed it! Someone forgot to enable REST Data Services on the connection before trying to create modules :o)
@JeffSmiththat
@JeffSmiththat 7 лет назад
Oh good, please let me know if you have any questions or feedback going forward!
@Superdooperhero
@Superdooperhero 4 года назад
The obvious question would be how do you prevent SQL injection when accepting REST parameters into your SQL
@JeffSmiththat
@JeffSmiththat 4 года назад
very defensive code on our side for starters, and parameters are used to influence queries via :bind variables which helps too
@poojaagarwal5154
@poojaagarwal5154 6 лет назад
Hi Jeff, Can you please share similar example where REST service is calling a package.procedure with IN and OUT parameters and we can pass IN parameters to get the result.?
@JeffSmiththat
@JeffSmiththat 6 лет назад
Yes...on Monday.
@JeffSmiththat
@JeffSmiththat 6 лет назад
here's one way, using the AUTO method www.thatjeffsmith.com/archive/2017/06/more-on-ords-3-0-10-and-auto-plsql-packages/
@JeffSmiththat
@JeffSmiththat 6 лет назад
I answered your question here, complete with some sample code www.thatjeffsmith.com/archive/2018/08/executing-pl-sql-package-procedure-via-rest/
@juliolois7794
@juliolois7794 6 лет назад
Hi Jeff, are there any tutorials to install ORDS and APEX? I am specially interested in deploying ORDS on a standalone server using Apache Tomcat and have that talk to an APEX install on my 12c database where I am running EBS 12.2.4. Thanks! Julio
@JeffSmiththat
@JeffSmiththat 6 лет назад
You can do a simple install, Java -jar ords.war and follow the prompts. Then you can drop that war file right into your Tomcat server. You'll need SYSDBA access if you want to setup ORDS rest on your DB.
@JeffSmiththat
@JeffSmiththat 6 лет назад
Oh and of course... oracle-base.com/articles/misc/oracle-rest-data-services-ords-installation-on-tomcat
@juliolois7794
@juliolois7794 6 лет назад
Thanks! I'll start playing with it but I may be back haha, appreciate the knowledge sharing!
@als2183
@als2183 5 лет назад
Hi Jeff, does ORDS supports Mutual TLS authentication?
@JeffSmiththat
@JeffSmiththat 5 лет назад
As I understand it, you let your web server/Tomcat handle that, and ORDS just settles into that ecosystem stackoverflow.com/questions/27362588/mutual-authentication-with-tomcat-7
@prachideshmukh9527
@prachideshmukh9527 7 лет назад
Hi Jeff, I am trying to configure REST service for table present in sys schema. Basically want to configure for oracle data audit table sys.aud$ table. Can we do it for sys schema table? Thanks, Prachi
@JeffSmiththat
@JeffSmiththat 7 лет назад
The AUTO feature isn't designed for SYS. What you want to do is build a RESTful Service, so write a GET Handler in another schema with SELECT privs on SYS.AUD$ to get access to your auditing data for example.
@prachideshmukh9527
@prachideshmukh9527 7 лет назад
Thanks Jeff
@anandghatnatti3363
@anandghatnatti3363 5 лет назад
Hi Jeff, can you please give me example an on Calling ssl Web Services from Oracle PLSQL
@JeffSmiththat
@JeffSmiththat 4 года назад
Sorry, i just noticed this question www.thatjeffsmith.com/archive/2020/05/calling-ords-from-inside-the-database/
@cristianoseixas2417
@cristianoseixas2417 3 года назад
Muito obrigado. Muito Bem Explicado.
@JeffSmiththat
@JeffSmiththat 3 года назад
Você é muito bem-vindo! Observe que a interface da web em ORDS agora é ainda melhor do que a que você tem em SQL Developer (desktop)
Далее
Oracle SQL Developer: You're Doing it Wrong
17:12
Просмотров 59 тыс.
Oracle REST Data Services 101
39:52
Просмотров 13 тыс.
Silent Hill 2 - Мульт Обзор
07:26
Просмотров 328 тыс.
What is a REST API?
9:12
Просмотров 1,5 млн
REST and Application Express
1:08:23
Просмотров 51 тыс.
Oracle SQL Developer: Product Demonstration
1:04:26
Просмотров 223 тыс.
Slow SQL Query? Get the Plan in Oracle SQL Developer!
15:38
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Solving one of PostgreSQL's biggest weaknesses.
17:12
Просмотров 202 тыс.
Silent Hill 2 - Мульт Обзор
07:26
Просмотров 328 тыс.