function compiled with error

can someone please help
 
CREATE OR REPLACE FUNCTION HR.is_leap_year (   date_in IN DATE)
    RETURN NUMBER 
    AS    
    result NUMBER := 0;    
BEGIN
                
        SELECT 
                    CASE WHEN (
                                MOD(EXTRACT(YEAR FROM date_in), 4) = 0 AND MOD(EXTRACT(YEAR FROM  date_in) ,100) != 0)                                
                                    OR MOD(date_in, 400) = 0   THEN 1   ELSE 0  END AS bit
                    INTO result
         FROM DUAL;
          
            RETURN result;
        
END is_leap_year ;
/
CREATE OR REPLACE FUNCTION HR.is_leap_year (date_in IN DATE)
   RETURN NUMBER AS
   result   NUMBER := 0;
BEGIN
   SELECT CASE
             WHEN (MOD (EXTRACT (YEAR FROM date_in), 4) = 0
                   AND MOD (EXTRACT (YEAR FROM date_in), 100) != 0)
                  OR MOD (EXTRACT (YEAR FROM date_in), 400) = 0 THEN    ----    This is corrected.
                1
             ELSE
                0
          END
             AS bit
     INTO result
     FROM DUAL;

   RETURN result;
END is_leap_year;
/

See you soon,.
Manik.

Edited: the name of the schema in the proc

Published by: Marty on November 14, 2012 10:17

Tags: Database

Similar Questions

  • PL SQL Compilation with error

    Hi guys,.

    Sorry that I am quite new to PL SQL and oracle. I saw a question on the SQL pl as I put it in place of a CREATE or REPLACE FUNCTION. Here is my syntax of my function.

    create or replace function auth_Name (v_auth_state IN varchar)
    VARCHAR2 is back

    v_authName varchar;
    BEGIN

    Select the name in the employee v_authName
    where
    name = v_auth_state;

    Return v_authName;

    end auth_Name;

    /


    But whenever I compile, it will display "function created with compilation errors. Isn't it supposed to show "function successfully created"? can anyone guide me with this?

    Hello

    Welcome to the forum!

    The immediate problem is that the v_authName of local variable cannot be declared as just VARCHAR. This is how you give the data type of an argument (like v_auth_state) or type the function return, but the local variable must be of a given length.

    You could say something like:

    v_authName varchar (20);
    

    but, as v_authName must match a specific column in a specific table, it is better to define it as the column type and length directly.
    You can do the same for the argument and return type, like this:

    create or replace function auth_Name ( v_auth_state IN employee.name%TYPE)
    return employee.name%TYPE is
    
         v_authName     employee.name%TYPE;
    BEGIN
    
         select      name
         into      v_authName
         from     employee
         where
              name     = v_auth_state;
    
         return v_authName;
    
    end auth_Name;
    /
    show errors
    

    Looks like the service is simply turn his argument. Is that what you want? If this isn't the case, describe what the function is supposed to do.

    As writing the function will be an execution if error there exactly one line in the table with the given name employee. What you want to happen if there is no corresponding row in the table? How about if there are several?

  • Procedure with recursive query in 11g to compile with error in 10g

    Hi all

    I have a procedure recursively selects tree table (with ID-ParentID relationship). Question itself works perfectly and exactly as I need 11g and procedure containing it compiles well. But when I try to create the same procedure in 10g then I get a message this procedure compiled with the error. I have no other suspicions but the part inside.

    The exact query is here (destination_tariff_zones is the tree table which refers to himself by parent_destination_tariff_zone_id):

    + dtzl_cur open FOR
    with dtree (nm, iid, chess, wldcard, dtzindex)
    as (select dtz.iname, dtz.iid, 0, dtz.wildcard, rcdi.iindex)
    of dtz, ISR., rcd rating_cube_dimensions rating_cube_dimension_indices destination_tariff_zones
    where dtz.parent_tariff_zone_id is null and
    DTZ. "' rc_dimension_index_id ' = rcdi.iid and
    ISR.. "' rc_dimension_id ' = rcd.iid and
    RCD.rating_cube_id = rc_id and
    RCD.dimension_type_id = dim_type
    Union of all the
    Select dtz.iname, dtz.iid, dtree.alevel + 1,
    Cast ((dtree.wldcard || dtz.wildcard) as varchar2 (20)), rcdi.iindex
    from dtree, dtz, ISR., rcd rating_cube_dimensions rating_cube_dimension_indices destination_tariff_zones
    where dtree.iid = dtz.parent_tariff_zone_id and
    DTZ. "' rc_dimension_index_id ' = rcdi.iid and
    ISR.. "' rc_dimension_id ' = rcd.iid and
    RCD.rating_cube_id = rc_id and
    RCD.dimension_type_id = dim_type)
    Select iid, nm, wldcard and dtzindex
    from dtree
    order of wldcard; +

    Is there a difference between how to manage 11g and 10g WITH instructions?
    Please notify.

    Thank you very much in advance,
    Max

    Hello
    maybe try something like:

    with dtree as
    (select dtz.iname, dtz.iid, 0, dtz.wildcard, rcdi.iindex,dtz.parent_tariff_zone_id
    from destination_tariff_zones dtz, rating_cube_dimension_indices rcdi, rating_cube_dimensions rcd
    where dtz."rc_dimension_index_id" = rcdi.iid and
    rcdi."rc_dimension_id" = rcd.iid and
    rcd.rating_cube_id = rc_id and
    rcd.dimension_type_id = dim_type)
    select iname, iid, level-1 alevel,
    replace(SYS_CONNECT_BY_PATH(wildcard,'/'),'/',''), iindex
      from dtree
    connect by prior iid = parent_tariff_zone_id
    start with parent_tariff_zone_id is null
    

    But make sure you careffull I'm not sys_connect_by way to reproduce the casting, because I'm not able to test the query...

  • Compilation of procedure with errors

    Hello

    I don't know why this procedure compile with errors:

    CREATE OR REPLACE PACKAGE BODY emp_package
    PROCEDURE read_emp_table
    (p_emp_table OUTPUT emp_table_type) IS
    I have directory: = 0;
    BEGIN
    FOR emp_record IN (SELECT * FROM employees)
    LOOP
    emp_table (i): = emp_record;
    i: = i + 1;
    END LOOP;
    END read_emp_table;
    END emp_package;
    /

    Can someone help me.

    Thank you

    You did not post the error. I guess that one of them is associated index. Oracle index in the collection begins with 1, not zero. Change

    I have directory: = 0;

    TO:

    I have directory: = 1;

    In addition, emp_table is not declared I guess it must be p_emp_table. So change:

    emp_table (i): = emp_record;

    TO

    p_emp_table (i): = emp_record;

    And after that it compiles it scratch and replace by:

    CREATE OR REPLACE PACKAGE BODY emp_package IS
    PROCEDURE read_emp_table
    (p_emp_table OUT emp_table_type) IS
    BEGIN
    SELECT * BULK COLLECT INTO p_emp_table FROM employees;
    END read_emp_table;
    END emp_package;
    /
    
  • 6.5.5 workstation does not compile with the 2.6.37 kernel (os11.4)

    Hi all

    I have to stay with VMware Workstation 6.5.5 because of my lack of EAP robot. 6.5.5 workstation has worked well with a patch on openSUSE 11.3. Now I want to migrate to oS 11.4. But I could not find a patch to date. If someone knows something about a patch or how to solve the error message following (ioctl to the end), then please send me the Info:

    Stopping VMware services:
    Virtual machine communication interface is
    Virtual machine monitor makes
    File system is blocking
    Using 2.6.x kernel build system.
    do: enter the directory ' / tmp/vmware-root/modules/vmmon-only '.
    do /lib/modules/2.6.37.1-1.2-default/build/include/ - C... SUBDIRS = $PWD SRCROOT = $PWD. \
    MODULEBUILDDIR = modules
    make [1]: Entering directory ' / usr/src/linux-2.6.37.1-1.2-obj/i386/default'
    make - C /... /.. /Linux-2.6.37.1-1.2 O=/usr/src/linux-2.6.37.1-1.2-obj/i386/default/. modules of
    CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o
    In file included from tmp/vmware-root/modules/vmmon-only/./include/vmware.h:38:0,
    from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:100:
    /tmp/vmware-root/modules/vmmon-only/./include/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined
    In file included from tmp/vmware-root/modules/vmmon-only/./common/vmx86.h:32:0,
    of tmp/vmware-root/modules/vmmon-only/linux/driver.h:29.
    from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:102:
    /tmp/vmware-root/modules/vmmon-only/./include/x86msr.h:164:0: warning: 'MSR_THERM2_CTL' redefined
    /usr/src/linux-2.6.37.1-1.2/arch/x86/include/ASM/MSR-index.h:235:0: Note: this is the location of the previous definition
    In file included from tmp/vmware-root/modules/vmmon-only/./include/vcpuset.h:103:0,
    of tmp/vmware-root/modules/vmmon-only/./include/modulecall.h:37.
    of tmp/vmware-root/modules/vmmon-only/./common/vmx86.h:33.
    of tmp/vmware-root/modules/vmmon-only/linux/driver.h:29.
    from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:102:
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:329:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:333:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:401:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:407:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h: in function 'Atomic_And ':
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:506:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h: in function 'Atomic_Or ':
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:595:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h: in function 'Atomic_Xor ':
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:684:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h: in function 'Atomic_Add ':
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:773:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:775:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h: in function 'Atomic_Sub ':
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:860:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:862:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h: in function 'Atomic_Inc ":
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:945:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:947:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h: in function 'Atomic_Dec ':
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1028:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1030:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h: at the highest level:
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1223:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1227:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1536:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_atomic.h:1663:7: warning: "_MSC_VER" is not defined
    In file included from tmp/vmware-root/modules/vmmon-only/./include/vm_basic_asm.h:46:0,
    of tmp/vmware-root/modules/vmmon-only/./include/rateconv.h:45.
    of tmp/vmware-root/modules/vmmon-only/./include/modulecall.h:40.
    of tmp/vmware-root/modules/vmmon-only/./common/vmx86.h:33.
    of tmp/vmware-root/modules/vmmon-only/linux/driver.h:29.
    from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:102:
    /tmp/vmware-root/modules/vmmon-only/./include/vm_basic_asm_x86.h:62:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_basic_asm_x86.h:177:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_basic_asm_x86.h:346:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_basic_asm_x86.h:453:7: warning: "_MSC_VER" is not defined
    In file included from tmp/vmware-root/modules/vmmon-only/./include/vm_asm.h:43:0,
    from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:104:
    /tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86.h:486:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86.h:779:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86.h:820:7: warning: "_MSC_VER" is not defined
    /tmp/vmware-root/modules/vmmon-only/./include/vm_asm_x86.h:922:7: warning: "_MSC_VER" is not defined
    In file included from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:120:0:
    /tmp/vmware-root/modules/vmmon-only/./common/hostif.h:53:7: warning: 'WINNT_DDK' is undefined
    /tmp/vmware-root/modules/vmmon-only/Linux/driver.c: in function 'init_module(2) ':
    /tmp/vmware-root/modules/vmmon-only/Linux/driver.c:427:15: error: 'struct file_operations' has no member named 'ioctl '.
    make [4]: * [/ tmp/vmware-root/modules/vmmon-only/linux/driver.o] error 1
    make [3]: * [_module_/tmp/vmware-root/modules/vmmon-only] error 2
    make [2]: * [branded] error 2
    make [1]: * [all] error 2
    make [1]: leaving directory ' / usr/src/linux-2.6.37.1-1.2-obj/i386/default'
    make: * [vmmon.ko] error 2
    make: leaving directory ' / tmp/vmware-root/modules/vmmon-only '.
    Cannot install vmmon

    15/04/2011

    I wrote a patch for the kernel 2.6.37.1 - 1.2. Now, all modules compile without error. But the application does not start!

    Error message:

    / usr/bin/VMware: line 31: 1372 Segmentation fault "$BINDIR" / vmware-modconfig - appname = "VMware Workstation" - icon = "vmware-workstation.

    Someone at - it ideas? Any help is the apprecated!

    The patch file and the output of the compiler are attached.

    Thanks a lot for the patch! Works very well with 6.5.5 on suse 11.4 (2.6.37.1 - 1.2 - desktop)

    Search for your VMWARE_USE_SHIPPED_GTK = yes environment variables

    When that was settled, I had the same problem (segmentation fault). Set to = no or been completely just unplugged

    Hope this works for you, as your patch worked for me

  • Compilation with SQL * more

    Hello world

    I am sure it is a simple and can someone help me:

    In other projects, I've always used TOAD or similar tools to compile my PL/SQL code, but with this project I have only SQL * more then when I run 'CREATE PROCEDURE '.... "I just get the message ' Warning: function created with compilation errors.

    I'm sure that compiling information are written in a table somewhere or maybe can be displayed directly in the SQL * more window (maybe there an option or the indicator "Compile"?) and so I hope someone can point me to a good HOWTO or give me one or two keywords that I can google under?

    Thank you very much
    Alan Searle

    Use

    display errors

    or user_errors

    SQL> create or replace procedure p1 is
      2  begin
      3   null
      4  end;
      5  /
    
    Warning: Procedure created with compilation errors.
    
    SQL> show errors
    Errors for PROCEDURE P1:
    
    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    4/1      PLS-00103: Encountered the symbol "END" when expecting one of the
             following:
             ;
             The symbol ";" was substituted for "END" to continue.
    
    SQL> select text from user_errors
      2  where name = 'P1';
    
    TEXT
    --------------------------------------------------------------------------------
    PLS-00103: Encountered the symbol "END" when expecting one of the following:
    
       ;
    The symbol ";" was substituted for "END" to continue.
    
  • Unable to recover the TCP/IP connectivity & corrupt Winsock keys with error code 11003

    After being unable to solve the problems created by the McAfee download causing failure DComm and lost connectivity I uninstalled SP 3 and reinstalled.

    I have a corrupted Winsock2 registry and auto config proxy TCP/IP keys and detect the proxy appear as 'not available '.

    I tried to reset TCP/IP using netsh int ip reset c:\ reseting.txt and also the use of the patch tool.  The error code is the function IntHelper.dll in IPMONTR. DLL could start with error code 11003.

    I am able to visual determine that the winsock keys are corrupted, as described in kb/811259. I tried to reset the winsock2 registry keys by using the netsh winsock reset command. The error code is the IntHelperDll function in IPMONR. DLL could start with error code 11003.

    I would like any suggestions or ideas that anyone can have for the restoration of connectivity.

    Oh, and I'm not going to use McAfee products in the future.

    Thank you.

    Hi there nzcleman,

    Download and run LSPFix from here: http://www.cexx.org/lspfix.htm
    Read the instructions on how to use LSPFix carefully here: http://www.bleepingcomputer.com/tutorials/tutorial59.html

    Once executed, restart your system.

    Now download and run WinsockXPFix from here: http://majorgeeks.com/WinSock_XP_Fix_d4372.html
    Restart your system once again WinsockXPFix finished (even though it should restart for you).

    I hope this will help :)

    --> I hope this helps! Please mark it as correct answer or vote if it does :)<>

    http://www.pcuk.biz - my website

    Info from Microsoft about phishing . Information from Microsoft on the fake security software

  • Help with error message: "Windows Vista Home Premium product key you typed in is invalid for activation.

    Original title: help with error message... Please...!

    I use a desktop PC of HP Pavilion a6202.uk with Windows Vista Home Premium & Microsoft Office 2003.  When I am back from vacation & turned on my PC, my password was OK, but rather to raise Windows, I received the following message: "Windows Vista Home Premium product key you typed in is invalid for activation.  He then listed the following options: "access your computer with reduced functionality (this will allow you to buy a product online key)" or "Type a different product key" or "contact HP to help solve this problem."

    I have no idea what a product key is and don't have anything either in the type comes to connect as usual.  I can't access anything to be same to reduced functionality.  I can not type in a new product key because I did not.  I can not contact HP - phone number does not... !!

    I'm quite desperate, I travel docs to print and e-mail to answer and I don't have any idea what is happening.  Please can someone help with this not very IT clued-up DTP...!

    Moved from Vista programs Forum.

    You should have a sticker with the product key on your computer, on the bottom, or under the battery cover.  I try to type this key in and see if it accepts it.  If this isn't the case, you might not have an authentic version of Windows installed.

  • Compile with java7 succeedes, but fails with java8

    When you change the executable compiler of java7 (1.7.0_80) at java8 (1.8.0_60), I get a compilation error:

    Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failed

    D:\data\scm-workspace\ParAd\dev\ParAd\src\main\java\de\contiteves\parad\application\dialog\ParadDialog.Java:[32,12] error: cannot access HelpProvider

    at org.apache.maven.plugin.AbstractCompilerMojo.execute (AbstractCompilerMojo

    the project compiles without error using the java7 executable compiler

    The source code has not changed. the error disappears when returning to the java7 compiler executable.

    Please see the attached logs for more details.

    The problematic class
    comes from oracle-Help jar:

    helpproviderlocation.png

    How can I make my request compilable with Java8?

    The solution was to replace the help.jar from former JDev - 9.0.4.3 with JDev version - 12.2.x

    Good bye

    DPT

  • An Android compilation with pedestrian crossing is now defective

    Hello

    It seems that Android compilation with pedestrian crossing is now defective. I get the following when having error < plugin name = "cordova-plugin-concordance-webview" source = "MNP" / > my config.xml file:

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

    COMPILATION OUTPUT

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

    Build the option-"unrecognized (ignore).

    Running: / project/gradlew cdvBuildDebug b /project/build.gradle-Dorg.gradle.daemon=true - PcdvBuildMultipleApks = false

    null

    Embedded

    FAILED: Build failed with an exception.

    * Where:

    Script ' / project/cordova-plugin-crosswalk-webview/q_android-xwalk.gradle' line: 77

    * What went wrong:

    Is a problem evaluating the script.

    > Property not found 'xwalkMultipleApk' on the 'project' of the root project.

    * Try:

    Run with the option - stacktrace to get stack trace. Run with the option - info or - debug option to get out of the newspaper.

    It's a Blocker for me. Thank you in advance:-------.

    How about using

    
    

    ?

    It is a quite old version but should work (@PGB team: many of us need crosswalk - why is there no official upgrade?).

  • problem compiling with gcc 4.7.3 dbstl

    Hello

    my project uses dbstl and will not compile with gcc 4.7.3 und Linux x 86, unless I'm using - fpermissive. I tried different versions of db between 4.8 and 6.0.20 without success. In fact

    do exstl_advancedfeatures

    below, already, fails. There seems to be problems with name resolution. I couldn't find anything on the issue. Is it known? If not, where should I report it?

    Best,

    Andreas

    brand exstl_advancedfeatures output:

    . / libtool - mode = compilation g ++-I / examples/stl - c - I.-j' have... / SRC-D_GNU_SOURCE-D_REENTRANT-O3-I... / lang/cxx/STL... /examples/STL/StlAdvancedFeatures.cpp

    libtool: compile: g ++-I / examples/stl - c - I.-j' have... / SRC-D_GNU_SOURCE-D_REENTRANT-O3-I... / lang/cxx/STL... /examples/STL/StlAdvancedFeatures.cpp - fPIC - DPIC-o.libs/StlAdvancedFeatures.o

    In file included from... examples/STL/StlAdvancedFeatures.h:32:0.

    Of... /examples/STL/StlAdvancedFeatures.cpp:9:

    .. «/lang/cxx/STL/dbstl_vector.h: in the instantiation of the ' dbstl::db_vector_iterator < T, value_type_sub >: auto & dbstl::db_vector_iterator < T, value_type_sub >: operator ++ () [with T = char *; value_type_sub = dbstl::ElementHolder < char * >; < T, value_type_sub > dbstl::db_vector_iterator: auto = dbstl::db_vector_iterator < tank *, dbstl::ElementHolder < tank * > >]» :

    .. /examples/STL/StlAdvancedFeatures.h:663:26: required here

    .. /lang/cxx/STL/dbstl_vector.h:859:3: error: 'move_by' was not declared in this scope, and no declaration found by dependent on research of an argument when instantiating [-fpermissive]

    .. /lang/cxx/STL/dbstl_vector.h:859:3: Note: basic statements depending on "dbstl::db_vector_base_iterator < char * > ' cannot find search for the absolute

    .. /lang/cxx/STL/dbstl_vector.h:859:3: Note: use 'this-> move_by' instead

    [...]

    Hello

    We have fixed all the problems of compiling for dbstl in the development branch.

    So what version do you use?  Next, we'll create the patch for the specific version.

    Kind regards

    -Winter

  • ORA 28817 PLSQL function returned an error. When the apex 4 2 instance access

    Hello

    I just upgraded from apex to apex 4.2 4.1. All is well except for this error I get when I try to access the parameter Instance on the App Admin (localhost/apex/apex_admin)
    ORA-28817: PL/SQL function has returned an error
    What could be the problem? How we solve this problem...

    I'm working on the 2012 Win server machine... apex 4.2 with earphone 2 deployed on Glassfish 3.1.2 apex.

    Best regards
    Fateh

    Hello Faye,

    We are already aware of this problem, even if it is not yet present on our Web page of problems known. The reason for this error is that the new facility replaces an instance to the scale encryption key. In the preferences of the instance which have been encrypted with the old value (the SMTP password and the password for the portfolio), the values are not valid after the upgrade and decryption causes this error. As a work around, you can use the apex_instance_admin package to replace the invalid passwords.

    The following code shows how the decryption throws ORA-28817:

    SYS@a411> select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual;
    select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual
           *
    ERROR at line 1:
    ORA-28817: PL/SQL function returned an error.
    ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
    ORA-06512: at "SYS.DBMS_CRYPTO", line 44
    ORA-06512: at "APEX_040200.WWV_FLOW_CRYPTO", line 89
    ORA-06512: at "APEX_040200.WWV_FLOW_INSTANCE_ADMIN", line 239
    

    You can fix this by entering new password:

    SYS@a411> exec apex_instance_admin.set_parameter('SMTP_PASSWORD','my smtp password');
    PL/SQL procedure successfully completed.
    
    SYS@a411> exec apex_instance_admin.set_parameter('WALLET_PWD','my wallet password');
    PL/SQL procedure successfully completed.
    
    SYS@a411> select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual;
    APEX_INSTANCE_ADMIN.GET_PARAMETER('SMTP_PASSWORD')
    ----------------------------------------------------------------------------------------------
    my smtp password
    
    1 row selected.
    

    Kind regards
    Christian

  • Code not compile with java7 but compiled with java6

    Hi all

    I after class:
    public class StrangeClass < T < S, T > StrangeClass extends S extends StrangeClass < T, S > > {}

    Public Shared Sub main (String [] args) throws InstantiationException, IllegalAccessException {}
    System.out.println ("test");
    }
    }

    It is compiling with eclipse (Java 7) and java 6u33 (oracle) but do not compile with java 7u5 (oracle)

    StrangeClass.java:1: error: type argument S is not within the limits of the variable of type T
    public class StrangeClass < T < S, T > StrangeClass extends S extends StrangeClass < T, S > > {}
    ^
    where S, T are variables of type:
    S < T, S > StrangeClass declared in the StrangeClass class extends
    T extends < S, T > StrangeClass declared in the StrangeClass class
    1 error

    Don't you think it's a bug or an expected behavior?

    Because they are two different things? Java 7 is NOT just an 'upgrade' of Java 6, it's a new platform. That's why things can and will be different.

    In this case simply maybe just a bug in the compiler was plugged.

  • Java Script alert: MuseJSAssert: error calling the function switch: security error?

    Hello

    I built a site of Muse and place a dashboard project animate the site. Here's the problem I have. When I saw in the browser through Muse all seem to work well. The problem is when I export to HTML. When I view the HTML file in Firefox, everything works fine. But when I discover the HTML in Chrome or Opera, I get the following error appears on the top of the browser: Java Script Alert: MuseJSAssert: error calling the function switch: security error: blocked a frame with original "null" access to a framework of cross-origin.

    Any ideas what is the cause? I noticed one thing, but if I click the button refresn the animation playback. The other thing I noticed, is that my full screen lide show is also affected by this error. He plays as the first image and the rest of the images are not displayed.

    Thank you for any suggestions to fix this.

    Hey all!

    I finally found how to solve this problem! At only took about 3 hours!

    Therefore, to do with the iframe code muse did for the lively edge file.

    If we take things from the outset, if everyone includes:

    1 publish a 'edge Animate Deployment Package (.oam)' dashboard animate

    2. in muse, file > Place > {exported .oem)

    3. put the file where you want

    4 muse export as HTML (file > export as HTML)

    5. your browser will open and display the error message, as shown above

    6 locate the HTML files and find "index.hml", or the page that your file hosted dashboard is on

    7. open it in Notepad, or editing program code. I use Adobe Edge Code CC

    8 remove the text: class = "animationContainer an_invi" (press ctrl + f and type to find the line)

    9 be sure to save and then reopen the Web page!

    10 smile for yourself and be raised

  • Not fully functional mouse with MacBook Pro 2010. I can scroll up and down, but can not move the cursor.  The mouse works with my new Macbook 12. No mouse problem but Macbook Pro?

    Not fully functional mouse with MacBook Pro 2010. I can scroll up and down, but can not move the cursor.  The mouse works with my new Macbook 12. No mouse problem but Macbook Pro?

    What specific mouse?

Maybe you are looking for