Re: Decode issue

Hi,
My following statement does not return anything. Can someone help me to find my mistake pl?
l_level is a varchar2(2) variable. It holds value '3'.
SELECT value
FROM tab_value
WHERE TRIM(pcode) = DECODE(TRIM(l_level), '1', '031', TRIM(l_level), '2', '032',
          TRIM(l_level), '3', '033', TRIM(l_level), '4', '034');
Thanks

SELECT value
FROM tab_value
WHERE TRIM(pcode) = case TRIM(l_level) when '1' then '031' when '2' then '032' when '3' then '033' when '4' then '034' end;
or
SELECT value
FROM tab_value
WHERE TRIM(pcode) = decode(TRIM(l_level), '1' , '031', '2', '032', '3', '033', '4', '034');

Similar Messages

  • Oracle 11g decode issue with null

    Hi,
    we want to migrate from Oracle 10g to Oracle 11g and have an issue with decode.
    The database has the following character set settings:
    NLS_CHARACTERSET = AL32UTF8 in Oracle 11g and UTF8 in Oracle 10g
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    If I try a select with decode which has null as first result argument I will get a wrong value.
    select decode(id, null, null, name) from tab1;
    ("name" is a NVARCHAR2 field. Table tab1 has only one entry and "id" is not null.)
    This select returns a value with characters which are splitted by 0 bytes.
    In Oracle 10g the value without 0 bytes is delivered.
    If I suround the decode with dump I get following results:
    select dump(decode(id, null, null, name), 1016) from tab1;
    Oracle 10g: Typ=1 Len=6 CharacterSet=AL32UTF8: 4d,61,72,74,69,6e
    Oracle 11g: Typ=1 Len=12 CharacterSet=US7ASCII: 0,4d,0,61,0,72,0,74,0,69,0,6e
    NLS_LANG has no effect on the character set of 'null' in Oracle 11g.
    Non null literals work:
    select dump(decode(id, null, 'T', name), 1016) from tab1;
    Oracle 10g: Typ=1 Len=6 CharacterSet=UTF8: 4d,61,72,74,69,6e
    Oracle 11g: Typ=1 Len=6 CharacterSet=AL32UTF8: 4d,61,72,74,69,6e
    select dump(decode(id, null, N'T', name), 1016) from tab1;
    Oracle 10g: Typ=1 Len=12 CharacterSet=AL16UTF16: 0,4d,0,61,0,72,0,74,0,69,0,6e
    Oracle 11g: Typ=1 Len=12 CharacterSet=AL16UTF16: 0,4d,0,61,0,72,0,74,0,69,0,6e
    Here the scripts for creating the table and the entry:
    create table tab1 (
    id NUMBER(3),
    name NVARCHAR2(10)
    insert into tab1 (id, name) values (1, N'Martin');
    commit;
    Is it possible to change the character set?
    Could you please help me?
    Regards
    Martin

    This doesn't have the problem.looks this doesn't solve the problem (of returning a value with characters which are splitted by 0 bytes):
    SQL> select * from v$version where rownum = 1
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production         
    1 row selected.
    SQL> select dump(decode(id, null, null, name), 1016) from tab1
    union all
    select dump(case id when null then null else name end, 1016) cs from tab1
    DUMP(DECODE(ID,NULL,NULL,NAME),1016)                                           
    Typ=1 Len=12 CharacterSet=US7ASCII: 0,4d,0,61,0,72,0,74,0,69,0,6e              
    Typ=1 Len=12 CharacterSet=AL16UTF16: 0,4d,0,61,0,72,0,74,0,69,0,6e             
    2 rows selected.You need to explicitly convert the third parameter to char:
    SQL> select dump(decode(id, null, to_char(null), name), 1016) from tab1
    DUMP(DECODE(ID,NULL,TO_CHAR(NULL),NAME),1016)                                  
    Typ=1 Len=6 CharacterSet=WE8MSWIN1252: 4d,61,72,74,69,6e                       
    1 row selected.

  • Decode  issues

    hey,
    i am working with Oracle 8.1.7.
    I need to replace the following Statement with Decode.
    CASE WHEN(
         (PENDATPROC >= TO_DATE('','dd/mm/yyyy hh24:mi:ss')
         AND PENDATPROC <= TO_DATE('','dd/mm/yyyy hh24:mi:ss')
         AND (REJECTBYPROC IS NULL OR REJECTBYPROC > TO_DATE('','dd/mm/yyyy hh24:mi:ss'))
         AND (ACCEPTED IS NULL OR ACCEPTED > TO_DATE('','dd/mm/yyyy hh24:mi:ss'))
    ) THEN 1 ELSE NULL END
    Please advice!!!
    Thanks
    Cheers
    Ramkannan.A

    Hi,
    Don't use DECODE for that; use the CASE expression you already have.
    The way to do inequality comparisons in DECODE is to use the SIGN function; and doing multiple tests, that can be done with AND in a CASE expression, require nested DECODE expressions. It's very tedious to write, and difficult to maintain. Believe me, you do not want to use DECODE for this.
    In Oracle 8.0 and earlier (that is, before CASE expressions were introduced) the way to test if pedatproc was between d1 and d2 inclusive (where d1 is less than d2) was:
    DECODE ( SIGN ( ROUND ( ( (pendatprod - d1)
                   / ( (d2 - d1) + (1 / (24 * 60 * 60)) )
                    / 2
            , 0          -- means d1 < pendatprod < d2
         , DECODE ( ... --
         )If you really had to use DECODE to do this in a recent version of Oracle, you might make it somewhat simpler using scalar sub-queries, which were also not available in Oracle 8.0.
    But I repeat, the fact that you can do something doesn't mean you should do it. CASE is a much better tool than DECODE for this job, so why use DECODE?
    By the way, what is the first argument in
    TO_DATE ('', 'dd/mm/yyyy hh24:mi:ss') ?

  • Slideshow Decoder issue

    I've seen a few people having this problem but haven't seen a solution that works. Spece/tech details are...
    Windows 8 Pro 64Bit
    32Gb Ram
    1TB+ free space
    Intel I7 3820CPU
    Nvidia GTX 560Ti GPU
    Master Suite CS6
    All Software/OS updates applied.
    I am trying to make a DVD slideshow.  I used the Photoshop actions to resize save as TIFF's all images as well using the actions to remove the flicker.
    When I try to use the "Import As/Slideshow" fucntion in Encore I get the attached dialog box.  I have created a standard  Encore  project using only default settings.  I have re-run all alctions and created new Encore projects, same result every time.
    I have installed quicktime/VLC/Codec Pak to ensure the the H 264 codec is installed and working, it is.
    I stall get this problem, and Encore refuses to import any of my files.
    Any help would be great.

    I work with 16-bit Images too, and Scale to match my Project (am always doing this in PrPro, but it's the same). I always include a line in my Action to change the Bit-Depth to 8-bit, before doing the Save_As.
    It would be the same, if I was working with CMYK Images (only do those for delivery to a printer), in that I would have a line in the Action to change Color Mode to RGB.
    Glad that you found the issue and good luck,
    Hunt

  • A Decode Issue

    Ok I am trying to do a correlated update, something like this
    update location a
    set a.pri_lcoation_id = ( select <...>
    If do this is an procedure it is quite doable, however I thought I will try it in a single update. So I was curious to know if I can do something like this:
    select decode( a.pri_location <> b.location, 1 , 0 ) from tables
    bottom line can you do companrisions in a decode statement.
    Thank's
    Sameer

    select decode( a.pri_location <> b.location, 1 , 0 ) from tables SELECT DECODE(a.pri_location,b.location,0,1)
    FROM tables.
    If a.pri_location = b.location, it will return 0 else 1.
    You can use CASE also.
    HTH,
    AS

  • Encode, Decode issue

    Hi, Guys
    I have met a strange problem.Please help me.
    I access a web service server in EU via axis.
    I am in Canada.
    (also create Java file via web service xml file).
    I get a string from web service, if I print it out via
    System.out.println, It looks pretty good.
    Since I also want to transfer this string to Mobile device.
    I want to change it to byte. The problem is:
    When I use String.getBytes(), it add some strange character
    to the head and end, for example:
    if System.out.println, it looks "London St"
    if I use string.getBytes(), the byte[] looks like "&&London St&&"
    if I use string.getBytes("UTF-8"), it looks like "%%%London St%%%"
    I have checked their demo, the xml encode is UTF-8.
    what is the problem?
    My platform is: windows 2000, I don't know web service platform.
    My developer is JDeveloper10g, even if I deploy jar to Tomcat,
    It still gives me same result.
    Any suggestion would be great accepted.

    Hi Guys,
    I have tried and take look at the source again.
    First answer for malcolmmc
    >>Are you using a proper XML reader?
    since the webservice Java class are extended from apache AXIS.
    and create a call extended from java.xml.xxxxx
    so I assume that this is java standard xmlreader.
    it should be good.
    Second answer AjaySingh516
    do it youself and let me know the result.
    byte[] data = string.getBytes();
    String temp = new String(data, 0, data.length)I have tried it, and the result is no.
    since when calling the string.getbytes(),
    it will return the byte that contains extoic character.
    so when calling data.length, it will calculate the extoic character.
    Thanks guys.
    Anything that I can try

  • Error encountered while BER decoding Digital Signatures

    Hello -
    I work for a GOV agency and we use Common Access Cards/Smart Cards to login to our PC's and we subsequently use them to digitally sign PDF documents.
    We have just recently switched to Adobe Acrobat 9.x Pro.  Before this, we had Adobe 7.x Pro and had no troubles digitally signing documents, clearing those digital signature to reuse old documents, etc.
    We first got Acrobat 9.x and had issues with digital signatures right away.  We had to import this into the registry, which I believe I found on adobe forum.
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\Security\cASPKI\cASPKI\cCustomCertPrefs\c4974BB0C5EBA7AFE0254EF7BA0C695C60980 7096]
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\Security\cASPKI\cASPKI\cCustomCertPrefs\c4974BB0C5EBA7AFE0254EF7BA0C695C60980 7096\cAdobe_OCSPRevChecker]
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\Security\cASPKI\cASPKI\cCustomCertPrefs\c4974BB0C5EBA7AFE0254EF7BA0C695C60980 7096\cAdobe_OCSPRevChecker\cURL]
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\Security\cASPKI\cASPKI\cCustomCertPrefs\c4974BB0C5EBA7AFE0254EF7BA0C695C60980 7096\cAdobe_OCSPRevChecker\cURL\c0]
    "sValue"=hex:68,74,74,70,3a,2f,2f,6f,63,73,70,2e,64,69,73,61,2e,6d,69,6c,00
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\Security\cASPKI\cASPKI\cCustomCertPrefs\c4974BB0C5EBA7AFE0254EF7BA0C695C60980 7096\cAdobe_OCSPRevChecker\cURLToConsult]
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\Security\cASPKI\cASPKI\cCustomCertPrefs\c4974BB0C5EBA7AFE0254EF7BA0C695C60980 7096\cAdobe_OCSPRevChecker\cURLToConsult\c0]
    "iValue"=dword:00000001
    Lately we've had trouble verifying signatures.  Once we sign a document and then click the signature, we get the attached error.
    Error during signature verification
    Error encountered while validating
    Error encountered while BER decoding
    When we started to notice this we were on Acrobat 9.2.  I think we may have went from 9.0 to 9.1.3 and then to 9.2 pretty quick.  I removed it and installed our base load of Acrobat 9.0 and everything was working fine.  I then updated to 9.1, 9.1.1, 9.1.2, 9.1.3 and none of them worked or fixed the issue.  We have recently approved the update to 9.3, but that didn't fix it either.  Because of this BER decoding issue, we cannot right click the signature field and clear a signature as well.  Even after updates I could clear a signature field signed under Adobe 9.0.
    Adobe, what should I do?  Do we have a problem elsewhere, outside of Acrobat?
    Again, we use smart card's to sign the documents, thus cannot change certificates.
    Thanks,  Nick

    Hi Nick,
    When you mentioned that upgrading to 9.3 didn't fix the problem, did you mean when creating a new signature in Acrobat/Reader 9.3 or did you mean opening a previously signed file and doing the signature verification?
    If you meant the later, no version of Acrobat will be able to decode the signature if it was created incorrectly, which is what I fear you are referring to. What happened was Acrobat 9.0 changed the default digest method from the older SHA-1 to the the new SHA-256, but if the device that encrypts the digest (the actual signing operation) cannot handle the larger digest Acrobat is supposed to fall back to the older, smaller SHA-1 digest. There was a bug where Acrobat wasn't re-computing the digest if the smart card couldn't handle SHA-256 and creating a corrupt signature. Once this corrupt signature is written out to the PDF file there is no getting around it. Update 9.3 fixes the problem at signature creation and you should be able to successfully sign using your CAC card, but sadly there is no fixing the existing corrupt signatures.
    Steve

  • Issues with russian language translation in ADF application

    While testing the Russian translations, we are running into an issue . Basically the contents for the Russian translation when accessed from application, look all malformed. Not sure if it is related to character set encoding/decoding issues. We have no issues with German and French language, so the question is, is there anything specific that needs to be taken care for Russian language ?
    Below is the source .properties file, which looks all Russian.
    OK=ОК
    CANCEL=Отмена
    NOTIFICATIONS=Уведомления
    INSTRUMENT_ALERTS=Предупреждающие знаки инструмента
    CONTRACTS_EXPIRING=Контракты с истекающим сроком
    OPEN_REPAIR_SERVICE_ORDERS=Открыть вызов инженера
    NEW_PROMOTIONS=Обновления
    MESSAGES=Сообщения
    NEW_CONNECTIONS=Новые подключения
    SERIAL_NUMBER=Серийный номер
    ORDER_NUMBER=Номер задачи
    MODEL_NUMBER=Номер модели
    DESCRIPTION=Описание
    CONTRACT_NAME=Название контракта
    GINGER_ID_=идентификационный номер \:
    Below is what perforce (versioning system) merges for the above file. If we open this in notepad++ or microsoft word , set the encoding to Cyrillic (KOI8-R), it will show the Russian format as above.
    OK=ïë
    CANCEL=ïÔÍÅÎÁ
    NOTIFICATIONS=õ×ÅÄÏÍÌÅÎÉÑ
    INSTRUMENT_ALERTS=ðÒÅÄÕÐÒÅÖÄÁÀÝÉÅ ÚÎÁËÉ ÉÎÓÔÒÕÍÅÎÔÁ
    CONTRACTS_EXPIRING=ëÏÎÔÒÁËÔÙ Ó ÉÓÔÅËÁÀÝÉÍ ÓÒÏËÏÍ
    OPEN_REPAIR_SERVICE_ORDERS=ïÔËÒÙÔØ ×ÙÚÏ× ÉÎÖÅÎÅÒÁ
    NEW_PROMOTIONS=ïÂÎÏ×ÌÅÎÉÑ
    MESSAGES=óÏÏÂÝÅÎÉÑ
    NEW_CONNECTIONS=îÏ×ÙÅ ÐÏÄËÌÀÞÅÎÉÑ
    SERIAL_NUMBER=óÅÒÉÊÎÙÊ ÎÏÍÅÒ
    ORDER_NUMBER=îÏÍÅÒ ÚÁÄÁÞÉ
    MODEL_NUMBER=îÏÍÅÒ ÍÏÄÅÌÉ
    DESCRIPTION=ïÐÉÓÁÎÉÅ
    CONTRACT_NAME=îÁÚ×ÁÎÉÅ ËÏÎÔÒÁËÔÁ
    GINGER_ID_=ÉÄÅÎÔÉÆÉËÁÃÉÏÎÎÙÊ ÎÏÍÅÒ \:
    And,our portal application ends up showing what is merged in(that is malformed text as opposed to properly decoded russian text) . Looks like while creating the ear file jdeveloper just picks up the encoded characters and does not actually convert it into russian text. We have set our environment to UTF8, and the browser encoding includes the Cyrillic (KOI8-R).
    Any pointers will greatly help.

    Hi,
    It seems the property files are stored somehow with wrong characterset (not UTF-8)
    Have you checked for german umlaut (like ä,ü,ö,...) in your german property files too? Are they ok?
    We had similar issues with the german language a long time ago and as far I can remember it was the encoding setting in jdev preferences:
    Tools --> preferences --> environment --> Encoding should be "UTF-8"
    Project properties --> compiler--> Character Encoding should be "UTF-8"
    If you have to change this setting then you have to edit and save the russian property file again.
    As mentioned in the other post you can use native2ascii (http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/native2ascii.html)
    at the command line to verify the encoding faster than deploying and run the application.
    native2ascii is used also when you build your project in Jdeveloper to convert all the property files.
    regards
    Peter

  • SPDIF-In decoder crackling is

    Hello,
    I have a problem with my X-Fi Platinum and built-in decoder for Dolby Digital signal. I connected my Xbox 360 or my PS3 on it (Optical In), using the bult-in decoder of the soundcard (both on Windows XP and Windows Vista) and when the sound is too loud or with some sounds, there is always a very annoying crackling sound (when there are explosions in Crackdown or in Gran Turismo 5 demo when skidding).
    Is there a way to have this decoding issue fixed or to force use of another decoder than Creative's one in order to stop having this crackling issue ? Maybe by passing SPDIF input to another decoder or filter like AC3Filter, but how ?
    Thanks.

    After reading many posts, it seems that the problem comes from the +4dB gain or the "Complete" option of Dolby Digital decoder. But the gain is not checked and switching from the default "Complete" to "Normal" mode for Dolby doesn't work at all, as if there were no changes, and this in any mode (Entertainment, Games or Music Creation).
    Does anyone have a?solution to force change of these parameters ? I know that the crackling noise appears when the sound is too loud but it's impossible to change input volume when using built-in decoder, which is really a pain.

  • Apple Releases Security Update 2006-004 (PowerPC and Intel)

    From Macfixit................
    Apple has released Security Update 2006-004 for Mac OS X in both PowerPC and Intel versions. This update requires Mac OS X 10.4.7 for either PowerPC or Intel, Mac OS X 10.3.9 or Mac OS X 10.3.9 Server.
    This is the fourth major standalone security update for Mac OS X released this year.
    Update procedure recommendation First, avoid performing any other operations (in Mac OS X or third-party applications) while the update process is occurring. In addition, before installing this security update, make sure all Apple-installed applications and utilities are in their original locations. Moving one of these applications to a different location on your hard drive can lead to an incomplete update. Also, disconnect any FireWire/USB devices before applying the update (except for your startup drive, if it is FireWire or USB, and your keyboard/mouse), then re-connect the devices one by one (checking for issues created by any particular device) after the update process is complete and the system has restarted.
    Enhancements in this release
    Of most interest to general end-users:
    a fix that prevents maliciously crafted Zip archives from causing condition where arbitrary code can be execute. In other words, prior to Security Update 2006-004 you could download a specially crafted file ending in .zip from a Web site or other location, and it could trigger the execution of malicious code.
    a fix that disallows maliciously crafted Canon RAW images from creating a buffer overflow, potentially leading to arbitrary code execution. Prior to Security Update 2006-004, you could download or otherwise receive a Canon RAW file that could allow execution of malicious code on your system.
    similar to the above, a fix that prevents maliciously crafted GIF images from causing an integer overflow, potentially leading to arbitrary code execution.
    new download validation that will catch certain HTML files defined by Safari as "safe" that may actually contain malicious JavaScript code. After applying Security Update 2006-004, these files will not be automatically opened.
    Protection against maliciously crafted HTML documents that can also open the door for arbitrary code execution by accessing deallocated objects.
    A full list of enhancements is as follows:
    AFP Server
    An issue in the AFP server allows search results to include files and folders for which the user performing the search has no access. This may lead to information disclosure if the names themselves are sensitive information. If the permissions of the items allow it, the contents may also be accessible. This update addresses the issue in Mac OS X v10.3.9 by ensuring that search results only include items for which the user is authorized. For Mac OS X v10.4 systems, the issue was addressed in Mac OS X v10.4.7. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9:
    The AFP server contains an integer overflow that can be triggered by an authenticated user. A malicious user with access to the AFP server may be able to cause a denial of service attack or arbitrary code execution with system privileges. The AFP server is not enabled by default on Mac OS X. This update addresses the issue by performing additional validation. Credit to Dino Dai Zovi of Matasano Security for reporting this issue. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7.
    On Mac OS X Server, the AFP server supports reconnection of file sharing sessions after a network outage. The storage of reconnect keys is world-readable. It may be possible for an authenticated local user to read the reconnect keys, use them to impersonate another user over AFP, and access files or folders with the privileges of the impersonated user. This update addresses the issue by protecting the reconnect keys with appropriate file system permissions. This issue only affects Mac OS X Server. Available for: Mac OS X Server v10.3.9, Mac OS X Server v10.4.7.
    An unchecked error condition exists in the AFP server that may lead to a crash. By carefully crafting an invalid AFP request, an attacker may be able to trigger this condition and cause a denial of service. This update addresses the issue by handling the formerly unchecked error condition. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7
    Bluetooth
    The security of the Bluetooth Setup Assistant has been improved in this update for Mac OS X v10.4.7. The length of the automatically generated passkey used for pairing has been increased from six characters to eight characters. Available for: Mac OS X v10.4.7, Mac OS X Server v10.4.7
    Bom
    An issue in Bom's compression state handling may cause heap corruption. By carefully crafting a corrupt Zip archive and persuading a victim to open it, an attacker may be able to trigger this condition which could lead to an application crash or arbitrary code execution. Note that Safari will automatically open archives when "Open `safe' files after downloading" is enabled. This update addresses the issue by properly handling such malformed Zip archives. Credit to Tom Ferris of Security-Protocols.com for reporting this issue. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7.
    DHCP
    A stack buffer overflow exists in bootpd's request processing. By carefully crafting a malicious BOOTP request, a remote attacker may be able to trigger the overflow and cause arbitrary code execution with the privileges of the system. Note that bootpd is not enabled by default in Mac OS X, and must be manually configured in order to be enabled. This update addresses the issue by performing additional bounds checking. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7.
    dyld
    Malicious local system users may specify dynamic linker options that cause output to standard error. This output contains informational content and potentially user-specified content. As a result, privileged applications that parse or reuse standard error may be influenced inappropriately. This update addresses the issue by ignoring the problematic dynamic linker options in privileged applications. Credit to Neil Archibald of Suresec LTD for reporting this issue. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7.
    An improperly handled condition in the dynamic linker may lead to including dangerous paths when searching for libraries to load into privileged applications. As a result, malicious local users may cause the dynamic linker to load and execute arbitrary code with elevated privileges. This update addresses the issue by properly selecting search paths when executing privileged applications. Credit to Neil Archibald of Suresec LTD for reporting this issue. Available for: Mac OS X v10.4.7, Mac OS X Server v10.4.7
    fetchmail
    Several issues in the fetchmail utility were discovered. The most serious issue could lead to arbitrary code execution when fetching mail from a malicious POP3 mail server. All issues are described at the fetchmail website (fetchmail.berlios.de). This update addresses the issues by updating fetchmail to version 6.3.4. In addition, fetchmail is no longer distributed as a privileged utility. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7.
    gunzip
    A race condition may allow a malicious local user to modify the permissions of files owned by another user executing gunzip. This issue is only exploitable when executing gunzip on files in directories that are modifiable by other users. This update addresses the issue by properly handling files while decompressing. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7.
    A directory traversal vulnerability is present in the command line utility gunzip when it is used with the non-default "-N" option. By carefully crafting a malicious compressed file and persuading a user to open it with "gunzip -N", an attacker may replace or create arbitrary files with the privileges of the victim. This update addresses the issue by properly stripping paths from files when decompressing. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7
    Image RAW
    By carefully crafting a corrupt Canon RAW image, an attacker can trigger a buffer overflow which may lead to an application crash or arbitrary code execution. This update addresses the issue by performing additional validation of Canon RAW images. This issue does not affect systems prior to Mac OS X v10.4. Available for: Mac OS X v10.4.7, Mac OS X Server v10.4.7.
    ImageIO
    By carefully crafting a corrupt Radiance image, an attacker can trigger an integer overflow which may lead to an application crash or arbitrary code execution. This update addresses the issue by performing additional validation of Radiance images. This issue does not affect systems prior to Mac OS X v10.4. Available for: Mac OS X v10.4.7, Mac OS X Server v10.4.7
    By carefully crafting a corrupt GIF image, an attacker can trigger an undetected memory allocation failure which may lead to an application crash or arbitrary code execution. This update addresses the issue by performing additional validation of GIF images. This issue does not affect systems prior to Mac OS X v10.4. Available for: Mac OS X v10.4.7, Mac OS X Server v10.4.7.
    By carefully crafting a corrupt GIF image, an attacker can trigger an integer overflow which may lead to an application crash or arbitrary code execution. This update addresses the issue by performing additional validation of GIF images. This issue does not affect systems prior to Mac OS X v10.4. Credit to Tom Ferris of Security-Protocols.com for reporting this issue. Available for: Mac OS X v10.4.7, Mac OS X Server v10.4.7
    LaunchServices
    Download Validation may erroneously identify certain files containing HTML as "safe". If such a file is downloaded in Safari and Safari's "Open `safe' files after downloading" option is enabled, the HTML document will automatically be opened from a local URI. This would allow any JavaScript code embedded in the document to bypass access restrictions normally imposed on remote content. This update provides additional checks to identify potentially malicious file types so that they are not automatically opened. This issue does not affect systems prior to Mac OS X v10.4. Available for: Mac OS X v10.4.7, Mac OS X Server v10.4.7
    OpenSSH
    Attempting to log in to an OpenSSH server ("Remote Login") using a nonexistent account causes the authentication process to hang. An attacker can exploit this behavior to detect the existence of a particular account. A large number of such attempts may lead to a denial of service. This update addresses the issue by properly handling attempted logins by nonexistent users. This issue does not affect systems prior to Mac OS X v10.4. Credit to Rob Middleton of the Centenary Institute (Sydney, Australia) for reporting this issue. Available for: Mac OS X v10.4.7, Mac OS X Server v10.4.7
    telnet
    When connected to a TELNET server, the client may send the contents of arbitrary environment variables to the server if the server requests them. Some environment variables may contain sensitive information that should not be sent over the network. This update addresses the issue by ensuring that only non-sensitive variables and variables that the user has explicitly requested are are shared with the server. Credit to Gael Delalleau and iDEFENSE for reporting this issue. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7.
    WebKit
    A maliciously-crafted HTML document could cause a previously deallocated object to be accessed. This may lead to an application crash or arbitrary code execution. This update addresses the issue by properly handling such documents. Credit to Jesse Ruderman of Mozilla Corporation for reporting this issue. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7
    AppKit, ImageIO
    Buffer overflows were discovered in TIFF tag handling (CVE-2006-3459, CVE-2006-3465), the TIFF PixarLog decoder (CVE-2006-3461), and the TIFF NeXT RLE decoder (CVE-2006-3462). By carefully crafting a corrupt TIFF image, an attacker can trigger a buffer overflow which may lead to an application crash or arbitrary code execution. This update addresses the issue by performing additional validation of TIFF images. Systems prior to Mac OS X v10.4 are affected only by the TIFF NeXT RLE decoder issue (CVE-2006-3462). Credit to Tavis Ormandy, Google Security Team for reporting this issue. Available for: Mac OS X v10.3.9, Mac OS X Server v10.3.9, Mac OS X v10.4.7, Mac OS X Server v10.4.7./

    Right after installing Security Update 2006-004 (Intel) on my macbook pro I am having troubles with my wireless connectivity. Here is the dump from the console:
    Aug 3 15:49:43 x-ray /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport: Error: WirelessAssociate2() = 88001006 for network RadioActive
    Aug 3 15:49:43 x-ray /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport: Error: (had password)
    Aug 3 15:49:51 x-ray /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport: Error: WirelessAssociate2() = 88001006 for network RadioActive
    Aug 3 15:49:51 x-ray /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport: Error: (had password)
    Aug 3 15:49:59 x-ray /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport: Error: WirelessAssociate2() = 88001006 for network RadioActive
    Aug 3 15:49:59 x-ray /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport: Error: (had password)
    I can reboot and it will work, but if I put my macbook to sleep it, when I wake it, it will do the same thing again.
    I am also getting timeouts waiting for results of 1st wireless scan to complete in console.
    Anyone else having this issue?
    MBP15-2GHZ   Mac OS X (10.4.7)  

  • Whats the difference between these two queries ? - for tuning purpose

    Whats the difference between these two queries ?
    I have huge amount of data for each table. its takeing such a long time (>5-6hrs).
    here whice one is fast / do we have any other option there apart from listed here....
    QUERY 1: 
      SELECT  --<< USING INDEX >>
          field1, field2, field3, sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end)
        FROM
          tab1 inner join tab2 on condition1 inner join tab3 on condition2 inner join tab4 on conditon3
        WHERE
         condition4..10 and
        GROUP BY
          field1, field2,field3
        HAVING
          sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end) <> 0;
    QUERY 2:
       SELECT  --<< USING INDEX >>
          field1, field2, field3, sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0))
        FROM
          tab1, tab2, tab3, tab4
        WHERE
         condition1 and
         condition2 and
         condition3 and
         condition4..10
        GROUP BY
          field1, field2,field3
        HAVING
          sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0)) <> 0;
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    My feeling here is that simply changing join syntax and case vs decode issues is not going to give any significant improvement in performance, and as Tubby points out, there is not a lot to go on. I think you are going to have to investigate things along the line of parallel query and index vs full table scans as well any number of performance tuning methods before you will see any significant gains. I would start with the Performance Manual as a start and then follow that up with the hard yards of query plans and stats.
    Alternatively, you could just set the gofast parameter to TRUE and everything will be all right.
    Andre

  • Whats the difference between the two XMP packet tags

    Hi,
    I opened a file Bluesquare.indd(from XMP SDK sampke) and I found two XMP packets inside the file.
    One packet with tag
    and another one with tag
    When I tried to extract the xmp using getXMP() method from XMPFiles then, I got the packet with tag
    So can you tell me, what is the difference between two packets, why they are different
    what is its use.
    Thanks & Regards,
    Venkatesh.E

    My feeling here is that simply changing join syntax and case vs decode issues is not going to give any significant improvement in performance, and as Tubby points out, there is not a lot to go on. I think you are going to have to investigate things along the line of parallel query and index vs full table scans as well any number of performance tuning methods before you will see any significant gains. I would start with the Performance Manual as a start and then follow that up with the hard yards of query plans and stats.
    Alternatively, you could just set the gofast parameter to TRUE and everything will be all right.
    Andre

  • Get canvas.toDataURL('image/jpeg') and convert base64 encoding to java.sql.Blob

    Convert canvas.toDataURL('image/jpeg') to java.sql.Blob.
    I am using oracle adf so I am able to action a backing bean from javascript and pass in parameters as a map. I pass in the canvas.toDataURL('image/jpeg') which I then try to decode in my bean. Using BASE64Decoder and the converting the bytearray to a file I can see the image is corrupted as I can't open the file thus converting the bytearray to blob is also a waste.
    Has anyone any ideas on base64 encoding from canvas.toDataURL to file or Blob?

    Use Case:
    A jsf page that enables a user to take photos using the HTML5 canvas feature - interact with webcam -, take photos and upload to profile
    1. I have created the jsf page with the javascript below; this pops up as a dialog and works okay and onclick an upload image, triggers the snapImage javascript function below and sends the imgURL parameter to the serverside managedbean
    <!-- java script-->
    function snapImage(event){
                    var canvas = AdfPage.PAGE.findComponent('canvas');
                    AdfCustomEvent.queue(event.getSource(),"getCamImage",{imgURL:canvas.toDataURL('image/jpeg'),true);
                    event.cancel();
    <!-- bean -->
    public void getCamImage(ClientEvent ce){
    String url=(String)ce.getAttributes().get("imgURL");
    decodeBase64URLToBlob(url);
    private BlobDomain decodeBaseB4URLToBlob(String url64){
                    BASE64Decoder de=new BASE64Decoder();
                    byte[] bytes=de.decode(url64);
                    File file=new File("abc.jpg");
                    InputStream in = new ByteArrayInputStream(bytes);
                    BufferedImage bImageFromConvert = ImageIO.read(in);
                    in.close();
                    ImageIO.write(bImageFromConvert, "jpg", file);
                    return createBlobDomainFromFile(file);
    ----problem---
    Accessing the generated jpeg file shows the image is corrupted, probably missing bytes or encode/decoder issues.and the blob image after uploading to database is saved as a binary stream which ondownload doesnt render as an image or anything i know of.
    Is there anyways of achieving the conversion without errors?

  • Problem Using DNG converter Vers 3.5

    Converted images from canon 1ds mark11 and Nikon d2xs and images only appear as large as thumbnaills from both cameras.I know the D2xs is not supported yet but this problem has now occured with the Canon, Any advice ?

    That doesn't work for me. I created the DNGs directly from the NEFs and CRWs using the 3.5 converter. I double-checked that all the settings were as per the Apple instructions.
    It's clearly a problem with the decoding of DNG files. With DNG version 3.4 and earlier, I get the proper size image, but no white balance information. With 3.5 I get the "as shot" white balance, but only the thumbnail. All versions of DNG open correctly in Adobe Camera Raw and Lightroom (hardly surprising as it is an Adobe format).
    Fingers crossed that Aperture 1.5 and/or 10.4.8 will resolve this. However, I suspect that as long as camera RAW formats remain closed, proprietary, and even encrypted (à la the D2X) RAW decoding issues will remain for all vendors.
      Mac OS X (10.4.7)  

  • Adobe reader not open the file immediately after saving it  with Microsoft Office

    I have an older version Adobe Reader 9, and worked fine until today. I did the upgrade to Adobe Reader XI (11.0.06).
    I have Window´s Office 2010 on my computer. When I save a document on *pdf file, Adobe starts automatically and open the document (Open file after publishing.) After the upgrade, documents are not open automatically and shows the next message:  "There was an error  during initialization. An internal error ocurrred." and  "There was an error opening this document. Access denied.". But if I try manually, files are open. How do I fix this problem.

    I'm having a similar issue.  The .pdf files open fine locally, but when I put them up online, they will not open and I get the same error message.  If I download and save the files, they show a 1KB file size instead of 168KB.
    Drive space is not an issue (looking at over 225GB of free space on the main drive).
    In searching on-line, the main cause I am finding is receiving the file via e-mail and a decoding issue.  This is not the case with these files as they were created on my machine and uploaded using Filezilla to the server.  I'm using Acrobat Pro 7.0 on a windows box running Vista Ultimate.
    Any ideas on what would be causing this issue?

Maybe you are looking for