I am not able to call a stored function in database

Hi,
i have created a function and when i call it every time i faced error. what is the reasone plz help me. the whole script is as under:
SQLWKS> create or replace function get_months ( v_year in number) return number
2> is
3> v_months number;
4> begin
5> v_months := v_year * 12;
6> return v_months;
7> end get_months;
Statement processed.
SQLWKS> execute get_months (10);
get_months (10);
ORA-06550: line 2, column 2:
PLS-00221: 'GET_MONTHS' is not a procedure or is undefined
ORA-06550: line 2, column 2:
PL/SQL: Statement ignored
plz suggest me, because it is a simple function.

I ask because the Oracle 10g SQL Reference says that execute
can be used for either function and procedures.The SQL Reference manual says that? Where? Do you mean the SQL Plus manual?
Anyway, you can. Like this:
SQL> create or replace
  2  function get_months ( v_year in number) return number is
  3  begin
  4     return v_year * 12;
  5  end get_months;
  6  /
Function created.
SQL> var vmonths number
SQL> exec :vmonths := get_months(10);
PL/SQL procedure successfully completed.
SQL> print vmonths
             VMONTHS
                 120

Similar Messages

  • Svg - xml - why am i not able to call javscript function?

    I just created a sample svg file for displaying a menu. I wanted to change the background onClick/onMouseOver. The problem is it is not able to call the javascript function embedded in that???
    tnx in advance.
    Kalyan
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
    <svg width="500" height="25" onload="change(evt);"><!--viewBox="0 0 100 100"-->
    <!--<script language="JavaScript1.2"><![CDATA[
         function change(evt) {
              alert("fdsf");
              svgdoc = evt.getCurrentNode().getOwnerDocument();
              svgdoc.getElementById("menu1rect").style.visibility="visible";
              svgdoc.getElementById("menu1text").style.visibility="visible";
    ]]></Script>
    -->
         <rect style="fill:#336699" x="0" y="0" width="500" height="25" rx="12" ry="12"/>
         <g id="text1" width="100px" style="width:100px; height:20px;cursor:hand">
              <a xlink:href="JavaScript:alert('Clicked Upload XML !');change(evt);">
              <text x="45" y="15" style="font-size:8pt; fill:white; text-anchor:middle" onMouseOver="change(evt);">Upload XML</text>
              </a>
         <rect id="menu1rect" style="fill:#FFFFFF;stroke:#336699; visibility:hidden" x="0" y="0" X="350" Y="15" width="100" height="25" rx="12" ry="12"/>
         <a xlink:href="JavaScript:alert('Clicked Upload XML !')">
              <text id="menu1text" x="45" y="15" style="font-size:8pt; visibility:hidden;fill:#336699; text-anchor:middle">Upload XML</text>
         </a>
         </g>
         <a xlink:href="JavaScript:alert('Clicked Upgrade Version !')" style="width:100px; height:20px">
              <text x="150" y="15" style="font-size:8pt; fill:white; text-anchor:middle">Upgrade Version</text>
         </a>
         <a xlink:href="JavaScript:alert('Clicked Item Search !')">
              <text x="250" y="15" style="font-size:8pt; fill:white; text-anchor:middle">Item Search</text>
         </a>
    </svg>

    The script language type should be text/javascript when it is used in a svg!!
    Kalyan

  • My tel Goes after 10 minutes offline, apears à enige Apple, and i have to unlock again. People are not able to call me while THE Apple apears. Question what can be THE solution ?? It is à 3GS tel iOS 4.2.1

    My tel Goes after 10 minutes offline, apears à enige Apple, and i have to unlock again. People are not able to call me while THE Apple apears. Question what can be THE solution ?? It is à 3GS tel iOS 4.2.1

    Hi Richard,
    You mentioned that 'Apple put the AirPrint spec out there for all printer makers'. I've been looking around but I haven't found any spec. Where did you find it?
    Do printer makers have to buy a license in order to be able to advertise that they've implemented the AirPrint protocol? Is there maybe an Apple review process in place?
    TIA
    Geert

  • My tel Goes after 10 minutes offline, apears à white Apple, and i have to unlock again. People are not able to call me while THE Apple apears. Question what can be THE solution ?? It is à 3GS tel iOS 4.2.1

    My tel Goes after 10 minutes offline, apears à white Apple, and i have to unlock again. People are not able to call me while THE Apple apears. Question what can be THE solution ?? It is à 3GS tel iOS 4.2.1

    Hi Richard,
    You mentioned that 'Apple put the AirPrint spec out there for all printer makers'. I've been looking around but I haven't found any spec. Where did you find it?
    Do printer makers have to buy a license in order to be able to advertise that they've implemented the AirPrint protocol? Is there maybe an Apple review process in place?
    TIA
    Geert

  • Manage bean methods not able to call application module methods

    Hi,
    I have an ADF application where in my managed bean method needs to call AppModuleImpl methods. I use the code as below:
    public void getSummary() {
    DCBindingContainer binding = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding op = binding.getOperationBinding("getVOData");
    op.execute();
    The code works fine when I run the application in my IntegratedWeblogicServer and I am able to get the data on my .jsp pages.
    I have installed weblogic server on another machine and I need to deploy and run my application on that server. But when I try doing that, the above code is not able to call the AppModule method and I see no data on my page (Also there is no error or exceptin thrown). Seems that the ViewController project is not able to interact with the Model project.
    Is there any extra configuration to be done on the newly installed weblogic server to get this work? Or will some change in the application code help?
    Please suggest.
    Thanks and regards,
    Ansh

    Hi,
    While creating the weblogic domain, we had the following checkboxes checked:
    1. Basic weblogic server domain [wlserver_10.3]
    2. Oracle JRF [oracle_common]
    I hope this is what we need.
    Yes, I also have the adf runtime installed.

  • Not able to call action method from the javascript

    I am using weblogic 10.3.2 portal.
    My requirement is to call a action in controller throuhg java script when user selects a different option in a dropdown.
    When try it we are not able to call it is returning null as a elementId. Below is the snippet of my code.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <netui:html generateIdScope="true">
    <head>
    <netui:base/>
    </head>
    <script language="JavaScript" type="text/JavaScript">
    function SelectBANSubmit(id)
         var scope = document.getElementById("scopeOneSpan");
         alert("value====arv" + scope);
         //var form = document.getElementById(lookupIdByTagId(form,scope));
         //alert("value====arv" + form);
         var knoVal = document.getElementById(lookupIdByTagId(id,scope));
    alert("in method" + knoVal);
         </script>
    <netui:body>
    <span id="scopeOneSpan">
         <netui:form action="getBillDetails" >
         <netui:select dataSource="actionForm.selection" tagId="arvind" optionsDataSource="${actionForm.resDTO.kno}" onChange="SelectBANSubmit('arvind')"/>
              </netui:form>
         </span>
         </netui:body>
    </netui:html>
    Any help would be appreciated.

    Below is my code
    JS Code
    function fundemo(id)
    alert("so currently we are in fundemo function ");
         var scope = document.getElementById("scopeOneSpan");
    alert(scope);
         var check = document.getElementById(lookupIdByTagId('textbox1',scope));
    alert("check id is " + check.id + " and its value is "+ check.value);
    JSP Code
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <netui:html generateIdScope="true">
    <head>
    <netui:base/>
    </head>
    <script type="text/JavaScript" src="D:/testWS/testWebProject/WebContent/WEB-INF/js/test.js"> </script>
    <script language="JavaScript" type="text/JavaScript">
    function SelectBANSubmit(id)
    alert("In JS Method of the JSP File ");
    fundemo(id);
    </script>
    <netui:body>
    <span id="scopeOneSpan">
    <netui:form action="getBillDetails">
    <td >
    <netui:textBox dataSource="actionForm.selection" tagId="textbox1" />
    </td>
    <td>
    <netui:button type="button" onClick="javascript:fundemo('textbox1')" value="Test click"/>
    </td>
    </netui:form>
    </span>
    </netui:body>
    </netui:html>

  • Not able to call from the UAE.

    hi there ....
    I am calling from UAE. i have purchased india 800min pack but i am not able to call. Call connects very rarely and whenever it does so it drops automatically after 2-3 secs. Plz help me out.
    Regards,
    Solved!
    Go to Solution.

    Hello,
    It has been brought to our attention that our website has been blocked by one or more ISPs in the United Arab Emirates. Unfortunately there is very little Skype can do about this situation. The best course of action would be for you to speak to your ISP, ask why they are blocking Skype and request that they unblock our site.
    Thank you.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Re: Subscription renewed but not able to call

    Me too having the sme issue here. 
    My subscription starts from 18th of each May; though the subscription charge gets deducted 3 days before each time. And still not able to call even it is 18th May.
    Dear Skype representatives, can you please do the needful asap and solve our issues??

    Hello,
    Using some else's thread is not only unfair to the thread starter but can lead to confusion and cause difficulty for those who are trying to assist you.
    Your issue is different to that of the person(s) whose thread you infiltrated. Two issues are almost never identical. There are too many variables.
    Please start your own thread here.
    Thank you.
    Due to the time it can take for some transactions to be processed, we charge your bank or PayPal account three days in advance to ensure prompt delivery of your subscription. You don’t lose these three days: your subscription is still valid for the full period that you sign up for (one, three or 12 months).
    Although the recurring payment is taken three days in advance to avoid possible delays, your subscription minutes are reset based on the initial purchase date and time.
    Minutes are added to Plans at or about midnight UTC/GMT on the due date.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Some time i am not able to call from iphone 6

    Some time i am not able to call from iphone 6 i have already talked with with my serviceprovider but they not able to find any problem.fom yesterday my outgoing has been stopped again

    Please give me a reply.last 24 hrs i am not able to call anyone from my phone

  • Not able to call from India but I have credit

    I m not able to call to any landline and mobile still I have Skype credit and 120 min subscription plz help me

    lakhanpandey wrote:
    I m not able to call to any landline and mobile still I have Skype credit and 120 min subscription plz help me
    Hello
    You are attempting to call within India which is no longer supported by Skype.
    https://support.skype.com/en/faq/FA34487/why-can-i-no-longer-make-calls-to-india-from-india
    p.s. You were flagged for duplicate posting which is not permitted. Please avoid in future. Duplicate post removed.
    Thank you.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Not able to call on any mobile number even credit ...

    not able to call on any mobile number even credit is there in account 

    Hi,
    Please check your usage call history on your Skype web account page to learn why the calls failed: www.skype.com/go/myaccount
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • [svn] 2260: Fix for version checking code not always detecting calls to newer functions .

    Revision: 2260
    Author: [email protected]
    Date: 2008-06-26 12:42:39 -0700 (Thu, 26 Jun 2008)
    Log Message:
    Fix for version checking code not always detecting calls to newer functions.
    flex checkintests pass
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/ConstantEvaluator.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/ReferenceValue.java

    Revision: 2260
    Author: [email protected]
    Date: 2008-06-26 12:42:39 -0700 (Thu, 26 Jun 2008)
    Log Message:
    Fix for version checking code not always detecting calls to newer functions.
    flex checkintests pass
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/ConstantEvaluator.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/ReferenceValue.java

  • Not able to call action of a button

    Hi All
    RIght now i am facing a very strange issue.
    In my applictaion if on my page i drop a buttion and add action for that button.
    If i add a SOP(System.out.println()) in that action i am able to see that in my back end means action is called. But on one specific page when i add a button and add action its not working.
    I am not able to see the SOP on a specific page means action is not called.
    Any idea why button on that specifci page is not called ?
    Thanks in advance,
    Vikas

    Which page?
    Which jdev version?
    Which UI technology you are using?
    What's the difference to the other pages?
    How do you get to the page in question?
    Timo

  • Not able to call BPEL web service using RMI call from different machine

    Hi,
    1. I have created a smiple Helloworld asynchoronous BPEL process
    2. I am able to call that BPEL process using java program (RMI call) which I have written in JDeveloper 10.1.3.3 and the java program is running in the embeded OCJ4 instance of JDeveloper sucessfully.
    3. Now I am trying to run the same Java program in my unix machine where oracle application is installed.
    4. I have set all the CLASSPATH for required jars which I have used in JDeveloper and also kept the jar file in Unix machine.
    5. The java codes are complied successfully.
    6. But when I am trying to run it , getting the following exception:
    bash-3.00$ java HelloworldAsyn
    name is Debkanta
    property file data are: {java.naming.provider.url=opmn:ormi://172.18.19.169:6003:home/orabpel, java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory, orabpel.platform=ias_10g, java.naming.security.principal=oc4jadmin, java.naming.security.credentials=welcome1}
    hello3
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
    at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
    at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    at HelloworldAsyn.main(HelloworldAsyn.java:64)
    at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
    at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    at HelloworldAsyn.main(HelloworldAsyn.java:64)
    bash-3.00$
    I need to solve it urgently. Can anyone please help me.
    Is it relaed to some user access issue in unix?
    Thanks & Regards
    Deb
    Message was edited by:
    user587916

    actually , I have laready given print stataement for the data in the context property file that you can see in the output. Today I am also able to call the bpel process using the same java program from my DOS command promt(cmd). Don't understand why the problem is occuring in unix.
    please help.

  • Z10 not able to call oversea after upgrade to version 10.1.0.273

    I live in Thailand and I usually make call to Malaysia using 009 service from CAT. The full number will be 0096057163xxx and I have been using 009 services for more than 10 years. After upgraded to version 10.1.0.273, I'm not able to make oversea call with 009 services. The reply is "The number you are calling is not in service", I try call with other mobile phones and everything work as per normal. I doubt the the latest version are not able to read and dial the first 2 digits "00". Please help to provide a solutions.

    Checked with BB call center Thailand and they have not received similar complain from other customer, no solutions neither. I try making oversea call with 001, 007 and 008 follow by country code, all having the same problem. Especially for 008 follow country code 60 (Malaysia), it ends up calling to China. It seems like the firmware do not recognized the 3rd digit as it read it as 'country code' instead of international call service offer by CAT Thailand. This is really PISS me off and I hope RIM can do something about it!!

Maybe you are looking for

  • I need urgent help with the GPS

    i've ask my family to buy Nokia n 97 from syria,while i live in cyprus,how ever i got the phone with a card inside the box says: this nokia device has been specially designed and manufactured for this market.the satandard GPS features have been disab

  • Adding a video to a page

    One of our team has created a PDF from MS PowerPoint. In Acrobat Pro 9 they subsequently added a page to the PDF and added an MP4 file to it via the Multimedia > Video Tools option. Everything works well except that the video is rendered at a larger

  • Cannot sync 6500

    Hi I have been using PC suite on my 6500 Slide for quite some time with no problems, today I connected to the usb as usual and was asked if I wanted to update which i did. I think the new version was 6.60. Everything appears to be connected OK, my ph

  • FONTS: numbers not displaying correctly

    Hi everyone, I just installed the ProggyClean font, and everything displays fine but the numbers on my status bar. Any suggestion what could be wrong? I'm running the awesome desktop manager. Thank you.

  • Triggering of Function modules in FILASYST

    Hi, Can any please let me know when does the function modules mentioned in FILASYST config get triggered. I am trying to create a service contract from CRMD_ORDER and trying to check if the function modules listed in FILASYST gets triggered on save o