function Oracle detects not value space, or null

I have a feature of oracle that take two id parameter, newClientLegalName. On the basis of the second function parameter performs a specific action. the specified condition is


IF (newClientLegalName! = "BDU")) THEN

-do something

ON THE OTHER

-do something

END IF

It works very well in all conditions except when I pass null or space in the second parameter. How do I create a condition that fetch the value null or space when it is passed as a second parameter. signature of the function is

copyReview (caseID in NUMBERS, newClientLegalName IN Client.Legal_Name%TYPE)

Thank you
signhm

Use the NVL function.

for example

IF (nvl (newClientLegalName, 'empty')! = "BDU")) THEN

Published by: Robert Geier on October 14, 2009 16:02

Tags: Database

Similar Questions

  • oracle.as.install.engine.exception.LogInitializeException: not enough space to create the log files in the location specified in the inventory. Create a space under the null specified inventory or to point to a different directory

    Hello

    I have installed:

    -(Oracle Linux) OL 6.6

    121 GB HD

    5.0 GB RAM

    -JDK-7u80-EA-bin-b05-Linux-x64-20_jan_2015.tar.gz (Java)

    -Fmw_12.1.3.0.0_infrastructure.jar (infrastructure)

    -Fmw_12.1.3.0.0_ohs_linux64.bin (SST)

    I try to install OBIEE, I unzip these files:

    -bi_linux_x86_111170_64_disk1_1of2.zip

    -bi_linux_x86_111170_64_disk1_2of2.zip

    -bi_linux_x86_111170_64_disk2_1of2.zip

    -bi_linux_x86_111170_64_disk2_2of2.zip

    -bi_linux_x86_111170_64_disk3.zip

    I run/home/oracle/OBIEE/Disk1/runInslaller and open the screen to select the oraInventory directory, when I click OK, the error message appears (see image below):

    Error_Screen.png

    [oracle@localhost Disk1] $. / runInstaller

    Iniciando Universal Oracle install...

    Espaço Verificando Temp: deve ser superior a 1536 MB.   Passado Reais 36602 MB

    Verificando swap Espaço: deve ser superior a 500 MB.   Passado Reais 2553 MB

    Verificando monitor: deve ser configurado para exibir pelo menos 256 cores.    Reais 16777216 Passado

    2nd para iniciar o Oracle Universal Installer from/tmp/OraInstall2015-09-13_08-13-50 h Aguarde... [oracle@localhost Disk1] $ 13/09 / 2015 20:13:53 oracle.as.install.bi.util.ConsumerUIProperties getCustomPropertiesFilename

    INFO: Using a custom UI properties of the oracle/as/install/bi/config/consumer-ui.properties file

    [ERROR]: error initializing log values

    oracle.as.install.engine.exception.LogInitializeException: Espaço insuficiente para criar os log archives na Localização address para o inventario. Espaço shouts ob o inventario especificado/home/oracle/oraInventory UO aponte para outro inventario

    to oracle.as.install.engine.logging.EngineLogHelper. < init > (EngineLogHelper.java:65)

    at oracle.as.install.engine.logging.EngineLogHelper.initialize(EngineLogHelper.java:192)

    to oracle.as.install.engine.InstallEngine. < init > (InstallEngine.java:135)

    to oracle.as.install.engine.InstallEngine. < clinit > (InstallEngine.java:130)

    at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:603)

    In English:

    oracle.as.install.engine.exception.LogInitializeException: not enough space to create the log files in the location specified in the inventory. Create a space under the null specified inventory or to point to a different directory

    What can be?

    Well, you very probably not a lot of space on the left under/Home.

    You can move to another location that is located on/home/oracle/orInventory the / partitioning of the partition where you probably have more space left if you used the default value.

    For example, as a root user:

    mkdir/U01

    MV/home/oracle/oraInventory/U01

    Update /etc/oraInst.loc and replace

    inventory_loc = / home/oracle/oraInventory

    with

    inventory_loc = / u01/oraInventory

  • ODDM 4.1.1.888 transform script function getProperty() does not return NOT NULL;

    Hello

    In the 4.0.0.833 version the funcion getProperty() returns NULL when the dynamic propertyare not out,

    e.g. VRFDA = table.getProperty ("Text"); -Returns a null value if the dynamic property 'Text' does not exist. The Variable VRFDA is nothing

    I have version 4.1.1.888 and the GetFilter() function returns DO NOT null when the dynamic property does not exist.

    Could you tell me what value returns the GetFilter() function when the dynamic property does NOT exist?


    Thank you

    In version 4.1 the getProperty function will return an empty string if the dynamic property does not exist.

    David

  • Produce pages with required checksum error: encryption function 'SH512' is not supported on this system

    Hello

    I encounter errors in an application of apex.oracle.com was exported to another environment.

    My target environment is:

    Apex 5.0.0.00.31

    Database 11.2.0.4

    Error page displays:

    The encryption function 'SH512' is not supported on this system.

    Contact your administrator for the application.

    • is_internal_error: true
    • apex_error_code: WWV_FLOW_CRYPTO. UNSUPPORTED_FUNCTION
    • Component.type: APEX_APPLICATION_BUTTONS
    • Component.ID: 8787606655825740717
    • Component.Name: COPY
    • error_backtrace: - PL/SQL call stack - line object handle number name of the object 0x1d785dc58 641

    package APEX_050000.WWV_FLOW_ERROR 709 0x1d785dc58 body

    package APEX_050000.WWV_FLOW_ERROR 0x1d785dc58 1013 body

    package APEX_050000.WWV_FLOW_ERROR 0x1cde954b0 328 bodies

    package APEX_050000.WWV_FLOW_CRYPTO 0x1ddf7b498 1506 body

    package APEX_050000.WWV_FLOW_SECURITY 0x16f574d40 9657 body

    package APEX_050000.WWV_FLOW_UTILITIES 0x1d7fa7ed8 370 body

    package APEX_050000.WWV_FLOW_BUTTON 0x1ed9fe680 2288 body

    package APEX_050000.WWV_FLOW 0x1ed9fe680 2351 body

    package APEX_050000.WWV_FLOW 0x1d71535d8 1720 body

    package APEX_050000.WWV_FLOW_DISP_PAGE_PLUGS 0x1d71535d8 972 body

    package APEX_050000.WWV_FLOW_DISP_PAGE_PLUGS 0x17bf9b618 2221 body

    package APEX_050000.WWV_FLOW_PAGE 0x17bf9b618 2447 body

    package APEX_050000.WWV_FLOW_PAGE 0x1ed9fe680 4938 body

    package APEX_050000.WWV_FLOW 0x1d79de248 173 body

    procedure APEX_050000.F 0x1d77eeb10 33 anonymous block

    This seems to be related to the buttons on the page that redirects to pages that have the value Arguments Page Access Protection must have Checksum.  If I hide buttons, or change the page on the target pages access protection Unrestricted page works fine.

    Bug in Apex 5?

    Hi 1043414,

    APEX 5 works on 12 c, where SH512 is supported. Default APEX uses the most secure algorithm on the platform where you develop. If you need to copy the app to 11g, please make sure that the checksum algorithm is supported on this platform. Go for the shared components > security attributes and click the Bookmarks button expire, where you can change the algorithm.

    Kind regards

    Christian

  • Find an exhibitor only if followed of a 'normal position' tank, but not a space!

    Hi all

    Everything is in the title of the topic!

    I'm doing it with a [JS].

    There are missing as elements defining the "normal position" a character!

    main();
    
    
    function main() {
    
      var myStyle = "Superscript";
      var myDoc = app.activeDocument;
    
      app.findGrepPreferences = app.changeGrepPreferences = null;  
    
    
      app.findGrepPreferences.appliedCharacterStyle = myStyle;   
      app.findGrepPreferences.findWhat = ".+";   
      var allFounds = myDoc.findGrep(true); 
    
    
      for ( var i = 0; i < allFounds.length; i++ ) {
      var myFound = allFounds[i];
      var firstCharIndex = myFound.characters[0].index;
      var followingChar = myFound.parentStory.characters[firstCharIndex+1];
      if ( followingChar = "\\H") {
      myFound.contents = myFound.contents + " "; 
      }
      }
    }
    

    Of course! It will not work that much! … But it becomes a situation that is usual for me as you know!

    Thanks in advance for any help!

    Hi Ben,

    There are some errors in your code. Like this line:

    If (followingChar = '\\H') {}

    This is a bug of the current coding. You want to check are equivalent, but you only use an "equal" sign, so you actually assign '\\H' to the variable followingChar.  I don't know what is '\\H' - you are looking for something under the SpecialCharacters enumeration, were perhaps? In addition, I think that you want to check if the next character is not a space. Finally, you want to watch followingChar.contents, not followingChar.

    Here's your corrected code. Make a comparison to see all corrections:

    main();  
    
    function main() {
      var myStyle = "Superscript";
      var myDoc = app.activeDocument;  
    
      app.findGrepPreferences = app.changeGrepPreferences = null;
      app.findGrepPreferences.appliedCharacterStyle = myStyle;
      app.findGrepPreferences.findWhat = ".+";   
    
      var allFounds = myDoc.findGrep(true);   
    
      var foundCount = allFounds.length;
      for ( var i = 0; i < foundCount; i++ ) {
        var myFound = allFounds[i];
        // check for the last character in the run, not the first
        var lastCharIndex = myFound.characters.lastItem().index;  
    
        var followingChar = myFound.parentStory.characters[lastCharIndex+1];
        // check if valid in case the last character is at the end
        // of a story or cell.
        if (followingChar.isValid && followingChar.contents != " ") {
          // using followingChar instead of myFound to insert the space
          // will style it using the character style of followingChar,
          // rather than that of myFound, which is "Superscript".
          // This avoids the script repeatedly inserting spaces
          // if it's run more than once.
          followingChar.contents = " " + followingChar.contents;
        }
      }
    }
    
  • "Not enough space" DatabaseException using DatabaseEnvironment

    I want to create a database in a DatabaseEnvironment which will store a big data, for example 10 to. But I always get a DatabaseException with message "not enough space", of course, there is enough space to store this data in the driver. She throws an exception of database while put data and the size of the database reach a size (or 125% of the size) specified by CacheInfo, even if I close, and then reopen the database environment and the database. In addition, it throws an exception when I give the param ""Go " a value greater than 1 in CacheInfo, as the"new CacheInfo (2, 0, 1)"." The operating system is windows 8. Why?

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Diagnostics;
    using BerkeleyDB.

    namespace TestDatabaseEnvironment
    {
    Class Program
    {
    public static void Main (string [] args)
    {
    String Dir = @ "D:\Temp2\";
    String Name = "TestEnv;

    If (Directory.Exists (ED))
    Directory.Delete (Dir, true);

    DatabaseEnvironmentConfig envConfig = new DatabaseEnvironmentConfig();
    envConfig.Create = true;
    envConfig.DataDirs.Add (Dir);
    envConfig.CreationDir = Dir;
    envConfig.MPoolSystemCfg = new MPoolConfig();
    envConfig.MPoolSystemCfg.CacheSize = new CacheInfo (2, 0, 1);
    envConfig.MPoolSystemCfg.CacheSize = new CacheInfo ((uint) 0, (uint) 64 * 1024 * 1024, 1);
    Console.WriteLine ("CacheSize:" +)
    envConfig.MPoolSystemCfg.CacheSize.Gigabytes.ToString () + "GB and"+ ".
    envConfig.MPoolSystemCfg.CacheSize.Bytes.ToString () + "Bytes");
    envConfig.UseMPool = true;
    envConfig.ErrorPrefix = name;

    If (!.) Directory.Exists (ED))
    Directory.CreateDirectory (Dir);

    DatabaseEnvironment Env = DatabaseEnvironment.Open (Dir, envConfig);
    Cfg of HashDatabaseConfig = new HashDatabaseConfig();
    cfg. Env = Env;
    cfg. Creation = CreatePolicy.IF_NEEDED;
    HashDatabase database1 = HashDatabase.Open (null, "BD1", cfg);
    Base2 HashDatabase = HashDatabase.Open (null, "db2", cfg);
    Stopwatch sw = new Stopwatch();
    SW. Start();
    for (int i = 0; i < 100000000; i ++)
    {
    DatabaseEntry dbKey = new DatabaseEntry (BitConverter.GetBytes (i));
    DatabaseEntry dbValue = new DatabaseEntry (Encoding.UTF8.GetBytes (new string ("A", 10 * 1024) + &;))
    base1. Put (dbKey, dbValue);
    base2. Put (dbKey, dbValue);
    If (I % 100 == 0)
    {
    Console.WriteLine (i.ToString () + ":" + sw.) Elapsed.TotalSeconds.ToString ());
    }
    }
    Console.WriteLine ("TimeSpan:" + sw.) Elapsed.TotalSeconds.ToString ());
    base1. Close();
    base2. Close();
    Env.Close ();
    }
    }
    }

    The problem have been found in the HashDatabase.Open () method. The filename parameter must be specified as below, or it will lift the DatabaseException with message "not enough space" so that the size (in bytes) of dababases reach CacheInfo size:

    HashDatabase database1 = HashDatabase.Open ("filename.db", "BD1", cfg);

    Base2 HashDatabase = HashDatabase.Open ("filename.db", "db2", cfg);

    Maybe it's a bug. I put the filename setting 'null' Berkeley DB documentation Guide.

  • Specific NULL is not equal to another NULL, then why?

    Hi all

    Specific NULL is not equal to another NULL, then why...

    When I use UNION and SEPARATE, why I make only one NULL value?

    With DISTINCT and UNION I should get 3 rows as output, then why one rank (although a specific NULL is not equal to another NULL)
    Query1: (UNION ALL)
    
    with t1 as
    (
    select null comm from dual
    union all
    select null comm from dual
    union all
    select null comm from dual
    union all
    select 0 comm from dual
    union all
    select 100 comm from dual
    union all
    select 300 comm from dual
    )
    select * from t1;
    
    Query2: (UNION)
    
    with t1 as
    (
    select null comm from dual
    union 
    select null comm from dual
    union 
    select null comm from dual
    union 
    select 0 comm from dual
    union all
    select 100 comm from dual
    union all
    select 300 comm from dual
    )
    select * from t1;
    
    Query3: (Output is 3 rows)
    
    with t1 as
    (
    select null comm from dual
    union all
    select null comm from dual
    union all
    select null comm from dual
    union all
    select 0 comm from dual
    union all
    select 100 comm from dual
    union all
    select 300 comm from dual
    )
    select * from t1 where comm is null;
    
    Query4: (Output is 1 rows,I am using distinct keyword)
    
    with t1 as
    (
    select null comm from dual
    union all
    select null comm from dual
    union all
    select null comm from dual
    union all
    select 0 comm from dual
    union all
    select 100 comm from dual
    union all
    select 300 comm from dual
    )
    select distinct comm from t1 where comm is null;
    
    Query5: (Output is 1 rows,I am using NVL keyword)
    
    with t1 as
    (
    select null comm from dual
    union all
    select null comm from dual
    union all
    select null comm from dual
    union all
    select 0 comm from dual
    union all
    select 100 comm from dual
    union all
    select 300 comm from dual
    )
    select distinct nvl(comm,0) from t1 where comm is null;
    Kind regards
    Koffi

    Check this first:

    http://docs.Oracle.com/CD/B19306_01/server.102/b14200/sql_elements005.htm

    Then after if you have any questions.

    See you soon,.
    Manik.

  • Simple? How do you want 'INSERT' function to return the empty space after a field?

    All,

    I just have a PET of brain? I have a situation where I have a field that must return a single space, with a value that has a space before and after it.

    Example:

    In the text == > I'm < field > go to the office. <-notice no space between the two am, < field > and will

    I mean if set to FALSE, then "I am * not * going to the office."
    If true, then "I go to the office."

    If it is true, I am just RETURN(""); <-this returns a blank space


    If FALSE, I tried:

    RET = 'no '.
    RETURN ("" & ret & "");

    This property returns "I am notgoing to UNRWA. <-don't notice any empty space after the 'no '?

    I tried

    RET = 'no ';
    RET2 = ("" & ret);
    RETURN (Insert (ret2, 3, ""));

    Always the same result. What is strange, that is, if I do a RETURN (Insert (ret2, * 2 *, "")); then he comes back "I'm not tgoing to office" <-note the space between the "o" and the "t"?

    Ideas?

    I forgot about it. Depending on which version you use, DAL actually supported a function that will make the hard space for you, like this:

    Val = FLOAT (160) & 'not' & CHAR (160)
    Return (Val)

  • Mathmatical function to return the value in injectors

    Hello
    I have obliged. If value for ex Lake 4400000, he should return as 4.4millions even for billions.
    is there an oracle function to return the value in this format. ???

    Hello

    When I want to have a "readable" released in large numbers, I use to do the following:

    Scott@my11g SQL>with t as (
      2  select 3456123456 n from dual
      3  union all select 4567123 from dual
      4  union all select 123465 from dual
      5  )
      6  select n, case when n>1000000000 then trunc(n/1000000000,1)||' Billions'
      7  when n>1000000 then trunc(n/1000000,1)||' Millions'
      8  else to_char(n) end fmtn
      9  from t ;
    
             N FMTN
    ---------- -------------------------------------------------
    3456123456 3.4 Billions
       4567123 4.5 Millions
        123465 123465
    

    ------
    * + [change] + *.
    Moreover, lakh [url http://en.wikipedia.org/wiki/Lakh] has no meaning outside of South Asia.
    Especially for a French man like me, grown with [url http://en.wikipedia.org/wiki/International_System_of_Units] International system of units that is fighting against what I call "funky" measures empirical such miles, yards, feet, inches, just not multiple of 10³
    Same billion mean differ depending on the country (see [url http://en.wikipedia.org/wiki/Long_and_short_scales] long and short scales)

    Just for "fun": [url http://articles.cnn.com/1999-09-30/tech/9909_30_mars.metric.02_1_climate-orbiter-spacecraft-team-metric-system?_s=PM:TECH] this is what can happen when we do not use the same system of units.

  • How to solve where clause matter when it can have a value or be null.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    Hello, I am trying to understand how a query in which I have a where clause clause that can be null or a value, that is to say:
    SELECT   supply,
                  duration,
                  count,
                  action
    FROM     MDR
    WHERE    (client     = gbl_client OR (group = gbl_group AND section = gbl_section ))
    AND      (prov_code   = gbl_prov_code );
    In the query, the gbl variables can have a value or be null, based on the results of a previous cursor. The problem is that if they have the value NULL, I don't get the correct results because where clause will have to be modified to be checked IS NULL instead of = gbl. Is it possible to do it by modifying select it?

    Hello

    Because these columns are all strings, the CONCAT method will work fine:

    SELECT     *
    FROM     mdr
    WHERE     '?' || grp       = '?' || glb_grp         -- GROUP is not a good column name
    AND     '?' || section    = '?' || glb_section
    AND     '?' || prov_code  = '?' || prov_code
    ;
    

    I think that the code is a little nicer with the '?' before the actual data. No matter whether it is before or after, just be consistent.

    Published by: Frank Kulash, January 25, 2011 15:59

  • Satellite P300-190: function keys do not work properly

    Yesterday I HAV epurchased P300-190 laptop but my function keys do not work properly! :-(
    Do you know what may be a problem and how can I solve it?

    See you soon
    Pocoyo

    What is the problem with the keys exactly?

    Try reinstalling the added value package (PVAT). You can get the latest version from the site Web of Toshiba http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp

  • Qosmio X 500-mode 'sleep' and function keys will not work

    Hello guys!

    I have two problems with my X 500. First of all, sleep mode does not work correctly. In fact, it does not at all. When I try to put the laptop into sleep mode, it simply stops, even if it seems as if it was in sleep mode. The problem occurred recently, and I had not installed updates from the driver or just anti-virus software before. The hibernation mode works very well.

    The second problem is that some of the function keys do not (red below the power button). Namely the eco mode button, the mute button and multimedia button. This problem occurred a long time ago, and it is also likely to be due to any software installed. The other keys work fine.

    Please, help me to solve these questions, if you know how. Thank you!

    Hey Buddy,

    How are you trying to access the bar in view? For example, you can access the standby mode if you press the FN + F3 key combination.

    In addition, follow the instructions posted by Akuma. Try to reinstall the package of added value and a system restore if you have installed additional software to check what software is causing this problem.

  • Satellite A350-13 a - function keys does not work

    I have the Satellite A350-13. I installed Windows 7 for 2 weeks.

    The function keys does not work although I have installed the Toshiba value added package, which is responsible for the activation of the function keys.

    What the solution to this problem?

    > Function keys does not work although I have installed the toshiba value added package, which is responsible for the activation of the function keys

    Next to the VAP (value added package) you need to install the Flash Utility card support!
    Card Flash utility support controls the keys FN and not the VAP! But VAP is also needed.

    Good bye

  • Msgrocm.dll Setup library could not be loaded, or function OcEntry could not be found. Please notify

    I seem to have a problem with getting to the section Adding Windows /Remove. components Whenever I try to click on windows control panel Add/Remove programs/add components configuration, the following message appears; Msgrocm.dll Setup library could not be loaded, or function OcEntry could not be found. Please notify

    Hi jaderob,

    Follow the steps and check the results below:

    a. Click Start, point to control panel and then click System.

    (b) in the Advanced tab, click Environment Variables.

    c. under System Variables, click path, and then click on edit.

    d. click in the Variable value box, and then press END to move the insertion point at the end of the Variable value box.

    e. Type; % SYSTEMROOT%\SYSTEM32\WBEM, and then click OK.

    f. click OK and then click OK.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Not enough space for music DB and must free up space

    My Sansa was working fine and then I downloaded music on the sansa. Then it says not enough space for music DB and I need to clear 90 MB. I was downloading music on the sd card in the mp3. Now when I plug it into my computer it will not sync with my Media Player. I deleted all my music from my Media Player and synchronize it manually upwards and it will not always remove the song on the sansa. Please help someone!

    Use the Format function in the settings menu to erase the memory completely and read this FAQ.

Maybe you are looking for

  • ATV4 play in BG music during playback or game

    Can you listen to music in the background while playing a puzzle game? I used to do on the factory tvOS 9.0, but since the 9.1 update, as soon as I press play/pause in the game (which requires a good number of them), the background music stops. Befor

  • viewmarks

    When I try to open viewmarks I get a critical error report that says Oops! Firefox has reported an exception of ViewMarks Javascript with the following details: TypeError: String.quote is not a functionViewMarksView.paintGrid @ chrome://viewmarks/con

  • The label search site database?

    Previously, I had Setup several bookmarks with special "tags" (not sure that's the right term) which indicate to the Firefox that Firefox would be placing this tag first in the URL box, and then enter the search criteria, the site of bookmark (IE, im

  • Set up printer M451 to deplete its color ink cartridges

    My M451 color laser printer is currently set to force printing in black and white when one of its color toner cartridges falls to a very low level.  Could someone tell me how to put in place to keep just print in color?  This will allow me to decide

  • Please recommend network management software

    Hello! I need help to find a network management software that is compatible with our switches. I use a network with Cisco/Linksys managed switches: 10xSLM2008, 5xSRW208, 2xSRW2008MP, 1xSF 300-08 I was hoping there is management software (not the thin