Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

partial join

pollywogMay 5 2010 — edited May 6 2010
ok I was blindsided yesterday.
apparently I inherited this piece of code that has been around since 2007 with no problems but yesterday they mentioned the application was hanging
Anyway I found the offending select statement (and I'm not really sure what it supposed to be doing)
by I tried to recreate it.
it looks like it takes a certain row in a table and then partially joins the row to the same table.
then it goes to yet another table and does some sort of not exists thing
anyway it used to work ok because there were a minimal number of rows in the table (5 or 6) but apparently now there is some scenario where there can be upwards of 60,000 rows in the table.

so I tried to recreate what it is doing here
if you uncomment out the commented piece it will simulate the 40,000 row problem
with t as
( select 1  id, 'A' title from dual union
  select 2, 'A'  from dual union
  select 3, 'A'  from dual union
  select 4, 'B'  from dual union
  select 5, 'C'  from dual union
  select 6, 'A'  from dual union
  select 7, 'A'  from dual union
  select 8, 'A'  from dual union
  select 9, 'C'  from dual union
  select 10, 'A' from dual 
 -- union select level + 10, 'A' from dual connect by level < 40000
  ),
  u as
  (select 1 id, 'Z' text from dual union
   select 2, 'X' from dual union
   select 3, 'Y' from dual union
   select 4, 'W' from dual union
   select 5, 'Z' from dual union
   select 6, 'Y' from dual union
   select 7, 'C' from dual union
   select 8, 'R' from dual union
   select 9, 'Q' from dual union 
   select 10, 'Z' from dual 
   )
 select t1.id  t1_id, t2.id t2_id, t1.title  from 
 t t1, t t2
 where t1.id  != t2.id
 and   t1.title = t2.title
 and   not exists (select 'x' 
                   from u u1, u u2
                   where t1.id = u1.id
                   and   t2.id = u2.id
                   and   u1.text != u2.text
                   )
 order by t1_id
any thoughts?

Edited by: pollywog on May 5, 2010 10:08 AM

Comments

671721
pls provide alert_$sid.log info for analyze

tks
Girish Sharma
Possible solutions:

1.set proper oracle_sid and oracle_home <its case sensetive, because you are using linux>.

2.There's no much you can do, except drop some session so that you can connect as sysdba and increase processes. Need re-bounce; due to limit of parameter processes hit. Sessions and processes may reach the max value.
Source:570653

3.Copy and paste; how and what exactly you are doing to log on the db, so that we may find where else is the issue.

Regards
Girish Sharma
kkrm333
Hi,

While startup, I got the following error

ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-03113: end-of-file on communication channel


After installation of latest version of 11g,
I have created initsid.ora with following paramets. Do I need to add any more parameters?
Please check.


db_name='oraqa'
memory_target=1G
processes = 150
audit_file_dest='/oraweb/admin/oraweb/adump'

audit_trail ='db'
db_block_size=8192
db_domain=''
db_recovery_file_dest='/oraweb/recovery_area/flash_recovery_area'
db_recovery_file_dest_size=2G
diagnostic_dest='/oraweb'
dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'
open_cursors=300
remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
# You may want to ensure that control files are created on separate physical
# devices
control_files = (ora_control1, ora_control2)
compatible ='11.2.0'


Thanks,
Kavitha
kkrm333
And the alert log showing

ORA-07445: exception encountered: core dump [PC:0x1BC35E] [SIGSEGV] [ADDR:0x68747541] [PC:0x1BC35E] [Address not mapped to object] []


And the trace file showing

Error Descriptor: ORA-7445 [PC:0x1BC35E] [SIGSEGV] [ADDR:0x68747541] [PC:0x1BC35E] [Address not mapped to object] [] [] [] [] [] [] []

Thanks,
Kavitha
cnester
kavi,

Did you ever get a solution to the issues in your last two posts? I am having the same problem. I have just installed Oracle 11gR2 (11.2.0) onto a Red Hat Enterprise 4 (32-bit) server. When trying to do a startup command I get the errors:

ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-03113: end-of-file on communication channel

The in the alert.log I see this messages along with numerous trace files and core dumps:

ORA-07445: exception encountered: core dump [PC:0x41035E] [SIGSEGV] [ADDR:0x68747541] [PC:0x41035E] [Address not mapped to object] []

Any assistance would be greatly appreciated, I'm stumped!
sb92075
is any type of Operating System Virtualization installed on this system?
cnester
No, this is on physical hardware. There is no virtualization.
gjilevski1
Hi,

database not starting up with errors ORA-01092 ORA-24324 ORA-01041 [ID 779356.1]

Regards,
cnester
Thanks for the suggestion, but note: 779356.1 is not applicable to my situation. I do not have any datafiles in recovery. I installed 11gR2 in order to perform a test upgrade from 10.2.0. I can still open the database in 10.2.0, just fine and I've checked for datafiles in recovery already.

I also created an init.ora for brand new database and attempted a "startup nomount" and got the exact same errors. So the issue does not lie in the database itself, since I got the same error before even creating the physical database in that particular situation.

Edited by: user6190648 on Aug 12, 2010 4:12 PM
cnester
After putting in an SR with Oracle Support I was able to get a resolution to my issue. The problem stems from the fact that we have 32-bit Linux running on 64-bit AMD processors and there are bugs related to this.

Applying the following patch resolved the issue entirely and the error message went away:
8670579 , “NETCA/DBCA FAILED WITH HOTSPOT VIRTUAL MACHINE”.

Edited by: cnester on Aug 23, 2010 9:59 AM
Chinar
kavi wrote:
Hi,

While startup, I got the following error

ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-03113: end-of-file on communication channel
Check system time.
1. Set the system time correctly.
2. Reboot the server.
3. And connect as sysdba then startup database.
*ORA-1041 When Trying to Connect as Sysdba to Startup Database [ID 552218.1]*
1 - 11
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 3 2010
Added on May 5 2010
9 comments
1,515 views