CUSTOM ROW FETCH USING PLSQL BLOCK DOESN'T WORK

Hello,
I'm using Apex 3.0, and I'm trying to use a anonymous block to populate page items instead of automatic row fetch. Apparently the block works fine but the page doesn't display the items with the values that I fetched.
I'm using something like:
Declare
v_test varchar2(10);
begin
select name into v_test from emp where emp_no=:p10_id;
:p10_name:=v_test;
end;
Does anyone have a clue ? The process is defined to run on "OnLoad - After header", but I've tried other options, but the results are the same: P10_name appears blank.
thank you for your help
JAV

But there is a catch.....on the item definition, the "SOURCE USED" must be set to "Only when current value in session is null", otherwise, it doesn't show what you want.
Cheers
JAV

Similar Messages

  • I seem to have multiple problems related or unrelated.  I cannot use Apple Mail for blueyonder and mostly for gmail as both show that the server is off line.  My pop up blocker doesn't work and I am blitzed with pop up windows on nearly every command

    Firstly I am unable to use Apple mail except for hotmail, for blueyonder, gmail or Sky as the server shows as (off line) and I have no idea how to get them on line even though I tell them to go there. 
    My pop up blocker doesn't work and I am blitzed with advertising windows virtually on ever command I make, one seems to be impossible to unsubscribe from. 
    When I am in an email with a web link the web link doesn't work and I get a window saying that I must have a pop up blocker, but if I switch it off it is no different, what does work is switching the "enable Java script off", then when I get to the web site I can't use it until I switch the java script back on.
    I can't do a screen shot either full or partial, when I try it changes the web site that is on screen to another.
    So what have I done that might have caused problems, downloading Yosemite seemed to be the start of the problems.  Since then I have started to install Mackeeper, after checking with a family members who should know, that MacPaw is safe.  I decided that I didn't want to pay the subscription, so went through the uninstall instructions but it comes up as a pop up with considerable regularity.
    My stress levels have gone through the roof with pop ups happening so regularly and not being able to use Apple mail.o can anyone help please?
    S

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • [SOLVED]Custom DSDT not loading - OEM battery doesn't work - Sony Vaio

    EDITING ORIGINAL POST TO POST SOLUTION so I don't do a massive bump
    Installed windows and ran the BIOS flasher that came with the battery. Didn't work until I changed a line in the plaintext configuration file (config.ini or something) it comes with. Changed "Capacity: 20" to "Capacity: -10". This changed the battery charge requirement from 20% to negative ten percent (any negative number will do), allowing the program to run and flash the BIOS. Didn't realize I could do that, but it fixed  the problem 100%.
    #### BEGIN ORIGINAL POST: ################################
    Hey guys,
    I'm a bit of a linux noob, but I've spent many hours this week trying to fix this issue on my own and have learned a lot about making custom kernels, hardware stuff, ACPI, and ABS. However, nothing I've done has worked and I've hit a wall. For reference, I'm on a Sony Vaio VGN-FZ4000 with linux-3.0 base kernel, gnome3/gdm. The battery is made in china and doesn't list a manufacturer, just model number BPS8, 52000mAh.
    [Backstory]
    So I recently got an OEM battery to replace the broken original, which hasn't worked since before I installed arch (though it worked with an Arch install I did a couple years ago). When I first plugged it in, the gnome battery symbol popped up listing the battery at 0% with an exclamation icon. I unplugged from AC power and the laptop still ran, but the battery monitor just said it was at 0% and 'Estimating' remaining time. I figured this was a glitch with gnome or just because it was this battery's first cycle so I let it run down until it hard-crashed. Then I plugged back into AC and tried to turn on the computer, but it wouldn't do anything until I removed the battery.
    Looking into the problem I discovered this was due to the ACPI firmware table DSDT being compiled for Windows, which has, shall we say, fewer restrictions on sanity than the Intel ASL compiler used for UNIX systems. Sure enough I extracted /sys/firmware/acpi/tables/DSDT to find that its section about the battery contained the entry 'Zero' for Battery Technology, which translates to "non-rechargeable", rather than 'One', which makes it chargeable. acpitool confirmed this; my system thought the battery was non-rechargeable and was constantly discharging it. Needless to say I've only been putting it in temporarily to test solutions since.
    [/backstory]
    [tl;dr] DSDT firmware contains malformed battery description, now I can't get my system to run with a custom DSDT. [/tl;dr]
    Attempted solutions:
    [1]
    Extract, modify, recompile DSDT and include it with the kernel compilation .config options
    CONIFG_ACPI_CUSTOM_DSDT=y
    CONFIG_ACPI_CUSTOM_DSDT_FILE="/usr/src/custom_dsdt.hex
    CONIFG_STANDALONE=n
    as suggested here, a page linked to by the arch wiki page on DSDT.
    I followed the instructions but no matter what this has generated errors during the kernel compilation, sometimes due to every line containing unexpected \231 (or other numbers) characters, sometimes finding some error in the DSDT file and then claiming that the driver it was compiling (ol.c somewhere in the drivers/acpi section I believe) had references to undefined functions all over the place. I CANNOT compile with a custom DSDT specified.
    [2]
    Place recompiled DSDT in /lib/initcpio/custom.dsdt and add 'dsdt' to the HOOKS in mkinitcpio (and rebuild the initramfs-linux-*.img, of course). Another version of this included recompiling the kernel with CONFIG_STANDALONE disabled.
    In neither of these situations has the running DSDT ever been anything but the BIOS-supplied one and not once has the battery shown any different behavior.
    acpitool and $ cat /proc/acpi/battery/BAT0/info have consistently claimed the information specified in the BIOS-supplied DSDT; the battery is non-rechargeable and is discharging at an unknown rate. Sometimes acpi will even report that the battery has zero capacity.
    The arch wiki does say mkinitcpio doesn't support the dsdt hook as of 2.6.30, but [1] didn't work either and mkinitcpio -H dsdt still told me to try this so I did.
    [3]
    The final solution I have tried has been to do [2] but to recompile the kernel with the legacy support for battery and ac adapter stuff disabled. I tried this because it was suggested in the kernel.log;
    Sep  13 11:51:03 localhost kernel: [   11.740059] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
    Sep  13 11:51:03 localhost kernel: [   11.753434] ACPI: AC Adapter [ADP1] (on-line)
    The corresponding line now reads
    ACPI: AC Adapter [ADP1] (on-line)
    (The same goes for the battery BAT0)
    but all this does is remove the battery/ and adp1/ folders from /proc/acpi/ and break acpitool functionality. The log still doesn't mention the dsdt hook, either.
    [4]
    The old way to do this was to use the acpi-dsdt-initrd-patch-* patch, but that hasn't been updated for modern kernels, presumably because of the new "functionality" from mkiniticpio. The current kernel .config doesn't include any options for ACPI initrd/initramfs support or reading a DSDT from initramfs, which is the functionality provided by this patch.
    This covers all the methods I've been able to find on the internet and I'm at a loss for what to do. Am I doing something wrong in [1]? Under what conditions will the compiler fail/succeed with a CONFIG_ACPI_CUSTOM_DSDT_FILE?
    When I recompile I fix the 'Zero' definition and a couple compiler errors and warnings. The errors come from section length definitions, which read as 0x00000000 rather than the appropriate max-min value so I fix those, and the warnings come from _T_* methods belonging to the compiler, so I refactor the code to remove the initial underscores. The last warning comes from an isolated And statement that's within brackets (compiler complains it doesn't do anything), but if I remove that the compiler fails hard.
    Thanks to anyone who's read this far.  Please let me know if you have any ideas how to get my system to use a customized DSDT.
    Last edited by paraffin (2011-09-29 23:20:30)

    Thanks for the offer, Radioactive man However, I'm actually compiling a customized kernel with the linux-ck and -sony patches, so your packages won't help. (The custom kernel works fine and I've tested this battery behavior on the the regular, -ck, and -sony kernels as well)
    Anyway, so I tried another compile with
    CONFIG_PREVENT_FIRMWARE_BUILD=n in addition to the options listed in [1] and that time it compiled.
    Unfortunately it still didn't load the DSDT!
    I did catch a quick little error message that turned up in kernel.log though;
    /var/log/kernel.log:Sep 15 11:50:24 localhost kernel: [    0.925780] acerhdf: unknown (unsupported) BIOS version Sony Corporation/VGN-FZ4000E/R2110J7, please report, aborting!
    acerhdf is a fan controller module for the Aspire One, and perhaps I left that in the kernel config and it's preventing the custom DSDT from loading, even though the acerhdf module never gets loaded itself, nor is it in my rc.conf or anything else... If that was the cause of all this, I'm gonna be angry...
    Anyway, this message does not appear with my latest kernel build because I took off the custom DSDT option, hoping to be able to use ACPI_CUSTOM_METHOD=y, which supposedly allows one to inject a custom AML method into a debug fs. It wouldn't have worked anyway, as it doesn't let you modify Device sections, but even with a dummy method insertion it didn't give my root modification privileges as it was supposed to...
    Will try recompiling AGAIN with this CONFIG_ACERHDF=n (it's simply 'not set' in my current .config), while also enabling the custom kernel etc. If this doesn't work I have no idea what I'll do.
    Anyway, thanks for your help and time:

  • URL blocking doesn't work on E4200

    I have the 1.0.03 firmware installed and URL blocking doesn't work.  I assigned the policy to the entire address range and could still access the web site I wanted to block.

    What website? https or http?
    You can't block https...

  • Custom row-fetch and how to get column values from specific row of report

    Hi -- I have a case where a table's primary key has more than 3 columns. My report on the
    table has links that send the user to a single-row DML form, but of course the automatic
    fetch won't work because 1) I can't set more than 3 item values in the link and 2) the
    auto fetch only handles 2 PK columns.
    1)
    I have written a custom fetch (not sure it's the most elegant, see second question) that is working
    for 3 or few PK columns (it references the 1-3 item values set in the link), but when there are
    more than 3, I don't know how to get the remaining PK column values for the specific row that was
    selected in the report. How can I access that row's report column values? I'll be doing it from the
    form page, not the report page. (I think... unless you have another suggestion.)
    2)
    My custom fetch... I just worked something out on my own, having no idea how this is typically
    done. For each dependent item (database column) in the form, I have a source of PL/SQL
    function that queries the table for the column in question, using the primary key values. It works
    beautifully, though is just a touch slow on my prototype table, which has 21 columns. Is there
    a way to manually construct the fetch statement once for the whole form, and have APEX be smart
    about what items get what
    return values, so that I don't have to write PL/SQL for every item? Because my query data sources
    are sometimes in remote databases, I have to write manual fetch and dml anyway. Just would like
    to streamline the process.
    Thanks,
    Carol

    HI Andy -- Well, I'd love it if this worked, but I'm unsure how to implement it.
    It seems I can't put this process in the results page (the page w/ the link, that has multiple report rows), because the link for the row will completely bypass any after-submit processes, won't it? I've tried this in other conditions; I thought the link went directly to the linked-to page.
    And, from the test of your suggestion that I've tried, it's not working in the form that allows a single row edit. I tried putting this manually-created fetch into a before header process, and it seems to do nothing (even with a hard-coded PK value, just to test it out). In addition, I'm not sure how, from this page, the process could identify the correct PK values from the report page, unless it can know something about the row that was selected by clicking on the link. It could work if all the PK columns in my edit form could be set by the report link, but sometimes I have up to 5 pk columns.
    Maybe part of the problem is something to do with the source type I have for each of the form items. With my first manual fetch process, they were all pl/sql functions. Not sure what would be appropriate if I can somehow do this with a single (page level?) process.
    Maybe I'm making this too hard?
    Thanks,
    Carol

  • Many programs I used to use in Tiger doesn't work in Leopard

    Here are the ones I've noticed have not been working or have errors:
    iMovie
    iChat
    Yahoo Messenger
    Adium
    VisualHub
    There are probably like 10 more but I haven't seen it yet. Why are so many programs are acting like this. I was thinking it was becasuse it wasn't ugpraded enough but I did install the newer version and it doesn't work.

    Well, haven't we had to deal with a slew of updates every two years?
    And at least Vista x64 is probably more secure, supports EFI (UEFI 2.).
    The same people that would need a Mac Pro (dual cpu, 8GB RAM, etc) would be looking at 64-bit.
    Did not Apple tout the G5 from IBM as finally being a 64-bit system? But yes, even Adobe CS3 is still 32-bit and limited to 3.5GB of user space, which there are work arounds for.
    One person I tried to help was using Maya but his version doesn't work with Leopard, and blames Apple and 10.5 it seems, rather than realize he needs to consider an 8-core system rather than 4-core, more memory, make better use of disk and RAID, and of course... upgrade software or... WAIT FOR MAYA AND 10.5.x to catch up to each other!
    People assume you have to wait for SP1 for Windows, but think they should jump rigtht in, when we all have seen that X.3 is usually the first "sweet spot" in any release.

  • Two Finger Scrolling using track pad doesn't work.

    You know how you can drag 2 fingers down the track pad to sroll down a page. Well, it doesn't work for me using Vista through Boot Camp. I tried the update, but it wouldn't install.
    Is this as good as it gets?
    Hypnoguy

    Hypnoguy,
    Sorry I haven't used boot camp for a long time my memory is a little fuzzy. Also note I used it with XP and not Vista, but don't use it at the moment anymore.
    Here is a list of Supported Macs for 64-bit windows: http://support.apple.com/kb/HT1846
    As per your trackpad problems after the drives have been installed I would try to install the update again: http://support.apple.com/kb/HT3336
    Here are the boot camp updates and also may help with errors:
    64 bit: http://support.apple.com/downloads/BootCamp_Update_2_1_for_Windows_Vista64
    32 bit: http://support.apple.com/downloads/BootCamp_Update_2_1_for_Windows_Vista32
    Also I would look in the boot camp system tray tool to see if there are settings related to your function keys.
    Sorry I don't know of a function key that changes the startup volume, I only know of the select from the boot camp system tray (Windows)/Startup disk preference pane (Mac) or the hold option during startup. More on that here http://docs.info.apple.com/article.html?path=Mac/10.5/en/11892.html
    A good place to find a lot of Bootcamp support would be here: http://www.apple.com/support/bootcamp/
    Hope that helps,
    Weston

  • Programmatic security using isCallerInRole(roleName) doesn't work

    Hi,
    I am developing an EJB application on WebAS 6.40 SP16 and try to use declarative and programmatic security combined. I have conducted the following steps to map a UME group to an j2ee ejb role:
    - Mapped a new Security Role (SR_ProductAdmin) to the UME Administrators group using the Visual Administrator(Services/Security Provider/Security Roles).
    - Mapped the Security Role to an EJB Application Security Role in ejb-j2ee-engine.xml
    <ejb-j2ee-engine>
      <security-permission>
        <security-role-map>
          <role-name>ProductAdmin</role-name>
          <server-role-name>SR_ProductAdmin</server-role-name>
        </security-role-map>
      </security-permission>
    </ejb-j2ee-engine>
    - Added the role in ejb-jar.xml/Assembly/security-role
    - Enforced descriptive security in ejb-jar.xml/Assembly/method-permission on my EJB. This works as expected, only members of the administrators group can access the EJB.
    - Added another role mapped to the J2EE Security Role "all" and added it to  ejb-jar.xml/Assembly/method-permission to allow some methods of the EJB to be invoked by everyone, security checking is based on parameters and done programmatically at runtime.
    - I have mapped the ProductAdmin in ejb-jar.xml/Enterprise Beans/session beans/security-role-ref as described in the Developer Studio manual.
    <security-role-ref>
      <role-name>ProductAdminInternal</role-name>
      <role-link>ProductAdmin</role-link>
    </security-role-ref>
    - I should be able to check the role of the caller using the Context.isCallerInRole(String roleName) but it always returns false for roleName="ProductAdminInternal". In the same context I can invoke Context.getCallerPrincipal().getName() and get (correctly) the user name "Administrator".
    Thanks in advance,
    Stefan

    Hi Frank,
    When using the Must value authentication worked but when using the Auth value it didn't.
    Now I've found what the problem was.
    I had to define the users and role in %JDEV_HOME%\j2ee\home\config\system-jazn-data.xml. I had setup my users in several jazn files but this one. It's pretty hard to find in which xml file you have to define users and roles. I don't understand either why switching from Must to Auth makes the authentication using different jazn files...
    Now I have to test in an OC4J standalone instance.
    Thanks,
    Seb.

  • What component Should I use?, Jpanel doesn't work

    Hi
    I need a program that has a window that can go fullscreen and windowed (I did that with a Jframe in fullscreen mode with a jpnale and a 800x600 Jpanel and destroying them with an object that maneges them), I did it with a jframe that contained a Jpanel, I used a Jpanel to avoid the flickering on the screen but I also need to change the font type and the font size, but the setFont on the Jpanel doesn't change the font (as I have realized and also read here [http://forum.java.sun.com/thread.jspa?forumID=257&threadID=150588] ), so I'm lost, I might have to redo the whole thing, but I just wanted to know what component should I use for a window that is going to have custom graphics and need diffrent fonts and diffrent font sizes and work in fullscreen without flickering
    Thank you for your attention, I would aprecciate any help given

    for example:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSlider;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    public class JPanelFont extends JPanel
      private Font font = getFont();
      private String myString = "Fubars Rule";
      private int fontSize = font.getSize();
      private JSlider slider = new JSlider(0, 100, fontSize);
      public JPanelFont()
        setPreferredSize(new Dimension(620, 250));
        setLayout(new BorderLayout());
        JPanel inputPanel = createInputPanel();
        add(inputPanel, BorderLayout.SOUTH);
      private JPanel createInputPanel()
        JPanel ip = new JPanel();
        slider.setMajorTickSpacing(20);
        slider.setMinorTickSpacing(5);
        slider.setPaintTicks(true);
        slider.setPaintLabels(true);
        ip.add(slider);
        slider.addChangeListener(new ChangeListener()
          public void stateChanged(ChangeEvent evt)
            fontSize = (Integer)slider.getValue();
            repaint();
        return ip;
      @Override
      protected void paintComponent(Graphics g)
        Graphics2D g2 = (Graphics2D)g;
        Object originalHint = g2.getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING);
        g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
        super.paintComponent(g2);
        myPaint(g2);
        g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, originalHint);
      private void myPaint(Graphics2D g2)
        font = font.deriveFont(Font.BOLD, fontSize);
        g2.setFont(font);
        g2.drawString(myString, 20, 100);
      private static void createAndShowUI()
        JFrame frame = new JFrame("Dynamic JPanel Font");
        frame.getContentPane().add(new JPanelFont());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args)
        java.awt.EventQueue.invokeLater(new Runnable()
          public void run()
            createAndShowUI();
    }Edited by: Encephalopathic on May 21, 2008 9:18 PM

  • Custom File Name-Original File Number doesn't work. Why?

    I want to export and rename some files with the "Custom File Name-Original File Number" option. Yet this doesn't seem to work, and I wondered what I might be doing wrong. The filename will only rename as the custom text.
    The sample file name shown underneath has a dash after the custom text bit, but then the extension only eg Newname-.tif
    I am now using LR 4.2 but I seem to remember doing this renaming OK with an earlier version (though I can't remember which). This suggest that either there is a problem with this specific version or that I have something set differently to the way I had it initially. I am hoping the latter is the case. Any suggestions as to how to fix this would be welcome!

    I am sorry to report that i don't know how to create a screenshot. However, what I am getting, exact;ly is this:
    From Library grid view: F2 or Library>Rename Photo
    Then little screen appears with heading Rename Photo:
    File Naming> set to Custom Name - Original File Number
    Custom Text> NewFilenameHere
    Example: NewFilenameHere-.tif
    Clicking on OK changes the filename to just the custom text without the original file number. Original File name shows in metadata eg DSC01129-Edit.tif
    The only way i seem to be able to get the original file number with the custom text is to include it manually as part of the custom text.

  • Pop up blocker doesn't work

    Since upgrading to 10.7 the safari pop-up blocker no longer blocks pop ups!
    I've run software update regularly and obviously checked that pop-up blocker is checked in the security preferences.
    What is wrong?
    The most common pop up is googleads.g.doubleclick.net.... and it pops up as frequently as once per minute as a new (active) tab. Twice in the time it's taken me to write this question!!
    Please help as applecare doesn't seem to be valid for expresslane in Sweden.

    I had a similar problem on unsafe web sites with Safari...The google AdSense is not so pop up proof as it seams.
    The best thing is to use another navigator as Opera which really blocks the pop ups on nearly all the web sites.
    I keep using safari for its reader option that i suppose will soon be on Firefox as it's the best that new Safari has for a long time ago!

  • Help. iPhone 5, calendar sync issues using Outlook. Doesn't work. Does any kind soul have a solution

    At my wits end. iPhone 5, OS 7.1.1, using Outlook as mail, contacts and calendar but unable to find a solution to sync everything. I have my own domain and use a small ISP. It's not an Exchange server account. I've trawled countless forums but to no avail. Can anyone help? Steve. 

    Mavericks doesn't sync contacts or calendar via iTunes anymore. Apple removed 'sync services' so Outlook doesn't have the sync engine to move data between iOS & the Mac. It will still work on iTunes 11 on earlier OS X's.
    On 10.9 you can either use iCloud, setup your own contacts & calendar server (OS X server, Biakal, Owncloud & many others) or you can find another online service to use to sync data, like Google apps.
    There is a 200 page thread on the issue…
    https://discussions.apple.com/thread/5460803?start=0&tstart=0
    There is also a user tip on how to setup Baikal…
    Hosting your own CalDAV and CardDAV server using Baïkal Server
    You should also look for apps that may help like SyncMate http://www.eltima.com or maybe missing sync? http://www.markspace.com/
    <Edited by Host>

  • MERGE using nested table doesn't work on Oracle 9i

    Hi,
    Oracle 9i Enterprise Edition Release 9.2.0.4.0 on Red hat Linux
    SQL> create table PERSONS (
      2    ID  number(9)
      3   ,SURNAME  varchar2(50)
      4   ,constraint PERSONS_PK primary key (ID)
      5  );
    Table created.
    SQL> create or replace type T_NUMBER_ARRAY as table of number;
      2  /
    Type created.
    SQL> create or replace procedure P_MRGTS2 (P_ID  PERSONS.ID%type)
      2  is
      3    L_IDS  T_NUMBER_ARRAY;
      4  begin
      5    L_IDS := T_NUMBER_ARRAY(P_ID);
      6    merge into PERSONS P using (select * from table(L_IDS)) D on (
      7      P.ID = D.COLUMN_VALUE
      8    )
      9    when matched then update
    10      set SURNAME = 'Updated'
    11    when not matched then
    12      insert (
    13        ID
    14       ,SURNAME
    15      )
    16      values (
    17        D.COLUMN_VALUE
    18       ,'Inserted'
    19      );
    20  end;
    21  /
    Procedure created.
    SQL> exec P_MRGTS2(1)
    BEGIN P_MRGTS2(1,'Avi'); END;
    ERROR at line 1:
    ORA-22905: cannot access rows from a non-nested table item
    ORA-06512: at "OPS$AABRAMI.P_MRGTS2", line 9
    ORA-06512: at line 1However, the same code on Oracle 10g Release 10.2.0.1.0 on SUN Solaris 9 works.
    Is there any way to make it work on Oracle 9i?
    One way I found is the following:
    procedure P_MRGTST (P_ID  PERSONS.ID%type)
    is
      L_IDS  T_NUMBER_ARRAY;
    begin
      L_IDS := T_NUMBER_ARRAY(P_ID);
      forall I in L_IDS.first..L_IDS.last
        merge into PERSONS P using DUAL D on (
          P.ID = L_IDS(I)
        when matched then update
          set SURNAME = 'Updated'
        when not matched then
          insert (
            ID
           ,SURNAME
          values (
            L_IDS(I)
           ,'Inserted'
    end;On Oracle 10g there is negligible difference in time taken to execute both procedures, as displayed in SQL*Plus when issuing:
    set timing onIs there something that makes one of the procedures preferrable over the other?
    Thanks,
    Avi.

    Is there any way to make it work on Oracle 9i?
    michaels>  select * from v$version
    BANNER                                                         
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production                          
    CORE     9.2.0.8.0     Production                                      
    TNS for HPUX: Version 9.2.0.8.0 - Production                   
    NLSRTL Version 9.2.0.8.0 - Production                          
    michaels>  create table persons (
        id  number(9)
           ,surname  varchar2(50)
              ,constraint persons_pk primary key (id)    )
    Table created.
    michaels>  create or replace type t_number_array as table of number;
    Type created.
    michaels>  create or replace procedure p_mrgts2 (p_id persons.id%type)
    is
       l_ids   t_number_array;
    begin
       l_ids := t_number_array (p_id);
       merge into persons p
          using (select * from table (cast (l_ids as t_number_array))) d
          on (p.id = d.column_value)
          when matched then
             update set surname = 'Updated'
          when not matched then
             insert (id, surname) values (d.column_value, 'Inserted');
    end p_mrgts2;
    Procedure created.
    michaels>  exec p_mrgts2(1)
    PL/SQL procedure successfully completed.
    michaels>  select * from persons
            ID SURNAME                                          
             1 Inserted                                         
    1 row selected.

  • IPad to tv using av cable doesn't work since update

    II've used a av cable to connect iPad to tv via hdmi to watch you tube etc but since os update it says not compatible when I plug into the iPad and doesn't work

    You need to get a new cable.  Suggest you try out the cable in the store before buying.  Do not know if any third party cables work.  Goto apple store and buy new cable.  Try in store.  Older apple cables do not work either. 
    This problems has come up with 8.x.
    Robert

  • [SOLVED] Remapping keys using udev hwdb doesn't work on rightAlt

    hi, I had posted this topic in the [ newbie corner ] subforum for days, but got no repliy. I hope I can find luck  here.
    I'm trying to use udev hwdb for swapping pairs of keys ( esc, caps_lock ) and ( rightAlt , rightCtrl ) . I followed the instruction here Map Scancodes to Keycodes   with procedures describe blow. I only succeed in exchanging pair (esc, caps_lock) but failed in (rightAlt, rightCtrl).
    Details of Procedures:
    Create an empty file under /usr/lib64/udev/hwdb.d with file name 90-custom-keys.hwdb . Add the following lines into this file.
    keyboard:dmi:bvn*:bvr*:bd*:svnDell*:pn*
    KEYBOARD_KEY_01=capslock
    KEYBOARD_KEY_3a=esc
    KEYBOARD_KEY_e038=rightctrl
    KEYBOARD_KEY_e01d=rightalt
    Rebuilding hwdb.bin
    udevadm hwdb --update
    Testing and reboot my system
    udevadm --debug test /devices/platform/i8042/serio0/input/input0/event0
    udevadm --debug test-builtin keyboard /devices/platform/i8042/serio0/input/input0/event0
    Parts of the testing result of the last command looks like
    device 0x1ce3890 has devpath '/devices/platform/i8042/serio0/input/input0/event0'
    device 0x1ce3890 filled with db file data
    keyboard: mapping scan code 1 (0x1) to key code 58 (0x3a)
    keyboard: mapping scan code 58 (0x3a) to key code 1 (0x1)
    keyboard: mapping scan code 129 (0x81) to key code 164 (0xa4)
    keyboard: mapping scan code 130 (0x82) to key code 166 (0xa6)
    keyboard: mapping scan code 164 (0xa4) to key code 166 (0xa6)
    keyboard: mapping scan code 216 (0xd8) to key code 152 (0x98)
    keyboard: mapping scan code 217 (0xd9) to key code 191 (0xbf)
    keyboard: mapping scan code 57373 (0xe01d) to key code 100 (0x64)
    Error calling EVIOCSKEYCODE: Invalid argument
    keyboard: mapping scan code 57400 (0xe038) to key code 97 (0x61)
    Error calling EVIOCSKEYCODE: Invalid argument
    keyboard: mapping scan code 237 (0xed) to key code 226 (0xe2)
    unload module index
    Thie last 6 lines seems to be complaining the  problem, saying that 0xe038  and 0xe01d are invalid scancodes.
    But they are scancodes of rightAlt and rightCtrl respectively, which I got from
    showkey -s
    After rebooting the system with the above settings, esc works as caps_lock and caps_lock works as  esc but  rightAlt and rightCtrl has no changes.
    Last edited by kejingzhang (2013-10-10 02:32:29)

    Thanks plam and Raynman for your help . Follow your hints, I succeed the swapping key task in an alternative method.
    Using the command 'setkeycodes' and adding these commands into a systemd controlled service script, keymaps are exchanged as gdm started.
    Here is my script and steps for doing this.
    Created a file with filename custom-keys.service under /etc/systemd/system. Add the  following context to the file.
    [Unit]
    Description=Keymap Custom
    Requires=gdm.service
    After=gdm.service
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/setkeycodes 1 58
    ExecStart=/usr/bin/setkeycodes 3a 1
    ExecStart=/usr/bin/setkeycodes e01d 100
    ExecStart=/usr/bin/setkeycodes e038 97
    [Install]
    WantedBy=graphical.target
    Enable the script so setkeycodes commands will automatically executed when gdm starts
    systemctl enable custom-keys
    The next time you reboot your system, key changes will take effect. To test if your config works, try
    systemctl start custom-keys

Maybe you are looking for

  • Appropriation Request: Status 'In process' after all approvals (IMA11)

    Hello, We are using IMA11 and associated workflow tasks to create and approve a appropriation request. Occasionally, the status of the appropriation request wouldn't change to 'Approved' even after all the approvals. When we look at the corresponding

  • HP Stream 7-Windows 10 doesn't boot, I can't recovery 8.1 because can't boot from USB-HELP please!!

    Hi everybody, I'm new here! I am (scuse me: WAS) enjoying a Stream 7 Some days ago I tried to install Windows 10 TP upgrading 8.1 with Bing. After some waiting time it succeeded, but unfortunately I forgave to put in the tablet's SSD the hp drivers,

  • +/- buttons stopped working in Project 2010

    I'm running Project Pro 2010 on a Windows 7 laptop, but not connected to a server. This morning when I came in an opened up my project I couldn't show subtasks in my project by clicking on the + sign in front of the summary task. The cursor was a out

  • IWeb CPU usage, fix that worked for me

    On my MacBook Pro having iWeb open and idling with my relatively simple site would cause my CPU usage to hover between 35% and 50%. Pretty disconcerting since I have a 2.66 i7 model and 8 gigs of RAM. Some pages on my blog have a decent amount of tex

  • POOR QUALITY SPEAKERS

    Have you noticed that the speakers installed by Apple in each MBP has poor quality in terms of crisp sound output? and even if you adjust the volume, you only get as much that you need to have your ears closer to your unit for you to hear clearly and