Developer SQL not accepting is not some keyboard characters

Hello
I've been using SQL Developer for 5 or 6 months, with minor problems and great satisfaction.

A few days earlier, just out of the blue, in the middle of the day, developer started SQL only accepts only not the following characters:

CTRL-v, Ctrl + c, F5, F9 (I think that all the function keys), BACKSPACE, delete, arrows and Enter. + *

T * its happens only in the part of the text editor *. I am able to use this key in the results, whether they are an output of script or execute query.
Developer SQL works as well (if I stick with the mouse, paste works... and all other keys)

I have not checked the pc of viruses using AVG, no virus found (my avg is updated daily and runs daily virus checks on a calendar and this issue has been here for 1 or 2 weeks, so it was a virus, I think he should be discovered, in addition, keys always work in sql developer (, not only in the text editor component)

It goes without saying, but if I run Notepad and type, keys work properly.
I also reinstalled it to a different folder with no luck
So tried to restart... no luck
Tried in SafeMode... no luck

I use SQL developer Version 1.5.4, HAND-5940 build... on Windows Xp
I suspect there is an option in that I disabled without paying attention...

Help!


Kind regards
Charles

All this time, try the possible solutions is understandable, but then type in your post... when searching the forum would have given you the solution below 1 minute:

Preferences - accelerators - load - default setting

Hope that helps,
K.

Tags: Database

Similar Questions

  • Developer SQL not display warnings from the compiler

    I just test the new compiler in 11g warning message related to the exception handler so that "others" when there is a subsequent increase or raise_application_error.

    in SQL Plus, it works fine:

    SQL> alter session set plsql_warnings='enable:all';
    
    Session altered.
    
    SQL>
    SQL> create or replace function do_stuff
      2  return number
      3  as
      4     v_return number;
      5  begin
      6
      7     v_return := 3;
      8     return v_return;
      9
     10  exception
     11  when others then
     12     return null;
     13  end;
     14  /
    
    SP2-0806: Function created with compilation warnings
    
    SQL> show errors;
    Errors for FUNCTION DO_STUFF:
    
    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    1/1      PLW-05018: unit DO_STUFF omitted optional AUTHID clause; default
             value DEFINER used
    
    11/6     PLW-06009: procedure "DO_STUFF" OTHERS handler does not end in
             RAISE or RAISE_APPLICATION_ERROR
    but Developer SQL, the output is:
    BANNER                                                                           
    -------------------------------------------------------------------------------- 
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production     
    PL/SQL Release 11.2.0.3.0 - Production                                           
    CORE     11.2.0.3.0     Production                                                         
    TNS for Linux: Version 11.2.0.3.0 - Production                                   
    NLSRTL Version 11.2.0.3.0 - Production                                           
    
    session SET altered.
    FUNCTION do_stuff compiled
    No Errors.
    Someone at - there experience this problem? is there a setting that makes Developer SQL behave differently?

    There is a bug.

    The solution is to make sure that the name of the object in CREATE or REPLACE is uppercase

    So in your example make DO_STUFF

    Run as a Script

    Then check the compiler Log/Logging Panel, you will see your mistakes.

    It has been marked to be fixed in our next release.

  • Some keyboard characters that come out bad on Satellite Pro

    Sumbody you will suggest how to solve the problem with my Satellite Pro keyboard. When I type a capital S | or if the lines\ and the s\las\hes\ appear - as\ stated. When I us\e the arrow keys\ to move als\o I thes\e characters\.,.

    Very strange have you checked if everything still works as FN + F10, FN + F11 or FN + F12 are not enabled?

    But it s unlikely that one of these functions could cause this strange signs.
    I guess that a malfunction of the keyboard

  • Queue in sql developer does not take into account the VALUE ECHO OFF

    I am a developer SQL 3.1.07.42 Windows 7 64 bit with java 1.7

    I have the following script very simple just to show the problem:
    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    
    SPOOL c:\test.sql
    SELECT 1, 2, 3 FROM DUAL;
    SPOOL OFF;
    /
    If I run into a FROG 10.6.0.42 it creates the file with
             1          2          3
    This is as expected (by me)
    If I run the same exact query in SQL Developer 3.1.07.42, it creates the file with:
    < SELECT 1, 2, 3 FROM DUAL
    1 2 3
    (the < above is actually ">" but software formatting CODE is screwing ' > ')
    but I don't want the ECHOed command to be wound. For the life of me, I can't find a way to turn off the ECHO of the queue in sql developer.
    Tried the same thing in 3.0.4 and 2.1.1 with the same (bad) result (more a few warning on some unsupported SET commands).

    Am I missing something obvious? Cause like that, control of the coil cannot be used in sql developer to generate a CSV file, for example, due to the echo command. And windows does not come with default SED so it's on. (more than my original script is integrated into a whole much broader and complex scripts and the main script, their use is run from Developer SQL as a company policy (so that everyone uses the same tool and the code runs the same for everyone))

    Any ideas/suggestions are welcome
    Thank you.

    Hello

    If you save your code

    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    
    SPOOL c:\testscript.log
    SELECT 1, 2, 3 FROM DUAL;
    SPOOL OFF;
    

    as a script, say C:\testscript.sql, then run from a worksheet like

    @\testscript.sql

    the output in C:\testscript.log will be

    1 2 3

    Kind regards
    Gary
    SQL development team

  • my SQL Developer does not work properly! Help

    Hello!!

    My problem here is not like I can't live or work, but it's REALLY annoying, see my SQL Developer does not take any different key of letters and the space bar, I mean, if I use the Enter key, does not alter the line, if I use the return key back isn't clear if I use F5/F9 does not execute the msec! and if the keys don't work!

    any ideas why this is happening? and if yes how do fix this problem?

    There is a well known bug but still not solved, causing this type of behavior, if you are a developer SQL 1.5.X you can work around the problem by loading the accelerators by default:

    Tools-> accelerators-> load Preset-> by default

    If you're on 2.1.X preset may be responsible for

    Tools-> preferences->-> others-> load keyboard accelerators

    2.1 this problem has not been reported so far, so if you are in 1.5.X you can consider upgrading.

  • Some keyboard shortcuts not working is not in FF27

    After the update to the latest version (FF27), Firefox does not meet some keyboard shortcuts. For example, ctr + shift + T doesn't work (ctr + T works fine). Put aside cela ctrl + < number > does not take me to respective tabs.
    I tried to reinstall FF; but that did not help. (But not a not all delete that data - custom data and firefox in the C drive folder was still there).

    PS - I addon-tab mix more.

    You can consult the experienced TabMix Plus forum.

    http://tmp.garyr.NET/forum/

  • I have a 2011 version of Dreamweaver which accepts not som, e attributes of html5, what can do?

    I have a 2011 version of Dreamweaver which accepts not som, e attributes of html5, what can do?

    Moved to the main support of Dreamweaver forum.

    Your 2011 Dreamweaver version cannot be updated, in the same way that Ford (or any other car manufacturer) is not provide you with a free car when a new model is available. Therefore, you have several options:

    • Subscribe to the creative cloud to get the latest version of Dreamweaver.
    • Use the media, free HTML/CSS Editor from Adobe.
    • Type the HTML5 attributes manually in Code from Dreamweaver mode and ignore the error messages you get.
  • Developer SQL error: ORA-12505. TNS:listner is not currently of SID given in connect descriptor

    Hello guys, I know this question has been posted on several occasions in the past, but my question includes developer oracle sql only. I can use the database and all the features through sql * more even execute sql queries. but when it comes to developer sql always returns this error. (error: ORA-12505.)

    Windows 8-64 oracle 11 g r2

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

    Welcome to LSNRCTL, enter 'help' for more information.

    LSNRCTL > status

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

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

    Alias auditeur1

    TNSLSNR for Windows 64-bit version: Version 11.2.0.1.0 - Production

    Start date August 11, 2014 13:08:08

    Uptime 0 days 0 h 14 min 55 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File C:\app\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora

    C:\app\oracle\diag\tnslsnr\Needo-pc\listener1\alert\log.XML log listener

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = Needo-pc)(PORT=1521)))

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 3 service management...

    Service "orcl" has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Service 'orclXDB' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

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

    LSNRCTL > services

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 3 service management...

    Managers:

    "DEDICATED" set up: 0 denied: 0

    LOCAL SERVER

    "ORACLE SERVER" put in place: 0 denied: current: 0 0 max: 25 status: ready

    CLRExtProc

    (ADDRESS = (PROTOCOL = ipc) (PIPENAME=\\.\pipe\NTN_122C_C6D0FCF3. ORA))

    "ORACLE SERVER" put in place: 0 denied: current: 0 0 max: 25 status: ready

    CLRExtProc

    (ADDRESS = (PROTOCOL = ipc) (PIPENAME=\\.\pipe\NTN_122C_C6D0FCF3. ORA))

    Service "orcl" has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 22 refused: 0 status: ready

    LOCAL SERVER

    Service 'orclXDB' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Managers:

    "D000" put in place: 0 denied: current: 0 0 max: 1022 State: loan

    DISPATCHER < machine: NEEDO-PC, pid: 3172 >

    (ADDRESS = (PROTOCOL = tcp) (HOST = Needo-pc)(PORT=52654))

    The command completed successfully

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

    Thank you!

    Try it with sid ORCL instead of XE.

    If this does not help, then choose SERVICE_NAME orcl instead of SID in sql developer.

    Your listener seems to have an entry for this.

    You can also test it in SQl * more. But what you've done so far in SQl * plus was a "server connection", without providing the database.

    Because in your case, the client and the server is on the same machine, it works with sql * more.

    If you try a customer coonnect by specifying the database, then you would do the same thing as the Oracle SQL Developer is by train.

    For test purposes, something like

    sqlplus user/[email protected]:port/ORCL

    also in the Sqlnet.ora file must be an etry for local EZCONNECT connect method. I don't know if it is set during the installation of network by default.


    You can try if there is an Alias-TNS name (configured in the tnsnames.ora)

    sqlplus user/[email protected]


    If it works with sql * plus, so you must always indicate the sql developer where the tnsnames.ora file is located on your computer.

    The setting can be found in the menu: extras/tools/base data/improved

    The tnsnames.ora file is usually in a file like this:

    C:\Oracle\product\11.2.0\client_1\network\admin


  • Developer SQL Launcher does not not Linux

    Hello

    System details:

    Fedora 19

    Developer SQL Version: Version 4.0.0.12

    Java Version: 1.7.0 - 40 OpenJDK

    I can launch Sql Developer from the command line with success.

    /opt/sqldeveloper/sqldeveloper.sh

    But when I try to use the launcher icon, I get a SIGSEGV error.  This is the top of the hs_error.log file.

    ***

    #

    # A fatal error has been detected by Java runtime environment:

    #

    # SIGSEGV (0xb) at pc = 0x000000317a062e00, pid = 7680, tid is 140636646749952

    #

    # Version JRE: OpenJDK Runtime Environment (7.0_40 - b60) (build 1.7.0_40 - mockbuild_2013_10_02_16_56-b00)

    # Java VM: OpenJDK 64-bit Server VM (24, 0 - b56 mixed mode linux-amd64 compressed oops)

    # Problematic frame:

    C# 0X000000317A062E00

    ***

    The ~/.sqldeveloper/jdk file contains the following:

    /usr/lib/JVM/Java-1.7.0-OpenJDK-1.7.0.60-2.4.2.7.FC19.x86_64

    ***

    And my /usr/share/applications/sqldeveloper.desktop file contains the following:

    [Desktop entry]

    Encoding = UTF-8

    Name = Developer SQL

    Comment = Oracle SQL Developer

    Icon=/opt/sqldeveloper/icon.PNG

    Exec=/opt/sqldeveloper/sqldeveloper.sh

    Terminal Server = true

    Type = Application

    Categories = GNOME; Oracle;

    ***

    I'm just going to Ubuntu to Fedora so it has not worked in the past.

    Thanks for any help,

    Ann

    See this

    https://forums.Oracle.com/thread/2594033

    It worked for me

  • Buffer SQL commands (get, run, save, etc.) in Developer SQL does not?

    I am a developer SQL 3.1.07.42 Windows 7 64 bit with java 1.7

    I have c:\test.sql that contains
    PROMPT Working
    and c:\testscript.sql that contains
    set echo on
    set serveroutput on
    /
    GET c:\test.sql
    SAVE c:\test_working.sql
    LIST 1 LAST
    RUN
    If I open a new worksheet and type:
    @\testscript.sql
    then press F5, I get:
    @\testscript.sql
    set serveroutput on
    /
    GET c:\test.sql
    SAVE c:\test_working.sql
    LIST 1 LAST
    RUN
    If the c:\test_working.sql is not created and the content of the script is not executed.

    What I am actually trying to do here (and maybe you guys have a better idea) is to capture the output of the sql command that appears on the client, send it to the server, treat it somehow and then do everything with her (she log in my case).

    For example (a very simple example from my scripts).
    spool c:\temporary.tmp
    create table test();
    spool off;
    
    get c:\temporary.tmp
    0 begin insert into logtable (msg) (trim('
    100 ')); end;
    
    save logit.sql
    
    @'logit.sql'
    the idea is to be able to save the output of any control block / anonymous plsql in a way that can be sent to the server for processing (this is for most mistakes, of course).
    I can intercept DBMS_OUTPUT turning SERVEROUTPUT then a DBMS_OUTPUT. ACTIVATE and finally using DBMS_OUTPUT. GET all the lines and the process/log them, but I have not found a way yet to catch the rest of the "TERMOUT' of treatment other than the queue, but even then, I couldn't find a way to get the local file (content) on the server; and this idea GET/SAVE/RUN appeared to be feasible but its does not work (I even tried interactively, but maybe I'm doing something wrong).

    Any ideas/suggestions on the topic are welcome.

    Thank you.

    Hello

    According to the 3.1.04.72 SQL Developer documentation, the "get" command (among others) is not supported:
    Help | Table of contents | SQL Developer concepts and use. With the help of the SQL worksheet | SQL * more supported and unsupported statement...

    If the options are limited. If sqlplus is available and use it as an "external" tool will not conflict entirely with local policy, these links may interest you:
    Re: sqlplus vs sqldeveloper
    Easy Connect and sqldev.conn issues

    Otherwise, you can add a feature request for this on the SQL Developer and see if such an improvement is a priority for the community.

    Kind regards
    Gary
    SQL development team

  • Developer SQL does not start on Mac OS x Lion

    Hello

    hoping someone can help me with this one, I've been running 3 SQL Developer on the macbook no problem for about a year, I have recently updated to Mac OS x Lion and now when I try to start SQL Developer, he is not running.

    I downloaded and installed the latest version of java, as noted on the download page of SQL Developer.

    When I start the SQL Developer and view the activity monitor the 'bash' process starts to use 100% of the CPU very quickly and Developer SQL can't yet to the start screen.

    Can someone point me in the right direction in terms of diagnosing this problem? Is there a log file I can see again or how to start the SQL Developer with specific arguments?

    Kind regards
    Stu

    Developer SQL works for me on my Macbook the Lion. Corresponding host Java looks like:

    /System/library/Java/JavaVirtualMachines/1.6.0.JDK/contents/home

    Here's how my conf file is set up:

    AddVMOption - Dcom.apple.mrj.application.apple.menu.about.name = "SQL_Developer"
    AddVMOption - Dcom.apple.mrj.application.growbox.intrudes = false
    AddVMOption - Dcom.apple.macos.smallTabs = true
    AddVMOption - Dapple.laf.useScreenMenuBar = true
    True SetSkipJ2SDKCheck
    SetJavaHome /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
    AddVMOption - Xbootclasspath/p:... /... /RDBMS/jlib/ojdi.jar

    (/ Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin/sqldeveloper-Darwin.conf)

    Good luck!

    -Andrew Wolfe

  • Developer SQL does not start

    Hello

    I just downloaded SQL Developer 4.1.1.19, I instaled java jdk and tried to run the sqldeveloper.exe file. Developer SQL window opens, it says loading, progress bar moves up to something like 10% and then it just stops without any error or warning.

    Anyone have any idea what should I do?

    Radek

    I've moved the SQL folder to C directly and it worked...

  • XMLForest with multiple subqueries return not some tags

    Hello

    PL/SQL in Oracle 11.2.0.1.0 (stored procedure).

    I am using this slider (I only show a part of the cursor - hope that is not a problem):

    XMLForest)
    XMLForest)
    (SELECT XMLConcat)
    XMLForest (brd.service_date AS "ns3:BeginDate",
    'INF' AS 'ns3:ActionCode'),
    XMLElement ("AnimalEventType",
    XMLElement ("ns3:Insemination",
    XMLElement ("ns3:Bull",
    XMLElement("ns3:RegistrationAnimalNumber", brd.sire_reg_id)))
    OF cmi_breedings brd
    WHERE brd.anm_id = anm.id
    AND brd.sire_reg_id IS NOT NULL
    AND brd.service_date = (SELECT MAX (brd2.service_date)
    OF cmi_breedings brd2
    WHERE brd2.anm_id = brd.anm_id)) AS "AnimalEvent."
    (SELECT XMLConcat)
    XMLForest (lct.start_date AS "ns3:BeginDate",
    'INF' AS 'ns3:ActionCode'),
    XMLElement ("AnimalEventType",
    XMLElement ("ns3:Parturition",
    XMLElement("ns3:LactationNumber", lct.lact_no)))
    OF cmi_lactations lct
    WHERE lct.anm_id = anm.id
    AND lct.start_date = (SELECT MAX (lct2.start_date)
    OF cmi_lactations lct2
    WHERE lct2.anm_id = lct.anm_id)) AS "AnimalEvent."
    (SELECT XMLConcat)
    XMLForest (lct.end_date AS "ns3:BeginDate",
    'INF' AS 'ns3:ActionCode'),
    XMLElement ("AnimalEventType",
    XMLElement ("ns3:DryOff")))
    OF cmi_lactations lct
    WHERE lct.anm_id = anm.id
    AND lct.end_date = (SELECT MAX (lct2.end_date)
    OF cmi_lactations lct2
    WHERE lct2.anm_id = lct.anm_id)) AS "AnimalEvent."
    (SELECT XMLConcat)
    XMLForest (prg.prgncy_chk_date AS "ns3:BeginDate",
    'INF' AS 'ns3:ActionCode'),
    XMLElement ("AnimalEventType",
    XMLElement ("ns3:PregnancyCheck",
    XMLElement ("ns3:PregnancyCheckResult", DECODE (prg.prgncy_ind, '1', 'F', 'E')))
    OF cmi_pregnancies prg
    WHERE prg.anm_id = anm.id
    AND prg.prgncy_chk_date = (SELECT MAX (prg2.prgncy_chk_date)
    OF prg2 cmi_pregnancies
    WHERE prg2.anm_id = prg.anm_id)) AS 'AnimalEvent '.
    ) AS "AnimalEvents".
    )

    which means (as expected and works perfectly):

    < AnimalEvents >
    < AnimalEvent >
    < ns3:BeginDate > 1997 - 09 - 08 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:Insemination >
    < ns3:Bull >
    < ns3:RegistrationAnimalNumber > 5401809 < / ns3:RegistrationAnimalNumber >
    < / ns3:Bull >
    < / ns3:Insemination >
    < / AnimalEventType >
    < / AnimalEvent >
    < AnimalEvent >
    < ns3:BeginDate > 1997 - 05 - 10 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:Parturition >
    < ns3:LactationNumber > 8 < / ns3:LactationNumber >
    < / ns3:Parturition >
    < / AnimalEventType >
    < / AnimalEvent >
    < AnimalEvent >
    < ns3:BeginDate > 1998 - 02 - 02 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:DryOff / >
    < / AnimalEventType >
    < / AnimalEvent >
    < / AnimalEvents >

    However, if I wanted to return several rows for an animal insemination event by changing the query like this:


    XMLForest)
    XMLForest)
    (SELECT XMLConcat)
    XMLForest (brd.service_date AS "ns3:BeginDate",
    'INF' AS 'ns3:ActionCode'),
    XMLElement ("AnimalEventType",
    XMLElement ("ns3:Insemination",
    XMLElement ("ns3:Bull",
    XMLElement("ns3:RegistrationAnimalNumber", brd.sire_reg_id)))
    OF cmi_breedings brd
    WHERE brd.anm_id = anm.id
    AND brd.sire_reg_id IS NOT NULL
    AND brd.service_date > (SELECT MIN (brd2.service_date) <-what IS THE LINE has BEEN CHANGED)
    OF cmi_breedings brd2
    WHERE brd2.anm_id = brd.anm_id)) AS "AnimalEvent."
    (SELECT XMLConcat)
    XMLForest (lct.start_date AS "ns3:BeginDate",
    'INF' AS 'ns3:ActionCode'),
    XMLElement ("AnimalEventType",
    XMLElement ("ns3:Parturition",
    XMLElement("ns3:LactationNumber", lct.lact_no)))
    OF cmi_lactations lct
    WHERE lct.anm_id = anm.id
    AND lct.start_date = (SELECT MAX (lct2.start_date)
    OF cmi_lactations lct2
    WHERE lct2.anm_id = lct.anm_id)) AS "AnimalEvent."
    (SELECT XMLConcat)
    XMLForest (lct.end_date AS "ns3:BeginDate",
    'INF' AS 'ns3:ActionCode'),
    XMLElement ("AnimalEventType",
    XMLElement ("ns3:DryOff")))
    OF cmi_lactations lct
    WHERE lct.anm_id = anm.id
    AND lct.end_date = (SELECT MAX (lct2.end_date)
    OF cmi_lactations lct2
    WHERE lct2.anm_id = lct.anm_id)) AS "AnimalEvent."
    (SELECT XMLConcat)
    XMLForest (prg.prgncy_chk_date AS "ns3:BeginDate",
    'INF' AS 'ns3:ActionCode'),
    XMLElement ("AnimalEventType",
    XMLElement ("ns3:PregnancyCheck",
    XMLElement ("ns3:PregnancyCheckResult", DECODE (prg.prgncy_ind, '1', 'F', 'E')))
    OF cmi_pregnancies prg
    WHERE prg.anm_id = anm.id
    AND prg.prgncy_chk_date = (SELECT MAX (prg2.prgncy_chk_date)
    OF prg2 cmi_pregnancies
    WHERE prg2.anm_id = prg.anm_id)) AS 'AnimalEvent '.
    ) AS "AnimalEvents".
    )

    I get an error message on several rows returned (and that's what I want to be returned in some cases, more than one record).

    For example, I would look like this (notice that I have an extra "insemination" in the example below):

    < AnimalEvents >
    < AnimalEvent >
    < ns3:BeginDate > 1997 - 09 - 08 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:Insemination >
    < ns3:Bull >
    < ns3:RegistrationAnimalNumber > 5401809 < / ns3:RegistrationAnimalNumber >
    < / ns3:Bull >
    < / ns3:Insemination >
    < / AnimalEventType >
    < / AnimalEvent >
    < AnimalEvent >
    < ns3:BeginDate > 1998 - 09 - 08 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:Insemination >
    < ns3:Bull >
    < ns3:RegistrationAnimalNumber > 2221809 < / ns3:RegistrationAnimalNumber >
    < / ns3:Bull >
    < / ns3:Insemination >
    < / AnimalEventType >
    < / AnimalEvent >
    < AnimalEvent >
    < ns3:BeginDate > 1997 - 05 - 10 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:Parturition >
    < ns3:LactationNumber > 8 < / ns3:LactationNumber >
    < / ns3:Parturition >
    < / AnimalEventType >
    < / AnimalEvent >
    < AnimalEvent >
    < ns3:BeginDate > 1998 - 02 - 02 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:DryOff / >
    < / AnimalEventType >
    < / AnimalEvent >
    < / AnimalEvents >

    I tried to use the XMLAgg() in the part of the query that returns the inseminations, but it comes down to something like this (I've lost my < Animalevent > for the second record of the insemination, I want it to look to the example above):

    < AnimalEvents >
    < AnimalEvent >
    < ns3:BeginDate > 1997 - 09 - 08 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:Insemination >
    < ns3:Bull >
    < ns3:RegistrationAnimalNumber > 5401809 < / ns3:RegistrationAnimalNumber >
    < / ns3:Bull >
    < / ns3:Insemination >
    < / AnimalEventType >
    < ns3:BeginDate > 1998 - 09 - 08 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:Insemination >
    < ns3:Bull >
    < ns3:RegistrationAnimalNumber > 2221809 < / ns3:RegistrationAnimalNumber >
    < / ns3:Bull >
    < / ns3:Insemination >
    < / AnimalEventType >
    < / AnimalEvent >
    < AnimalEvent >
    < ns3:BeginDate > 1997 - 05 - 10 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:Parturition >
    < ns3:LactationNumber > 8 < / ns3:LactationNumber >
    < / ns3:Parturition >
    < / AnimalEventType >
    < / AnimalEvent >
    < AnimalEvent >
    < ns3:BeginDate > 1998 - 02 - 02 < / ns3:BeginDate >
    < ns3:ActionCode > INF < / ns3:ActionCode >
    < AnimalEventType >
    < ns3:DryOff / >
    < / AnimalEventType >
    < / AnimalEvent >
    < / AnimalEvents >

    I tried different combinations of XMLAgg() for the multiple rows returned, and he allowed too lines returned the error to go away, but at the expense of the tag being AnimalEvent to be reproduced for the same animals event or be there only once when there are several animal events.  I know I'm close to the solution and I bet it's very simple, but I don't get it.

    The only "rules" that I need are:

    1. the AnimalEvents tag must appear only once and only as it is at least an AnimalEvent.

    2. no blank/empty tag should appear.  For example, if there is no AnimalEvent tag while there should be no tag AnimalEvents.

    3. even if I'm trying to select the records of several "insemination" only so far for this particular test, all 4 potential AnimalEvents ("Insémination", "Parturition", 'DryOff' and 'PregnancyCheck') will be rescheduled to select multiple records later.

    4. each animal individual event ("Insemination", "Parturition", 'DryOff', 'PregnancyCheck') should be locked up by the AnimalEvent tag.

    I don't know if I'm missing any other details?

    Help, please!  Thank you.

    I guess you wrote that because I used it somewhere, that seems like a bad idea

    I understand why you used, and why most of the people use it in this kind of situation, but as see you it clearly now, it is not suitable more to what you aim at. Where my suggestion while trying not to use in the first place.

    In addition, XMLForest is just a shortcut, in fact, a combination of a CASE statement and XMLElement that Oracle develops during analysis.

    In some cases, where the subquery caching is not possible for example, that made a request using XMLForest performs badly if the operands are complex because they are used twice during the assessment.

    Here's a simple example:

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> set serveroutput on
    SQL>
    SQL> create or replace function get_data (p_input in number) return number is
      2  begin
      3    dbms_output.put_line('You called me!');
      4    return p_input;
      5  end;
      6  /
    
    Function created.
    
    SQL> select xmlserialize(content xmlforest(get_data(1) as "test"))
      2  from dual;
    
    XMLSERIALIZE(CONTENTXMLFOREST(GET_DATA(1)AS"TEST"))
    --------------------------------------------------------------------------------
    1
    
    You called me!
    You called me!
    

    The function is called twice, because Oracle rewrites the XMLForest call to:

    BOX WHEN get_data (1) IS NOT NULL THEN XMLElement ('test', get_data (1)) END

    Of course, the function can be deterministic, but this isn't the point here.

    In your case, since you are with subqueries, those are probably cached and executed only once, but I think it is useful to know the internal mechanisms, however.

    Back to your question, how about something like this:

    XMLForest(
      -- concat the four possible events
      XMLConcat(
        -- Insemination
        (
          SELECT CASE WHEN count(*) != 0
                 THEN XMLAgg(
                        XMLElement("AnimalEvent",
                           XMLForest(brd.service_date AS "ns3:BeginDate",
                                     'INF'            AS "ns3:ActionCode"),
                           XMLElement("AnimalEventType",
                              XMLElement("ns3:Insemination",
                                 XMLElement("ns3:Bull",
                                    XMLElement("ns3:RegistrationAnimalNumber", brd.sire_reg_id))))
                        )
                      )
                 END
          FROM   cmi_breedings brd
          WHERE  brd.anm_id       = anm.id
          AND    brd.sire_reg_id  IS NOT NULL
          AND    brd.service_date > (SELECT MIN(brd2.service_date)
                                     FROM   cmi_breedings brd2
                                     WHERE  brd2.anm_id = brd.anm_id)
        ),
        -- Parturition
        (
          SELECT CASE WHEN count(*) != 0
                 THEN XMLAgg(
                        XMLElement("AnimalEvent",
                          XMLForest(lct.start_date AS "ns3:BeginDate",
                                    'INF'          AS "ns3:ActionCode"),
                          XMLElement("AnimalEventType",
                             XMLElement("ns3:Parturition",
                                XMLElement("ns3:LactationNumber", lct.lact_no)))
                        )
                      )
                 END
          FROM   cmi_lactations lct
          WHERE  lct.anm_id     = anm.id
          AND    lct.start_date > (SELECT MIN(lct2.start_date)
                                   FROM   cmi_lactations lct2
                                   WHERE  lct2.anm_id = lct.anm_id)
        ),
        -- DryOff
        (
          SELECT CASE WHEN count(*) != 0
                 THEN XMLAgg(
                        XMLElement("AnimalEvent",
                          XMLForest(lct.end_date AS "ns3:BeginDate",
                                    'INF'        AS "ns3:ActionCode"),
                          XMLElement("AnimalEventType",
                             XMLElement("ns3:DryOff"))
                        )
                      )
                 END
          FROM   cmi_lactations lct
          WHERE  lct.anm_id   = anm.id
          AND    lct.end_date > (SELECT MIN(lct2.end_date)
                                 FROM   cmi_lactations lct2
                                 WHERE  lct2.anm_id = lct.anm_id)
        ),
        -- PregnancyCheck
        (
          SELECT CASE WHEN count(*) != 0
                 THEN XMLAgg(
                        XMLElement("AnimalEvent",
                          XMLForest(prg.prgncy_chk_date AS "ns3:BeginDate",
                                    'INF'               AS "ns3:ActionCode"),
                          XMLElement("AnimalEventType",
                             XMLElement("ns3:PregnancyCheck",
                                XMLElement("ns3:PregnancyCheckResult", DECODE(prg.prgncy_ind, '1', 'F', 'E'))))
                        )
                      )
                 END
          FROM   cmi_pregnancies prg
          WHERE  prg.anm_id          = anm.id
          AND    prg.prgncy_chk_date > (SELECT MIN(prg2.prgncy_chk_date)
                                        FROM   cmi_pregnancies prg2
                                        WHERE  prg2.anm_id = prg.anm_id)
        )
      ) AS "AnimalEvents"
    )
    

    Here, the AnimalEvent tag is included directly in the subquery, before the aggregation, removing the need for deeper XMLConcat in the process.

    If the subquery returns no rows, no tag is generated through the CASE statement.

  • I would use Yuanti SC police for my web development project. However, my developer is not able to use the file .ttc I extracted from the library of fonts, and .ttf, .otf .woff formats not available anywhere on the web.

    I would use Yuanti SC police for my web development project. However, my developer is not able to use the file .ttc I extracted from the library of fonts, and .ttf, .otf .woff formats not available anywhere on the web. Please, let me know how can I use this font for my project.

    Thank you

    Anton

    Unless the site you develop is for the Asian market, I don't know why you want to use that particular font. The Basic, standard and digital alphabet punctuation glyphs has sans serif, Roman characters, but the rest is thousands of Kanji characters. While you can use the font .ttf and .otf and web fonts, it would be very unusual to use one so great. Pages should load quickly and 78 MB, with a value of faces to download for those who have connections slow Internet is not fast.

    I would take a different font without serifs. There are literally thousands who look identical or virtually identical to Yuanti.

    131 free and high quality without font serif to choose here. I'm sure you can find a desired.

  • Satellite L20 keyboard & touchpad work not but keyboard works in the BIOS

    On my laptop Satellite L20 not work keyboard and the touchpad and keyboard works in the BIOS, USB ports also does not (USB mouse).

    Can I get the BIOS update file (traditional update on the boot CD, no BONE!)

    Sorry for my bad English.

    If the update of the traditional BIOS is not available on the download page the only way to get it is to contact the nearest authorized service provider. They have all versions.

    But this problem of keyboard and mouse is really strange. can you use if you start the operating system in safe mode?

Maybe you are looking for

  • bios password recovery

    Hello I have a 8470p here and I lost my bios password. When I press F10 to enter the BIOS, after 3 failures, a screen will appear and ask me to add the code (with virtual keyboard). I have no code. He said computer is locked and I need to restart.Wha

  • Photo animation ring freezes (LabWindows)

    Hi all I want to display a hold with a signanimation in it when my application is processing data, using animationcontrol. The problem is that the animation is blocked because that all thethe resources are in the processing of the data (when there is

  • X 220 i7 8 GB very slow WEI for processor

    Hi guys I searched and read many things on the limitation and the difference between 65W and 90W power provides all have an effect on the above topic. However, none of the fixes seem to work. Many of you report a 7.1 WEI while I can't get 3.4 with th

  • Two active cursors by parcel

    Hey all,. Another problem with my VI is that we have two sliders that are 2 local maxima in our current traces motors... At present, there are two locations per chart: the raw signal and the filtered signal... Statistical data (time Max, max, etc.) a

  • HP Color Laser jet 5500 dtn: PCL XL error message

    I am trying to print a document that includes images and I get the following error message: PCL XL error Subsystem: IMAGE Error: ExtraData Operator: consulterles Position: 590 Can anyone help?