Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8736005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:12:17+00:00 2026-06-13T10:12:17+00:00

I need to create a collection out of elements in a collection within an

  • 0

I need to create a collection out of elements in a collection within an inline view. I’ve tryed to deaggregate the collection and aggregate it again using the collect and table functions, but it fails with ORA-03113.

Below is a simplified version of the query causing the issue.

In my Implementation I will have many levels of nested queries joined with unions in a single query that should aggregate all collections into a single one. For performance reasons (Expensive context switching), implementing PL/SQL code to aggregate the collections is not an option.

Thanks a lot for your feedback/suggestions.

Script


SELECT BANNER FROM V$VERSION
/

CREATE OR REPLACE TYPE OBJECT_ID_TAB_T IS TABLE OF NUMBER(11);
/

SELECT OWNER, CAST(COLLECT( MULTISET(SELECT COLUMN_VALUE FROM TABLE((OBJECT_ID_LIST) ))) AS OBJECT_ID_TAB_T) AS OBJECT_ID_LIST
FROM  (SELECT OWNER, OBJECT_NAME, CAST(COLLECT(OBJECT_ID) AS OBJECT_ID_TAB_T)  AS OBJECT_ID_LIST
       FROM ALL_OBJECTS
       GROUP BY OWNER, OBJECT_NAME
      )
GROUP BY OWNER
/

Results


BANNER                                                                          
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production    
PL/SQL Release 11.2.0.1.0 - Production                                          
CORE    11.2.0.1.0  Production                                                      
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production                         
NLSRTL Version 11.2.0.1.0 - Production                                          

5 rows selected.
Type created.
SELECT OWNER, CAST(COLLECT( MULTISET(SELECT COLUMN_VALUE FROM TABLE((OBJECT_ID_LIST) ))) AS OBJECT_ID_TAB_T) AS OBJECT_ID_LIST
FROM  (SELECT OWNER, OBJECT_NAME, CAST(COLLECT(OBJECT_ID) AS OBJECT_ID_TAB_T)  AS OBJECT_ID_LIST
       FROM ALL_OBJECTS
       GROUP BY OWNER, OBJECT_NAME
      )
GROUP BY OWNER
*
Error at line 0
ORA-03113: end-of-file on communication channel
Process ID: 8000
Session ID: 154 Serial number: 164

Script Terminated on line 25.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:12:18+00:00Added an answer on June 13, 2026 at 10:12 am

    The ORA-03113: end-of-file on communication channel error is a generic error as you are probably aware if you posted the question here. So rather than bore you with the possible causes, here is a list of things to look at to help you solve the problem. This error is so common that it is unlikely someone will find the exact cause so you will need to learn how to debug this particular error by digging into log and/or trace files.

    Suggestion: I’d first like to suggest something to reduce the memory needed by the query, and reduce the complexity. Create an intermediate table and perform the query in separate steps. Oracle may be running into memory problems (especially if on Windows) and that can cause problems with the listener running out of memory and connections being terminated. You could do this with straight SQL as you said you don’t want to use PL*SQL.

    Problem Solving Ideas: Check the alert_sid.log on the server. The location of alert_sid.log is specified by the BACKGROUND_DUMP_DEST initialization parameter. It may indicate that the server has gone down.You may need to modify your re-transmission count. Next check other Oracle trace files.

    Set Trace Options using Oracle configuration files.


    1. SQLNET.ORA

    • Set using Oracle Net Manager

    • TRACE_DIRECTORY_CLIENT Establishes the destination directory for the
      client trace output. By default, the client directory is
      $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on
      Windows.

    • TRACE_DIRECTORY_SERVER – Establishes the destination directory for
      the database server trace output. By default, the server directory is
      $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on
      Windows.

    2. LISTENER.ORA

    • Set using Oracle Enterprise Manager or Oracle Net Manager

    • TRACE_LEVEL_listener_name – Specifies the level of detail the trace
      facility records for the listener.
      – off (equivalent to 0) provides no tracing
      – user (equivalent to 4) traces to identify user-induced error conditions
      – admin (equivalent to 6) traces to identify installation-specific problems
      – support (equivalent to 16) provides trace information for troubleshooting information for Oracle Support Services

    • TRACE_DIRECTORY_listener_name – Establishes the destination directory
      and file for the trace file. By default the directory is
      $ORACLE_HOME/network/trace on UNIX and ORACLE_HOME\network\trace on
      Windows, and the file name is listener.trc.


    3. CMAN.ORA

    • Set using Oracle Net Manager

    • TRACE_DIRECTORY – By default, the directory is $ORACLE_HOME/network/trace on
      UNIX and ORACLE_HOME\network\trace on Windows.


    Using the trace files created in the various Oracle configuration files should give you the information you need in identifying the root cause of the error. I would focus on issues surrounding the listener or problems due to shortage of memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I plan to create custom site using web template.I need to find out what
I need to create a collection to containing a list of abstract segments. I
I need to create a collection in F# that has a key value pair
I use MS SQL 2008 R2, I need create a Table with a CHECK
I need to create a table structure that will automatically create columns for a
Based on the documentation here: http://docs.composite.net/Data/AccessingDataWithCSharp/How-to-Query-Data-Using-LINQ#_How_to_Query I need to query data in a table
I need to create a menu same as this one: http://www.girard-perregaux.com/collection/univers-en.aspx?type=1 Click on collections
I need create custom dialog and put JPanel into it. Is it possible?
i need create an email list sending to many emails. what is best solution
I need create clone repository. but I do not know where can I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.