Select wioth extract() gives error

Hello,
am a bigginer!
SQL> select proceedings.papers.extract('/paper/title/text()').getStringVal() from proceedings;
select proceedings.papers.extract('/paper/title/text()').getStringVal() from proceedings
ERROR at line 1:
ORA-00904: invalid column name
what am i missing.
Is there a tutprial for using XML with Oracle for beginners?
TIA
aananth

Hi Aananth,
I think the column name you have specified in the query is wrong. Check that.
For example if the table is created as below:
CREATE TABLE Resume_Master (
Resume_Id VARCHAR2(8) PRIMARY KEY,
Candidate_Details SYS.XMLTYPE NOT NULL
The query should be
SELECT rm.Candidate_Details.EXTRACT('//NAME/text()').GETSTRINGVAL() FROM Resume_Master rm
Here is the link for a tutorial on Oracle XML DB
http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96620/toc.htm
You cna even go through the samples at
http://otn.oracle.com/sample_code/tech/xml/xmldb/content.html
Regards,
Anupama

Similar Messages

  • Select query gives error in Code inspector and extended program check

    Hi,
    I have a query .
    SELECT pernr
      FROM pa9100
      INTO TABLE t_nca_tab
      WHERE endda EQ c_date AND
      z_nca_required EQ c_yes.
    This query gives me an error in Code inspector like :
    Large table pa0001: No first field of table index in WHERE  condition
    I have one more query that gives error in extended program check
    SELECT SINGLE stell ename
          INTO (g_stell, g_name)
          FROM pa0001
          WHERE pernr EQ wa_nca_tab-pernr AND
                endda EQ c_date.
    The warning says:
    *In "SELECT SINGLE ...", the WHERE condition for the key field "SEQNR" does not
    test for equality. Therefore, the single record in question may not be unique.*
    Its too urgent.
    Please reply.
    Regards,
    Binay.

    The first field is PERNR .. so if UR not giving pernr it will fetch
    all the data from the said table and between the given dates ..
    Check if this is your requirement ...
    write the select as ...
    where r_pernr is a range ...
    SELECT pernr
    FROM pa9100
    INTO TABLE t_nca_tab
    WHERE pernr in r_pernr  <----
                 endda EQ c_date AND
                 z_nca_required EQ c_yes.
    As UR using select single it's expecting to use all the key
    fields in the where condition ...
    U can ignore this warning message

  • Core dump when starting extract, no error messages

    Hello,
    This is a basic one way replication, Data Pump and Replicat start but Extract stops at once.
    In ggserr.log there's only a message: EXTRACT EORATE02 starting, nothing else. In ggsci it can be seen that it's stopped.
    CHECKPARAMS didn't give the message "Parameters processed successfully", neither did it give error messages
    when starting the extract.
    There are no old Oracle processes which could prevent Extract from starting.
    There's EORATE02.pce in dirpcs, although EORATE02 is not running. If I delete it and try to start the extract,
    the extract will immediately stop.
    A core file has been created in GG_HOME when trying to start the extract. I haven't been able to find out how to read it.
    Source and target are on Aix 6100-06. The source database is Oracle 10.1.0.5, target database is Oracle 11.2.0.3.
    The installation files are V32435-01.zip for db 10.1.0.5 (ggs_AIX_ppc_ora10.1_64bit.tar), V32437-01.zip
    for db 11.2.0.3 (ggs_AIX_ppc_ora11g_64bit.tar). This is GoldenGate 11.2.1.0.1.
    The db:s are on Asm.
    There's only 1 table in source, 1 in target, they are identical and empty.
    There's enough space in the OS.
    If I run the extract in OS (extract paramfile dirprm/eorate02.prm), it ends like this without more information:
    TRANLOGOPTIONS ASMUSER ggs_owner@HOSTNAME:1521/+ASM , ASMPASSWORD *********
    Abort(coredump)
    This happens in both ways of extract described below.
    (1)
    EXTRACT EORATE02
    USERID ggs_owner, PASSWORD [PASSWORD]
    EXTTRAIL ./dirdat/data02/te
    TRANLOGOPTIONS ASMUSER ggs_owner@HOSTNAME:1521/+ASM , ASMPASSWORD [PASSWORD]
    TABLE USER.myobjects2;
    (2)
    EXTRACT EORATE02
    USERID ggs_owner, PASSWORD [PASSWORD]
    EXTTRAIL ./dirdat/data02/te
    tranlogoptions COMPLETEARCHIVEDLOGONLY ALTARCHIVELOGDEST /backup/arch_log/abcd/ABCD/archivelog
    TRANLOGOPTIONS ASMUSER ggs_owner@HOSTNAME:1521/+ASM , ASMPASSWORD [PASSWORD]
    TABLE USER.myobjects2;
    Here's more information on this setup and commands which have been used:
    add extract EORATE02 tranlog begin now, threads 1
    add exttrail ./dirdat/data02/te, extract EORATE02, megabytes 5
    EXTRACT EPMPTE02
    PASSTHRU
    RMTHOST HOSTNAME, MGRPORT 13447
    RMTTRAIL /u01/app/oracle/gg11210/for_11g/dirdat/data02/tr
    TABLE USER.myobjects2;
    ADD EXTRACT EPMPTE02 EXTTRAILSOURCE ./dirdat/data02/te
    ADD RMTTRAIL /u01/app/oracle/gg11210/for_db11/dirdat/data02/tr EXTRACT EPMPTE02, MEGABYTES 5
    Target
    REPLICAT RORATE02
    USERID ggs_owner, PASSWORD [PASSWORD]
    HANDLECOLLISIONS
    ASSUMETARGETDEFS
    DISCARDFILE ./dirrpt/RORATE02.DSC, PURGE
    MAP USER.MYOBJECTS2, TARGET USER.MYOBJECTS2;
    add replicat RORATE02, exttrail /u01/app/oracle/gg11210/for_11g/dirdat/data02/tr
    add checkpointtable ggs_owner.ggschkpt
    Grants
    Source:
    grant connect, resource to ggs_owner;
    grant select any dictionary, select any table to ggs_owner;
    grant create table, alter any table to ggs_owner;
    grant flashback any table to ggs_owner;
    grant execute on dbms_flashback to ggs_owner;
    grant execute on utl_file to ggs_owner;
    grant create session, alter session to ggs_owner;
    Target:
    grant create session, alter session, resource, connect, select any dictionary to ggs_owner;
    grant select any table, insert any table, update any table, delete any table to ggs_owner;
    grant create table, alter any table, lock any table to ggs_owner;
    Source
    ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
    ggsci add trandata USER.myobjects2
    mgr.prm
    --GoldenGate Manager parameter file
    PORT 13346
    Target
    GLOBALS
    CHECKPOINTTABLE ggs_owner.ggschkpt
    mgr.prm
    --GoldenGate Manager parameter file
    PORT 13447
    Thanks for reading this far. Possible comments will be much appreciated!
    Best regards
    Edited by: user11323660 on 14.6.2012 6:39
    Edited by: user11323660 on 14.6.2012 6:41

    Hello,
    Could you wrap your process definitions in proper code brackets so its easier to understand.
    Also I'm not sure what your problem is other then you are receiving core dumps. I'm happy to help.
    Two small comment though regarding your ASM config
    1 . Dont not use ggs_owner as the asm user
    TRANLOGOPTIONS ASMUSER ggs_owner@HOSTNAME:1521/+ASM , ASMPASSWORD *********2. Create a TNSNAMES entry for your ASM instance and tehn use the following:
    TRANLOGOPTIONS ASMUSER SYS@ASM, ASMPASSWORD *****Also here is an example of an extract process that I've setup on RAC database with ASM
    EXTRACT EWFMMTLP
    EXTTRAIL ./dirdat/ew
    USERID GGATE@MY_DB, PASSWORD ggatehcc
    DDLOPTIONS ADDTRANDATA RETRYOP RETRYDELAY 20 MAXRETRIES 5 REPORT
    TRANLOGOPTIONS EXCLUDEUSER ggate
    TRANLOGOPTIONS ASMUSER SYS@ASM, ASMPASSWORD ****
    TRANLOGOPTIONS ALTARCHIVELOGDEST /u02/oracle/fast_recovery_area/MY_DB/archivelog
    TRANLOGOPTIONS PURGEORPHANEDTRANSACTIONS
    STATOPTIONS RESETREPORTSTATS
    REPORT AT 00:01
    REPORTROLLOVER AT 00:01
    REPORTCOUNT EVERY 60 SECONDS, RATELet me know if that helps
    Jan S.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • While Changing the status system gives error

    Dear Experts,
    In Solution Manger,  While changing the status from Tcode SE38 with Program CRM_SOCM_SERVICE_REPORT system gives error.
    Document 8000002519 refused for technical reasons: ERROR_FREE
    Message no. SOCM_ACTION_LOG203
    Diagnosis
    The status value cannot be changed.
    The document may no longer be modifiable as a result of its status, or it may be being edited by another user.
    System Response
    This change transaction is skipped during report processing.
    Procedure
    Analyze the corresponding document during transaction processing and perform the status change manually if necessary.
    Also if i select the status as in process, then it executes sucessfully.  Please help me in this.
    Ramesh Jaiswal
    9867936636

    Hi Ramesh,
    Pls check your SP level because till SP17 this (CRM_SERV_REPORT) Tcode is not present
    I just checked.
    So it seems this is availabe only after SP18.... we can use the above report.
    Kindly confirm once you solve your problem.
    Dirk
    Can you please tell us a document which wil tel us what technical things have been changed in this new SP18.for e.g the source for this information.
    Regards
    Prakhar

  • Can't sync songs after 14 gb, itunes gives errors!! Please help!

    Hello to everyone, I'm using an Ipod classic, 6th generations, 2009 and i am using itunes with windows 8.1. After the new update of Itunes, i couldn't sync new songs to my Ipod, Itunes shows a lot of erros like 50, 53, 13039. I read and tried a lot of solutions to solve it, i uninstall the Itunes and reinstalled the latest version, it didn't help, i restore, reboot my ipod it didn't help, i deleted my whole library, i tried different cables to plug in, i used all of my usb slots, none of them has helped me!! I'm so close to throw my Ipod out!! I need some help and advice. I could be allowed to sync aprox. 14 gb of songs, but after the remaining space comes to 130 gb (or some other equal space) it starts to give errors that i mentioned above. The only thing that i didn't give a try is trying syncing my ipod with another pc. Is there anybody to help me? What can i do? I guess the problem is with my ipod's harddisk, i hope it is not, i don't want to pay money to get it repaired! All kind of helps will be appreciated! Have a nice day!

    Thank you, but I did that. I de-selected and then re-selected but because the 13019 still won't allow the sync, all it did was completely delete everything on my Ipod!  I now have no songs on my Ipod when at least before, I had all my songs but the new 12 songs!  I'm freaking! 

  • OOTB workflow gives error when user rejects in the document in publishing a major version.

    Hi All,
    I am using OOTB workflow with little customization  with following configuration
    1. Allow content approval enabled
    2. Configure a workflow with following general settings true
    3. Start workflow on publish of Major version only is enabled
    4. workflow has following configuration enabled.
    Now, when user start publishing of major version and Starts the workflow. workflow starts without any problem.
    But as and when the user rejects the document it is rejected with Reject status with "Approval Status" as well as workflow status which is expected.(This is correct )
    But when i look at the workflow history i can see at last line there is an Error with
    An error has occurred in In [Workflow Name].
    Now when user check out and check in item again and try to publish with Major version again. it gives errors that the previous version is still running.
    I have trace a lot and also test with original OOTB workflow itself. it is behaving the same.
    As per my findings there is problem in "Completion condition of this task process" the end task process is not being executed correctly.
    I tried to end the task process with End the task process action but it is still not working.
    I need some help in this issue as users are facing problems in case of rejection. I hope some one has the solution for the same.
    Two things i have noticed are
    1. My MS office 2010 professional plus is expired as i was using trial version
    2. I have made stop inheriting tasks permission and remove all default groups as i have settings in workflow "Only allow task reception and process owner to read and edit workflow task"
    3. Earlier i had also installed "Sharepoint 2010 April 2012 updates". i had also observed that (installing Sharepoint 2010 April 2012 updates) before that if user has selected "Automatically rejects the document if any participant rejected". it ends
    with "rejected" status. At present it remains in inprogress and not stops with rejected status.
    Can any one give me a hint what should be the problem ? Is it a problem with latest Sharepoint 2010 April 2012 updates ?
    Thanks,
    S. M. MANIYAR

    I have done following testing.
    1. The server in which i have not installed sharepoint 2010 April 2012 updates the above scenario is working fine without any problem
    2. I have also observed following logs of error in server where April 2012 updates is installed.
    8/28/2012 03:51:41.33  w3wp.exe (0x0F08)                        0x0A00 SharePoint Foundation        
     Workflow Infrastructure        88xr Unexpected WinWF Internal Error, terminating workflow Id# 8bf7fef1-c92e-4b22-a16f-480425d3adc6 
    08/28/2012 03:51:41.33  w3wp.exe (0x0F08)                        0x0A00 SharePoint Foundation        
     Workflow Infrastructure        98d4 Unexpected System.InvalidOperationException:
    CompositeActivity cannot transition to 'Closed' status when there are active child context still exist for child activity.     at System.Workflow.ComponentModel.Activity.MarkClosed()     at System.Workflow.ComponentModel.ActivityExecutionContext.CloseActivity()    
    at Microsoft.Office.Workflow.Actions.OfficeTask.FinalClose(Object sender, EventArgs eventArgs)     at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)    
    at System.Workflow.Runtime.Scheduler.Run() 
    Following are last two lines of workflow history.
    S. M. MANIYAR

  • Premiere Pro stops rendering and gives error message when encounters "RGB Color Corrector"

    Premiere Pro (and also Encore) stops rendering and gives error message when it encounters a clip containing the "RGB Color Corrector" in any clip.  It will process clips without RGBCC, but will stop when it gets to one with RGBCC activavted.  PP will render clips if other effects, such as "Fast Color Corrector", "Color Balance (HLS)", and "Three-Way Color Corrector" are selected. However, these do not have the capabilities that The other color correctors will not do what RGB color corrector does, so I need to have this working to finish a large product that is due to the client.  Please help me..... I am not using the Creative Cloud version, and can't find either a download for the new update from 2013, or a phone number to talk to anyone. 

    Using a Win7 computer with 2.8 quad core processor, 24 gig of ram, Nvidia Quadro 5000 video card.  Don't think I have any plugins.  I looked at one a while back for cleaning up grainy video, but I am not sure I paid for that.  Think I deleted it. 
    Incidentally, someone named Jim on another part of the forum mentioned that this problem has been fixed in the CC version of the program.  I am using the non-CC version because I am 68 years old and only do seminars and documentation video.  Don't need so many bells and whistles, and definitely don't need learning curves every few weeks.  CS6.0.3 works fine for me.  By the way, someone else said that maybe version 6.0.1 might work better and I should revert to that.  Not sure if it is the version i have on the disk upgrade to 5.5 that I purchased in December. 
    As it stands now, I have 7.5 hours of a seminar that is ready to go out the door.  If there is an upgrade I can get from Adobe, maybe you can tell me about it. If I have a setting incorrect in the video output format, maybe I can change that.  So far it just happens with clips in my video that have RGB color correction. 
    Rick

  • My code not give error nut not give pdf report output

    hi master
    sir see my code not give error nut not give pdf report output
    String reportSource = "./WEB-INF/reports/mfa.jasper";
    String reportDest = "./reports/mfa1.html";
    Connection conn = null ;
    Statement msqlStatement = null ;
    ResultSet mrs = null ;
    Connection mconn = null ;
    ExternalContext econtext = getExternalContext();
    InputStream stream = econtext.getResourceAsStream(reportSource);
    if (stream == null) {
    throw new IllegalArgumentException("Unknown report name '" + reportSource
    + "' requested");
    try {
    String mfat = ac_categoryDataProvider.getCachedRowSet().getDataSourceName();
    javax.naming.Context mctx = new javax.naming.InitialContext() ;
    DataSource mds = (DataSource)mctx.lookup(mfat);
    Connection mcon= mds.getConnection();
    mcon.setAutoCommit(false) ;
    JasperPrint jasperPrint = null;
    //getSessionBean1().getTripRowSet(),
    //getSessionBean1().getAc_categoryRowSet(), mfat getSessionBean1().getAc_categoryRowSet()
    jasperPrint = JasperFillManager.fillReport(stream, null,mcon);
    JRExporter exporter = null;
    HttpServletResponse response = (HttpServletResponse)econtext.getResponse();
    FacesContext fcontext = FacesContext.getCurrentInstance();
    exporter = new JRPdfExporter();
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,
    response.getOutputStream());
    exporter.exportReport();
    fcontext.responseComplete();
    } catch (Exception ex) {
    log(" Error Description" , ex);
    error("Error counting rows: " + ex.getMessage() );
    error("Error counting rows: " + ex );
    please give me idea
    thank's
    aamir

    Thanks Sven.
    The query works but the other way. The output is for all the targets, not for the respective target which we select from :p1_target.
    select target_name,target_type, column_label,
    warning_threshold,critical_threshold,occurrence_count
    from sysman.MGMT$TARGET_METRIC_SETTINGS@crmodem
    where target_name in (select MEMBER_TARGET_NAME from MGMT$TARGET_FLAT_MEMBERS@crmodem
    where upper(AGGREGATE_TARGET_NAME) like '%X' || :P1_TARGET || '%')
    Thanks again.

  • Selection Screen in web error

    Dear All,
    I am executing a report in web in Java runtime (BI 7 enviornment). I get the selection screen.
    I have a variable for which I have to give the range. I press F4. A new sub window openes where I can give from and to value. I click on F4 again for giving the From value. All valus for the characteristic are displayed in a new sub window. On top right corner in this window, there is a setting button. When I click on this, it gives error
    500 Internal Server Error
    The initial exception that caused the request to fail was:
    java.lang.NullPointerException
    Has any one faced this error. Any pointer to solve this will be helpful.

    Hi Niraj,
    Apply the below note which is very similar to your issue...
    SAP Note Number: 856741
    Find the below thread...
    500 Internal Server Error when clicked on Add/Remove Button
    Also find the below search links which are very helpful to you...
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=500InternalServer+Error&adv=false&sortby=cm_rnd_rankvalue
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=java.lang.nullpointerexception&cat=sdn_all
    Assign points if this helps u...
    Regards,
    KK.

  • How to add column to report from the same table? Gives error now

    Steps to reproduce:
    Build a report on a table with easy report, select all columns
    Add column to the table
    Edit report and add column (one has to click Show Related Tables Only: No to view the same table!)
    Report will give error as it will be build as
    SELECT ... FROM table1, table1

    AH HAAA!!!!
    And I was afraid to convert from the "SQL (Structured Query)" to "SQL". Probably because I blew up my other reports...
    Thanks!

  • Should Give Error Message

    Hi all
    Purchasing organization 001 assigned to company code 001,
    when user want to create Vendor with P.Org 001 and comapny code 002
    the system should give error message
    During Vendor creation ,if the wrong purchase organisation is selected, system is allowing to create the vendor master.
    Even though ,I have done the Setting in the following , the error message is not reflectiog
    1. Message Control for Vendor Master Data
    2.T.code : OBMSG
    3.T.code : OBA5
    Kinldy let me know the steps if possible let me know userexit to solve this......
    Thanks & Regards
    chand

    Hi,
    In the exit FM EXIT_SAPMF02K_001 you have your company code and Purch. Org. in the following fields:
    I_LFB1-BUKRS (Company Code the vendor is being created in)
    I_LFM1-EKORG (Purch. Org the vendor is being created in)
    Having above, you can check in the table T024E ( here you have assignment of Purchasing Org to Company Code) if there is assignment between Purch. Org and Company Code.
    Hope it helps.
    Regards,
    w.

  • Sql server services give error the remote procedure call failed [0x800706be] in sql server 2008

    sql server services give error the remote procedure call failed [0x800706be] in sql server 2008.
    To resolve this issue, I executed the following mofcomp command in command prompt to re-register the *.mof files:
    mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof".
    but it does not work.
    Plz give the exact soln to solve this error.

    sql server services give error the remote procedure call failed [0x800706be] in sql server 2008.
    To resolve this issue, I executed the following mofcomp command in command prompt to re-register the *.mof files:
    mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof".
    but it does not work.
    Plz give the exact soln to solve this error.
    So when you tried starting SQL server service it gave the error right  ?  or when you click on SQL server services in SQL server configuration manager(SSCM) you get this error. Can you be more clear.  As far as I read your question it has something
    to do with permission. Close SSCM window and this time  right click on SQL server configuration manager and select run as administrator and check if you can see SQL server services
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

  • Extract field error

    I have the following select to extract a date containing month and year from a varchar2 column
    select to_char(sau_date,'MM') MONTH,extract(year from sau_date) YEAR, count(*) COUNT
    from mac.sysaud
    group by to_char(sau_date,'MM'),extract(year from sau_date)
    order by extract(year from sau_date), to_char(sau_date,'MM');when running select i receive a ora-30076:invalid extract field for extract source

    Hi,
    user11978142 wrote:
    varchar2 column date is displayed as
    20071015
    20071015
    20061020
    20061020
    \{code}
    i just wanted to extract the date
    table contains millions of rows..so its a bit difficult to post dataThat's why you need to post sample data. Four rows might be enough.
    If all you need is a count of rows for each month, then:
    SELECT       SUBSTR (saud_date, 1, 6)     AS year_month
    ,       COUNT (*)                    AS cnt
    FROM       sysaud
    GROUP BY  SUBSTR (saud_date, 1, 6)     
    ORDER BY  year_month
    ;If you need separate columns for month and year, call SUBSTR twice where I called it once.
    This will be more efficient than using TO_DATE, and it not raise an error if there are invalid strings (such as month '00').
    On this site, you have your choice of what kind of code tags to use. Whichever type you choose, be consistent.
    If the opening tag uses square brackets, then the closing tag must use square brackets, too. With square brackets, the closing tag has a / , and capitalization doesn't matter. For example
    [code]
    SELECT    SUBSTR ...
    [/code]If the opening tag uses curly brackets, then the closing tag must use curly brackets, too. With curly brackets, the closing tag is identical to the opening tag, without a / , and you can only use lower-case letters.
    Edited by: Frank Kulash on Feb 12, 2011 3:26 PM

  • Copying a function group gives error

    Dear All,
    I am copying a function a group JV05. I have copied evrything i.e all the includes, TOP etc. But when i activate the group it gives me error. What could be the problem? I have tried to activate the includes & TOP individually. Still it gives error for some variables. Please help me out.
    Thanks in advance!
    Regards,
    Prasad

    hi ,
    **Go to se80..**
    **1. Select function group**
    **2. Enter JV05 as name  "-----> click on spectacles button.**
    **3. Right click on JV05**
    **4. Select copy  "--------> give a Zfunction group name**
    **5. "Copy all the function modules in this function group with zfunctionmodules.**
    **6. Save & Activate.**
    Regards,

Maybe you are looking for