My first time meet ORA-600 error, quite memorable moment.
/* Use RBO instead of CBO because Oracle ORA-600 error will happen with CBO, found at Oracle 10.2.0.4 win32 */
SELECT /*+rule*/ rs.resourcename "Name", rs.resourceid "InstanceId"
FROM resourcegroup rg INNER JOIN resourcegroupgroups rgg ON rg.resourcegroupid=rgg.resourcegroupid
INNER JOIN resourcegroupentries rge ON rge.resourcegroupid=rgg.groupsid
INNER JOIN resourcedef rs ON rge.entriesid = rs.resourceid
INNER JOIN spec ON spec.resourcegroupid = rg.resourcegroupid
WHERE spec.specid = '4803d45000000469'
START WITH rgg.resourcegroupid = rg.resourcegroupid CONNECT BY PRIOR rgg.groupsid=rgg.resourcegroupid
SELECT /*+rule*/ rs.resourcename "Name", rs.resourceid "InstanceId"
FROM resourcegroup rg INNER JOIN resourcegroupgroups rgg ON rg.resourcegroupid=rgg.resourcegroupid
INNER JOIN resourcegroupentries rge ON rge.resourcegroupid=rgg.groupsid
INNER JOIN resourcedef rs ON rge.entriesid = rs.resourceid
INNER JOIN spec ON spec.resourcegroupid = rg.resourcegroupid
WHERE spec.specid = '4803d45000000469'
START WITH rgg.resourcegroupid = rg.resourcegroupid CONNECT BY PRIOR rgg.groupsid=rgg.resourcegroupid