- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Oracle memory problems
Operating System - Linux
1754356
Members
4914
Online
108813
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2003 12:58 AM
тАО10-22-2003 12:58 AM
Oracle memory problems
Hi guys,
I have RedHat 9 workstation with Oracle DB 9.2.
I would like to execute a huge sql statement which size is larger then 32K. That's why I use a varchar2s variable to store the statement. The "where" clause of the statement is generated dinamically from the result array:
>create_stmt dbms_sql.varchar2s;
>...
>create_stmt(1) := 'select count(*) from test where ';
>FOR i in 1 .. result.count LOOP
> create_stmt(i + 1):= result(i);
>END LOOP;
>
>cnum := dbms_sql.open_cursor;
>dbms_sql.parse(cnum, create_stmt, 1, result.count + 1, NULL , dbms_sql.native);
>nrows := dbms_sql.execute(cnum);
When the size of the result array is too big I get the following error:
>select count(*) from test where .....
>*
>ERROR at line 1:
>ORA-29902: error in executing ODCIIndexStart() routine
>ORA-04031: unable to allocate 68 bytes of shared memory ("shared pool","select >con#,obj#,rcon#,enabl...","sql area","strdef : prsstr")
>ORA-06512: at "SYS.DBMS_SYS_SQL", line 1485
>ORA-06512: at "SYS.DBMS_SQL", line 26
>ORA-06512: at "SCOTT.JC_IDXTYPE_IM", line 263
>ORA-06512: at line 1
I increased the shared_pool_size of my database. Now I get another error:
> ORA-03113: "end-of-file on communication channel"
Do you know what couse these errors?
thanks,
fifty
I have RedHat 9 workstation with Oracle DB 9.2.
I would like to execute a huge sql statement which size is larger then 32K. That's why I use a varchar2s variable to store the statement. The "where" clause of the statement is generated dinamically from the result array:
>create_stmt dbms_sql.varchar2s;
>...
>create_stmt(1) := 'select count(*) from test where ';
>FOR i in 1 .. result.count LOOP
> create_stmt(i + 1):= result(i);
>END LOOP;
>
>cnum := dbms_sql.open_cursor;
>dbms_sql.parse(cnum, create_stmt, 1, result.count + 1, NULL , dbms_sql.native);
>nrows := dbms_sql.execute(cnum);
When the size of the result array is too big I get the following error:
>select count(*) from test where .....
>*
>ERROR at line 1:
>ORA-29902: error in executing ODCIIndexStart() routine
>ORA-04031: unable to allocate 68 bytes of shared memory ("shared pool","select >con#,obj#,rcon#,enabl...","sql area","strdef : prsstr")
>ORA-06512: at "SYS.DBMS_SYS_SQL", line 1485
>ORA-06512: at "SYS.DBMS_SQL", line 26
>ORA-06512: at "SCOTT.JC_IDXTYPE_IM", line 263
>ORA-06512: at line 1
I increased the shared_pool_size of my database. Now I get another error:
> ORA-03113: "end-of-file on communication channel"
Do you know what couse these errors?
thanks,
fifty
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2003 03:23 AM
тАО10-22-2003 03:23 AM
Re: Oracle memory problems
ORA-03113 means that either someone took down the database or killed your server process.
ORA-04031 means you need more shared pool as you have found.
In any case, 32K is a pretty big chunk of SQL. How about storing your result() data in a temporary table, and using "select .. where exists (select ..", or a correlated subquery?
-- Graham
ORA-04031 means you need more shared pool as you have found.
In any case, 32K is a pretty big chunk of SQL. How about storing your result() data in a temporary table, and using "select .. where exists (select ..", or a correlated subquery?
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2003 08:16 AM
тАО10-22-2003 08:16 AM
Re: Oracle memory problems
You need to make sure that there is enough shared memory on the Linux box and that the init.ora file for that database allocates enough shared memory.
Reboot after changes and try again.
SEP
Reboot after changes and try again.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP