Select from function with named parameters doesn't work

Hello,
I'm trying to execute the next sql statement:
SELECT mypack.getvalue(user_id => 231, status => 'closed') AS someAlias FROM DUAL;
I'm getting the next Error:
Error: ORA-00907: missing right parenthesis
But the next works fine:
SELECT mypack.getvalue(231,'closed') AS someAlias FROM DUAL;
What I'm doing wrong?
Is there a way to call a Function and return it's result as a single-row query?
Thanks for any suggestions.

Thanks for your answers.
Just want to explain what I want to accomplish:
I want to create PL/SQL statement which:
1) Calls Function in named notation way;
2) Returns a query which contains a single row - a Function result.
I know in Transact-SQL I can accomplish this the next way:
DECLARE @return_value INT
EXEC[myproc]
@id=2,
@status='ok',
@ret_param=@return_value OUTPUT
SELECT @return_value AS my_return_value
The last SELECT call returns a query with one row in it.
How can I do the same in Oracle?
Thanks a lot!

Similar Messages

  • Dynamic VLAN-Assignment from RADIUS with Aironet 1242AG doesn't work properly

    Hello All,
    our setting is to assign VLANs dynamically from RADIUS (freeradius) to Clients connected to the 1242 Access-Points with one SSID. We have Firmware
    12.4(10b)JA/JDA on the Aironet 1242.
    The clients should be connected to one of three VLANs - one for staff, one for students and one for guests. I use the Web-Interface of
    the 1242, because I'm not very familiar with IOS cli.
    After assigning the first VLAN to the SSID -> click Accept, assigning the second VLAN to the SSID (overwriting the previous one) -> click Accept,
    assigning the third VLAN to SSID (overwriting again) -> click Accept,  the assignment of VLANs works really fine,
    (the only thing i change on the page is VLAN, the SSID is set to mandatory WPAv2)
    BUT...
    when the 1242 is rebooted (due a building power off or similar) it doesn't work anymore. Clients end up in an endless authentication loop.
    After doing the procedure again from above - assigning all VLANs sequently once, it works fine again !  till next reboot...
    All VLANs have same encryption, cypher, TKIP+AES CCM. On the Cisco-Site I found a command, which i also tried with no success:
    'aaa authorization network default group radius'.
    I also tried to save the working config and load it into the 1242 again, this also did not work.
    It seems that i'm doing something wrong, but what ?
    Thanks for some help,
    Frank

    All you really need to do is make sure the subinterfaces/vlans are created for each VLAN you need, then have radius push down IETF attributes 64, 65, and 81.

  • Question about function with in parameters

    Hello,
    I have a question about functions with in-parameters. In the HR schema, I need to get the minimum salary of the job_id that is mentioned as an in-parameter.
    this is what I am thinking but I dont know if it's correct or not or what should I do next!
    create or replace function get_minimum_salary (i_job_id in varchar2)
    return number
    as
    begin
    SELECT min_salary INTO min_sal
    FROM jobs
    where job_id = get_minimum_salary(xy);
    RETURN i_job_id;
    end get_minimum_salary;
    thanks in advance
    EDIT
    Thanks for your help all.
    Is it possible to add that if the i_job_id which is the in type parameter does not have a minimum salary then use the following function to register an error:
    create or replace procedure insert_error (i_error_code in number,
                                                      i_error_message in varchar2)
    as
    begin
    insert into error_table (error_user, error_date, error_code, error_message)
    values (user,sysdate,i_error_code,i_error_message);
    end insert_error;
    This function is basically to say that an error has occured and to register that error, at the same time I need to print out the error using the dbms_out.put_line.
    Any ideas of how to do that?
    Thanks again
    Edited by: Latvian83 on Jun 1, 2011 5:14 AM

    HI
    I have made little bit changes in ur code. try this
    create or replace function get_minimum_salary (i_job_id in varchar2)
    return number
    as
    v_Min_sal jobs.salary%type=0;---- Variable declaration
    begin
    SELECT min_salary INTO v_ min_sal
    FROM jobs
    where job_id = i_job_id;
    RETURN v_Min_sal;
    end get_minimum_salary;
    Regards
    Srikkanth.M

  • Function with incomplete parameters

    I create a function with many parameters
    and I call this function through my application
    but when I call function I must declare all parameter inside this function like
    ddd("a","b",0,0,0,0,0,0,0)
    is there a method let function set a default value for parameter if code didn't declare it

    You can send just few first parameters and the rest will be passed as false. If you need to pass, say, first and 7th parameter, then you put 6 commas between values, as there is no named parameters in VFP and all parameters are passed by position.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Call procedure with named parameters

    Call procedure with positional parameters works, but with named parameters gives an ORA-907.
    This post seems similar: Re: Error with report - pkg and bind var
    Run as a script:
    set echo on
    call dbms_stats.delete_table_stats ('ZZZMIG', 'CHAINED_ROWS', cascade_columns=>true, no_invalidate=>false);
    call dbms_stats.delete_table_stats ('ZZZMIG', 'CHAINED_ROWS');
    begin dbms_stats.delete_table_stats ('ZZZMIG', 'CHAINED_ROWS', cascade_columns=>true, no_invalidate=>false); end;
    gives:
    set echo on
    call dbms_stats.delete_table_stats ('ZZZMIG', 'CHAINED_ROWS', cascade_columns=>true, no_invalidate=>false)
    Error starting at line 2 in command:
    call dbms_stats.delete_table_stats ('ZZZMIG', 'CHAINED_ROWS', cascade_columns=>true, no_invalidate=>false)
    Error report:
    SQL Error: ORA-00907: missing right parenthesis
    00907. 00000 - "missing right parenthesis"
    *Cause:
    *Action:
    call dbms_stats.delete_table_stats ('ZZZMIG', 'CHAINED_ROWS')
    call dbms_stats.delete_table_stats succeeded.
    begin dbms_stats.delete_table_stats ('ZZZMIG', 'CHAINED_ROWS', cascade_columns=>true, no_invalidate=>false); end;
    anonymous block completed
    I like the idea of using call, because the procedure name appears in the feedback - useful in longer scripts.
    I'm using SQL Developer Version 1.5.1 Build MAIN-5440
    on Windows XP SP3
    with database EE 10.2.0.3

    CALL is a SQL command which executes a routine
    (procedure/function)
    http://download-uk.oracle.com/docs/cd/B19306_01/server
    .102/b14200/statements_4008.htm
    whereas EXECUTE is a SQL*Plus command which executes
    a single PL/SQL statement
    http://download-uk.oracle.com/docs/cd/B19306_01/server
    .102/b14357/ch12022.htm#i2697931
    Message was edited by:
    Jens PetersenThank you very much, esp. for the links!

  • Last week, I had no problems streaming my MacBook Pro to my sony Bravia with a logix hdmi cable. I came back from holidays and now it doesn't work anymore.  What settings should my computer be on and what settings should my tv be on?

    Last week, I had no problems streaming my MacBook Pro to my sony Bravia with a logix hdmi cable. I came back from holidays and now it doesn't work anymore.  What settings should my computer be on and what settings should my tv be on?

    TarahCurrie Sep 10, 2014 3:48 PM
    Restore From Time Machine Backup
    Reinstall OS X
    Get Help Online
    Disk Utility
    MacBook Pro, Mac OS X (10.5.8)
    You are running 10.5.8
    Did you try booting off your Install disk holding the c key down.  From here you can get to the drop down menu just a few clicks in (you are not going to install) and run  the Disk Utility>Repair Disk.  See if it will let you do this.

  • HT1688 The friend brought to me from the USA iphone 4. I can't use it at all. It with our operators doesn't work. I very much ask you help me to solve a problem.

    The friend brought to me a gift from the USA, and it doesn't work year. Our operators don't understand it. Help me to unblock iphone4
    <Edited by Host>

    This has nothing to do with iPhones in the Enterprise.
    Sounds like your friend is a bit dumb and bought a carrier locked iPhone.  The only way to address this is to contact the carrier to whom the device is locked and find out their unlock policy.
    Oh, and stop being dumb yourself, posting IMEI, serial numbers, and email addresses on a public forum is just plain stupid.

  • I have 3 computers. i want to get files from one to another. it doesn't work, i think it is a problem with the apple id?

    i have 3 computers. i want to get files from one to another. it doesn't work, i think it is a problem with the apple id?

    Roger:
    Zugriffsrecht means Access Right according to the translators.
    martinamm:
    You can't do what you want with iCloud.  You will need to setup remote access to your main computer with VPS or some similar remote access application.   With VPS you have an application running on your main computer turning it into a server and an client app on your laptop so you can access it remotely.  There are many such apps out there, some probably more feature filled than VPS.  You might post in the system forum that you're running and ask there.
    OT

  • I can sent photos from IPhoto with email.  But if I try to sent the photos from the IPhoto application, it doesn't work. I receive the message : "Le serveur de messagerie n'a pas reconnu l'association de vos nom d'utilisateur et mot de passe".  Help ?

    I can sent photos from IPhoto with email.  But if I try to sent the photos from the IPhoto application, it doesn't work. I receive the message : "Le serveur de messagerie n’a pas reconnu l’association de vos nom d’utilisateur et mot de passe".  Help ?

    iPhoto Menu -> Preferences -> Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • AirPort Time Capsule. Read everything and tried everything. Can't get a guest network to work. Switched from bridge mode and still doesn't work. Anyone able to set up a guest network?

    AirPort Time Capsule. Read everything and tried everything. Can't get a guest network to work. Switched from bridge mode and still doesn't work. Anyone able to set up a guest network?

    I had a bright house cable modem that also had built-in wi-fi.
    Don't mean to be picky here, but if the "modem" had built in Wi-Fi, it was not a modem. It was a modem/router, also known as a gateway type of device.
    A device like this combines the functions of a separate modem and separate router in one package. Turning off the wireless on a device like this does not make a it modem.....it is still a modem/router or gateway with the WiFi turned off.
    I think that if I have them replace the current "complicated" modem with a "simple" one I should be able to get the guest network up and running.
    That would be correct. Hopefully, they offer this type of option for their customers.

  • LAN with TCP/IP doesn't work

    Hello,
      I have a problem with my laptop IdeaPad S10e 4187-5PG: LAN with TCP/IP doesn't work, after I have updated all the drivers to the latest ones form the Lenovo site (except BIOS update). I tried to check if LAN worksby sending a ping to the IP address and that is OK, but when Isend a ping to the default gateway it failes. A ping to the DNS server also fails.Could you please help me because I tried everythinh and I can't getthe LAN to work.
    Thank you very much

    Perhaps you could describe you network in a little more detail.
    Is this a Workgroup home network or are you connected to a Domain server?
    If this is a workgroup are you connecting to the internet via a cable or DSL router?
    Do other computers on your network connect OK?
    Has your S10e ever worked properly on the network?
    Are you connecting via a wireless access point or LAN cable? 
    What do you Ping on and from where?
    Can you Ping OK on another networked computer?
    Open up a DOS Prompt (aka command prompt, DOS Box). and type IPCONFIG  /ALL <enter>. Do you get a compatible IP address and subnet mask? You should also get the gateway IP address.

  • I have an iPhone 4S.  When I try to print pictures, from my Windows computer, it doesn't work.  Open Office also gives me an "unknown graphic" message.  These are JPEGs, aren't they?  Why can't I print and what is the unknown graphic?

    I have an iPhone 4S.  When I try to print pictures, from my Windows computer, it doesn't work.  Open Office also gives me an "unknown graphic" message.  These are JPEGs, aren't they?  Why can't I print and what is the unknown graphic?

    Hi,
    "A day after the name change became official my built in skydrive app stopped working"
    Did you point that SkyDrive changed to OneDrive?
    Did you move your OneDrive to another location or change its name?
    Please login OneDrive with web-based to check if you could access it successfully.
    Please refer to the following article to try the troubleshooter and check the service status:
    SkyDrive: FAQ
    http://windows.microsoft.com/en-in/windows-8/skydrive-app-faq
    Karen Hu
    TechNet Community Support

  • Skill Search works fine from search center, but it doesn't work from Lync client

    My environment consists of Lync Server 2013 and SharePoint Server 2013.
    I configured skill search and it works fine from search center, but it doesn't work from Lync client. An error appears says"error occurred during the search, please try again".
    I configured these URLs in my client policy
    set-csclientpolicy -identity global -spsearchinternalurl http://<Sharepoint Server>/_vti_bin/search.asmx
    set-csclientpolicy -identity global -spsearchcenterinternalurl http://<Sharepoint Server>/searchcenter/pages/peopleresults.aspx
    I checked these URLs from the browser and they work fine.
    I disabled anonymous access to _vti_bin, but no change then i checked lync log but i didn't find any error then i used Wireshark and found that when Lync client contacts Sharepoint, Sharepoint responded to it with internal server error http 500
    Please advice for what to do

    Hi,
    Thanks For your sharing.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • In iTunes, how do I switch to an Ipod nano from and old ipod that doesn't work any more

    in iTunes on your computer, how do I switch to an Ipod nano from and old ipod that doesn't work any more?  It has all the folders and songs I had on my old ipod, but does not recognize my ipod nano and cannot sync with it?

    Hi bob12345S,
    If your iPod nano does not appear in iTunes when connected to your computer, you may want to troubleshoot using the steps on this page -
    Apple - Support - iPod nano - iTunes Troubleshooting Assistant
    http://www.apple.com/support/ipodnano/assistant/itunes/
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Why tethering with USB cable doesn't work after IOS6.0 update?

    why tethering with USB cable doesn't work after IOS 6.0 update?

    Try updating the carrier settings, if that doesn't do it try following along with this Apple doc -> iOS: Troubleshooting Personal Hotspot

Maybe you are looking for

  • Feature request: Scale to fit (Smart Scale)

    Hello, When I either drag a layer from one doc to another, when I drop it, or even via copy and paste, it would be nice to have a SCALE TO FIT option. Often when working with different resolution images, you still need to make them fit. Either scalin

  • Configure Interface channel monitoring for PI in SOLMAN 7.1

    Hi Experts, I am configuring interface channel monitoring for PI in SOLMAN 7.1.In step 5 (Define scope) it is asking to select scenario.I can see all PI systems (Dev,QA and PRD) is listed in the table with "monitoring and alerting setup status" as ye

  • Creating Album by dragging folder from Finder

    I was told in the help documentation that I could drag a folder of photos into iPhoto and create an album of that same name. But it seems that I am unable to do this. The file I drag won't "stick" to iPhoto. Is this not possible, afterall? The reason

  • Consumed project materials - inventory in ps ?

    dear ps experts, pl let me know whether projects materials consumed in project (ie., gr against nw pr-po done), can any where the same material shown as projects material inventory (virual)? currently i am creating the automatic pr-material in networ

  • Twitter aswel Google docs do not work propperly anymore since 3.6.12 (ubuntu 10.04)

    Google docs now gives the following message when using the spreadsheet function: U geeft Google Documenten momenteel weer in standaard HTML. Schakel over naar een ondersteunde browser om Google Documenten in realtime te bewerken en te delen. Saying i