Hierarchical Query/START WITH/Remote Database error

Running on: EE 10.1.0.4.0 - 64bit
Remote DB: EE 11.1.0.6.0 - 64bit Production
Trying:
<PRE>
WITH
Moo
AS
SELECT
1
FROM
Dual@EPO11_Link A
CONNECT BY
LEVEL = 1
START WITH
EXISTS (SELECT * FROM Dual@EPO11_Link B WHERE A.Dummy = B.Dummy)
SELECT
FROM
Moo;
</PRE>
Getting:
ORA-00904: "A3"."$nso_col_1": invalid identifier
ORA-02063: preceding line from EPO11_LINK
00904. 00000 - "%s: invalid identifier"
*Cause:   
*Action:
- The CTE's query runs fine on its own.
- removing the @ from the first Dual@EPO11_Link , works.
- removing the @ from the second Dual@EPO11_Link , errors:
ORA-02016: cannot use a subquery in a START WITH on a remote database
02016. 00000 - "cannot use a subquery in a START WITH on a remote database"
*Cause:   
*Action:
Error at Line: 10 Column: 24
- Removing the START WITH clause, works.
- Changing the START WITH clause's "=" to "IN", works.
- Changing the START WITH to EXISTS (SELECT * FROM Dual@EPO11_Link B WHERE A.Dummy = B.Dummy) results in:
ORA-00904: "A3"."DUMMY": invalid identifier
ORA-02063: preceding line from EPO11_LINK
00904. 00000 - "%s: invalid identifier"
*Cause:   
*Action:
Am i missing something here?
Edited by: Brian Tkatch on Jan 19, 2012 1:27 PM

Searching error messages books:
These have the ORA-02016:
8: http://docs.oracle.com/cd/A58617_01/server.804/a58312/newch228.htm#19589
9: http://docs.oracle.com/cd/A91202_01/901_doc/server.901/a90202/e1500.htm#1001663
These do not have the ORA-02016:
10R1: http://docs.oracle.com/cd/B14117_01/server.101/b10744/e1500.htm#ORA-02009
10R2: http://docs.oracle.com/cd/B19306_01/server.102/b14219/e1500.htm#ORA-02009
11R1: http://docs.oracle.com/cd/B28359_01/server.111/b28278/e1500.htm#ORA-02009
Starting with (heh) 10R1 a bunch of error messages were removed regarding hierarchical queries, including this one.
Is it allowed or not?

Similar Messages

  • How to use HR application with Remote Database ?

    Hi,
    I tested the HR application but it working on local database.
    How can I create same application which will communicate with Remote Database.
    Any guideline ?
    Regards,
    Ajay Sharma

    Hi,
    Thanks for the reply.
    My scenario is that there is one web service and this web service has one method name "getQueryOutput".
    Input parameter to this method is Select query
    select ename form empthe return type of this method is Document. Currently I hard coded the select statement as I want to display all employee name as application starts.
    But I am getting following error
    Unable to read DataControl Usages, on loadDataControl for id: Genericwebfollowing is the code of method where I am calling Webservice data control
        public void Execute() {
            Trace.log(Utility.ApplicationLogger, Level.INFO, EmployeeList.class, "Execute",
                      "##############Inside Execute");
            List pnames = new ArrayList();
            List params = new ArrayList();
            List ptypes = new ArrayList();
            pnames.add("query");
            ptypes.add(String.class);
            params.add("select ename from emp");
            try {
                Trace.log(Utility.ApplicationLogger, Level.INFO, EmployeeList.class, "Execute",
                          ">>>>>> Before invokeDataControlMethod");
                // This calls the DC method and gives us the Return
                GenericType result =
                    (GenericType)AdfmfJavaUtilities.invokeDataControlMethod("Genericweb", null, "getQueryOutput",
                                                                            pnames, params, ptypes);
                GenericType cfgt = (GenericType)result.getAttribute("Results");
                int count = cfgt.getAttributeCount();
                for (int i = 0; i < count; i++) {
                    GenericType fgt = (GenericType)cfgt.getAttribute(i);
                    Employee e = (Employee)GenericTypeBeanSerializationHelper.fromGenericType(Employee.class, fgt);
                    GenericType tempgt = (GenericType)fgt.getAttribute("ENAME");
                    e.setEname((String)tempgt.getAttribute(0));
                    s_employees.add(e);
            } catch (AdfInvocationException e) {
                Trace.log(Utility.ApplicationLogger, Level.SEVERE, EmployeeList.class, "Execute",
                          ">>>>>> AdfInvocationException=" + e.getMessage());
                //AdfException ex = new AdfException("Error Invoking Web Service.  Please try later", AdfException.WARNING);
                AdfException ex = new AdfException(e.getMessage(), AdfException.WARNING);
                throw ex;
            } catch (Exception e2) {
                Trace.log(Utility.ApplicationLogger, Level.SEVERE, EmployeeList.class, "Execute",
                          ">>>>>> Exception=" + e2.getMessage());
                //AdfException ex = new AdfException("Error Invoking Web Service.  Please try later", AdfException.WARNING);
                AdfException ex = new AdfException(e2.getMessage(), AdfException.WARNING);
                throw ex;
        }Regards,
    Ajay sharma

  • Session "" failed to start with the following error: 0xc0000022

    Newly installed Windows 2012 R2 server throws the following event roughly every 3 minutes:
    Session "" failed to start with the following error: 0xc0000022
    The PID referenced in the event points to WmiPrvSE.exe running as NETWORK SERVICE.  Is there something obvious I'm missing because I'm not sure where to go with the information I found so far.  I already did my fair sharing of Binggling and everything
    I find doesn't apply or doesn't fix the problem.

    Hi,
    Can you let me know the full event log content?
    I suggest you restart the Windows Management Instrumentation service.
    Niki Han
    TechNet Community Support

  • Session "Circular Kernel Context Logger" failed to start with the following error: 0xC0000035

    fresh install  and configure  on  A Dell optiplex3010 running  window 7 pro  64 bit  running can  anyone  tell   what   this  is  ?
    Log Name: Microsoft-Windows-Kernel-EventTracing/Admin Source: Microsoft-Windows-Kernel-EventTracing Date: 4/16/2014 12:04:17 PM Event ID: 2 Task Category: Session Level: Error Keywords: Session User: SYSTEM Computer: HMCServer Description: Session "Circular
    Kernel Context Logger" failed to start with the following error: 0xC0000035 Event Xml: <event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"><system><provider guid="{B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}"
    name="Microsoft-Windows-Kernel-EventTracing"><eventid>2</eventid> <version>0</version> <level>2</level> <task>2</task> <opcode>12</opcode> <keywords>0x8000000000000010</keywords>
    <timecreated systemtime="2014-04-16T16:04:17.657816300Z"><eventrecordid>44</eventrecordid> <correlation><execution processid="4" threadid="60"><channel>Microsoft-Windows-Kernel-EventTracing/Admin</channel>
    <computer>HMCServer</computer> <security userid="S-1-5-18"></security></execution></correlation></timecreated></provider></system> <eventdata><data name="SessionName">Circular
    Kernel Context Logger</data> <data name="FileName"></data> <data name="ErrorCode">3221225525</data> <data name="LoggingMode">268436608</data> </eventdata> </event>

    The error is implying there is a naming conflict. This could be 2 or more PCs with the same SID or Computer Name, or two different objects (shares/drives) attempting to use the same drive letter. There is one thing I found of renaming a file that has helped
    some people:
    http://social.technet.microsoft.com/Forums/windows/en-US/2eab69ac-7537-40c4-916e-6f6d41c05d4b/session-circular-kernel-context-logger-failed-to-start-with-the-following-error-0xc0000035?forum=w7itprogeneral

  • IP Helper Service causes Session "" failed to start with the following error: 0xC000000D

    I have a Windows 8.1 Pro version. In the event viewer I can see that the error `Session "" failed to start with the following error: 0xC000000D´ is registered every time I boot my laptop.
    I am 100% sure that this is related to the IP Helper Service (iphlpsvc) because the error is logged every time I manually restart the service.
    I have a Windows 8.1 Pro version. In the event viewer I can see that the error `Session "" failed to start with the following error: 0xC000000D´ is registered every time I boot my laptop.
    I am 100% sure that this is related to the IP Helper Service (iphlpsvc) because the error is logged every time I manually restart the service.
    Does anyone know how to fix this issue? I know I could disable the service but I prefer not to do it.
    Thanks
    Alberto

    Hi,
    IP Helper (service name 'iphlpsvc') is apparently designed to improve a Windows PC's support for IPv6 network protocol.
    I suggest you try enable  the dump collection by copying following words into notepad, saving it as dump.reg and importing it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\iphelper.exe]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Once the error appears again, please find the crashdump file under c:\.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Session "UpdateUx" failed to start with the following error: 0xC0000022

    Running WTP Build 10049 and get the following error, after every boot/reboot :
    Error    21/04/15 11:09:39    Kernel-EventTracing    2    Session
    Expanding this, by clicking on it, produces the following message :
    Session "UpdateUx" failed to start with the following error: 0xC0000022
    Any suggestions for a cure.

    Hi athol49,
    Which account you have used to logon this machine?
    This error code is mostly related with the service permission, which indicates that the permission is not configured correctly.
    Try to boot into safe mode and check this issue again, make sure there is no 3rd-party software involved.
    Next thing is to create another admin account( or enable the built-in admin account to create a new admin account, as this one have permisssion issues), then check this issue again.
    Further, run the DISm command to make sure there is no component issue:
    DISM /Online
    /Cleanup-Image
    /RestoreHealth
    /source:WIM:X:\sources\Install.wim:1
    /LimitAccess
    Where the X: is the drive for the install media, or the mounted ISO.
    Regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Session "WbadminInBuiltTracing" failed to start with the following error: 0xC0000035

    I'm getting the following error:
    Log Name: Microsoft-Windows-Kernel-EventTracing/Admin
    Source: Microsoft-Windows-Kernel-EventTracing
    Date: 5/17/2010 11:04:48 AM
    Event ID: 2
    Task Category: Session
    Level: Error
    Keywords: Session
    User: ****
    Computer: ****
    Description:
    Session "WbadminInBuiltTracing" failed to start with the following error: 0xC0000035
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-Windows-Kernel-EventTracing" Guid="{B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}" />
    <EventID>2</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>2</Task>
    <Opcode>12</Opcode>
    <Keywords>0x8000000000000010</Keywords>
    <TimeCreated SystemTime="2010-05-17T18:04:48.898886000Z" />
    <EventRecordID>45</EventRecordID>
    <Correlation />
    <Execution ProcessID="4816" ThreadID="2800" />
    <Channel>Microsoft-Windows-Kernel-EventTracing/Admin</Channel>
    <Computer>****</Computer>
    <Security UserID="****" />
    </System>
    <EventData>
    <Data Name="SessionName">WbadminInBuiltTracing</Data>
    <Data Name="FileName">
    </Data>
    <Data Name="ErrorCode">3221225525</Data>
    <Data Name="LoggingMode">2</Data>
    </EventData>
    </Event>
    Does anyone know what this is or how to prevent it from
    occurring?
    I'm running Windows Server 2008 R2.
    Thanks much,
    James

    Not according to my computer - (actually its at least 4 years now) which among so many other errors have haunted me from the day I bought it and took it home. I've spent literally a year of time out of the 5 I've had this laptop which btw is a home computer,
    not a small business pc - searching, trying fixes that didn't work, searching more trying fixes that worked only to have the same scenario begin again 2-3 months down the road OR new ones pop up - which starts the process all over again. I'm now getting BSOD's
    about once every 2-3 days with no reason in the event viewer.
    And I continue to work on all the errors, warnings and critical errors with no results. I just wish Microsoft would fix these issues instead of developing new OS's that not only carry these problems over but add new ones to each new OS. Don't misunderstand
    me. I like Windows, in fact I'm one of the very few graphic artists out there that prefer it over a MAC but its quite disheartening to be continually working on these issues to say the least.
    Of course, it's just my opinion....I could be wrong!

  • Session "WbadminUIInBuiltTracing" failed to start with the following error: 0xC0000035

    Windows Server 2008 R2 Standard.
    I open the “Windows Server Backup” node in the Server Manager and see the error message in the system log after that.
    Sourece: Kernel-EventTracing
    EventID: 2
    Session "WbadminUIInBuiltTracing" failed to start with the following error: 0xC0000035
    - System
    - Provider
    [ Name] Microsoft-Windows-Kernel-EventTracing
    [ Guid] {B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}
    EventID 2
    Version 0
    Level 2
    Task 2
    Opcode 12
    Keywords 0x8000000000000010
    - TimeCreated
    [ SystemTime] 2010-12-01T11:17:19.937490400Z
    EventRecordID 17
    Correlation
    - Execution
    [ ProcessID] 3472
    [ ThreadID] 3100
    Channel Microsoft-Windows-Kernel-EventTracing/Admin
    Computer LODGER.aqa.com.ru
    - Security
    [ UserID] S-1-5-21-1644491937-706699826-1417001333-3605
    - EventData
    SessionName WbadminUIInBuiltTracing
    FileName
    ErrorCode 3221225525
    LoggingMode 2
    What causes the error? What do I need to do to avoid it?

    I have the same issue on Windows Server 2008 R2 SP1
    >will fix it
    in future release
    What is the next release for my Windows Server? When will it be released?

  • Error event id 2 - Kernel Event Tracing - Session "" failed to start with the following error: 0xC000000D

    I keep getting this strange error logged as Error event id 2. Note session string is blank "". Any ideas?
    Log Name:      Microsoft-Windows-Kernel-EventTracing/Admin
    Source:        Microsoft-Windows-Kernel-EventTracing
    Date:          24/12/2009 09:08:20
    Event ID:      2
    Task Category: Session
    Level:         Error
    Keywords:      Session
    User:          SYSTEM
    Computer:      George-XXL
    Description:
    Session "" failed to start with the following error: 0xC000000D
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Kernel-EventTracing" Guid="{B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}" />
        <EventID>2</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>2</Task>
        <Opcode>12</Opcode>
        <Keywords>0x8000000000000010</Keywords>
        <TimeCreated SystemTime="2009-12-24T09:08:20.835299100Z" />
        <EventRecordID>36</EventRecordID>
        <Correlation />
        <Execution ProcessID="1944" ThreadID="1948" />
        <Channel>Microsoft-Windows-Kernel-EventTracing/Admin</Channel>
        <Computer>George-XXL</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="SessionName">
        </Data>
        <Data Name="FileName">
        </Data>
        <Data Name="ErrorCode">3221225485</Data>
        <Data Name="LoggingMode">5</Data>
      </EventData>
    </Event>

    Can you let us know if you get any Blue Screen crush error while using your comptuer?
    Generally we can safely ignore the errors in the Event log. Aas we don't if you have get other issues in your computer, you can test your computer in the Clean Boot mode. This method will help us determine if this issue is caused by a loading program or service.
    You can try the the following steps:
    1. Click the Start Button type "msconfig" (without quotation marks) in the Start Search box, and then press Enter.
    2. Click the "Services" tab, check the "Hide All Microsoft Services" box and click "Disable All" (if it is not gray).
    3. Click the "Startup" tab, click "Disable All" and click "OK".
    Then, restart the computer. When the "System Configuration Utility" window appears, please check the "Don't show this message or launch the System Configuration Utility when Windows starts" box and click OK.
    Please test this issue in this Clean Boot environment, if the issue disappears in the Clean Boot environment, you can use the dichtomy to quickly narrow down which entry is causing the issue. You can refer to the
    KB929135.
    Good luck!
    John
    This is a very poor answer.  This guy doesn't know what he's talking about because if you tell someone its ok to  "safely ignore the errors in the event log"  as a blanket instruction ESPECIALLY because as he stated so himself
    he didn't know if there were other issues with the OP's pc then he's giving really bad advice. If you ignore errors in the event log then over time your system will degrade and you will have other issues.. Every error on your pc should NOT be ignored.
    It should be decided on a case by case situation.
    Furthermore this is an error involving the Windows Session which it states has failed. Definitely should NOT be ignored.
    I've got the same error which has suddenly just showed up. No BSOD, Do not have WHS installed and all my media center connectors have NEVER been connected. I don't believe this is a service issue. I think it has something
    to do with kernel event tracing.
    Of course, it's just my opinion....I could be wrong!

  • Cannot query tables in remote database

    Hi, I have looked around for similar topics but have not found anything that would be close to my problem. I created a public link to a remote database from my portal database, it is a public link and I can query tables in the remote database just fine when I am on the sqlplus prompt. When I try to create a report, or a dynamic page, it lets me go through the wizard steps ok, however when I run it as a portlet or just run it as a report/page it does not seem to be able to see the query. Below is the response I get from running it as a portal. I am logged in as portal30.
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from C2K (WWV-11230)
    Failed to parse as PORTAL30_PUBLIC - select * from populate@c2k (WWV-08300)
    The preference path does not exist:
    ORACLE.WEBVIEW.PARAMETERS.1320061995 (WWC-51000)
    The preference path does not exist:
    ORACLE.WEBVIEW.PARAMETERS.1320061995 (WWC-51000)
    Error: Unable to execute query (WWV-10201)
    Please help, I have tried everything from public to private synonyms for the linked tables and it just does not work. I am using the most recent version of portal that came with ias 1.0.2.2.0

    Actually I solved my problem, it looks like I should have used the db link utility with the portal, I linked the databases on the sqlplus command line and it seems like that was the issue.

  • Multiple Error Messages, starting With 500 null Error

    I've been experiencing multiple error messages with
    ColdFusion 7.0 on Ubuntu Linux/Apache2 for the past several days,
    starting with the 500 null error (see
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=f9e312a2),
    which ocurred on only part of the site (a set of forms requiring
    remote login). Now, the following errors are appearing on various
    CF forms: "An I/O error while manipulating the sort index" and "An
    exception occurred when setting up mail server parameters" and
    finally, "No space left on device." All these errors are occurring
    on add/edit forms and cffile upload forms that were working fine a
    few hours ago and that haven't been changed.
    Right now, I'm replacing the license.properties file to deal
    with the 500 null error. My question is, has anyone else
    experienced this smattering of other error messages in conjunction
    with the 500 null error? Or fast on the heels of it? What's the
    deal with the 500 null error, anyway? Has Adobe made any progress
    with this issue?

    Okay, this is a followup to my previous post (
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=143&threadid=1165765&en terthread=y).
    Replacing the license.properties file isn't sufficient in
    addressing the 500 null error. We are running Ubuntu Linux. I
    understand that I need to replace jvm 1.5 with jvm 1.4.2. I'm
    honestly not sure how to detect on Linux which version of jvm is
    running or how to make sure that version 1.4.2 is what is running
    when we reinstall ColdFusion. If someone could help me with this,
    I'd appreciate it. The 500 null error is eating my Web site like
    the Langoliers. Even some static .cfm pages are failing now.

  • "User names cannot start with a number" error while adding a user

    Is it possible to use WL Portal 7.0 admin framework to manage users with all numeric
    user id ?
    I got an error "User names cannot start with a number" while trying to add users
    with all numeric user ids. I am using "portalAppTools" web app provided with WL
    7.0 out of the box.
    What "out the box" functionality do I need to change to make this happen ? Thanks
    Shah

    The problem is that when we have user groups starting with a number, then the search
    feature doesn't work for user groups (case # 466837 with BEA).
    So, which brings me to the following question:
    a. Should the search feature work?
    b. What is the limitation? I mean, it is designed not to allow user groups starting
    with a number. So, there must be a reason for this. So, if we change "disallowFirstCharDigit",
    will it have any impacts on Portal?
    As an aside, it seems somewhat strange that the Portals can start with a number!
    Thanks in advance
    Venkatesh
    "Ture Hoefner" <replyto@newsgroup> wrote:
    Hello Shah,
    Search your tools web app for the UsermgmtTools.properties file. In
    my
    installation, it is at:
    D:\bea70sp1\weblogic700\samples\portal\sampleportalDomain\beaApps\sampleport
    al\tools\WEB-INF\classes\com\bea\jsptools\p13n\usermgmt\servlets\jsp
    It starts with this:
    # Messages and other properties used by usermgmt jsp tools
    # Name properties - UserBean and GroupBean
    disallowedCharacters: ~`!$%^&-*() {}[]|\\/?<>,:;+="'
    disallowFirstCharDigit: true
    Ture Hoefner
    BEA Systems, Inc.
    www.bea.com
    "Shah Sidi" <[email protected]> wrote in message
    news:3db0a001$[email protected]..
    Is it possible to use WL Portal 7.0 admin framework to manage userswith
    all numeric
    user id ?
    I got an error "User names cannot start with a number" while tryingto add
    users
    with all numeric user ids. I am using "portalAppTools" web app providedwith WL
    7.0 out of the box.
    What "out the box" functionality do I need to change to make this happen?
    Thanks
    Shah

  • Hierarchy/heirarchical queries/query start with connect

    ok... I have seen many examples of using hierachical queries. All of the example has parent as null and children with 1 parent. I haven't seen any query that queries a child with multiple parents.
    For example.
    Table A:
    Child--Parent
    1--null
    2--1
    3--1
    3--2
    4--3
    5--2
    Select query:
    Select child, level
    from A
    start with child = 3
    connect by prior child = parent
    Result
    Child--Level
    3--1
    4--2
    3--1
    4--2
    Notice that it display the child '3' twice. Its because it has 2 different parent.
    My question is that, how do I make the query to display this iteration once?

    Hi, Sentinel,
    I'd love to see a solution that simple, but I don't think it's possible.
    Suppose you want to see child=2 and all it's descendants:
    --<"begin sample data">
    with a as (select 1 child, null parent from dual
    union all select 2, 1 from dual
    union all select 3, 1 from dual
    union all select 3, 2 from dual
    union all select 4, 3 from dual
    union all select 5, 2 from dual
    --<"cut here">
    Select child, level
       from (select child, min(parent) parent from a group by child)
      start with child = 2
    connect by prior child = parent;Produces this output:
         CHILD      LEVEL
             2          1
             5          2I believe OP wants to get this for the descendants of child=2:
         CHILD      LEVEL
             2          1
             5          2[b]
             3          2
             4          3So what happened to child=3? For child=3, MIN (parent) = 1, according to this query. That's true when the universe is the entire table, but we're only interested in child=2 and its descendants.
    Message was edited by:
    Frank Kulash
    By the way, the comments
    --<"begin sample data">
    and
    --<"cut here">
    are brilliant!

  • Query issue with 9i database only

    Hi,
    I am getting this strage error in 9i database only for the following query. It works perfectly fine in any 8i databases. The query is executed from schema user X with all the referenced tables from schema user B.
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    SELECT COUNT (ref_id), gparent_id, ref_id, ref_value
    FROM (SELECT (SELECT ref_id
    FROM sams_sec_application_setup
    WHERE setup_id = a.setup_id) ref_id,
    (select ref_id from sams_sec_application_setup where setup_id =
    (SELECT parent_id
    FROM sams_sec_application_setup
    WHERE setup_id =
    (SELECT parent_id
    FROM sams_sec_application_setup b
    WHERE setup_id = a.setup_id))) gparent_id,
    (SELECT ref_value
    FROM sams_sec_application_setup
    WHERE setup_id = a.setup_id) ref_value
    FROM sams_sec_security a
    WHERE setup_id IN (
    SELECT setup_id
    FROM sams_sec_application_setup a
    WHERE application_id = (SELECT application_id
    FROM sams_sec_application
    WHERE application_name = 'SOFA')
    AND GROUP_ID = (SELECT GROUP_ID
    FROM sams_sec_group
    WHERE group_name = 'Alliances'))
    AND user_id = 'srikulka '
    AND entity_id IN (
    SELECT a.role_id
    FROM sams_sec_role a,
    sams_sec_permission b,
    sams_sec_role_permission c
    WHERE a.role_id = c.role_id
    AND b.permission_id = c.permission_id
    AND b.permission_name = 'Admin'
    AND b.application_id =
    (SELECT application_id
    FROM sams_sec_application
    WHERE application_name = 'SOFA')))
    GROUP BY ref_id, gparent_id, ref_value;
    The same query executed without any error in 8i databases.
    The query is executed from schema user X with all the referenced tables in schema user B.
    Thanks and regards,
    Ambili

    3113 is a generic error and there are many known reasons for encountering this error. I suggest you search for related docs on Metalink.

  • Oc4j starting with Oracle Database & oc4j App Server on same machine

    Hi ALL, can anybody help me(pls read this)
    This is Sagar, i have created a GIS Application(java) using Oracle 10g.
    Senario I:
    oc4j server and oracle 10g Database Server on different machines:
    When i start oc4j server with NO. OF Mappers = 64 or 30 in DNS using
    1. oc4j -start (normally)
    from the path c:/oc4j/bin by setting ORACLE_HOME path normally
    application is working fine but when users are increased say 4 to 5 oc4j server gives error:
    java.lang.OutOfMemoryError: Java Heap Space
    I searched for this error i found a solution for starting oc4j as follows:
    2.Java -Xmx1024m -Xms1024m -jar oc4j.jar
    from the path c:/oc4j/j2ee/home --- oc4j.jar
    Then map & application works fine and fast since heap space is increased to 1GB (speed is noticable)
    but if...(in other senario)
    Senario II:
    oc4j server and oracle 10g Database Server on same machine:
    if step 2: is used form above senario, oc4j Server does not gets started only it gets initialized...(server does not gets started)
    but Step 1: is used application works fine but again heap space error as mentioned above is seen.
    Again if changes are made in oc4j.cmd file in c:/oc4j/bin ....by giving the heap space command oc4j works fine but the application(performance) is very very slow but heap space error is not seen.
    Please can any body suggest the solution.. application should work fast and also the heap space should be increased but taking the senario - oc4j App Server & Oracle 10g Database Server on Same machine..

    Hello,
    How much RAM do you have on the machine? What is the size of the SGA for the database you are using?
    if step 2: is used form above senario, oc4j Server does not gets started only it gets >initialized...(server does not gets started)What do you mean by this? Provide the output from the server when you start your server.

Maybe you are looking for