ORDS.create_service?
I try to follow the examples in http://blog.cdivilly.com/2015/03/12/ords-3.0.0-rest-plsql-api/, but seem to be stuck in vocation
ords.create_service
My version of ADR is displayed in SQL * Developer like:
DESCRIBE ORDS PROCEDURE Argument Name Type IN/OUT Default ---------------------------- --------------------- -------------- ------ ------- DROP_REST_FOR_SCHEMA P_SCHEMA VARCHAR2 IN DEFAULT ENABLE_OBJECT P_ENABLED PL/SQL BOOLEAN IN DEFAULT ENABLE_OBJECT P_SCHEMA VARCHAR2 IN DEFAULT ENABLE_OBJECT P_OBJECT VARCHAR2 IN ENABLE_OBJECT P_OBJECT_TYPE VARCHAR2 IN ENABLE_OBJECT P_OBJECT_ALIAS VARCHAR2 IN DEFAULT ENABLE_OBJECT P_AUTO_REST_AUTH PL/SQL BOOLEAN IN DEFAULT ENABLE_SCHEMA P_ENABLED PL/SQL BOOLEAN IN DEFAULT ENABLE_SCHEMA P_SCHEMA VARCHAR2 IN DEFAULT ENABLE_SCHEMA P_URL_MAPPING_TYPE VARCHAR2 IN DEFAULT ENABLE_SCHEMA P_URL_MAPPING_PATTERN VARCHAR2 IN DEFAULT ENABLE_SCHEMA P_AUTO_REST_AUTH PL/SQL BOOLEAN IN DEFAULT INSTALLED_VERSION (FUNCTION) <return value> VARCHAR2 OUT SET_URL_MAPPING P_SCHEMA VARCHAR2 IN DEFAULT SET_URL_MAPPING P_URL_MAPPING_TYPE VARCHAR2 IN SET_URL_MAPPING P_URL_MAPPING_PATTERN VARCHAR2 IN
If I do the following, it shows the version...
select ords.installed_version() from dual; ORDS.INSTALLED_VERSION() -------------------------------------------------- 3.0.0.343.08.03
Can someone indicate a solution and/or my mistake...
Probably the best here, is this issue that responds so it will close automatically and without new is added to this (OLD unanswered) thread.
Tags: Database
Similar Questions
-
Problem with optional modifiers
I have the following Setup for a web service:
Start
ords.enable_schema (p_enabled = > true)
, p_schema = > 'XXXORDS '.
, p_url_mapping_type = > 'BASE_PATH '.
, p_url_mapping_pattern = > 'xxx '.
p_auto_rest_auth = > true);
() ords.create_service
p_module_name = > "cfs".
, p_base_path = > ' / cfs / '.
, p_pattern = > ' parties /: pn?'
, p_source = > ' select * from table (ords_parties_ws.get_parties (: current_user,: pn))'
);
commit;
end;
/
When I call this web service, use either of the following addresses, I get an error 404: not found. If I remove the "?" of the above definition then the second URL works fine. This isn't how I thought optional modifiers worked. What Miss me?
https://server:port / ADR/xxx/cfs/parts /.
https://server:port / ADR/xxx/cfs/parties/12345
Harri salvation,
I got my information on the optional parameters from this link: https://blog.cdivilly.com/2015/03/10/route-patterns/, and then allow myself to be misled by the link on models road indicated by this blog post: http://download.oracle.com/otn/java/ords/javadocs/3.0/plugin-api/route-patterns.html
Despite the very first example on the second link showing an example of road model of '
/objects/:object/:id?
', this is not allowed in ADR. The first blog was the statement "in fact it is illegal to have the query string delimiter (?). in a model way. ", which missed me originally. After have connected you an SR with Oracle they put me right. Annoyingly accepts the ords.create_service () call '?' characters without complaint, but the model is invalid, so the 404 errors.So basically, the solution is to have two models for the scenario described in the question above, for example:
ords.define_template (p_module_name-online 'cfs'
, p_pattern => ' parties /'
p_comments => ");
ords.define_template (p_module_name-online 'cfs'
, p_pattern => ' parties /: pn /'
p_comments => ");
It works OK, just double the number of models and event handlers, I expect to use, but however allowing me to implement different sources types for managers GET on each, for example as a "json/collection", the second as 'json/element', which allows different presentations.
Hope that helps,
Ryan.
-
ords.delete_service?
Hello
I play the ADR (my environment: Oracle 12 c/ADR 3.0 stand-alone mode), I used to create ws ords.create_serice successfully but when I tried to remove some of my tests, I couldn't find a delete_service in ADR package.
So is it possible to remove a service? I look around the package but couldn't find
Thank you
Mike
Remove remove module template, Manager and also all of the parameters associated with the Manager and maybe more; I find that documentation to the PL/SQL API is so pore. It's like a cascade delete.
-
Publish in the deployment of ORDS.war
Hi all the gurus
I'm following the steps of documents trying ADR installation Oracle REST Data Services installation that I can use on earpiece to point to several instance of the SUMMIT.
Apache2. 2 using the > > 3.1.2.2 (build GLASSFISH 5) > > APEX (4.2 and above all different location), oracle 11 g 2
Apache, GF, apex pictures are on the same server, (test approx.)
That's what I've done so far
1.
java-jar ords.war /u01/apps/ora/apex_lsnr/ords.2.0.7.91.15.01 configdir
April 30, 2014 09:55:24 oracle.dbtools.common.config.cmds.ConfigDir run
INFO: Value config.dir /u01/apps/ora/apex_lsnr/ords.2.0.7.91.15.01 at: /u01/apps/ora/apex_lsnr/ords.2.0.7.91.15.01/ords.war
2 deployment I.war
3.
java-jar ords.war of installation
April 30, 2014 09:55:32 oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration file: /u01/apps/ora/apex_lsnr/ords.2.0.7.91.15.01/ords
Enter the name of the database server [localhost]: 10.22.8.30
Enter the database listening port [1521]: 1521
Enter 1 to specify the database service name, or 2 to specify the SID database [1]: 2
Enter the database SID [xe]: apexsb
Enter the database user name [APEX_PUBLIC_USER]: APEX_PUBLIC_USER
Enter the password for database APEX_PUBLIC_USER:
Confirm the password:
Enter 1 to enter passwords for users of database Services RESTful (APEX_LISTENER, APEX_REST_PUBLIC_USER), 2 to use the same password that you used for the APEX_PUBLIC_USER, or 3 to skip this step [1]: 3
Update of the April 30, 2014 oracle.dbtools.common.config.file.ConfigurationFiles 09:56:02
INFO: update of configurations: by default, apex
4 deploy ords.war on GF
Here, I get an error which is
An error has occurred
Error occurred during deployment: Exception when loading the application: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: oracle.dbtools.common.service.ServiceLocatorException: error occurred during injection: private oracle.dbtools.rt.oauth.bdb.Approvals oracle.dbtools.rt.oauth.builtin.BuiltIns.approvals. Please see server.log for more details.
I'm not able to find anything in the newspapers.
Kindly help what I do
Thank you very much.
Turn out to be from permission...
Problem solved,
-
Hi all
I hope someone can help me.
I downloaded the REST of the Oracle Data Services (ords.2.0.6.42.09.36) and unpacked. I called for the first time configuration: java-jar ords.war
Unfortunately, I get an error:
java -jar ords.war Apr 10, 2014 2:45:22 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder INFO: Using configuration folder: /home/oracle/ords null java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at oracle.dbtools.jarcl.Entrypoint.main(Entrypoint.java:58) Caused by: java.lang.NullPointerException at oracle.dbtools.rt.config.setup.Setup.execute(Setup.java:71) at oracle.dbtools.common.cmds.DefaultCommand.execute(DefaultCommand.java:92) at oracle.dbtools.common.cmds.Commands.main(Commands.java:91) ... 5 more
I use Oracle JDK 1.8 on Ubuntu.
Oracle APEX 4.2.5 is installed on Oracle12 and Weblogic is installed (there is currently still), but the error follows immediately after having run the java command (so nothing made yet).
Kind regards
Michiel
Hey dB,.
He now works with Oracle JDK1.8, tip was to use "java-jar ords.war to install" instead of "java-jar ords.war" (as mentioned in the installation documentation).
-
Error code: 150715104905465.ord - prod-app1
Because, as a user of the company, I can't find the support and the system continues to disconnect me when I click on help, it is boring, but my major problem is the following:
When attempting to sign documents, I click 'Sign', and then the following text is displayed:
Sorry, we were not able to process your request.
Please sign in and try again.
If this error persists, contact support.
Error code: 150715104905465.ord - prod-app1
I have restarted the computer, cleared the cache, etc. Does anyone have any help to provide?
Hello Tonyf98939728,
You can now try disconnect and reconnect and see if the error persists, because the problem has been resolved now.
-Usman
-
Cannot send MegaSign - error Code: 150105133514950.ord - prod-app4
Whenever I try to send a MegaSign, I receive the following error message and I'm logged out of my account:
Sorry, we were not able to process your request.
Please sign in and try again.
If this error persists, contact support.
Error code: 150105133514950.ord - prod-app4
I formatted files exactly as I was instructed and still get the error. I had a support ticket for almost a month with no resolution. Everyone knows about this problem? If so, do you have a resolution?
Hello
Log a ticket using the same email as your AdobeID address?
If so, I can use it to examine your case and see what it holds.
-
150715110307652.Ord - prod-app3
I get this message when you try to send a document for signature. I never had problems before, so I'm at a bit of a loss.
Hi, AK,
You can now try disconnect and reconnect and see if the error persists, because the problem has been resolved now.
-Usman
-
Recently I downloaded pictures from an sd card. When the download is complete, all the photos were loaded randomly completely out of use. This is the first time, it didn't happen that way. Downloaded same map in iPhoto and all the pictures were in order. Need help. I work on a job which requires immediate attention and in the disorder of HDR images are impossible to deal with.
So to change the sort order in the import screen, there is a drop-down menu near the bottom that controls sort on the import screen
-
https without mixed content and EV cert site is shown as mixed and not as himself
My https:orderform site page contains only images of https and the site has an EV cert which is valid and up-to-date. With history cleared page and visit for the first time that Firefox reports this page contains mixed content and that the site does not identify iteself.
Pressing F5 to refresh the page address bar correctly shows green with no mixed content popup and that diversity side himself.
SSLCertificateChainFile was added, and it makes no difference.
Problem does not occur in other browsers (IE, Safari, Chrome).
A new FF profile has been attempted, but same problem occurs.Why is refreshing the page work?
Problem in all browsers firefox 3.5 to 14.01. I don't know about those < 3.5.
I have read and tried most of the suggestions in the forum and elsewhere, but can't find a solution.
I have not provided the url because it is my order page and it is important for me to see from real visitors.
First of all thank you for your comments jscher2000
I thought I had fixed it, but I had to clear the history and turn off the computer for a few more minutes for the error reappear.
Well it turns out that this was not the difference between the direct replacement and replace().
However this worked.If (xFf) setTimeout (function () {top.location.href = "https://ord.html"}, 300);
Thus allowing any javascript code following (pending) to finish as suggested.
I came to the same conclusion before reading your comments.WORKS NOW
However the redirection on the server is a more robust solution.
-
How to get the active directory and environment variables
Hello
1 - is there a global variable to get the real (project, where is ORD and DSQ files) directory?
2.-y there a way to get the directory of the user as the reading of the operating system environment variables?
Thanks in advance.
PD: I use Dasylab12
Yes, use ropes of system
For example, ${DATA_FOLDER}.
For a list, the simplest method is to right click and select global chains. The lower half of the dialog box lists the system strings, including the date, time, name of the worksheet, with or without a path, the DEFAULT folders for the spreadsheet, data, other, black box, etc.
-
Hello / Hello
I try to pass some trought DMA FIFO data, but I have a timing problem.
I hope to read on rt 0 as 1, 1 as 2nd etc...
Any idea?
I test data paser (0,1,2, 3.6, 7) since an FPGA to a RT but I can't read the data into an orde fixed kind, the then 1 0 en 1 etc...
Any idea what's wrong in my code?
BR/thank you
Found!
I read 100 element and write 8 by 8 element, 100 is not a multiple of 8.
read 80 work item
-
Ik kan geen meer red emails reply, clean ligt InternetExplorer bij het, ik said squeeze niet in orde, hoe kan ik said clean oplossen? MVG
Please select your language in the drop-down list above to post your question in the language of your choice. The forum in which you've posted is for English only. If you can't find your language above, support for additional international sites options are by following the link below:
Select uw taal dropdown list your question posten boven ITU in Taal van uw keuze. Het forum dat u would forgive is alleen voor Frans. Als u baking taal niet above * vinden, hotel ondersteuningsopties voor aanvullende international Geraardsbergen worden door het volgen van link below is found:
-
Met probleemoplosser en compatibiteitscontrole lukte niet om het right hieromtrent het programma scanjet you vinden. Gevolg is ook geen antwoord hieromtrent.
Kan er zijn in verband met installatie van nieuwe computer met Windows 7 premium besturing? Although bij qualities Scanjet alles in orde blijkt? IK beschik nu echter niet on CD instalatie van G4050. Hoe kan ik said terug in orde brengen.
Thanks for posting on the Microsoft Answers forums. Unfortunately, this particular forum is only for the English language support. You can navigate to the top of any page of the Microsoft Answers forum and select your language from the drop-down menu next to your user name for the appropriate forums post in.
Follow the link provided for the Nederlands Microsoft Answers forums.
-
TCP IP to receive and divide the data in real time
I'm using labview 11 and I have a computer send data via tcp ip. The data string is like this P 22 33 44 P 22 44 66 P 22 33 11 P and so on are numbers between P x y and z co - ord, I need labview to receive this and separate each x y and z as separate outputs
Two examples of analysis of some basic:
The upper part is by using a regular expression, which is a lot more forgving the lower part that uses parsing the string. The analysis of the chain will work only if there is a space between the elements. The regular expression will work will allow multiple spaces.
Maybe you are looking for
-
Skype blocked my number of phone bank?
Because I can use it before and just had a problem a few days ago, he said "no response", but he did not respond if I call my phone
-
Having problem of PCI and PCI communication serial port
Hello guys,. I have a problem with my serial port PCI and PCI communication, I use Windows 7 64 bit found no solution please help about this and I am very happy to thank B.Regards, Hussain SF
-
CMD Batch script - Echo % variable %.
I have a small problem with a batch file that I'm working on. Here's a simple example: I would get the string 'THERE' as my result. But the result I get is just 'HELLO. ' set hello=there set a=h set b=ello set result=%a%%b% echo %result% I tried some
-
Lightroom with 2 GPU (Nvidia + Intel) crashing
HelloI am under lightroom on a laptop powerful dell I7, windows 8.1The laptop came with 2 GPU.The problem is 1 day, all the nvidia driver settings are set to ALWAYS use nvidia and not intel hd.When taking photos with the camera directly in lightroom,
-
Hi allI was able to start / run SitesExplorer / ContentServerExplorer.exe (11.1.1.8.0) on Windows 7 64 biterror starting turning"This application has failed to start because its side by side configuration is incorrect. "" Please see the application e