alias disappear in oracle 11g, while it worked fine in 10.2.0.4

SQL@10G > select * from v version $;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
AMT for IBM/AIX RISC System/6000: release 10.2.0.4.0 - production
NLSRTL Version 10.2.0.4.0 - Production

5 selected lines.

SQL@10G > select xmlelement ('a', (select xmlelement ("c", model) of the double) as "xml b") .getStringVal () from dual;

XML
------------------------------------------------------------------------------
< a > < b > < c > X </c > < / b > < / a >

1 selected line.

SQL@10G > connect
Connected.

SQL@11g > select * from v version $;

BANNER
------------------------------------------------------------------------------
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

5 selected lines.

SQL@11g > select xmlelement ('a', (select xmlelement ("c", model) of the double) as "xml b") .getStringVal () from dual;

XML
------------------------------------------------------------------------------
< a > < c > X </c > < / a >

1 selected line.

do not be distracted by the scalar query online here. The example of the real world is a result of 0 - many in the online display

No matter how many lines online see returns, as aggregate you them the result is always a scalar value (an instance of xmltype).

Now the item is returned, even if there is no lower-level data

Ok.

XMLForest function works the way you want.
You can try this (I don't yet have a 11.2)?

SELECT xmlelement("topElement",
         xmlforest(
          (
            select xmlagg(
                     xmlelement("object",
                       xmlattributes(object_id as "objectId", object_type as "object_type")
                     )
                   )
            from all_objects
            where object_name = 'XDUAL'
          ) as "objects"
         )
       ).getStringVal() xml
FROM dual;

It should give a correct output with any version.

Published by: odie_63 on 1 July. 2010 11:25

Tags: Database

Similar Questions

  • Oracle 11g r1 license work for oracle 11g r2?

    Hello

    We have license of oracle 11g r1 then do we need to purchase a separate license to upgrade to 11g r2?

    Hello

    No, no need to buy a separate license to upgrade to 11g r2 just improved it.

    Amatu Allah.

  • Why I can't integrate codes on YouTube using Firefox on my desktop, while it works fine on my Macbook Pro with Firefox? This is a recent change.

    Recently, I noticed that when I try to 'share' a YouTube video, and then click the share, I get no embed code. In fact, I get no option at all. And when I tried to share a YouTube playlist, once again, nothing happens except one open box of apparent text I can't type or enter anything in. I use a Macbook Pro at work, with Firefox as my browser and everything works as it should be on YouTube. Since this is a very recent problem with my desktop Dell (Firefox browser) at home, I suspect that something has changed which resulted in my current question. Thanks for any help!

    You must determine what addons is the origin of the problem.

    Please follow these instructions to disable addons:

    http://MZL.la/1xKrBZF

    When figure you out how to disable addons please use this method to determine what addon is causing this problem.

    • Disable 1 Addon and test the page; Repeat this, keeping the addons you tested disabled. When you disable and test and find what addon is causing this problem, delete entirely.

    Let us know if this helped.

  • NVIDIA driver cannot find compatible in Windows 8 RTM material, while it worked fine in Preview Release

    I just installed the RTM 90 days trial and tried to install the driver Nvidia Windows 8 for my PC (HP Touchsmart 610-1190f), during the installation, I get the following error: "cannot find compatible devices. This driver worked in the Preview Release, but now, it doesn't seem to work. There will be a fix soon via Windows update?

    Hi Godwinium,

    Support for Windows 8 is not available in this community until October 26. We will make the best effort to provide support.

    Drivers are created by the manufacturer of the product. You can check with Nvidia for more information on when or if a compatible driver will be available for support of Windows 8.

  • Vista has ceased to connect to Internet while XP works fine

    I was able to connect laptop computers XP and Vista desktop for a few years.  This week my Vista desktop becomes suddenly as a local connection to 'unidentified network' wireless so no Internet.  When I plugged the Vista desktop with a cable, that I could not he was looking for a username and password for the ISP to allow the connection.  Verizon technical support could not fix the problem - says no user name or password is required - with the lack of connectivity wired and wireless.  Is it just a Vista problem?  A recent update Windows change something that has caused this problem?  I noticed that this seems to be an unsolved problem here and on the Verizon forums.  It seems that this must be a Vista problem, due to the fact that XP has no problem connecting.  Thank you.

    Hi TinTheBear,

    Thank you for using answers Forum.

    In the future, I suggest starting your own thread about your question to get the right support.
    :]

    You can check for third-party wifi software that may have been installed with your network card.
    If it is running and you try to use Vista to control network and password/password encryption settings, they may sometimes conflict and causes this problem.

    Since your able to login in safe mode, I'm curious to know how you did the clean boot, you mentioned in your message.
    "Disable programs and services at startup"-copied from your post.

    Here is a method to try:

    To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts. This article describes how to solve problems in Windows Vista by performing a clean boot. This article also describes how to start the Windows Installer service and how to reset the computer so that it starts as usual.

    Note When you perform a clean boot, you may temporarily lose some functionality. When you start the computer as usual, the function returns. However, you may receive the error message, or you can experience the original behavior.

    If the computer is connected to a network, network policy settings may prevent you from following these steps. We recommend strongly that you do not use System Configuration utility to change startup options on the computer, unless a support engineer Microsoft directs you to do so. This can make the computer unusable.

    a. log in the computer using an account with administrator rights.

    b. click on start toreduce this includes this image, type msconfig.exe in the Start Search box and press ENTER to start the System Configuration utility.

    Reduce this includes this imageIf you are prompted for an administrator password or for confirmation, type your password or click continue.

    c. under the general tab, click Selective startup, and then clear the Load Startup items check box. (The box use the Boot file is not available.)

    d. on the Services tab, select the hide all Microsoft services check box and then click on disable all.

    Note Following this step lets services Microsoft continue to run. These services include networking, Plug-and-Play, record of events, error reporting, and other services. If you disable these services, you can permanently delete all restore points. Do not do this if you want to use to restore the system with the existing restore points.

    e. click OK, and then click restart.

    Step 2: Enable half the services

    a. follow steps 1a and 1B to start the System Configuration utility.

    b. click on the Services tab and then click to select the hide all Microsoft services check box.

    c. Click to select half of the check boxes in the Service list.

    d. click OKand then click restart.

    Step 3: Determine whether the problem returns

    If the problem persists, repeat steps 1 and 2. In step 2, click to clear half of the check boxes that you have initially enabled in the Service list.

    If the problem does not occur, repeat steps 1 and 2. In step 2, select only half of the remaining check boxes that are cleared in the Service list. Repeat these steps until you have selected all the check boxes.

    If only one service is selected in the list of services , and you the problem persists, the service selected the cause of the problem. Go to step 6. If no service is causing this problem, go to step 4.

    Step 4: Enable half of the startup items

    a. perform a clean boot by repeating step 1.

    b. click on the Startup tab and then click to select half of the check boxes in the startup item list.

    c. click OK, and then click restart.

    Step 5: Determine whether the problem returns

    If the problem persists, repeat steps 1 and 4. In step 4, click to clear half of the check boxes that you have originally selected in the startup item list.

    If the problem does not occur, repeat steps 1 and 4. In step 4, select only half of the remaining check boxes that are cleared in the startup item list. Repeat these steps until you have selected all the check boxes.

    If only one startup item is selected in the startup item list, and you still experience the problem, start selected in the list element is the service that is causing the problem. Go to step 6.

    If no startup item causes this problem, a Microsoft service most likely the cause of the problem. To determine which Microsoft service may be causing the problem, repeat step 1 and step 2 without selecting the hide all Microsoft services check box in each step.

    Step 6: Resolve the problem

    After you determine the startup item or the service that is causing the problem, contact the manufacturer of the program to determine if the problem can be solved. Or, run the System Configuration utility, and then click to clear the check box of the element of the problem.

    Step 7: Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    Click on start toreduce this includes this image, type msconfig.exe in the Start Search box and press ENTER.

    Reduce this includes this imageIf you are prompted for an administrator password or for confirmation, type your password or click continue.

    On the general tab, click the Normal startup option, and then click OK.

    When you are prompted to restart the computer, click restart.

    Please let us know if that helps.

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Migrating oracle 9i to oracle 11g but now dblink is no work

    First of all, sorry for my English.
    Achieved an export from the old to the new db_links and now do not work.

    Oracle 9i - work

    13:52:45 card > @banco
    Mostra user, instance, e start time host - pressure enter para continue
    E the USER 'SYSTEM '.

    INSTANCE_NAME HOST_NAME STATUS STARTUP_TIME
    ---------------- ---------------------------------------------------------------- ------------ --------------
    atlas1 card OPEN 01/23/12 17:53

    Decorrido: 00:00:00.03

    BANNER
    ----------------------------------------------------------------------------------------------------
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE Production 9.2.0.8.0
    AMT for Linux: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production

    Decorrido: 00:00:00.03
    13:52:46 card >

    13:52:59 card > @dblink
    Informed o valor para db_link: scapr

    OWNER, DB_LINK CREATED USERNAME HOST
    -------------------- ------------------------------ -------------------- ------------------------------ --------------
    SCAPROD.PANVEL.COM.BR PUBLIC LINK SCA 17/11/11 14:35

    Decorrido: 00:00:00.03
    13:53:03 card > desc dual@scaprod
    Nome
    -------------------------------------------------------------------------------------------------------------------------
    MODEL

    13:53:07 card > desc [email protected]
    Nome
    -------------------------------------------------------------------------------------------------------------------------
    MODEL

    13:53:16 card >

    13:53:16 card > show the global setting

    VALUE OF TYPE NAME
    ------------------------------------ ----------- -------------
    global_context_pool_size string
    global_names boolean FALSE
    13:53:40 card >



    Oracle 11g - does not, a little work with the full name of the db_link:

    13:53:57 nouveaute11 > @banco
    Mostra user, instance, e start time host - pressure enter para continue
    E the USER 'SYSTEM '.

    INSTANCE_NAME HOST_NAME STATUS STARTUP_TIME
    ---------------- ---------------------------------------------------------------- ------------ -----
    aquarius card OPEN 01/26/12-13:42

    Decorrido: 00:00:00.01

    BANNER
    ----------------------------------------------------------------------------------------------------
    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production

    Decorrido: 00:00:00.04
    13:53:58 nouveaute11 >

    13:54:12 nouveaute11 > @dblink
    Informed o valor para db_link: scapr

    OWNER, DB_LINK CREATED USERNAME HOST
    -------------------- ------------------------------ -------------------- ---------------------------
    SCAPROD.PANVEL.COM.BR PUBLIC LINK SCA 26/01/12 13:02

    Decorrido: 00:00:00.03
    13:54:16 nouveaute11 > desc [email protected]
    Nome
    ---------------------------------------------------------------------------------------------------
    MODEL

    13:54:23 nouveaute11 > desc dual@scaprod
    ERROR:
    ORA-02019: description of conexao para o banco dados não localizada remote


    13:54:26 nouveaute11 >

    13:54:41 nouveaute11 > display the global setting

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------
    global_context_pool_size string
    global_names boolean FALSE
    global_txn_processes integer 1
    13:54:45 nouveaute11 >


    Any help? :)
    Thank you!

    vitorjr81 wrote:
    As you can see the db_link is functional, but just with the name and surname:

    13:54:16 nouveaute11 > desc [email protected]
    Name MODEL

    13:54:23 nouveaute11 > dual@scaprod desc
    ERROR:
    ORA-02019: description of conexao para o banco dados não localizada remote

    13:54:26 nouveaute11 >

    13:54:41 nouveaute11 > display the global setting

    VALUE OF TYPE NAME
    -chain global_context_pool_size
    global_names boolean FALSE
    global_txn_processes integer 1

    Do as below and post the results here

    SQL> select global_name from global_name;
    
    GLOBAL_NAME
    --------------------------------------------------------------------------------
    V112
    
    SQL> 
    
  • using firefox 24, yahoo toolbar disappears and the keyboard does not work on some websites

    We have installed firefox 24, yahoo toolbar sometimes disappears. On some web site when trying to enter a password, the keyboard does not work until you double click of the mouse on the registration form. This on two different systems of windows 7. Each thin seemed to work fine before the update prior to the installation of 24.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • Under Windows, you can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac, you can open Firefox 4.0 + in Safe Mode holding the key option key when starting Firefox.
    • Under Linux, you can open Firefox 4.0 + with leaving Firefox then go to your Terminal and running Safe Mode: firefox-safe-mode (you may need to specify the installation path of Firefox for example/usr/lib/firefox)
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    I hope this helps!

    Curtis

  • That means 1z0-117 oracle 11g sql tuning now say it includes v12 addition v11

    Hello

    I did the 1z0-117 sql tuning review once.

    Not too far away.

    I studied under and turned off for a while.

    I anticipate taking in 1 month.

    However, I just noticed that the oracle site says 1z0-117 also said that v12 is also included for consideration:

    Oracle 11g sql tuning.

    It makes no sense at all.

    Roger

    However, I just noticed that the oracle site says 1z0-117 also said that v12 is also included for consideration:

    Oracle 11g sql tuning.

    Unless you are looking for something I'm not, what actually is the 1Z0-117 page says: "validated against: review has been validated against Oracle Database 11g Release 2 version 11.2.0.1.0 and database Oracle 12 c 12.1.0.1.0"

    What they actually mean by it is that someone went through all the issues and and asked the question "is still a relevant issue for the release of 12 c to Oracle?'." "  If they find issues that are not valid because of an update/change, then the question will be removed from review (or changed) so that someone who has used 12 c but not 11 g will not at a disadvantage.

    This is * No * means that Oracle has added questions to the review of the capabilities that were introduced in version 12 c.

  • the error of java that I encounter in oracle 11g when I using jdm

    I have finished a java data mining program, it can work in oracle 10g. But now, I must apply this program in oracle 11g.

    What should I do to make this work always in oracle 11g?

    The pot have been replaced with 11 g pot. But when I debug the program, programName m_ of the BuildTask is always "dmsys.build_program" and it should be "sys.build_program".

    Then when it is running to the executeTask, the error occurred.

    **************the  error**********************************

    19:19:55, AprioriExecuteUtil:248 DEBUGGING 734-

    19:19:55, DEBUG 734 AprioriExecuteUtil:249 - model Build.

    19:19:55, AprioriExecuteUtil:250 DEBUGGING 734-

    19:21:52, 328 ERROR AprioriExecuteUtil:114 - executeError:

    java.lang.ArrayIndexOutOfBoundsException: 0

    at oracle.dmt.jdm.task.OraBuildTask.mapJobArgs(OraBuildTask.java:410)

    at oracle.dmt.jdm.base.OraTask.retrieveObjectFromDatabase(OraTask.java:535)

    at oracle.dmt.jdm.base.OraTask.removeTaskContents(OraTask.java:229)

    at oracle.dmt.jdm.base.OraTask.removeObjectFromDatabase(OraTask.java:214)

    at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.removeObject(OraPersistanceManagerImpl.java:297)

    at oracle.dmt.jdm.resource.OraConnection.removeObject(OraConnection.java:389)

    at oracle.dmt.jdm.OraMiningObject.saveObjectInDatabase(OraMiningObject.java:150)

    at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.saveObject(OraPersistanceManagerImpl.java:245)

    at oracle.dmt.jdm.resource.OraConnection.saveObject(OraConnection.java:383)

    at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.executeTask(AprioriExecuteUtil.java:324)

    at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.buildModel(AprioriExecuteUtil.java:303)

    at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.execute(AprioriExecuteUtil.java:108)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

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

    So, if there is someone know the reason why, please tell me how to solve this error. Thank you!!!

    Hello

    I found the reason. It is caused by the ojdbc.jar.

    Thank you.

  • Oracle 11g and Fusion license

    Hi all

    We want to buy a licsense to the following.

    Oracle Database 11g R2.

    Fusion Middleware 11g Release 1 (11.1.1.7.0)

    WebLogic server 10.3.6

    Oracle Forms and reports 11g 2 (11.1.2.x)

    I have the following queries.

    1. What are the prices?

    2. how many license, we should buy for each?

    3. how much licnense for Oracle Forms and reports 11 g 2 (11.1.2.x).

    We have 10 developers who will develop the applications.

    4. all other guidelines?

    Kind regards.

    All prices and details of licenses how much you need, are on the Store of Oracle, http://shop.oracle.com

    If you want discounts, talk to a dealer! They are more likely to negotiate than Oracle (I know - I work for one).

    --

    John Watson

    Oracle Certified Master s/n

  • How to get more information about the users in oracle 11g

    Hi all

    I need to know more information on users in oracle 11g.

    1. how to check when user times last connection to the database.
    2. If the user account is blocking why it is blocked? If it is locked trying Loing with wrong password how to check how many times he tried with wrong password... and other reasons also
    3 reaction strives to select user expire date is to show the value empty... we can check expire date by querys or we need to check the profile?
    4. how to check while he was reset his password, the last time.

    Please correct me if am wrong. Thank you

    Concerning

    1. how to check when user times last connection to the database.

    AUDIT

    2. If the user account is blocking why it is blocked? If it is locked trying Loing with wrong password how to check how many times he tried with wrong password... and other reasons also

    Check the profile of this user and attr.

    3 reaction strives to select user expire date is to show the value empty... we can check expire date by querys or we need to check the profile?

    SQL> select EXPIRY_DATE from dba_users ;
    
    EXPIRY_DA
    ---------
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    23-MAY-13
    24-SEP-11
    24-SEP-11
    24-SEP-11
    

    check
    EXPIRY_DATE in dba_users is null

    4. how to check while he was reset his password, the last time.

    SELECT SYS PTIME. THE USER$;

  • "Is it possible to oracle 11g DB without journal Archive OEL 5 of the backup mode.

    Hai everybody,

    I am new to oracle, I want to take the online backup without log mode Archive is possible? due to the database to archive performance is little low, that if our database is in no fashion show archive log cannot be greater? Oracle 11g provides another way to perform a backup online without log mode archive?

    concerning
    George
    At the time of database archiving is it take system resources?
    you mean if db is in archive mode the db works the same like noarchive mode
    

    How long to read the documentation on the archivelog/noarchivelog mode?

    How long you have used to get the answer here?

    worth it?

    Please check this:
    http://docs.Oracle.com/CD/B28359_01/server.111/b28310/archredo002.htm
    If you get any related question tell us and we try to solve, otherwise close this thread by marking as replied.

  • apex 4.0 with oracle 11g ee mail

    Hello

    I spent when you work with apex 3 I could work with apex mailsend very nice.
    Apex 4.0 with oracle 11g ee, I'm not able to send emails any more.

    Last error message in the queue is:

    ORA-29279: permanent SMTP error: 550 via this server without authentication.
    the smtp server has not been changed, the code is very well

    How can I go further?

    Thank you very much
    Florin

    Florin,

    Make sure that you use the relevent to instructions for your version.
    If you use 4.0 - you probably want the same script - with use of APEX_040000 appropriate.

    See the steps of INSTALLATION of document ITEM.

    http://docs.Oracle.com/CD/E17556_01/doc/install.40/e15513/otn_install.htm#CBHBABCC

    -Make sure that you don't drop the former users of apex framework before update or remove them from the ACL. It can cause you problems.

    -Tim St.

    P.S. Take a minute to update your profile so that your name is clear.

    Published by: Tim St. H., December 11, 2012 16:54

  • OBIEE 10.1 with Oracle 11g

    10 OBIEE can work with Oracle 11 g?

    I installed OBIEE 10 g on my laptop (window Home premium Vista)

    I then installed Oracle database 11g (desktop version)

    When I tried to import the database into the administrator create a repository, I provided the connection string for oracle 11g, but it gave me following error

    Failed to load c:\OracleBI\Server\bin\nqsdbgatewayoci10g.dll dll. Check if the database Oracle 10 g client is installed.

    Edited by: 967447 November 30, 2012 07:12

    Try to reinstall or install the Oracle client with advanced features. That solved your problem.

    OR
    1.uninstall/remove the previous 64 Bit JDK, 64-bit Oracle Client and OBIEE
    2. download and install the 32 Bit JDK and the 32 Bit Oracle 11 G client
    3 reinstall OBIEE OTM Administrator Guide

    Appreciate if you mark as correct

  • can we use advice in the oracle 11g version?

    can we use advice in the oracle 11g version? It works?

    Prasad wrote:
    can we use advice in the oracle 11g version? It works?

    Hello

    Yes

    Please find the document
    http://docs.Oracle.com/CD/E11882_01/server.112/e16638/hintsref.htm

    Concerning
    Hitgon

    Published by: hitgon on April 25, 2012 15:24

Maybe you are looking for