This allows a procedure or a pl sql func as a rest service

Hello

I have a simple sql pl under hr schema named full_name function which takes two parameters firstName and lastName, fullname returns

function full_name (varchar2, varchar2 lname fname)

return varchar2

is

l_fullname varchar2 (30);

Start

return fname | » '|| lname;

end full_name;

The question is how this function is enable? I find no doc on this subject. When I click right function on sqldeveloper I don't see "Enable rest" option.

In sql developer, the development menu remains, how code block must be implemented and how to set the settings to make my function remains enabled and how can I pass these params to rest service?

This same issue applies to enablement rest of the proc.

Hi User595758-OC,

User595758-OC says:

Kiran thank you for your interest. I followed the first blog which addresses my needs specifically.

In the case of a parameter ' /: id "notation is used in the uri path, but in my case I need to put two params fname and lname in the service definition.

Is it possible to create a path uri as "ADR/HR/fullname? fname =: first name & lname =: lname. If so, how the definition should be?

According to the URI scheme "departments /: id" given in the example above, blog post

for your RESTful Web Service with two parameters, the URI scheme can be "fullname /: fname /: lname.

Kind regards

Kiran

Tags: Database

Similar Questions

  • Procedure call stored PL/SQL Oracle and an example of a query with parameter

    Hi gurus,

    I was wondering if anyone has an example/tutorial of

    (1) how to call a stored procedure in Oracle PL/SQL to Oracle BEA Fuego BPM (give credits to all :))
    -If you can go into details step by step that will be great. Especially on the variable mapping and in THE arguments.

    (2) how poiing on a simple table of DB. A step by step guide / tutorial.



    Arvind jegou
    Architect SOA/BPM to business
    CISCO, San Jose, CA
    [email protected]

    1 create the external resource, introspect in the catalog (tables, procedures,...) to your schema should appear, and if it is automatically stored procedure a method of appeal should appear in your catalog, then do slip and fall the calling code PBL method you.
    2 - with an automatic activity overall, you can establish how many times this activity is executed, then inside the activity, you put the code to run the poolling.
    It may be useful

  • procedure of function or sql SQL

    I want to know if it is better to use the function or procedure for my problem.

    First I have to read sql-> SELECT name, date OF ZKET_ZAPOSLENCI to get all the data

    When I get all the data that I need to use the name and surname and change with $name and $surname in a text.

    A text is:

    Hello

    Worker $name $surname will be...


    Output should be:

    Hello

    Worker Marco Kostrevc will be...


    and it must be inserted in the database.

    How can I do this?

    concerning

    Published by: senza on 15.9.2008 09:17

    Let me give you an example of how you can do it using DBMS_SQL, where you have a text string with replacement variables identified by $ , and provide you with the SQL that selects the columns that correspond to these variables...

    SQL> ed
    Wrote file afiedt.buf
    
      1  CREATE OR REPLACE PROCEDURE replace_text(p_txt IN VARCHAR2, p_sql IN VARCHAR2) IS
      2    v_finaltxt  VARCHAR2(4000);
      3    v_val       VARCHAR2(2000);
      4    v_ret       NUMBER;
      5    c           NUMBER;
      6    d           NUMBER;
      7    col_cnt     INTEGER;
      8    f           BOOLEAN;
      9    rec_tab     DBMS_SQL.DESC_TAB;
     10    col_num     NUMBER;
     11  BEGIN
     12    c := DBMS_SQL.OPEN_CURSOR;
     13    DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
     14    d := DBMS_SQL.EXECUTE(c);
     15    DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
     16    FOR j in 1..col_cnt
     17    LOOP
     18      DBMS_SQL.DEFINE_COLUMN(c,j,v_val,2000);
     19    END LOOP;
     20    LOOP
     21      v_ret := DBMS_SQL.FETCH_ROWS(c);
     22      EXIT WHEN v_ret = 0;
     23      v_finaltxt := p_txt;
     24      FOR j in 1..col_cnt
     25      LOOP
     26        DBMS_SQL.COLUMN_VALUE(c,j,v_val);
     27        v_finaltxt := replace(v_finaltxt,'$'||lower(rec_tab(j).col_name),v_val);
     28      END LOOP;
     29      DBMS_OUTPUT.PUT_LINE(v_finaltxt);
     30    END LOOP;
     31    DBMS_SQL.CLOSE_CURSOR(c);
     32* END;
    SQL> /
    
    Procedure created.
    
    SQL> exec replace_text('Person $ename of the $dname department has a salary of $sal ...','select ename, dname, sal from emp join dept on (emp.deptno = dept.deptno)');
    Person SMITH of the RESEARCH department has a salary of 800 ...
    Person ALLEN of the SALES department has a salary of 1600 ...
    Person WARD of the SALES department has a salary of 1250 ...
    Person JONES of the RESEARCH department has a salary of 2975 ...
    Person MARTIN of the SALES department has a salary of 1250 ...
    Person BLAKE of the SALES department has a salary of 2850 ...
    Person CLARK of the ACCOUNTING department has a salary of 2450 ...
    Person SCOTT of the RESEARCH department has a salary of 3000 ...
    Person KING of the ACCOUNTING department has a salary of 5000 ...
    Person TURNER of the SALES department has a salary of 1500 ...
    Person ADAMS of the RESEARCH department has a salary of 1100 ...
    Person JAMES of the SALES department has a salary of 950 ...
    Person FORD of the RESEARCH department has a salary of 3000 ...
    Person MILLER of the ACCOUNTING department has a salary of 1300 ...
    Person WILLIS of the RESEARCH department has a salary of 900 ...
    
    PL/SQL procedure successfully completed.
    
    SQL>
    

    The only drawback here is that variable names must match the column names selected (I forced to specify that they must be lowercase too). So your text can have different replacement variables, but the SQL code must match those... for example

    SQL> exec replace_text('Person $per_name of the $dept_name department has a salary of $sal_val ...','select ename as per_name, dname as dept_name, sal as sal_val from emp join dept on (emp.deptno = dept.deptno)');
    Person SMITH of the RESEARCH department has a salary of 800 ...
    Person ALLEN of the SALES department has a salary of 1600 ...
    Person WARD of the SALES department has a salary of 1250 ...
    Person JONES of the RESEARCH department has a salary of 2975 ...
    Person MARTIN of the SALES department has a salary of 1250 ...
    Person BLAKE of the SALES department has a salary of 2850 ...
    Person CLARK of the ACCOUNTING department has a salary of 2450 ...
    Person SCOTT of the RESEARCH department has a salary of 3000 ...
    Person KING of the ACCOUNTING department has a salary of 5000 ...
    Person TURNER of the SALES department has a salary of 1500 ...
    Person ADAMS of the RESEARCH department has a salary of 1100 ...
    Person JAMES of the SALES department has a salary of 950 ...
    Person FORD of the RESEARCH department has a salary of 3000 ...
    Person MILLER of the ACCOUNTING department has a salary of 1300 ...
    Person WILLIS of the RESEARCH department has a salary of 900 ...
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • How to execute a stored procedure on Sybase with SQL Developer

    We have accessed Sybase 15 with SQL developer.

    We can see the data in the table, if we do not, run the stored procedure (for instance sp_who) developed on Sybase.

    Could you tell me how we execute the stored procedure on Sybase with SQL Developer Sybase?

    Thank you

    Shige

    We will not intended to be a Sybase ASE customer.

    But

    A SQL Developer... @dermotoneill: Workheet advice

  • Update, Qosmio F - SQL Server 2005 Express Edition Service Pack 3 fails

    This update continues to be marked by the automatic update from microsoft, but fails to update no matter how many times I try to treat it... Why is it so?

    What is the aim of SQL servers and do I need? Deleting it will solve my problem?

    Hello

    Check out this page of MS:
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=3181842a-4090-4431-ACDD-9a1c832e65a6&displaylang=en

    You can download here the full Microsoft SQL Server 2005 Express Edition Service Pack 3.
    But please check the Instructions on the page of Ms.
    You will need Microsoft .NET Framework 2.0 or later and you need to follow some other measures that are mentioned on the Web site.

    See you soon

  • Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332) is not installed

    I tried several times to install this update.
    When I manually downloaded and tried to install told me that it's incompatible with my version of windows I'm running widows 7 Home premium
    32 bit... any help woul appreciated

    Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332)

    Installation status: failed

    Error details: Code 42 b

    Try posting in the SQL Server Setup & Upgrade forum for assistance:http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/threads/>

  • Cannot download Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332) ___Download size: 55.8 MB___error type 41D___Update code: Important___

    I tried to download Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332)

    Download size: 55.8 MB

    You may have to restart your computer for this update is taken into account.

    Update type: Important

    This service pack upgrades all components and instances of Microsoft SQL Server 2005 Express Edition Service Pack 4 (SP4). If you need additional installation options, you need to download this service pack on the Microsoft Download Center. For more information, see 2463332 Microsoft Knowledge Base article.

    More information:
    http://support.Microsoft.com/kb/2463332

    Help and Support:
    http://support.Microsoft.com

    Try posting in the SQL Server Setup & Upgrade forum for appropriate assistance:http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/threads

  • Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332)

    Update of Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332) is unable to install the 0x2B33 error code. I tried the manual download but fails this alos

    Hello SR19.

    Thanks for your post.  Please post your question in the SQL Server on TechNet forums.  They treat all problems related to SQL Server.

    See you soon

  • Notice of default on Microsoft update for product SQL Server 2005 Express Edition Service Pack 3 (KB955706) and the 0x2B2F error Code

    I get a failure notice when trying to make an update of Microsoft for the product SQL Server 2005 Express Edition Service Pack 3 (KB955706) and 0x2B2F error Code.  What should I do?

    Deana E Hi,.
     
    Welcome to the Microsoft Windows answers Forum community!
     
    You receive the 0x2b2f error code when you use the web sites, Windows Update or Microsoft Update to install SQL Server 2005 Service Pack 3 on a computer with MSXML6 Service Pack 2 is already installed.
     
    Follow this link for the reasons: http://support.microsoft.com/kb/970674
     
    Follow the steps in the link below for "SQL Server 2005 Setup fails when MSXML Core Services 6.0 Service Pack 2 has been installed"
    http://support.Microsoft.com/kb/968749

    http://social.msdn.Microsoft.com/forums/en-us/category/SQLServer/
     
    I hope this helps!
    Thank you, and in what concerns:
    Aziz Nadeem - Microsoft technical support.
    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.

  • Get messages to install Microsoft SQL Server 2005 Express Edition Service Pack 4

    When I start, as soon as the desktop appears a contextual ScreenTip is displayed in the lower right corner, to install the update

    Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332)

    I thought that there is no sp4 for XP. Then I went directly to Microsoft to the homepage set up and maintenance > high priority updates > Microsoft SQL Server 2005

    http://update.Microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us

    Microsoft at home set up and maintenance is:

    http://www.Microsoft.com/athome/Setup/default.aspx#fBid=wqr8U8ly39V

    It displays the message:

    "Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332).

    Download size: 0 KB 0 minutes (downloaded; ready to install)

    This service pack upgrades all components and instances of Microsoft SQL Server 2005 Express Edition Service Pack 4 (SP4). If you need additional installation options, you need to download this service pack on the Microsoft Download Center. For more information, see 2463332 Microsoft Knowledge Base article.  Details... »

    TO

    http://update.Microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us > http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (review update history) I get the message:

    "Error code: 0xD59.

    Try to install the update again, or seek help from one of the following resources. "

    I can only suspect that there is some malware that redirects me to another site in one of these points, I do not read this right, or it is malware on my system or Microsoft which redirects me to another Web site.

    Furthermore, I continue to set the auto update option 'Notify Me but do not automatically download or install it' in my computer and the Microsoft site which gives you the option Express or Custom, but it keeps coming back to "Automatic" on my machine.

    I'm under ' Microsoft Windows XP Professional Version 2002 Service Pack 3 "(which is directly from the control panel), which is installed with the HP/Compaq office tower when I bought it. It is installed with Microsoft Security Suite, and I ran a full scan with it and with the 'Fix - it' scan on the Microsoft site. I want to disable the automatic updates until this is resolved, but, as I said, it always seems to come back to automatic. This is on a HP/Compaq dx2430 microtour 32bits.

    Check this box:

    http://support.Microsoft.com/kb/906602

  • Update for Windows XP (KB2718704) and Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332) will be without installation

    ORIGINAL TITLE: updates XP

    Update for Windows XP (KB2718704) and Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332) will BE WITHOUT INSTALLATION

    Please answer each of the following [admittedly tedious] diagnostic questions in a numbered list type in your very next answer (no need to quote this post):

    1. What is the full name of your application or the installed antivirus security suite and when (date about) is your subscription current expires?  What (other than Defender) anti-spyware applications are installed?  What third-party firewall (if applicable)?

    2 a Norton or McAfee application ALREADY installed on the computer?

    3. do you have a free trial Norton or a test of free McAfee [CHOOSE ONE ANSWER] come preinstalled on the computer when you bought it? (No matter if you have never used or activated).

    4. open Add/Remove Programs and make sure that Show updates at the top is checked (and leave it checked); then select the name in the box sort by on the right. Now do scroll down & tell me if ALL the other updates following up-to-date are listed?

    (a) KB2676562,262, KB2686509 & KB2695962KB2659;

    (b) KB2675157, KB2653956 & KB2621440;

    (c) KB2661637, KB2598479, KB2631813 & KB2585542;

    (d) KB2633171, KB2393802 and especially KB971029

    Most will appear as Windows XP security update , followed by the number in brackets.

    If IE8 is installed, two 2 will appear as a security for Windows Internet Explorer 8 update , followed by the number in brackets.

    5. is Firefox, Chrome or any other alternative browser installed?

    6. what version of Java is installed?  TEST HERE in USING IE (only!)-online http://java.com/en/download/installed.jsp

    7. are you familiar with "Registry cleaners" (e.g., Registry Mechanic;) System Mechanic; RegCure; RegClean Pro. Advanced SystemCare. Registry Booster; McAfee QuickClean. AVG PC TuneUp. Norton Registry Cleaner; PCTools optimizer; SpeedUpMyPC; Advanced System Optimizer. TuneUp Utilities; WinMaximizer; WinSweeper; CCleaner)?

    8 have you ever had the opportunity to do a repair install or clean install of Windows XP for some reason any?

    Note: KB2463332 is a update optional, not security. Feel free to hide it.

  • SQL server 5 Express Edition Service pack 4 (KB2463332)

    I downloaded Microsoft SQL Server 5 Express Edition Service Pack 4 (KB2463332).

    Several times, but it will not be installed, although it is an automatic download.

    Also, I wanted to know how this update is important for my computer.

    Hello

    The question you have posted is related to professional level support. Please visit the below mentioned link to find a community that will support what ask you:

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

  • update of Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332)

    I can't install this update Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332) always gives me error message not installed. How can I fix this or delete the update message.

    Note: KB2463332 is a update optional, not security. That being said...

    Try posting in the SQL Server Setup & Upgrade forum for appropriate assistance: http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/threads

  • Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332) do not settle

    Hello.  I have XP Professional Version 2002 SP3.  TRIE to install Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332), but it would not move.  Can anyone pls help.

    Hello

    I suggest to try to download the update from the link below and then try to install manually and check if it helps:

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=26435597-b28e-4568-9D16-017bdf47abdc

    Also check out this link:

    http://support.Microsoft.com/kb/822798

    It will be useful.

  • Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332) failed to install several times with an error Code: 0xD59.

    I have a Dell Vostro 420 - Windows XP. Microsoft SQL Server 2005 Express Edition Service Pack 4 (KB2463332) failed to install several times with an error Code: 0xD59.  Please help me understand this and get this installed!

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for SQL server support. Please post your question in the Sub forum.

    Link: http://social.msdn.microsoft.com/Forums/en/sqlsetupandupgrade/threads

    For reference: how to solve the packets missing MSI or MSP during SQL Server Service Packs, hotfixes or cumulative updates: http://support.microsoft.com/kb/2015100

Maybe you are looking for

  • Test RAM slot

    Is it possible to run a diagnostic on my MacBook Pro to determine if my RAM slot is bad, I was told one of the slots is burned and were released on a single.

  • Calendar view bad Cougar on iMac

    Recently (finally!) updated in early 2009 iMac to Mountain Lion.  A few things have caused problems, but it is coming along. However, the calendar date, display on the dock (bottom of screen) keeps failing to 17 July and I can't seem to view the curr

  • Can I go to the apple store and buy the new iphone battery 6?

    Anyone know if I could go to the apple store to buy a new battery without having to install it? Thank you

  • don't reset ipad now no dictation

    Hello: apple store tech reset my ipad to solve the question irrelevant, and now my dictation is off. I looked in the settings and everything looks ok. Search Google isn't raising a fix. I'll assume that material mic is fine. How to re-enable dictated

  • Why is my iBook store showing only free books?

    Hello Recently, the books shown on my iBookStore are only those free. I'm used to be able to browse through the available books. What happened to the iBookStore?