Plsql how to determine what the instance of an object is

In my procedure I want to know if I have been passed the supertype of a sub type ie :
create type super_type as object
(id number(10) )
create type sub_a under super_type
(a varchar2(10))
create procedure p_x(p_obj super_type) is
begin
-- something like :
if p_obj is of type super_type then
-- do something
elsif p_obj is of type sub_a then
-- something
end if;
end;
thanks in advance

Your question was regarding PL/SQL. IS OF TYPE (type_name) or IS OF (ONLY type_name) are SQL constructs which is why I told you the SYS_TYPEID function. You can't use IS OF in an IF statement, only in a SQL predicate.
Regards
Adrian

Similar Messages

  • How to determine what the current group level is?

    Post Author: mavrick5
    CA Forum: Formula
    I hope someone can help me urgently.  I have a complex report which has multiple drill down levels.  I am printing values for sales and qty at each drill down level as well as a calculation for average selling price.  What I want to do is calculate the average for the totals, not calculate the average per detail line and then calculate the average of the average (if you understand what I mean).  I have the averages calculating correctly except the total line in each drill down. How can I determine in a formula what group total I am currently printing (eg. group footer 1, group footer 2, etc.).  If I can determine which group footer I am currently printing, then I can change my calculation based upon the drill down level and the group footer. Thanks in advance.

    Post Author: yangster
    CA Forum: Formula
    think you are looking for the functiondrilldowngroupleveljust pop that into a formula and drag it into your report you'll see it counts from 0 when no drilldown has been invokedi use drilldowngoruplevel a lot to display different page headers depending on drill down level

  • When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Websites remembering you and automatically log you in is stored in a cookie.
    *Create an allow Cookie Exception to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    *Tools > Options > Privacy > Cookies: Exceptions
    In case you are using "Clear history when Firefox closes":
    *do not clear Cookies
    *do not clear Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception and cookies from plugins.

  • How do i determine what the "other" usage is on my iPad (3.5 gig)

    how do i determine what the "other" usage is on my iPad (3.5 gig)

    Hey there, I seem to have an issue with the 'other' usage thing.
    On my computer and ipod, it shows like this:
    when I dont even have more than 2+GB in music and less than 1gb in apps and pictures.
    I am on iOS5.1.1 because I had many problems with the Wi-Fi bug for iOS6 (no, it didnt fix for me with 6.0.1)
    I am very frustatred because I cant even sync music anymore. AndI dont want to do a reset because it takes me 3+ hours to transfer my music.
    any help}?

  • I am planning to switch to the "iPhone for Life Plan" with unlimited data.  How do i determine what the balance is on my equipment installment plan?

    I am planning to switch to the "iPhone for Life Plan" with unlimited data.  How do i determine what the balance is on my equipment installment plan?

    Yes I am considering switching from the VZ Edge to Sprint iPhone for Life plan.
    Thanks,
    Adrian
    >> Personal information removed to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • Mac shut down due to problem; I rebooted fine. how do I determine what the problem was?

    mac shut down due to problem; I rebooted fine. how do I determine what the problem was?

    When shut down and rebooted, the Mac OS X does background maintenance on the system. That can solve minor issues.
    Beyond this, it is a good idea to run Disk Repair yourself just to make sure.
    Reboot with the option key held down. On the screen that comes up select the Recovery disk icon and Continue.
    On the next screen Clcik Disk Utility and Continue.
    In DU, in the list on the left select the drive to be repaired - click the item that is indented to the right, not an an item whose name starts on the far left.
    Click First Aid, then Repair Disk.
    After that is done, quit DU and restart as usual.

  • How can i determine what the most recent os my imac will run?

    How can i determine what the most recent os my iMac will run?
    Serial Number QP6*****VUW
    Processor 2.16 GHz Intel Core 2 Duo
    Currently running Version 10.5.8
    <Edited by Host>

    You CAN run 10.7, but I don't advise it, buy the 10.6.3 upgrade disk from the Apple Store online and then backup files off the machine and upgrade to 10.6.3., then Software Update to 10.6.8 would be the BEST option for your older hardware and it will run most all of your 10.5 software and be faster than 10.5 or 10.7.
    If you go to 10.7 it won't run nearly any of your 10.5 software and you will have to buy all new ones for a machine that's getting a little bit dated, near it's end of life stage. 10.7 will slow your machine down, especially with low RAM.
    http://roaringapps.com/apps:table
    At your machines stage, the hard drive is getting old, the vents are clogged up with dust and it's going to cost a bit to get the drive etc upgraded. You can if you wish, but 10.7 really needs more RAM (4GB) and a faster hard drive.
    But your still subjected to the video card going out etc.
    IMO upgrade to 10.6.8 and stay there until the wheels fall off, then buy a new 10.8 machine being released after this summer or 10.9 machine.
    Harden your Mac against malware attacks

  • HRPAD00INFTY - How to determine what action the user took (IN_UPDATE)

    Greetings, Experts.
    I've been asked to modify an existing BAdI for infotype 0167. The existing code is in method IN_UPDATE.  FYI, we have to use this method (as opposed to, say, AFTER_INPUT) since we have to make sure the user completed the operation as we're modifying data in another infotype based on their action.
    As such, the  logic depends on what the user is doing, i.e., inserting, updating, delimiting or deleting a record. I was testing different scenarios in PA30 to see what the value of IPSPAR-ACTIO would be and got some puzzling results.
    For example, I used the Edit->Copy feature in PA30 to copy and then delimit an existing record and was expecting an ACTIO of "LIS9" (Delimit) but it was "MOD". Similarly, I used the trashcan to remove an existing record and got a "MOD" operation. Finally, I deleted another record the same way (trashcan icon) and this time it was "LIS1" which I found stupefying since that's not even a valid value according to the DDIC for data element ACTIO.
    I can't seem to get a consistent way to determine what the user is doing. What is the best practice?
    Thanks.

    Hi Steve,
    You can  try with IPSYST-IOPER Parameter Which is Showing the Right Values .
    Regards,
    Kishore.S

  • Have situation on a unprotected wireless when accessing I cannot get a router address.  I'm on system 10.6.8 on MacBook Pro summer 2009.  Any thoughts on how to determine what's up?

    Have situation on a unprotected wireless when accessing I cannot get a router address.  I'm on system 10.6.8 on MacBook Pro summer 2009.  Any thoughts on how to determine what's up?

    You have basically verified that the issue is NOT with your MBP, but with this particular Wi-Fi network. Even though it may be unsecured, the provider may have elected to configure it for MAC filtering. In this case I am referring to the MAC (Media Access Control) address and not your Mac laptop itself. If this has been enabled, your Mac would only be able to connect if the Mac's MAC address was added to that filter.

  • How to determine what prevents auto sleep?

    My iMac doesn`t go to sleep automatically, so my question is how to determine what prevents sleep?

    I, too, have just noticed this issue after I left my computer to secure empty trash. I thought my computer would enter sleep mode automatically, but when I returned to my home office to turn in for the night, I found that the computer had been on (with the monitor off) the entire evening. So much for "Energy Saver."
    I have been through as many of the threads covering this issue. I checked to see if there were any apps using the processor. None. I checked "Put the hard drive(s) to sleep when possible." I made sure Internet Sharing was unchecked. I even unchecked Bluetooth sharing or anything that would require some type of network or internet connection. Despite all this, the computer still does not go to sleep on it's own.
    I have just upgraded to Lion 10.7.3 on my iMac 2.4 Ghz Intel Core 2 Duo so this is definitely a continuing problem which has not been addressed since older theads dealing with early versions of Lion.
    Let's hope Mountain Lion will fix this.

  • How to determine what Index is required by a query ?

    Hi all,
    In our application, we create some complex View with complex query.
    The question is : How to determine what Index is required by the query ?
    I try using SQL Tuning Advisor, but it seems I can only use it After running TOP SQL.
    Is there aniway to determine the Index even Before the query under heavy load/ top sql ?
    Thank you very much,
    xtanto

    You can run your explain plan to check the table access path. You can create an index and see if the optimizer is using the index. Then compare the costs. Creating index will help only in some occassion and you need to provide complete details of the requirement to come to a conclusion of which type of INDEX as well. In some occassions, B*Tree index is useful, in few DW applications, bitmap will work efficiently with columns of low cardinality.
    So it is again the task for you to look into this.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/toc.htm
    Cheers
    Sarma.

  • I am trying to re-install Photoshop CS6. The files have downloaded but I get and error message that the Adobe Support Advisor is required to determine what the installation probIem is. I click on the link that says "get the Support Advisor here only to be

    I am trying to re-install Photoshop CS6. The files have downloaded but I get and error message that the Adobe Support Advisor is required to determine what the installation probIem is. I click on the link that says "get the Support Advisor here only to be told the Support Advisor no longer exists!! A blind loop. I need to have Photoshop CS6 installed...what do I do from here??

    The CC Cleaner Tool assumes the Akamai Download Manager is activated and it has not. It seems to be the missing file that triggers the error message. \in a previous re-install I was prompted to download & install the Akamai Download Manger, but not this time. Is there somewhere on the Adobe website that I can download it??

  • How to determine that the user/ pernr is comp cord?

    Hi,
    In tcode pa30 i see there is Comp Cord field. so these are the HR persons right which use the three digits numbers.
    So my question is how to determine that the user/ pernr is comp cord?
    I want to create the fm and pass user id as import and want to find out where this user is belongs to comp coordinator or not.
    i do see some entry in the T526 table but not sure, how it work.
    Regards
    Ali

    hi ali,
    SACHX is the field you are looking for ..
    regards
    Manthan Raja

  • Icloud has has exclamation but I don't know how to tell what the error is?  I recently selected bookmarks for syncing.

    icloud has has exclamation but I don't know how to tell what the error is?  I recently selected bookmarks for syncing.

    TM will show it has done a backup.. Look at the info.. when was the backup completed??
    If you want more details install the widget.
    A1 here.
    http://pondini.org/TM/Troubleshooting.html
    The time capsule though blinks amber and the Airport Utility shows blinking amber light and has a red circle with the number 1 in it.
    There is an error.. probably trivial.. firmware update, default password..
    Open the airport utility and find out what the error is.
    Simply click the TC and see status in the summary page.. it will list all the errors and what you should do.. fix or ignore them. ie this TC has an error.. default password.. I chose to ignore.. when I "fix" the problem the LED goes green.
    Here is additional TC.. it is blinking amber with faults.
    Click the fault. eg default password.
    You can ignore or edit .. if you click edit it will take you to the full setup where you can change the settings.
    I ignored my errors and now it is green..

  • What's an easy way to determine what the user typed is a date object?

    What's an easy way to determine what the user typed is a date
    object?
    Thanks!

    Thanks for trying. Sorry for not being clear. but I figured
    it out.
    the user can type in a date, or a name to search. The format
    they type in date has to be in mm/dd/yyyy.
    I was able to use:
    if (new Date(textEntered).toString()=="Invalid Date") {
    // not a date entered
    else {
    // a date is entered
    To do what I need to do.
    Thanks.

Maybe you are looking for