Necessary assistance to the query

Hello world

In Oracle 10G

Support to the construction of a query where the data in the Table is
value of type date
6 30
7 0
8 0
9 0
10 10
11 0
12 20
13 0
14 0

Output must be
Value of type date
6 30
7 30
8 30
9 30
10 10
11 10
12 20
13 20
14 20

Where the value is zero there onscreen and previous peak non zero value

I tried to use lead/lag but failed.

Please suggest a way to wright the query

Use NULLIF:

SQL> -- generating sample data:
SQL> with t as (
  2  select 6 dt, 30 val from dual union all
  3  select 7, 0 from dual union all
  4  select 8, 0 from dual union all
  5  select 9, 0 from dual union all
  6  select 10, 10 from dual union all
  7  select 11, 0 from dual union all
  8  select 12, 20 from dual union all
  9  select 13, 0 from dual
 10  )
 11  --
 12  -- actual query:
 13  --
 14  select dt
 15  ,      last_value(nullif(val, 0) ignore nulls) over (order by dt) val
 16  from   t;

        DT        VAL
---------- ----------
         6         30
         7         30
         8         30
         9         30
        10         10
        11         10
        12         20
        13         20

8 rows selected.

Tags: Database

Similar Questions

  • necessary logic in the query

    Hi Expert,

    I use under query mentioned I join two table but in the second table cclean.vm_cellc_postal_address b I must add one more on condition that
    If con b.street code is 3 digit as 123 and then add the prefix 0 (AND TRIM (a.post_code) = TRIM (b.street_code) ;)


    SELECT a.address_id AS address_id,
    a.Line_1 AS line_1
    a.City CITY,
    b.Town CITY,
    a.State AS State,
    SUBSTR (b.province, 0, LENGTH (b.province) - 1) AS a province.
    a.clean_status as clean_status,
    b.street_code
    FROM (SELECT ah.address_id, ah.suburb, ah.line_1, ah.city,
    Ah.post_code, ah.state, ah.country, ah.clean_status
    OF cclean.vm_processed_address_history ah
    WHERE ah.suburb IS NOT NULL
    AND ah.post_code IS NOT NULL
    AND SYSDATE BETWEEN ah.effective_start_date
    AND ah.effective_end_date
    AND ah.suburb IS NOT NULL
    AND ah.post_code IS NOT NULL
    AND NVL (UPPER (ah.clean_status), 'NONE') <>'
    AND (UPSTAIRS (line_1) NOT AS 'PRIVATE BAG % %')
    AND SUPERIOR (line_1) NOT LIKE '%p % % BOX.
    )) a,
    cclean.vm_cellc_postal_address b
    WHERE TRIM (UPPER (a.suburb)) = TRIM (UPPER (b.suburb))
    AND (TRIM (UPPER (NVL (a.city, 'dummy_value'))) <>
    TRIM (UPPER (b.town))
    OR GARNISH <>(UPPER (NVL (a.state, 'dummy_value')))
    TRIM (UPPER (SUBSTR (b.province, 0, LENGTH (b.province) - 1)))
    )
    AND TRIM (a.post_code) = TRIM (b.street_code);

    You can use the logic in where condition but not sure about the performance. In any case find the query below with logic

    SELECT a.address_id AS address_id,
    a.Line_1 AS line_1
    a.City CITY,
    b.Town CITY,
    a.State AS State,
    SUBSTR (b.province, 0, LENGTH (b.province) - 1) AS a province.
    a.clean_status as clean_status,
    b.street_code
    FROM (SELECT ah.address_id, ah.suburb, ah.line_1, ah.city,
    Ah.post_code, ah.state, ah.country, ah.clean_status
    OF cclean.vm_processed_address_history ah
    WHERE ah.suburb IS NOT NULL
    AND ah.post_code IS NOT NULL
    AND SYSDATE BETWEEN ah.effective_start_date
    AND ah.effective_end_date
    AND ah.suburb IS NOT NULL
    AND ah.post_code IS NOT NULL
    AND NVL (UPPER (ah.clean_status), 'NONE') '
    AND (UPSTAIRS (line_1) NOT AS 'PRIVATE BAG % %')
    AND SUPERIOR (line_1) NOT LIKE '%p % % BOX.
    )) a,
    cclean.vm_cellc_postal_address b
    WHERE TRIM (UPPER (a.suburb)) = TRIM (UPPER (b.suburb))
    AND (TRIM (UPPER (NVL (a.city, 'dummy_value')))
    TRIM (UPPER (b.town))
    OR CUT (UPPER (NVL (a.state, 'dummy_value')))
    TRIM (UPPER (SUBSTR (b.province, 0, LENGTH (b.province) - 1)))
    )
    AND decode (length (TRIM (a.post_code)), 3, '0' |) TRIM (a.post_code), TRIM (a.post_code)) = TRIM (b.street_code);

  • Necessary assistance to the configuration for weblogic server 11g

    Dear all,

    My Version of the OS is:

    [oracle@wbctaxapp1 wlserver_10.3] $ cat/etc/redhat-release

    Release of Red Hat Enterprise Linux Server 6.2 (Santiago)

    Linux wbctaxapp1 2.6.32 - 220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

    WebLogic Server is 11g

    ---------------------------------

    Installation directory is:

    [oracle@wbctaxapp1 wlserver_10.3] $ pwd

    /Home/app/Oracle/middleware/wlserver_10.3

    [oracle@wbctaxapp1 wlserver_10.3] $

    Please help me to configure the following settings... Thanks in advance...

    Archived real path setting

    Enable

    WebLogic plug-in

    Enable

    Properties of Node Manager

    Must be true for the start

    Environmental variables

    MW_HOME, WL_HOME must be set to the profile

    Entries for the crontab Manager node

    Starting the Manager node in the crontab.

    Data sources

    Data sources will be created after the migration of the DB

    Thanks and greetings

    Yvon Das

    Solved

  • Necessary assistance for the deployment of a manager of validation in OIM 11 g

    Hi all

    I wanted to deploy a validation in OIM 11 g Manager so that I can verify that the phone number that is entered by the user has a length of ten and are all numbers.

    I created a new eclipse workspace called TelephoneValidationHandler on the host of the IOM. I created a new Java project in the workspace with the name TelephoneValidationHandler. I created a class called TelephoneValidationHandler in this project. Put in the following code in the java file-

    / * TelephoneValidationHandler.java * /.

    package com.custom;

    import java.io.Serializable;
    import java.util.HashMap;

    Import oracle.iam.platform.kernel.ValidationException;
    Import oracle.iam.platform.kernel.ValidationFailedException;
    Import oracle.iam.platform.kernel.spi.ValidationHandler;
    Import oracle.iam.platform.kernel.vo.BulkOrchestration;
    Import oracle.iam.platform.kernel.vo.Orchestration;


    / public class TelephoneValidationHandler implements ValidationHandler {}

    @Override
    Public Sub initialize (HashMap < String, String > arg0) {}
    Initialization of TODO
    System.out.println("***********************************************************************************");
    System.out.println ("* Init validate handler *");
    System.out.println("***********************************************************************************");
    }

    @Override
    public void Validate (processId long, long eventId, orchestration of the Orchestration)
    throws a ValidationException ValidationFailedException {}

    System.out.println ("* beginning of validation *");


    Parameters HashMap < String, Serializable > = orchestration.getParameters ();
    Telephone string = (String) parameters.get ("phone number");
    String regex = "[0-9] {10}"; "
    If (telephone.length () is 10)
    {
    for (int i = 0; i < 10; i ++)
    {
    If (Character.isDigit (telephone.charAt (i))) {}
    continue;
    }
    on the other
    {
    throw new ValidationFailedException();
    }
    }
    System.out.println ("* validated *");
    }
    on the other
    {
    System.out.println ("* EXCEPTION OCCURRED *");
    throw new ValidationFailedException();
    }
    System.out.println ("* end of validation *");


    }

    @Override
    public void Validate (processId long, long eventId, BulkOrchestration arg2)
    throws a ValidationException ValidationFailedException {}
    TODO - N/A
    System.out.println ("* in BULK to the INTERIOR of ENTER *");
    }
    }
    - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - - - - - - - - - - - - - - - - - - -

    I have included the files in reference libraries as - right-click on the project, click Build Path-> Configure Build Path-> Add External JARs. In this, I selected the pots that were needed to compile code successfully and I chose them to the place where they exist in the host of IOM for example. C:\Oracle\Middleware\server\platform\iam-platform-kernel.jar iam-platform - kernel.jar path.

    Now, I've created a jar file of the project compiled by right-clicking on the project name and click Export-> Java-> JAR file. Selected files .classpath and .project for export as well. Choose the first option 1. Export the files option and generated class resources. Other three existing options outside that I chose were: 2 export all output folders checked projects. 3 export Java source files and resources 4. Export the refactorings for registered projects. So with the 1st selection, I clicked on next selected file generate a new manifest in the last screen and clicked on finish. This exported under the name TelephoneValidationHandler.jar on the desktop. If I open this jar by changing the zip extension, I see the following folder structure on the inside:
    [[
    com-> customize-> TelephoneValidationHandler.class
    META-INF-> MANIFESTS. INF
    .classpath
    . Project
    ]]

    I created a folder named lib and placed this file jar inside the lib folder. Then, outside of this folder, I placed the plugin.xml file created for this as follows:

    plugin. XML->

    <? XML version = "1.0" encoding = "UTF-8"? >
    < oimplugins xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    < pluginpoint = "oracle.iam.platform.kernel.spi.ValidationHandler plugins" >
    < class = "com.custom.TelephoneValidationHandler plugin" version = "1.0" name = "TelephoneValidationHandler" > "
    < / plugin >
    < / plugins >
    < / oimplugins >
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Now, I selected the folder lib and plugin.xml and created a new zip file under the name of TelephoneValidationHandler.zip that will be used for the registration of plugin. File zip directly inside it has structure - file and lib plugin.xml file, having the jar inside.

    [[
    lib-> TelephoneValidationHandler.jar
    plugin. XML
    ]]

    Now I went to the C:\Oracle\Middleware\server\plugin_utility directory and open the ant.properties file in this and set the values as:

    Ant. Properties->

    # WLS installation directory
    WLS. Home=C:\\Oracle\\Middleware\\wlserver_10.3

    # The directory of IOM. If shiphome its same as installation directory
    IOM. Home = C:\\Oracle\\Middleware\\Oracle_IDM1\\server

    #login filename with the path.
    Login.config=C:\\Oracle\\Middleware\\Oracle_IDM1\\server\\config\\authwl.conf

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Now, I opened a cmd prompt, crossing to the C:\Oracle\Middleware\server\plugin_utility directory and typed in "Ant f pluginregistration.xml registry" and run this command.
    He asked the IOM userid - xelsysadm, IOM password: password, server url: t3: / / oimhost:14000, name of plugin file with the path: C:\\temp\\TelephoneValidationHandler.zip

    I had these errors in the redirector.out file in C:\Oracle\Middleware\server\plugin_utility:

    Error in registering the plugin. null
    Error occurred when using the utility check plugin.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    And it comes to the detailed description in the redirector.err in C:\Oracle\Middleware\server\plugin_utility:

    17 July 2012 18:05:58 main PluginUtility
    SEVERE: Exception occurred in {0}
    java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
    at java.util.regex.Matcher.reset(Matcher.java:291)
    in java.util.regex.Matcher. < init > (Matcher .java: 211)
    at java.util.regex.Pattern.matcher(Pattern.java:888)
    at weblogic.utils.classloaders.FilteringClassLoader.matchesClassFilterList(FilteringClassLoader.java:213)
    at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:97)
    at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:86)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    at oracle.iam.platform.pluginframework.PluginReader.validateInstance(PluginReader.java:303)
    at oracle.iam.platform.pluginframework.PluginReader.validatePluginsFromFile(PluginReader.java:363)
    at oracle.iam.platform.pluginframework.PluginReader.readPluginsFromZIP(PluginReader.java:147)
    at oracle.iam.platform.pluginframework.PluginReader.readPlugins(PluginReader.java:66)
    at oracle.iam.platform.pluginframework.PluginManagerImpl.registerPlugin(PluginManagerImpl.java:74)
    at oracle.iam.platformservice.impl.PlatformServiceImpl.registerPlugin(PlatformServiceImpl.java:129)
    at oracle.iam.platformservice.api.PlatformServiceEJB.registerPluginx (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy528.registerPluginx (Unknown Source)
    at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.__WL_invoke (unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.registerPluginx (unknown Source)
    at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    17 July 2012 18:05:58 main PluginUtility
    SEVERE: Exception occurred in {0}
    java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
    at java.util.regex.Matcher.reset(Matcher.java:291)
    in java.util.regex.Matcher. < init > (Matcher .java: 211)
    at java.util.regex.Pattern.matcher(Pattern.java:888)
    at weblogic.utils.classloaders.FilteringClassLoader.matchesClassFilterList(FilteringClassLoader.java:213)
    at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:97)
    at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:86)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    at oracle.iam.platform.pluginframework.PluginReader.validateInstance(PluginReader.java:303)
    at oracle.iam.platform.pluginframework.PluginReader.validatePluginsFromFile(PluginReader.java:363)
    at oracle.iam.platform.pluginframework.PluginReader.readPluginsFromZIP(PluginReader.java:147)
    at oracle.iam.platform.pluginframework.PluginReader.readPlugins(PluginReader.java:66)
    at oracle.iam.platform.pluginframework.PluginManagerImpl.registerPlugin(PluginManagerImpl.java:74)
    at oracle.iam.platformservice.impl.PlatformServiceImpl.registerPlugin(PlatformServiceImpl.java:129)
    at oracle.iam.platformservice.api.PlatformServiceEJB.registerPluginx (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy528.registerPluginx (Unknown Source)
    at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.__WL_invoke (unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.registerPluginx (unknown Source)
    at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Exception in thread "Main Thread" java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
    at java.util.regex.Matcher.reset(Matcher.java:291)
    in java.util.regex.Matcher. < init > (Matcher .java: 211)
    at java.util.regex.Pattern.matcher(Pattern.java:888)
    at weblogic.utils.classloaders.FilteringClassLoader.matchesClassFilterList(FilteringClassLoader.java:213)
    at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:97)
    at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:86)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    at oracle.iam.platform.pluginframework.PluginReader.validateInstance(PluginReader.java:303)
    at oracle.iam.platform.pluginframework.PluginReader.validatePluginsFromFile(PluginReader.java:363)
    at oracle.iam.platform.pluginframework.PluginReader.readPluginsFromZIP(PluginReader.java:147)
    at oracle.iam.platform.pluginframework.PluginReader.readPlugins(PluginReader.java:66)
    at oracle.iam.platform.pluginframework.PluginManagerImpl.registerPlugin(PluginManagerImpl.java:74)
    at oracle.iam.platformservice.impl.PlatformServiceImpl.registerPlugin(PlatformServiceImpl.java:129)
    at oracle.iam.platformservice.api.PlatformServiceEJB.registerPluginx (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy528.registerPluginx (Unknown Source)
    at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.__WL_invoke (unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl.registerPluginx (unknown Source)
    at oracle.iam.platformservice.api.PlatformService_ott20t_PlatformServiceRemoteImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    But at the end of this race, he always show - BUILD SUCCESSFUL message but it obviously doesn't work properly because after this entry is made, I'll the MDS through the command prompt and import the new EventHandlers.xml I create as shown below:

    EventHandlers.xml->

    <? XML version = "1.0" encoding = "UTF - 8"? >
    < eventhandlers xmlns = "http://www.oracle.com/schema/oim/platform/kernel" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://www.oracle.com/schema/oim/platform/kernel orchestration - handlers.xsd" >
    < class = "Manager validation com.custom.TelephoneValidationHandler" name = "TelephoneValidationHandler" entity-type = 'User' operation = "ANY" order = "1002" / > "
    < / eventhandlers >

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    This importation of EventHandlers.xml is made for the path - / metadata/user/custom

    But after all this, whenever I try to create a new user, I don't even see the page of the user you want to create. Instead, I get a NullPointer exception thrown on me.

    Can someone please go through these steps above and tell me if there is a particular step, I could hurt? Maybe the ant.properties is not set correctly, or maybe ValidationHandler java code is not implemented correctly. But I see that I think these steps are correct. I checked with the other messages in this category and followed them. However this error still exists. Please help me.

    Thank you
    $id

    Published by: $id on July 17, 2012 18:36

    plugin. XML->


    http://www.w3.org/2001/XMLSchema-instance">




    If you're on 11.1.1.5, your plugin.xml should look like this:




    pluginclass= "com.custom.TelephoneValidationHandler" version = "1.0" name = "TelephoneValidationHandler" >


    Two differences of definition yorst:

    1. no namespace declaration (it is unused in any case)
    2. the name of the attribute for the Java class must be pluginclass, no class

    The battery supplied indicates that the value null is passed to java.lang.ClassLoader.loadClass () by the validateInstance() with no check of value whatsoever. Validation good :-) method

    Published by: madhatter on 17 July 2012 22:55

  • Necessary assistance to the regular Expression

    I was give a task to replace all the table_name (Emp) in the procedure p1 to Table_name (Employee).

    Can someone help me?

    Kind regards

    Virginia

    Hi, Virginia,.

    REGEXP_REPLACE ( txt
                , '(^|\W)emp(\W|$)'
                , \1employee\2'
                )
    

    Returns a copy of txt with the full word 'emp' replaced by 'employed person '.
    For example, if the txt is:

    emp foo a=emp  temp emp_name emp.b
    

    the above expression will return

    employee foo a=employee  temp emp_name employee.b
    

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data.

  • Find and replace the necessary assistance to the removal of several Word Bookmarks

    I am importing a Word document sections. Word documents have favorites such as:

    < h3 > < a name = "_Toc226886762" id = "_Toc226886762" > fixed-variable < /a > < / h3 >

    I would like to do at the level of the site search and replace, delete all bookmarks (they all start with table of contents) but keeping the title and the text format. I tried several options, but nothing works.

    Thank you.

    I just copied and pasted the code in an HTML document, and ran the search and replace regular expressions. He removed all four bookmarks without problem.

    I see that you say you copied and pasted my regex in the search field. I just do the same thing and see that when you use copy / paste, the cursor in the search field ends up on a new line. Press BACKSPACE to get rid of the new line. It should then work.

  • Rewrite the query, select below or try to get the necessary O/P

    Hello..

    My example of data.,.

    Create table customer (name varchar2 (10), telephone1 telephone2 number (10), number of phone3 (10), (10) number, bitwisephone number (10));

    Insert into customer values('a',23456,67890,null,12345);

    Insert into customer values ('b', 67459,89760,null, 37689);

    create table do_not_call (dont_call number (10));

    insert into do_not_call values (67890);

    insert into do_not_call values (37689);

    Question: -.
    --------------

    Customer 'a' has value of numbers1 as 23456.check if telephone1 exists in the do_not_call table.
    In fact there is no, so set the bit for numbers1 as "o" like wise search telephone2
    & phone3.after update of the bitwisephone for each client should be as the output below.


    Need to O/P: -.
    -------------------

    name bitwisephone

    a 010
    b 001


    For that matter... I use "any" operator...



    SELECT name, case when numbers1 = all (SELECT dont_call FROM do_not_call) and then put an end to '1' other '0'.
    -case when telephone2 = all (SELECT dont_call FROM do_not_call) and then put an end to '1' other '0'.
    -case when phone3 = all (SELECT dont_call FROM do_not_call) then '1' other '0' end 'Bits '.
    OF THE customer;


    Is there any other way to get the necessary O/P?


    Thank you!!

    Kind regards
    VijayRajaram.

    Looks like one already answered Re: rewrite the query, select below or try to get the necessary O/P

    with
    customer(name,phone1,phone2,phone3,bitwisephone) as
    (select 'a',23456,67890,12345,null from dual union all
     select 'b',67459,89760,37689,null from dual
    ),
    do_not_call(dont_call) as
    (select 67890 from dual union all
     select 23456 from dual union all
     select 37689 from dual
    )
    select name,
           to_char(mod(trunc(sum(weight)/4),2))||
           to_char(mod(trunc(sum(weight)/2),2))||
           to_char(mod(sum(weight),2)) bitwisephone
      from (select name,phone1 phone,4 weight
              from customer
            union all
            select name,phone2,2
              from customer
            union all
            select name,phone3,1
              from customer
           ) c,
           do_not_call d
     where c.phone = d.dont_call(+)
       and d.dont_call is not null
     group by name
    

    Please do not duplicate messages

    Concerning

    Etbin

  • I need to stop a download of the query, I thought a stand-alone application but turns require a higher level (FCPX) as a 'parent' and I do not who have, or want to buy.

    I need to stop a download of the query, that I thought a stand-alone application but turns require a higher level (FCPX) as a 'parent' and I do not have that, or I want to buy it.

    Motion IS a stand-alone application. It is mainly designed to make effects for Final Cut Pro X, but it is not necessary to have with FCPX nor is it necessary to have FCPX to create projects for other purposes. When you open the query, simply select project of work outside the FCPX motion. You can save regular projects of Motion anywhere on your system.

  • using ad to automatically is checked "remote assistance" in the system in the client PC properties

    Is there a way to do the above?

    The strategy has been set to allow

    There are many computers in my organization and I would use ad to facilitate this process.

    I already activate the option "provide assistance remotely" in politics in my ad, but this does not automatically check the box remote to the client computer assistance.

    Please notify.

    Thank you.

    Jericho

    Hi Jericho,

    Thanks for posting in the Microsoft Community.

    Since you are facing a problem to activate the option "offer remote assistance" in the client PC, the question you posted would be better suited for the IT Pro on TechNet public. I would recommend posting your query in the TechNet Forums to get help:

    Windows XP TechNet forums

  • Unable to use HP support assistant get the hpsf error has stopped working

    Original title: hpsf.exe has stopped working

    When I try to open hp support assistant I get a box that says hpsf has stopped working. says he has encountered a serious problem, click ok to automaticlly app to restart, but it dosent fix the problem

    Hello

     

    Please join Microsoft Community where you can find the necessary information on Microsoft products!

    When you try to open HP support assistant, you get a message that hpsf.exe has stopped working.

     

    This is perhaps due to a problem with the application.

     

    I suggest to reinstall the application and check to see if the problem persists.

     

    Step 1: Uninstall the application

    Uninstall or change a program

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

     

    Step 2: Install the program

     

    You can install the program on the site:

    http://WWW8.HP.com/us/en/campaigns/hpsupportassistant/hpsupport.html?JumpID=ex_r602_go_hpsupportassistant

     

    I suggest you to get more assistance to the HP support forum sites mentioned below:

     

    http://h30434.www3.HP.com/T5/desktop-operating-systems-e-g/HP-support-assistant/TD-p/1301657

    http://WWW8.HP.com/us/en/campaigns/hpsupportassistant/hpsupport.html?JumpID=ex_r602_go_hpsupportassistant

     

    I hope this helps. If you need additional help, let us know and we would be happy to help you.

  • Windows network driver, if we write an NDIS driver so it is necessary to write the protocol driver. ?

    If we write an NDIS driver so it is necessary to write the protocol driver. ?

    Thanks in advance

    Hello Rahul,

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.

     

    MSDN forum

    http://social.msdn.Microsoft.com/forums/en-us/categories

    Hope this information helps.

  • Question related to the execution of the query by using the links to the DB

    Hi all

    I have a source and target database. Both are 11.2.0.3.

    I have a query that is running on the source database and load data into the target database.

    I created synonyms in the target for all of the tables referenced in the query, remaining at the source.

    I run the query in the target using synonyms that I created. I see that the entire query became transferred to the source database and executed. The execution plan of the source was exactly the same as the way in which we could, if the query has been run directly there.

    No problems so far.

    Now, I have a database from different sources. Version 11.2.0.4.

    When I try to mimic the same behavior using this data source, the complete query will NOT be transferred to the source. He made on the source (remote site) full table scans, transfer of data to the target (local site) and then by performing sort operations & the index range scans (min/max) on the target.

    In both cases, all of the tables referenced in the query are accessible through the link in the DB.

    Please let me know if there is no setting of database / everything which could control how or where a query with all accessible by link DB tables are optimized and executed? Ideally, I want the entire query to be transferred to the remote and executed site.

    I can provide more details if necessary.

    Thanks in advance.

    Thank you sol.beach. Queries I tried both sources are in fact different. I failed to mention that.

    @John,

    We did recommend the creation of a view of the source, which is synonym on target and run the query. The client was not ready to create any object on the source system and so to test this workaround solution.

    ********************************************

    After some time, I realized that there is a hardcoded as SYSDATE column. Whenever I took it / I did as null, because the entire query is getting transferred to the source DB.

    "I changed 'SYSDATE column-name' to ' col_name (select SYSDATE from dual@remote_db_link). But this also seems to stop the query to be sent to the remote db as a whole.

    Try to work around this problem, but any ideas are much appreciated.

  • Need help with the query to get the County

    Hello

    Oracle 10 g 2 10.2.0.3 - 64 bit

    I want back the number of accounts with two different types of funds (say A and B). Some accounts hold only one of the two funds, and some support both. I want to get the counts like this:

    • account held funds - has only
    • accounts holding funds-B only
    • accounts holding the Fund-A and B funds

    Here is what I started with but need assistance to meet the requirement above:

    select 
    count(distinct acct.bkoff_acct_no ) accounts_holding_fund_A
    from xe_account acct,
            xec_tal_investment_mandate iman,
            xec_tal_asset_allocation alloc,
            xe_benchmark bmark,
            xe_benchmark_usage bu,
            xe_object_description xod,
            xec_asset_class cls
    where iman.mandate_status_cd='A'
    and cls.asset_class_cd = alloc.asset_class_cd
    and iman.mandate_id = alloc.mandate_id
    and acct.account_id = iman.object_id
    and iman.object_type_cd = 'ACCT'
    and iman.mandate_id = xod.object_id
    and xod.field_nm='XEC_TAL_INVESTMENT_MANDATE.COMMENT_TXT'
    and xod.language_cd = 'E'
    and acct.acct_status_cd = 'O'
    and bu.object_type_cd(+) = 'TMAA'
    and bu.object_id(+) = alloc.asset_allocation_id
    and bmark.benchmark_id(+) = bu.benchmark_id
    and alloc.resp_txt like '%fund-A%'
    
    
    

    And suppose that the Fund-B has resp_txt like ' % of Fund-B»

    Please suggest.

    Concerning

    Hello

    Here is another way, it is easier to adapt to different jobs and different numbers of jobs:

    WITH got_distinct_jobs AS

    (

    SELECT DISTINCT deptno, job

    FROM scott.emp

    WHERE job IN ("ANALYST", "CLERKS") - or what

    )

    got_job_list AS

    (

    SELECT LISTAGG (job, ",") THE Group (ORDER BY work) AS job_list

    OF got_distinct_jobs

    GROUP BY deptno

    )

    SELECT job_list

    COUNT (*) AS num_departments

    OF got_job_list

    GROUP BY job_list

    ;

    This shows all the combinations of the jobs listed in the WHERE clause of got_distinct_jobs.  You don't need to change anything else in the query.  There may be any number of jobs.

    Output:

    JOB_LIST NUM_DEPARTMENTS

    ------------------------------ ---------------

    CLERK                                        2

    ANALYST, CLERK 1

  • the query result child parent

    Hi all

    I write the query to the output of the Parent and the child's relationship and would need assistance. Would like to ask someone to help out me.

    I have a table like

    create the table par_chd

    (

    parent_id number (10),

    child_id number (10)

    );

    Who has data like

    SQL > select * from par_chd;

    PARENT_ID, CHILD_ID

    ----------- -----------

    1001 1011

    1001-1021

    1001 1031

    1001-1041

    1021 10210

    1031 10310

    6 selected lines

    I would like to have output as

    PARENT_ID CHILD_LEVEL_1 CHILD_LEVEL_2

    ----------          -------------              -------------

    1001 1011

    1001-1021-10210

    1001-1021

    1001 1031 10310

    1001 1031

    1001-1041

    1001

    7 selected lines

    Thanks in advance

    Saaz

    Hi Saaz,

    Minor adjustment to the script of Moazzam (who made 99% of employment):

    SELECT

    connect_by_root (parent_id),

    CASE

    WHEN LEVEL = 1 THEN child_id

    WHEN LEVEL = 2 THEN PREVIOUSLY child_id

    OTHER prerequisite parent_id

    END CHILD_LEVEL_1

    CASE

    WHEN LEVEL = 2 THEN child_id

    ANOTHER PREREQUISITE Child_id

    END CHILD_LEVEL_2

    CASE

    WHEN LEVEL = 3 THEN child_id

    END CHILD_LEVEL_3

    OF par_chd

    START WITH parent_id = 1001

    CONNECT BY parent_id = child_id PRIOR

    UNION ALL

    SELECT 1001, NULL, NULL, NULL FROM DUAL;

  • How the importance of the "advice" in a SQL query when optimizing the query?

    I'm tuning an application (Documentum) and the query contains advice. See the request below for example... a very simple example to show the point; actual queries are one more page of time with several joins.

    During approval of the application (possibly adding new indexes), how is it important to grant the request WITH ADVICE, or can I get advice from the setting process? It's the FORCE_ORDER indicator.

    Select / * + SORTED * / object_name dm_sysobject_s;

    Welcome to the forum!

    Whenever you post, provide your Oracle 4-digit.
    >
    I'm tuning an application (Documentum) and the query contains advice. See the request below for example... a very simple example to show the point; actual queries are one more page of time with several joins.

    During approval of the application (possibly adding new indexes), how is it important to grant the request WITH ADVICE, or can I get advice from the setting process? It's the FORCE_ORDER indicator.

    Select / * + SORTED * / object_name dm_sysobject_s;
    >
    The overall goal is to have NO clues in the production code.

    Advice would normally be to help determine why Oracle has not chosen the best plan for the work to do. Once you know which plan is best seeks the Oracle to use this plan without the need to add a hint to do.

    Tips are sometimes necessary (e.g. the DRIVING_SITE hint) and for batch processes that operate on independent tables (intermediate tables) APPEND it hint is used oftne.

    Who put the tip in the Documentum query? If she was not part of your own people to be careful if you decide to remove it.

    When you have a query that is already at work that has a hint of make you that get the current execution plan before you make changes to the query. You will need this plan after that any withdrawal "tuning" or suspicion that do you to make sure that the plan has not changed.

Maybe you are looking for

  • Satellite S50-B-12Z - recovery does not start

    Hi guys. I have Toshiba Satellite S50-B-12ZI can't start the recovery. When I press the 0 key starting system, information about recovery happens.I answer YES to the question if I want to continue the recovery and after this system appears as normal

  • Problems with my A30 recovery CD

    The recovery came with my laptop CD Act exceptionally. Sometimes, during the reinstallation of the system the CD stops at 60% compleation and shows an error with the operating system file paths much. But I took it to the PC, the person world it does

  • Read all files in a folder over and over again

    I want to develop an application that reads all files in a folder, and once its done reading these files, it reads all the files again. The purpose of this application is to read all the files in a folder that are stored permanently in this folder, s

  • Connecting USB on ACER Iconia A3 - A10...

    In addition, my ACER Iconia A3 - A10 when connected to the PC does not load as when I connect my phone to the PC... why?

  • cancel a purchase?

    having made a mistake (order pour window while I have a Mac) I want to cancel a purchase. Impossible to access what anyone on the site. So I'm trying discussion of the nominal.