Top N query giving error for oracle 8.0.6

Dear All,
We are executing this query SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM (SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM PMBPITS.PITS_UNITY WHERE STATUS = '01' ORDER BY PMTIMESTAMP) WHERE ROWNUM < 20
on oracle 8.0.6 but this is giving the following error
ora - 00907 missing right parenthesis error
1. Is it that in the inner select we cannot use order by and where clause together.
2. We also found that if we remove order by from inner select then the query is not giving error
pls help . points will be awarded

Hi,
what ever the Aman said is correct. You check this is supported in 8.1.5, SQL allows you to embed the ORDER BY clause in a subquery and place the ROWNUM condition in the top-level query;
'Top-N query' is a ORACLE 8i feature which is supported in SQL. However,
Bug:855720 states the following:
"PL/SQL does not support top-N queries (ORDER BY in SUBSELECT/SUBQUERY
or VIEW. Since this feature is available in SQL, but not in PL/SQL,
it has been logged as a Bug that will be fixed in 8.1.6."
- Pavan Kumar N

Similar Messages

  • Item Open Interface giving error for Org Assignment

    We ran the MTL_SYSTEMS_ITEMS_INTERFACE & loaded all the items at master level.
    We are having issues in setting at Org level. Cant figure out what the issue as only few records gets assigned & then garbage sets in for remaining records. An SR has been raised & the tech support representative was saying that UOM's are different at master & org levels. Never heard of this issue earlier. I have worked with UOM's different at Master/Org levels.
    The UOM's are different at Master & Org Level and in some cases the UOM are different for different Orgs. Attribute Control for Primary/Sec UOM is at Org level. The UOM's belong to the same UOM Class. There are standard conversions defined for all these UOMs.
    Any pointers for quick resolution ?

    Pl do not post duplicates - Item Open Interface giving error for Org Assignment

  • IW32- order-print is giving error for particular User.

    Dear Friends,
    IW32- order-print is giving error for particular User and output type.  Debugging authorization restricted on the system, hence I canu2019t trace out the problem. If anybody comes across such issues, please reply to the post.
    Thanks In Advance for your reply.
    Anil Dasari
    Thanks In Advance.

    Hi,
    Information about dump:
    1. User and Transaction:
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          06.05.2011 10:47:40
         MM Used. 13116304
         MM Free. 3639760
    User and Transaction
         Client.............. 700
         User................ "BLADEF01"
         Language key........ "N"
         Transaction......... "IW32 "
         Transactions ID..... "4DC387ECA12B684DE10000001A5B1803"
         Program............. "/MRSS/SAPLRSG_PM_ORDER"
         Screen.............. "SAPLCOIH 3000"
         Screen line......... 33
    Information on where terminated
         Termination occurred in the ABAP program "/MRSS/SAPLRSG_PM_ORDER" - in
          "/MRSS/RSG_MAINTAIN_MRS".
         The main program was "SAPLCOIH ".
         In the source code you have the termination point in line 441
         of the (Include) program "/MRSS/LRSG_PM_ORDERU04".
    2. Info. Where it got terminated.
    Information on where terminated
        Termination occurred in the ABAP program "/MRSS/SAPLRSG_PM_ORDER" - in
         "/MRSS/RSG_MAINTAIN_MRS".
        The main program was "SAPLCOIH ".
        In the source code you have the termination point in line 441
        of the (Include) program "/MRSS/LRSG_PM_ORDERU04".
    3. How to correct the error.
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "MESSAGE_TYPE_X" " "
        "/MRSS/SAPLRSG_PM_ORDER" or "/MRSS/LRSG_PM_ORDERU04"
        "/MRSS/RSG_MAINTAIN_MRS"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1.1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2.2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3.3. If the problem occurs in a problem of your own or a modified SAP.
    I have been searching for notes recently implemented for IW32.
    Thanks and Regards,
    ANIL DASARI

  • MySite – My Content Page is not working and giving error for existing customers

    We are using SharePoint 2010 and recently moved to SharePoint 2013. Central Admin run under SP 2013 and Content Db Front End run under SP 2010.
    After migration the MySite – My Content Page is not working and giving error for existing customers (http://mysite.ss.com/_layouts/MySite.aspx?Error=4705).
    New users (after migration) are able access the My Content and adding documents but old users can’t.
    Can anyone help me on the above?

    I think you might be using non claims web app in 2010, if that is the case, you 'd need to convert your existing users to claims users for which you can refer to http://technet.microsoft.com/en-us/library/gg251985(v=office.15).aspx
    to check if your exisiting users are claims or classic users , try 
    get-spuser -web http://mysite.ss.com -limit all
    check in the output if you see the claims GUID in form of user names like i:0#.w|domain\username, if yes, they claims users if you just see Domain\username, you want those users to be converted to calims.
    i'd need more details to be specific about my answer but aforementioned scenario is most common of all, hope this helps, 
    Thanks, Noddy

  • OdiSqlUnload giving error for network location specified

    Hi,
    I have been trying to use OdiSqlUnload tool to create text files on Network machine.
    But it is giving following error
    oracle.odi.oditools.OdiToolInvalidParameterException: Error while setting parameters on tool
         at com.sunopsis.dwg.function.SnpsFunctionBase.getCoreOdiTool(SnpsFunctionBase.java:607)
    So as per error it is saying parameters specified are incorrect.
    Let me also paste for you Code i have used.
    OdiSqlUnload -FILE= \\10.161.102.182\Interfaces\OMP\BUR\snd\RBSIT_#SAP_Filename.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    SELECT * FROM ompodi.start_record
    As here i have specified network location, does it mean i cannot create files on ntwork machine directly?
    If so then is there any way to move files to network machine location from host computer?
    Also i would like to know any tool for deleting files , preferably network location.
    Thanks and Regards,
    Mahesh

    IT WAS GIVING ERROR BECAUSE IN SOURCE COMMAND I HAVENT SPECIFIED SOURCE TECNHOLOGY AND LOGICAL SCHEMA.
    ALSO IN ABOVE COMMAND THERE IS NO NEED TO WRITE QUERY WORD EXPLICITELY.
    SO IT SHOULD BE AS
    OdiSqlUnload -FILE=D:\Patrol\kaname2alert.txt -DRIVER=<%=odiRef.getInfo("SRC_JAVA_DRIVER")%> "-URL=<%=odiRef.getInfo("SRC_JAVA_URL")%>" "-USER=<%=odiRef.getInfo("SRC_USER_NAME")%>" "-PASS=<%=odiRef.getInfo("SRC_ENCODED_PASS")%>" "-FILE_FORMAT=FIXED" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=ISO8859_1" "-XML_CHARSET_ENCODING=ISO-8859-1"
    select 'FAILURE ',trim(nvl(substr(substr( PACKAGE_NAME||',', 1, instr(PACKAGE_NAME,',')-1 ),7),'Error Due to missing scenario or Any other unlogged error')) Package_Name,to_char(FAILURE_TIMESTAMP,'DD-mm-yyyy HH24:MI:SS') Execution_Time from <%=odiRef.getSchemaName("OMP","W")%>.ERROR_MESSAGES order by failure_timestamp desc
    HOPE IT WOULD HELP SOMEONE.
    SO POSTING IT.

  • Installation error for oracle 11g

    Hi
    Unable to login to the oracle homepage like https://localhost:portno/em (I jus gave an ex, after installation I got the url).
    Its just shows certificate error even though I tried for trusted connection.
    It means it displays a blank page.
    Can anyone help on these.
    Nithesh Raj

    Hi
    SYSMAN account status is open.
    DBCONSOLE in services is up, however when I check dbconsole status it is showing it is not defined.
    How can we define it.
    Log file of clsc:
    2012-08-21 12:55:36.318: [ default][2960]ut_read_reg:2:ocr registry key SOFTWARE\Oracle\olr cannot be opened. error 2
    [    CLSE][2960]clse_get_crs_home: Error retrieving OLR configuration [0] [Error opening olr registry key. The system cannot find the file specified.
    log file of css:
    2012-08-21 13:21:43.382: [ GIPCNET][1728] gipcmodNetworkAsyncComplete: [network] error for endp 000000000A4FCB90, req 000000000A4F55D0, type sgipcnreqtypeConnect (1), data 0000000000000000, sret sgipcretConnectionRefused (28)
    2012-08-21 13:21:43.382: [ GIPCNET][1728] gipcmodNetworkAsyncComplete: slos op : sgipcwWait
    2012-08-21 13:21:43.382: [ GIPCNET][1728] gipcmodNetworkAsyncComplete: slos dep : The remote computer refused the network connection. (1225)
    2012-08-21 13:21:43.382: [ GIPCNET][1728] gipcmodNetworkAsyncComplete: slos loc : GetQueueComp
    2012-08-21 13:21:43.382: [ GIPCNET][1728] gipcmodNetworkAsyncComplete: slos info: failed for over 000000000A4FB7F0
    2012-08-21 13:21:43.382: [ CSSCLNT][1728]clssscConnect: gipc request to clsc://(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=61100)) failed with 29 (0000000000000013)
    2012-08-21 13:21:43.382: [ CSSCLNT][1728]clsssInitNative: connect to (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=61100)) failed, rc 29
    Thanks for the help.
    How can we solve it.
    Edited by: Nithesh on Aug 21, 2012 5:31 AM
    Edited by: Nithesh on Aug 21, 2012 5:33 AM

  • XdbConfiguration.sql giving errors for package XDB_CONFIGURATION

    Hi,
    I am getting following errors(at the bottom) while running xdbConfiguration.sql before installing the demo.
    I am logged in as sys user(sysdba) and using running
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    on Windows2000.
    Is the wrong version of Oracle. Do I have have 9.2.4.0.
    Thanks in advance for help.
    Om Soni
    Errors for PACKAGE BODY XDB_CONFIGURATION:
    LINE/COL ERROR
    51/6 PL/SQL: Statement ignored
    51/54 PLS-00302: component 'DELETE_FORCE' must be declared
    56/4 PL/SQL: SQL Statement ignored
    56/20 PL/SQL: ORA-22970: name does not correspond to an object view

    Hi ,
    I upgraded to 9.2.0.4.0. The error still shows up while running the xdbConfiguration.sql.
    The following errors show up:
    Errors for PACKAGE BODY XDB_CONFIGURATION:
    LINE/COL ERROR
    51/6 PL/SQL: Statement ignored
    51/54 PLS-00302: component 'DELETE_FORCE' must be declared
    56/4 PL/SQL: SQL Statement ignored
    58/9 PL/SQL: ORA-00942: table or view does not exist
    I got rid of first two error by removing dbms_xdb.DELETE_FORCE from line
    dbms_xdb.deleteResource(targetResource,dbms_xdb.DELETE_FORCE);
    Last two error are at line :
    select make_ref(DATABASE_SUMMARY,'DATABASE_SUMMARY')
    into xmlref
    from DATABASE_SUMMARY;
    Looking at the script DATABASE_SUMMARY is not a object.
    May be the script has a bug in it.
    -Om

  • Unsatisfied link error for oracle database connection

    Hi all,
    I am tryin to establing connection to the oracle database through weblogic 6.1.
    the connection starts normally and then it gives me an error stating that weblogicoci37
    is not found in the java library path. I tried to find it out in the weblogic
    directory but managed to find out some files with ...oci36. Am doing something
    weird!!
    I am sure i downloaded the correct driver. My OS is NT and webserver 6.1 and the
    jdriver is ocirel510sp11 package for oracle. Would be great to have some suggestions!
    i have listed the error below.
    Starting Loading jDriver/Oracle .....
    Error encountered:
    java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.UnsatisfiedLinkError:
    no we
    blogicoci37 in java.library.path
    at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
    at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:167)

    found the error, i forgot to add the oci817_8 folder from the weblogic bin directory
    in the path.
    "arif" <[email protected]> wrote:
    >
    Hi all,
    I am tryin to establing connection to the oracle database through weblogic
    6.1.
    the connection starts normally and then it gives me an error stating
    that weblogicoci37
    is not found in the java library path. I tried to find it out in the
    weblogic
    directory but managed to find out some files with ...oci36. Am doing
    something
    weird!!
    I am sure i downloaded the correct driver. My OS is NT and webserver
    6.1 and the
    jdriver is ocirel510sp11 package for oracle. Would be great to have
    some suggestions!
    i have listed the error below.
    Starting Loading jDriver/Oracle .....
    Error encountered:
    java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.UnsatisfiedLinkError:
    no we
    blogicoci37 in java.library.path
    at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
    at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:167)

  • Query regarding OTG for Oracle 10g

    Hi,
    We need the OTG patch name for Oracle 10.2.0.5 to connect to DB2 database urgently. Please help asap.
    Regards,
    Rajiv.

    Patches come from https://support.oracle.com

  • IDOMServices Parse giving error for non-alpha numeric characters in content

    Hi All,
    Using Adobe InDesign CS4 SDK 557, I want to create IIDXMLDOMDocument * from a xml stored in a PMString variable.
    I used the following code to parse the xml:-
    InterfacePtr<IK2ServiceRegistry> servReg(GetExecutionContextSession(), UseDefaultIID());
    InterfacePtr<IK2ServiceProvider> provider(servReg->QueryServiceProviderByClassID (kDOMParserService, kDOMParserServiceBoss )); 
    InterfacePtr<IDOMServices> domService( provider, UseDefaultIID() ); 
    if(!domService)
        break;
    std::string stdString = myXMLString.GetPlatformString();
    const char * buff = stdString.c_str();
    InterfacePtr<IPMStream> pmStream(StreamUtil:: CreatePointerStreamRead( (char *)buff, stdString.size()));
    IIDXMLDOMDocument * parsedDom = domService->Parse( pmStream );
    -  Now the problem is when myXMLString have some special character like “0x27” , “0x14” etc. then IDOMServices::Parse fails.
    -  I tried replacing these characters with “&#x27;”, “&#x14;” but still IDOMServices::Parse fails.
    I also tried to used ISAXServices::ParseStream, but it also gives error for the same character.
    Also tried setting ISAXParserOptions::SetAbortAfterWarning(kFalse), but not changed in result.
    Please let me know if I am missing something.
    Thanks,
    Jitendra Kumar Singh

    Hi Nitika Saini,
    Please let me know what's your patch level of BI 7 system.
    I am also facing problem with transformations, I didn't see any transper routines in my system for 0IC_C03 - 2LIS_03_BX, LIS_03_BF, 2LIS_03_UM.
    Here, my BI 7 patch level BI content 8 and BW pathc 16.
    Thanks,
    Chandra

  • Query parsing error for Chart.

    Hi,
    I am trying to understand the query structure for drawing charts . I am not sure why this query doesn't work. Any help will be appreciated.
    select null link,
    category label,
    count (decode(p.category,'Accessories'))
    "Accessories",
    count (decode(p.category,'Mens')) "Mens",
    count (decode(p.category,'Womens')) "Womens"
    from demo_product_info p
    I get the following error .
    •Failed to parse SQL query!
    Thanks

    Jeff,
    Yes . I am using the same query for creating all the four series. I tried creating the same chart by giving more options, now I get three values ( out of 7) . I am not sure why .
    See the query :
    CREATE OR REPLACE FUNCTION funcy
    RETURN VARCHAR2 IS
    l_qry VARCHAR2(32767);
    BEGIN
    l_qry := 'select null link, LOAD_DATE label,';
    FOR r1 IN (SELECT DISTINCT "MOUNT_POINT" FROM "SERVER_DISK_SPACE_UTILIZATION")
    LOOP
    l_qry := l_qry || '(decode(MOUNT_POINT,''' || r1.MOUNT_POINT||
    ''',PERCENTAGE_USED*100,0)) "' || substr(r1.MOUNT_POINT,-8)|| '",';
    END LOOP;
    --Trim off trailing comma
    l_qry := rtrim(l_qry, ',');
    --Append the rest of the query
    l_qry := l_qry ||' FROM "SERVER_DISK_SPACE_UTILIZATION"';
    RETURN l_qry;
    END;
    I called it in the chart like this :
    BEGIN
    RETURN funcy;
    END;
    xml:
    - <data>
    - <series name="oger/etl" type="Bar" color="0x1D8BD1">
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="79" />
    <point name="08-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    </series>
    - <series name="re/prep2" type="Bar" color="0xF1683C">
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="86" />
    <point name="09-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    </series>
    - <series name="ore/prep" type="Bar" color="0x2AD62A">
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="82" />
    <point name="07-SEP-2011" y="0" />
    </series>
    - <series name="/mount36" type="Bar" color="0xDBDC25">
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="95" />
    <point name="08-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    </series>
    - <series name="outbound" type="Bar" color="0x8FBC8B">
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="68" />
    <point name="07-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    </series>
    - <series name="etl/data" type="Bar" color="0xD2B48C">
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="84" />
    </series>
    - <series name="/sandbox" type="Bar" color="0xFAF0E6">
    <point name="09-SEP-2011" y="56" />
    <point name="09-SEP-2011" y="0" />
    <point name="09-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="08-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    <point name="07-SEP-2011" y="0" />
    </series>
    </data>

  • Select query giving error

    Hi can Some one help me how to fit the query in the Main query, I need to selete SYS_ID the below Work around query is getting the output correctly
    but when i tried to put in the main query am getting ORA-00933 not sure how to fix this. Can some one advice me where am making wrong.
    Work Around query :
       SELECT ALTID.B_SYS_ID FROM N08.B_ALT_ID_TB ALTID WHERE ALTID.B_ALT_ID
               IN ( SELECT MEDCO.RE_MEDCD_ID_NUM 
                 FROM N09.T_MEDCD_ID MEDCO
              INNER JOIN N09.T_POLY POLY
                    ON POLY.RE_UNIQUE_ID = MEDCO.RE_UNIQUE_ID) AS B_SYS_ID
    Need to integerate the above column in the below query.
    Main Query :
    SELECT 'Diff' AS SC,
         POLY.ID,
          ALTID.B_SYS_ID FROM N08.B_ALT_ID_TB ALTID WHERE ALTID.B_ALT_ID
               IN ( SELECT MEDCO.RE_MEDCD_ID_NUM 
                 FROM N09.T_MEDCD_ID MEDCO
              INNER JOIN N09.T_POLY POLY
                    ON POLY.RE_UNIQUE_ID = MEDCO.RE_UNIQUE_ID) AS B_SYS_ID,
        NULL AS BEG_DT,
      NULL AS ID,
    FROM
       N09.T_POLY POLY
    Oracle Version : 10gR2
    Thanks in advance.

    Hi,
    Hillbird wrote:
    Hi Frank,
    Thanks for your responces. The Error am getting is at line number 7 & col# 55 -- ON POLY.RE_UNIQUE_ID = MEDCO.RE_UNIQUE_ID) AS B_SYS_ID,.
    I also changed the alias name in thesubquery as S-poly and left the main query alias as POLY. You still haven't posted a completed query, or any sample data and results.
    But still i am getting the same error message.
    Error Message
    ORA-00933 : Sql command not properly ended
    oo933 00000 - "Sql command not properly ended"
    Vendor Code 933 Error at line 7 column 55
    Iam framing a select query, The work around query is used to checkhow to reterive the value from the DB and with the business rules. on which the framing
    select query the B_sys_id comes in column 3 and i still have more columns to select. Hence i even tried as below
    SELECT 'Diff' AS SC,
    POLY.ID,
    ALTID.B_SYS_ID FROM N08.B_ALT_ID_TB ALTID WHERE ALTID.B_ALT_ID
    IN ( SELECT MEDCO.RE_MEDCD_ID_NUM 
                 FROM N09.T_MEDCD_ID MEDCO
                 WHERE POLY.RE_UNIQUE_ID = MEDCO.RE_UNIQUE_ID),
    NULL AS BEG_DT,
    NULL AS ID,
    FROM
    N09.T_POLY POLY
    But still the same error message i got.
    Hence i just tried as below
    SELECT 'Diff' AS SC,
    1 as dummy,
    2 as dummy_1,
    ALTID.B_SYS_ID FROM N08.B_ALT_ID_TB ALTID WHERE ALTID.B_ALT_ID
    IN ( SELECT MEDCO.RE_MEDCD_ID_NUM 
                 FROM N09.T_MEDCD_ID MEDCO
              INNER JOIN N09.T_POLY POLY
    ON POLY.RE_UNIQUE_ID = MEDCO.RE_UNIQUE_ID)
    This is working.
    Can you please let me know what is that i need to do if i want to add more columns in the select clause after
    this line ON POLY.REUNIQUE_ID = MEDCO.RE_UNIQUE_ID)_
    Thanks.
    A query (not counting sub-queries) has, at most, only one of each type of clause: one SELECT clause, followed by one FROM clause, followed (optionally) by one WHERE clause. All items to be returned go together in the one SELECT clause. All tables needed are named in the on FROM clause. All filtering conditions go together in the one WHERE clause.
    Perhaps you meant something like this:
    SELECT  'Diff'           AS SC
    ,          POLY.ID
    ,           ALTID.B_SYS_ID
    ,       NULL AS BEG_DT
    ,     NULL AS ID
    FROM     N08.B_ALT_ID_TB ALTID
    JOIN    N09.T_POLY     POLY   ON  altid.column_a  = poly.column_b
    WHERE      ALTID.B_ALT_ID     IN (
                          SELECT  MEDCO.RE_MEDCD_ID_NUM 
                             FROM    N09.T_MEDCD_ID           MEDCO
                             WHERE   POLY.RE_UNIQUE_ID      = MEDCO.RE_UNIQUE_ID
                      )With the little information I have, I can't even guess what the real join condition(s) might be. I used
    ON  altid.column_a  = poly.column_bjust to show the correct syntax.

  • Install error for Oracle 10g on Solaris x86 64-bit.  NETCA won't run

    Hi All,
    I'm installing Oracle 10.2.0.1 on Solaris x86 64-bit. I run the Oracle installer and all runs well until the NETCA portion of the install. It then errors (error file below). When i attempt to run NETCA outside of the installer i'm getting the same error output. I have verified my OS version and that all dependent packages are installed. I'm not sure what is causing this. Any help would be greatly appriciated.
    thanks, dave
    ERROR FILE:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0xFEEF24E8
    Function=strchr+0x8
    Library=/lib/libc.so.1
    Current Java thread:
         at oracle.net.common.NetGetEnv.getDNSDomain(Native Method)
         at oracle.net.ca.ConfigureProfile.setDefaultProfileParams(Unknown Source)
         at oracle.net.ca.InitialSetup.setupConfigObjects(Unknown Source)
         at oracle.net.ca.InitialSetup.<init>(Unknown Source)
         at oracle.net.ca.NetCA.main(Unknown Source)
    Dynamic libraries:
    0x8050000      /data1/oracle/oracle/jdk/jre/bin/java
    0xfefc0000      /lib/libthread.so.1
    0xfefd0000      /lib/libdl.so.1
    0xfeed0000      /lib/libc.so.1
    0xfea00000      /data1/oracle/oracle/jdk/jre/lib/i386/client/libjvm.so
    0xfee80000      /usr/lib/libCrun.so.1
    0xfee50000      /lib/libsocket.so.1
    0xfedc0000      /lib/libnsl.so.1
    0xfeda0000      /lib/libm.so.1
    0xfeeb0000      /usr/lib/libsched.so.1
    0xfe9a0000      /lib/libm.so.2
    0xfed50000      /lib/libscf.so.1
    0xfe980000      /lib/libdoor.so.1
    0xfe960000      /lib/libuutil.so.1
    0xfe940000      /lib/libmd5.so.1
    0xfe920000      /lib/libmp.so.2
    0xfe8e0000      /data1/oracle/oracle/jdk/jre/lib/i386/native_threads/libhpi.so
    0xfe890000      /data1/oracle/oracle/jdk/jre/lib/i386/libverify.so
    0xfe850000      /data1/oracle/oracle/jdk/jre/lib/i386/libjava.so
    0xfe830000      /data1/oracle/oracle/jdk/jre/lib/i386/libzip.so
    0xf1a00000      /usr/lib/locale/en_US.UTF-8/en_US.UTF-8.so.3
    0xfc780000      /usr/lib/locale/en_US.UTF-8/methods_en_US.UTF-8.so.3
    0xf13c0000      /data1/oracle/oracle/jdk/jre/lib/i386/libawt.so
    0xf0f90000      /data1/oracle/oracle/jdk/jre/lib/i386/libmlib_image.so
    0xf0f30000      /data1/oracle/oracle/jdk/jre/lib/i386/motif21/libmawt.so
    0xf0d50000      /usr/dt/lib/libXm.so.4
    0xf0cf0000      /usr/openwin/lib/libXt.so.4
    0xf0cc0000      /usr/openwin/lib/libXext.so.0
    0xf1890000      /usr/openwin/lib/libXtst.so.1
    0xf0c30000      /usr/openwin/lib/libX11.so.4
    0xf0be0000      /usr/openwin/lib/libdps.so.5
    0xf0a90000      /usr/openwin/lib/libSM.so.6
    0xf0a70000      /usr/openwin/lib/libICE.so.6
    0xf0a30000      /data1/oracle/oracle/lib32/libnjni10.so
    0xefe00000      /data1/oracle/oracle/lib32/libclntsh.so.10.1
    0xefc60000      /data1/oracle/oracle/lib32/libnnz10.so
    0xf0a10000      /lib/libkstat.so.1
    0xefc40000      /lib/libgen.so.1
    0xefc20000      /lib/librt.so.1
    0xefbf0000      /lib/libaio.so.1
    0xefbd0000      /data1/oracle/oracle/lib32/libldapjclnt10.so
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 343K [0xf1e00000, 0xf1ea0000, 0xf22e0000)
    eden space 512K, 55% used [0xf1e00000, 0xf1e467f8, 0xf1e80000)
    from space 64K, 96% used [0xf1e80000, 0xf1e8f798, 0xf1e90000)
    to space 64K, 0% used [0xf1e90000, 0xf1e90000, 0xf1ea0000)
    tenured generation total 1408K, used 338K [0xf22e0000, 0xf2440000, 0xf5e00000)
    the space 1408K, 24% used [0xf22e0000, 0xf2334ab8, 0xf2334c00, 0xf2440000)
    compacting perm gen total 4096K, used 3580K [0xf5e00000, 0xf6200000, 0xf9e00000)
    the space 4096K, 87% used [0xf5e00000, 0xf617f170, 0xf617f200, 0xf6200000)
    Local Time = Tue Aug 29 13:49:22 2006
    Elapsed Time = 225
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode)
    #

    I have the same problem on Linux Debian 3.0.
    My /etc/hosts looks like:
    127.0.0.1     localhost.localdomain     localhost
    #192.168.100.1     bt.lan.home     bt
    #192.168.100.5     jacek.lan.home     jacek
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhostsPlease help.

  • Giving error for NearCache Configuration-java.lang.IllegalArgumentException

    Hi,
    I tried to use near cache topology but it is giving the below error(I am unable to masp the near cache)
    java.lang.IllegalArgumentException: Unresolved reference to scheme:
    example-local
    at com.tangosol.net.DefaultConfigurableCacheFactory.resolveScheme(DefaultConfigurableCacheFactory.java:840)
    at com.tangosol.net.DefaultConfigurableCacheFactory.resolveScheme(DefaultConfigurableCacheFactory.java:893)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:130
    6)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:294)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:204)
    at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
    at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
    at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
    at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.tangosol.net.CacheFactory.main(CacheFactory.java:827)
    I given the below configuration in the cache server side....
    <caching-scheme-mapping>
         <cache-mapping>
    <cache-name>NearCache</cache-name>
    <scheme-name>example-near</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <near-scheme>
         <scheme-name>example-near</scheme-name>
         <front-scheme>
         <local-scheme>
         <scheme-ref>example-local</scheme-ref>
         </local-scheme>
         </front-scheme>
    <back-scheme>
         <remote-cache-scheme>
         <scheme-ref>example-remote</scheme-ref>
         </remote-cache-scheme>
    </back-scheme>
    </near-scheme>
    <remote-cache-scheme>
    <scheme-name>example-remote</scheme-name>
    <service-name>ExtendTcpCacheService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address>localhost</address>
    <port>9099</port>
    </socket-address>
    </remote-addresses>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>30s</request-timeout>
    </outgoing-message-handler>
    </initiator-config>
    </remote-cache-scheme>
    </caching-schemes>
    PLease provide the configurastion for the nearcache topology....
    Thank you.

    You are missing the example-local
    <local-scheme>
    <scheme-ref>example-local</scheme-ref>
    </local-scheme>
    for example,
    <local-scheme>
          <scheme-name>example-local</scheme-name>
          <eviction-policy>HYBRID</eviction-policy>
          <high-units>{back-size-limit 0}</high-units>
          <unit-calculator>BINARY</unit-calculator>
          <expiry-delay>{back-expiry 1h}</expiry-delay>
    </local-scheme>Examples can be found in the coherence.jar that contains coherence-cache-config.xml

  • Select...Model query giving error when compiled in form6i's WVI trigger

    friends i have this installed at my home;
    Forms [32 Bit] Version 6.0.8.25.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    and i have a query which is running fine at the back-end,
    select avgprice
    from (
    select t.*
    from (
    select seq_no
    , invxh_DATE
    , INVXH_code
    , invxh_No
    , invxH_total_qty
    , INVXH_net_AMOUNT_Scy INVXH_net_AMOUNT_Scy
    , balqty
    , ROUND(balamt, 3) balamt
    , ROUND(avgprice, 10) avgprice
    , ROUND(cost, 3) cost
    from (select b.*,
    sum(decode(invxh_code, 'BUY', INVXH_total_QTY, -INVXH_total_QTY)) OVER (ORDER BY INVXh_DATE) BALQTY,
    row_number() over (order by INVXH_date) seq_no
    from invs_TXN_head b
    where INVXH_BROK_code = 'B00001'
    aND INVXH_Securit_CODE = 'S00001'
    and INVXH_date < to_DATE('25/02/2008','dd/mm/yyyy'))
    model
    dimension by (seq_no)
    measures (invxh_DATE
    , INVXh_code
    , INVXH_no
    , INVXH_total_qty
    , balqty
    , INVXH_net_AMOUNT_Scy
    , 0 balamt
    , 0 balamt2
    , 0 avgprice
    , 0 cost)
    rules (
    balamt[seq_no is any] = nvl(balamt[cv() - 1], 0) +
    decode(INVXH_code[cv()], 'BUY', INVXH_net_AMOUNT_Scy[cv()] , -(balamt[cv() -1] /
    balqty[cv() -1] * invxh_TOTAL_qty[cv()]) ) ,
    cost[seq_no is any] = decode(INVXH_code[cv()], 'SEL', balamt[cv() -1] /
    balqty[cv() -1] * invxh_TOTAL_qty[cv()], 0),
    avgprice[seq_no is any] = decode(INVXH_code[cv()], 'BUY', balamt[cv()] /
    balqty[cv()] , avgprice[cv() - 1])
    ) t
    order by seq_no desc
    ) where rownum = 1
    AVGPRICE
    2.17612187560
    but when i try make use of this query in 1 of my form Item's When-Validate-Trigger, replacing with form variables,
    declare
         avgprice1 number;
    begin
    select avgprice INTO AVGPRICE1
    from (
    select t.*
    from (
    select seq_no
    , invxh_DATE
    , INVXH_code
    , invxh_No
    , invxH_total_qty
    , INVXH_net_AMOUNT_Scy INVXH_net_AMOUNT_Scy
    , balqty
    , ROUND(balamt, 3) balamt
    , ROUND(avgprice, 10) avgprice
    , ROUND(cost, 3) cost
    from (select b.*,
    sum(decode(invxh_code, 'BUY', INVXH_total_QTY, -INVXH_total_QTY)) OVER (ORDER BY INVXh_DATE) BALQTY,
    row_number() over (order by INVXH_date) seq_no
    from invs_TXN_head b
    where INVXH_BROK_code = :INVXH_brok_CODE
    aND INVXH_Securit_CODE = :invxh_Securit_CODE
    and INVXH_date < to_DATE('25/02/2008','dd/mm/yyyy'))
    model
    dimension by (seq_no)
    measures (invxh_DATE
    , INVXh_code
    , INVXH_no
    , INVXH_total_qty
    , balqty
    , INVXH_net_AMOUNT_Scy
    , 0 balamt
    , 0 balamt2
    , 0 avgprice
    , 0 cost)
    rules (
    balamt[seq_no is any] = nvl(balamt[cv() - 1], 0) +
    decode(INVXH_code[cv()], 'BUY', INVXH_net_AMOUNT_Scy[cv()] , -(balamt[cv() -1] /
    balqty[cv() -1] * invxh_TOTAL_qty[cv()]) ) ,
    cost[seq_no is any] = decode(INVXH_code[cv()], 'SEL', balamt[cv() -1] /
    balqty[cv() -1] * invxh_TOTAL_qty[cv()], 0),
    avgprice[seq_no is any] = decode(INVXH_code[cv()], 'BUY', balamt[cv()] /
    balqty[cv()] , avgprice[cv() - 1])
    ) t
    order by seq_no desc
    ) where rownum = 1;
    :INVXH_gainloSs_AMOUNT_lcy := :INVXH_NET_AMOUNT_Scy - (:INVXH_TOTAL_QTY * avgprice1);
    end;
    it does'nt get complied & gives error as;
    Encountered the symbol "(" when expecting one of the following
    +, from+
    its actually pointing to this line of the above query;
    sum(decode(invxh_code, 'BUY', INVXH_total_QTY, -INVXH_total_QTY)) OVER (ORDER BY INVXh_DATE) BALQTY,
    at this position...*OVER (...*
    is it a form6i-10g compatibility issue or what else..?
    TYVM

    ok,, i have put my code in a stored function 'WTAG1' in the database. its working fine at the back-end.
    i am calling it now from forms WVI trigger in this way;
    declare
         avgprice1 number(14,10);
    begin
         avgprice1 := GET_WTAVG(:invxh_BROK_code, :INVXH_securit_CODE, TO_DATE(:INVXH_DATE,'DD/MM/YYYY'));      
    :INVXH_gainloSs_AMOUNT_lcy := :INVXH_NET_AMOUNT_Scy - (:INVXH_TOTAL_QTY * NVL(avgprice1,0));
    end;
    at run time m getting ORA-06502 ERROR,dont know why..?
    :INVXH_gainloSs_AMOUNT_lcy property is 9,999,999.000
    AT the back-end the query works fine aS below;
    SQL> @WTAG1
    Function created.
    SQL> SELECT GET_WTAVG('B00001','S00001',TO_DATE('27/4/2008','DD/MM/YYYY')) AG FROM DUAL;
    AG
    2.1761218756
    this iS my function;
    create or replace function GET_WTAVG(P_BROK_CODE IN VARCHAR2, P_SECURIT_CODE IN VARCHAR2, P_DATE IN DATE)
    return NUMBER Is
      v_avgprice NUMBER(14,10);
    BEGIN
    SELECT avgprice INTO V_avgprice
      FROM   (SELECT t.*
              FROM   (SELECT seq_no,
                             invxh_date,
                             invxh_code,
                             invxh_no,
                             invxh_total_qty,
                             invxh_net_amount_scy invxh_net_amount_scy,
                             balqty,
                             round(balamt, 3) balamt,
                             round(avgprice, 10) avgprice,
                             round(cost, 3) cost
                      FROM   (SELECT b.*,
                                     SUM(decode(invxh_code,
                                                'BUY',
                                                invxh_total_qty,
                                                -invxh_total_qty)) over(ORDER BY invxh_date) balqty,
                                     row_number() over(ORDER BY invxh_date) seq_no
                              FROM   invs_txn_head b
                              WHERE  invxh_brok_code = P_BROK_CODE
                              AND    invxh_securit_code = P_sECURIT_CODE
                              AND    invxh_date < to_char(P_DATE,'DD/MM/YYYY'))
    model
    dimension BY(seq_no)
    measures(invxh_date
    , invxh_code
    , invxh_no, invxh_total_qty
    , balqty
    , invxh_net_amount_scy
    , 0 balamt
    , 0 balamt2
    , 0 avgprice
    , 0 cost)
    rules
    balamt[seq_no IS ANY] = nvl(balamt[cv() - 1], 0) +
                            decode(invxh_code[cv()], 'BUY', invxh_net_amount_scy[cv()], - (balamt[cv() - 1] /
                            balqty[cv() - 1] * invxh_total_qty[cv()])),
    cost[seq_no IS ANY]   = decode(invxh_code[cv()], 'SEL', balamt[cv() - 1] /
                            balqty[cv() - 1] * invxh_total_qty[cv()], 0),
    avgprice[seq_no IS ANY] = decode(invxh_code[cv()], 'BUY', balamt[cv()] / balqty[cv()], avgprice[cv() - 1]))) t
              ORDER  BY seq_no DESC)
      WHERE  rownum = 1;
    RETURN V_avgprice;
    exception
    when TOO_MANY_ROWS
    then return 'Too Many Authors in that State';
    when NO_DATA_FOUND
    then return 'No Authors in that State';
    when others
    then raise_application_error(-20011,'Unknown Exception in authName Function');
    END GET_WTAVG;
    /

Maybe you are looking for

  • Is there any type of network compression for sql

    I have a user trying to spool a select statement that is close to a 2 gig text file when its done.. the statement runs in 3 minutes when run on a sql client connected to a 1gig full duplex network.. but when connected to a 100Mb/half duplex network i

  • T420s DVI Output

    I am trying to use my Samsung Syncmaster (1680x1050x120hz) with my newly bought t420s. For that i need a DVI-D Output which i thought could be managed by buying a dockingstation, but its not working. I can only use it with 60hz or lower, but i need t

  • FW800 Hard Drive Enclosure & FW800 Card

    Here's my setup: Power Mac G4 Dual 533 Mhz (Digital Audio) 896 MB RAM 2 Internal HDD's - 40GB Master - 80GB Slave My FW ports are 400's. I would like to get a FW800 drive enclosure(s) to move my existing external HDD's (80GB and 120GB) into. That mea

  • Suggestion needed on creating report

    Morning all, I have been asked to create a report which would categorize each lens type according to month. However each lens type would show number of orders according to number of days. For example                                            Number

  • Running Business Rules on Composite Forms

    Hi, I'm using Planning v11.1.2, and I am trying to get a business rule to run from a Composite web form. The version and entity are the only prompts in the business rule, and they are shared globally on the component forms. If I put the business rule