Can two functions call each other?

I'm converting some code and have run into two functions that call each other. While I seem to have converted both functions to plsql ok, they do not compile, seemingly because they ref each other. As soon as I de-reference one one function's call to the other function they both compile.
I know that Oracle 10g supports recursion; and on the surface of things, this situation does not seem much different than recursion. If both functions are well formed, I would hope that they'd compile.
I wasn't able to find much by searching the forums on this topic...but I'm hoping that someone will have some info on this issue.

what happens when f2 sends 2 as parameter to f1 (i mean F1(2) in place of f1(1) ) at line 6 of f2).probably that what you expected ;) :
SQL>  create or replace function f1 (i integer default 0)
     return integer
as
begin
     dbms_output.put_line ('In function f1');
     return case when i != 1 then f2 end;
end f1;
Warning: compiled but with compilation errors
SQL>  show error
Errors for FUNCTION F1
LINE/COL ERROR                                                           
6/31     PLS-00201: identifier 'F2' must be declared                     
6/2      PL/SQL: Statement ignored                                       
SQL>  create or replace function f2
     return integer
as
     i integer;
begin
     dbms_output.put_line ('In function f2');
     execute immediate 'begin :1 := f1(2); end;' using out i;
     return i;
end f2;
Createfunction successfully completed.
SQL>  select f2() from dual
select f2() from dual
Error at line 1
ORA-00036: maximum number of recursive SQL levels (50) exceeded
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8
ORA-06512: at "MICHAEL.F1", line 6
ORA-06512: at line 1
ORA-06512: at "MICHAEL.F2", line 8

Similar Messages

  • Two iviews calling each other on a single page?

    Hi all,
    Does anyone know of any documentation or how you would be able to have two views on a page with one iview displaying the onclick action of another iview? 
    Currently everytime a user would click a link on this iview it displays it onto another window.  We would like it to be displayed in another iview in the same page.
    Thanks,
    Jin Bae

    Hi NAC,
    here the same holds, EPCF (Event API). It is just thought for seperate iViews, nothing else does make sense.
    > One taking in input from the user,
    > calling a Database and displaying
    > the Result on the other iView.
    If you have a server roundtrip in between, in this case it might make more sense to use JSPFragments or programatically include the result display within the same iView.
    If you don't want this, you still have the possibility to pass the data on client side (not advisable for complex data) or to share it on server side (HttpSession) and on client side to refresh the result display iView via an EPCF event.
    The "standard" way anyhow would be to pass the selection data from iV1 to iV2 and have this second iView to make the DB access and in return displaying the result.
    Hope it helps
    Detlev

  • How do I view two clips overlapping each other, each being semitransparent to see both at the same time, so that I can decide where to stop of the first clip and start of the second clip? Thanks.

    Basically I want to combine to clips with correct timings. For that I want to view the two clips overlapping each other, each being semitransparent to see both at the same time, so that I can decide where to stop of the first clip and start of the second clip? Thanks.

    see my reply in your other post:
    You're familiar with the TRIM-tool?
    http://help.apple.com/finalcutpro/mac/10.1/?lang=en#ver1632caff
    http://help.apple.com/finalcutpro/mac/10.1/?lang=en#ver1632d8e4
    http://help.apple.com/finalcutpro/mac/10.1/?lang=en#ver1632d9ae

  • Migration between two environments which can't communicate with each other

    My customer is intending to do migration from test environment to production environment using CCM.
    But the two environments are not in the same network.
    The environments' setting is as blew.
    BO TEST Repository can communicate with Web BO Server.
    BO PRODUCTION Repository (Cluster environment) can communicate with Web BO Server.
    BO TEST Repository and BO PRODUCTION Repository (Cluster environment) are in the different network, they can't communicate with each other.
    Setting Target Repository manually in CCM.
    Questions are:
    1. In CCM, as long as both Source Repository and Target Repository can communicate with Web BO Server, the migration will be successful.
       Is that right?
    2. If 1 is not right, is there additional setting should I do?
       For example, If I need to open some firewall port?
    3. Is there other attentions should I notice?
    Thanks

    Questions are:
    1. In CCM, as long as both Source Repository and Target Repository can communicate with Web BO Server, the migration will be successful.
    Is that right?
    Yes that is correct
    2. If 1 is not right, is there additional setting should I do?
    For example, If I need to open some firewall port?
    You have another option which is to use the BIAR files. Export your objects to a BIAR file in source environment, and import them from BIAR into the target environment
    3. Is there other attentions should I notice?
    when using BIAR files as solution, Make sure that you keep them < 1GB size to avoid corruption
    you may have to increase or adjust timeouts on input and output repository servers as well

  • Hello , I have a shot with two lips kissing each other , how can I keep

    Hello , I have a shot with two lips kissing each other , how can I keep the lips red and turn the rest of the face into black ? I tried shaping but the result was negative because the shape was moving all teh time , I tried color correction but the face and lips`s color was similar so I couldn`t do it with that , is there any other way ? Thanks so much

    You're gonna have fun with this because the HSL qualifiers probably won't see much separation between the areas that you want to isolate. You could try combinations of turning off Hue, Saturation, or Luminance. See what you get.
    Otherwise you're into a roto. (Manually tracked and animated User Shape)
    jPo
    Message was edited by: JP Owens

  • TS2755 My wife and I have IPhone 5's.  For some reason, we can call each other, and if I text her she gets it, but if she texts me I don't get it.  Any one else ever have something like this happen?

    My wife and I have Iphone 5's.  For some reason, we can call each other, no problem, but if we text she receives my texts but I don't recieve hers.  Any one ever have a problem like this, and more importantly, a solution?   Thanks!

    In Settings> Messages
    make sure iMessage is turned on, and
    in Settings> Messages> Send & Receive...
    make sure you have your phone number listed under "you can be reached by imessage at"

  • My MacBook Air (2011) and my iMac (2008) can no longer see each other.

    Hi
    My WiFi is via a TimeCapsule which seems to work perfectly well with the Apple TV, Hot plugs for the TV and my iPhone/iPad but my two computers (above with Mavericks operating system) can't see each other any more.  It's been about a week now.  I have restarted both of them but to no avail.  My MacBook Air has alternate backups to a local USB connected hard drive and Time Capsule and both are working fine.  I've tried looking in System Preferences to see if something's turned off but can't find what I'm looking for.  I tried changing the settings in Airport Utility but that made things worse so I've reverted to the original "Bridge Off" mode.  What has happened or have I inadvertently turned off?
    Many thanks
    Sue Clark

    Ralph Johns (UK) wrote:
    Hi,
    I can see that Accounts/Screen Names can get messed up on the various flags set by an App to and therefore On the AIM servers.
    What I can not see in this case is why it seems to be limited to just one Buddy on each computer.
    As the Block list (And therefore presumably Allow Lists) are not actually shown in the .p0list I ma hoping that deleting it and restarting ichat at one end at least will reset that iChat form the Defaults haled in the app when you do this.
    (you could delete that Account Screen Name from iChat ? Preferences > Accounts to achieve the same things in a more destructive way as it would tend to rewrite all the .plists which may included Jabber ones that are OK
    We both did delete our screen names in iChat, and also deleted ALL the prefs manually.
    Also, we've tried using entirely different computers to log-in to those same accounts, with the same results - somehow we're blocked from each other.
    I think we're both giving up at this stage. We have additional accounts we can use to see each other. But it would be really nice to get to the bottom of it, because if it happens once it can happen again. Who knows? Maybe there are other people in my buddy list that this is happening with right now, but we don't know it. This person just happens to be someone I chat with a lot, and we noticed we weren't seeing each other.

  • My phones unable to call each other internally.what 's missing in my configuration? please help me

    hi everyone!
    I did not really know in TOIP . Can someone look at my configuration attached and tell me what 's missing?
    For now , I'm just at the stage where my phones must call each other internally.
    That is to say, the user who has the number 100 , should be able to call the one with the number 101 .
    My phones are recorded correctly, there has intonnation , but they do not casually refer to them internally
    please what is wrong with my setup ?
    CME: cisco 3925
    ip phone types: 7841 and 9971
    here is the status of the message that appears on the IP phone: File Not Found: Ringlist-wb.xml

    Hi, Sreekanth,
    Thank you for your Help, 
    Nothing happens when I order these tapes and when I initiate a call.
    i've somes errors messages on my 9971:
    Error Updating Local
    File Not Found: United_States/g4-tones.xml
    Upgrade Reject: HW comptat faillure. Must use 9.3(2) or later release on this phone
    VPN Error: VPN is not Configured.
    No trust List installed
    Updating Trust List
    CUCM closed TCP connection
    Is this that prevents calls ? I can not find the firmware
    United_States/g4-tones.xml
    Kind regards

  • Link two LRT224 with each other using VPN

    What's the best way to connect two LRT224 with each other, which are in two different citys?
    Open VPN or IPSec?
    I think Gateway to Gateway should be the right mode, but I am very unsure with the lot of settings ...
    Solved!
    Go to Solution.

    Try the EasyLink VPN feature of LRT214/LRT224, which simplifies the site-to-site VPN setup.
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=03cf456383fc4d958cf918110c7fcd42_How_to_configure_...
    EasyLink VPN works in the following way conceptually.
    1. At the primary site, enable EasyLink VPN Server (inbound tab on the Web GUI) and create an account (username/password) for each remote site.
    2. At a remote site, enable EasyLink VPN Client (outbound tab on the Web GUI), and enters the matching account credentials (username/password).
    3. The remote site will automatically reach out to the primary site to establish an IPsec tunnel.
    Note: LRT224 can support up to five EasyLink VPN peers in a star VPN topology.

  • Both disc drives broke within two weeks of each other?

    I bought an imac and macbook pro about a year and a half ago and within two weeks of each other, both have broken. They have always been awkward to insert/eject disc to/from, but now they either don't accept discs in or wont spit them out. Surely this isn't coincidence as they get very different usage from each other. Also, i've just upgraded to 10.6.8. Is this a known problem? Can i request Apple fix these issues for free, as i don't really feel one and a half years is acceptable for the breakdown of both machines, especially as they get very little usage.
    Advice?

    AppleCare covers you for three years.

  • 10.5: VPN clients can't connect to each other

    Hey all,
    I've got a bit of an odd problem. Got my VPN server setup and working fine on 10.5.4. Clients can connect in, mount file shares, etc. However, if we have multiple clients connected in via VPN, they can't connect to each other. They can't ping each other or anything. I've checked firewalls, etc, on the client machines, and everything looks fine.
    Machines within the network can ping and connect to them both, it's just when they're trying to connect to one another that the problem occurs. Any ideas why this might be, and any possible solutions?
    Thanks in advance,
    Paul

    OS X Server / VPN /The L2TP-VPN server did not respond

  • One other user & I can no longer see each other in the buddy list

    My friend & I, who have used iChat for years, and also recently, and neither of us has changed anything, can no longer see each other in either one of our buddy lists.
    We've checked:
    - That neither of us is blocking the other
    - That other people can see us - they can
    - That we can see other people - we can - we can even see the same people as each other, just not each other
    We've tried blocking & unblocking each other, in case that would reset something, and both rebooted our Mac's several times.
    Any ideas???

    Ralph Johns (UK) wrote:
    Hi,
    I can see that Accounts/Screen Names can get messed up on the various flags set by an App to and therefore On the AIM servers.
    What I can not see in this case is why it seems to be limited to just one Buddy on each computer.
    As the Block list (And therefore presumably Allow Lists) are not actually shown in the .p0list I ma hoping that deleting it and restarting ichat at one end at least will reset that iChat form the Defaults haled in the app when you do this.
    (you could delete that Account Screen Name from iChat ? Preferences > Accounts to achieve the same things in a more destructive way as it would tend to rewrite all the .plists which may included Jabber ones that are OK
    We both did delete our screen names in iChat, and also deleted ALL the prefs manually.
    Also, we've tried using entirely different computers to log-in to those same accounts, with the same results - somehow we're blocked from each other.
    I think we're both giving up at this stage. We have additional accounts we can use to see each other. But it would be really nice to get to the bottom of it, because if it happens once it can happen again. Who knows? Maybe there are other people in my buddy list that this is happening with right now, but we don't know it. This person just happens to be someone I chat with a lot, and we noticed we weren't seeing each other.

  • My employer and I both have iPhone 5.  We both recently updated as recommended.  Now we can no longer text each other.  I can text and receive from other iPhone users.  Any ideas??

    My employer and I both have iPhone 5.  We both recently updated as recommended.  Now we can no longer text each other.  I can text and receive from other iPhone users.  Any ideas??

    Well, that didn't work since I am already using my appleID for both FaceTime and iMessage but i did see the option to send as SMS when iMessage not available.  so I am now able to send to him  but I don't know if he can send to me.  It's a start.  It is only with his phone.  His wife has a Galaxy and they are both on AT&T and she can send and receive.  I am on sprint.  If that info helps

  • How would 2 people call each other using facetime if both were in a foreign country but staying at different locations within that country?

    How would 2 people call each other using facetime if both were in a foreign country but staying at different locations within that country?

    It's tied to the Apple ID also - I believe it would use that to find the right person/device.
    Perhaps this article would help: http://support.apple.com/kb/HT4319. It looks like you may want to go in through your contacts and make the call.
    If you're concerned about data charges, put your phone in Airplane mode before trying to Facetime. That will prevent it from trying to make a call over your cellular data.
    ~Lyssa

  • My brother and I will both be in Quito at the same time but staying in different hotels. If we both have facetime how would we call each other (over wifi of course)?

    My brother and I will both be in Quito at the same time but staying in different hotels. If we both have iphones with facetime how would we call each other (over wifi of course)?

    Hello ajs42548,
    The article linked below details how to go about using FaceTime. In order to use FaceTime over Wi-Fi, just verify that you are connected to a Wi-Fi network prior to initiating the call.
    iOS: Using FaceTime
    http://support.apple.com/kb/HT4319
    Cheers,
    Allen

Maybe you are looking for

  • HP with beatsaudio problem and QHD resolution [semi-solved]

    After a lot of trouble i manage to install archlinux in my hp envy 14 touch with uefi. i just get some of the speakers running with this option: options snd-hda-intel model=ref ive searched a lot but all the solutions havent work for me and the progr

  • SDO_AGGR_UNION function reverses linestrings !?

    Hi, When I use the SDO_AGGR_UNION function, the geometry objects (linestrings) get reversed by changing the order of the vertex Here's a SQL sample code that illustrates this issue : Code : DROP TABLE tmp; commit; CREATE TABLE tmp ("ID" NUMBER, "GEOM

  • Importing Text Files

    Hi, has anybody come across this issue before? I am trying to upload a tab delimited text file with 2679 records but only 2425 records are uploaded. However, in the text import repository it shows no failures. Also, I tested uploading one of the fail

  • Idoc Number which posts the GR doc..

    Hi All, Please let me know how the incoming idoc number can be identified which posts the GR for a PO. Thanks Chandru

  • Writeback issue

    Hi, i'm implementing writeback functionality. I have a table with an update button. Clicking on i update table with modification made by users on records. My table contains also a flag column. If user insert YES, it means that modifications are accep