Problem with CONNECT BY NOCYCLE in oracle 10.2.0.4

Hi,
When I run the below query in 10.2.0.2 it is executing in fraction of seconds, but while executing the same query in 10.2.0.4 it is running indefinitely.
Please check the below query and is there any issue with CONNECT BY NOCYCLE in 10.2.0.4 and also please help me to get out of this problem in 10.2.0.4.
SELECT 1 type_num, r.NAME root_name, r.DATA_GROUP root_data_group,
NULL child_name, NULL child_data_group, NULL child_type,
NULL facility_type
FROM DATA_GROUP r
WHERE r.DATA_GROUP = (SELECT MIN (DATA_GROUP)
FROM DATA_GROUP
WHERE node_type = 'R' AND tree_type = 'C'
GROUP BY tree_type)
UNION ALL
SELECT DISTINCT 2 type_num, NULL root_name, NULL root_data_group,
dg_child.NAME AS child_name,
dgl.DATA_GROUP AS child_data_group,
dg_child.node_type AS child_type, f.TYPE AS facility_type
FROM DATA_GROUP_LINK dgl, DATA_GROUP dg_child, FACILITY f
WHERE dgl.DATA_GROUP = dg_child.DATA_GROUP
AND dg_child.node_type = 'F'
AND f.facility_num = dg_child.DATA_GROUP
START WITH dgl.parent_data_group IN (
(SELECT DATA_GROUP
FROM DATA_GROUP_SYSTEM_USER
WHERE system_user_num = 1000088400 AND is_active = 'Y'
UNION
SELECT 1016189 AS DATA_GROUP
FROM DUAL))
CONNECT BY NOCYCLE dgl.parent_data_group = dgl.DATA_GROUP;
Thanks,
Mahi

Find and read the thread about when queries take too long.
Something is different between the systems, possibly
* indexing
* volume of data
* connect-by structure in table data
* initialization or session settings

Similar Messages

  • Problems with connection from PHP to Oracle DB

    Hello,
    I have a Win2k3 Server with IIS 6.0 and PHP 5.1.2. and an Oracle Client 9i installed.
    Recently I tried to connect via PHP to the DB but it failed with the following message:
    "Warning: ocilogon() [function.ocilogon]: OCIEnvInit() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in ...\php-skript\test\funk_test.php on line 54"
    So I started looking in the internet for help and found a lot, but nothing that solved my problem. I tried everything (I think):
    * Oracle Client 9i regular Client- environment vars in all variations
    * Oracle Client 10g Instant Client- all variations again
    * I tried to delete all spaces in the "tns.ora" after a hint in another PHP-forum
    * I looked in this forum and found some hints
    BUT: Nothing helped me to solve my problem.
    So I changed my PHP-version from 5.1.2 to 5.0.4 and I got a different failure:
    "[26-Apr-2006 17:58:15] PHP Warning: ocilogon() [<a href='function.ocilogon'>function.ocilogon</a>]: _oci_open_server: ˜Õ‚ in ...\php-skript\test\funk_test.php on line 56"
    This message is really strange, because it contains no information about the failure.
    Has ANYONE another hint for me?? I really don't know what I should do.

    Because it's IIS, I set the env vars manually. That means --> my computer/.../advanced/environment vars/etc.
    After every change, I rebootet the IIS Service. Problem consists.
    Let's have a look, if your links could help...
    ########## EDIT ##########
    Ok, your links WERE INDEED REALLY helpful!
    My problems were caused by missing access-rights.
    How to solve this problem:
    * reinstall your Oracle-client
    * inet-user needs now access rights for
    + "oracle"- folder
    + "oracle\bin"- folder
    + "tnsnames.ora"- file
    * set environment vars
    + NLS_LANG = AMERICAN
    + ORACLE_HOME = "C:\oracle\ora92"
    + TNS_ADMIN = "C:\oracle\ora92\network\ADMIN"
    * restart IIS
    Now it should work!!! THX for your help!

  • Problem with online split backup, database oracle

    Hello,
    we use for backup our SAP system online split backup, our database is almost 3TB big. Backup is functional but sometimes (4x-5x per month) backup fail with error bellow. If i understant this problem correctly brbackup lost connection to oracle after split disk system and cant stop backup mode in database and backup failed. How can i solve this problem? Exist some parameter for brbackup for reconnect to db when brbackup lost connection? Thanks for your help!
    BR0051I BRBACKUP 7.00 (25)
    BR0262I Enter database user name[/password]:
    BR0055I Start of database backup: bebnhrzd.anf 2009-09-22 14.52.25
    BR0484I BRBACKUP log file: /oracle/BP1/sapbackup/bebnhrzd.anf
    BR0351I Restoring /oracle/BP1/sapbackup/cntrlBP1.dbf
    BR0355I from /oracle/BP1/sapbackup/cntrlBP1.dbf ...
    BR0280I BRBACKUP time stamp: 2009-09-22 14.53.10
    BR0319I Control file copy created: /oracle/BP1/sapbackup/cntrlBP1.dbf 21676032
    BR0280I BRBACKUP time stamp: 2009-09-22 14.53.13
    BR0315I 'Alter database begin backup' successful
    BR0280I BRBACKUP time stamp: 2009-09-22 14.53.14
    BR0295I Splitting mirror disks...
    BR0280I BRBACKUP time stamp: 2009-09-22 16.07.43
    BR0296I Split of mirror disks successful
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0301E SQL error -3135 at location BrBackAlter-3, SQL statement:
    '/* BRBACKUP */ ALTER DATABASE END BACKUP'
    ORA-03135: connection lost contact
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0318E 'Alter database end backup' failed
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0301E SQL error -3114 at location BrBackAlter-3, SQL statement:
    '/* BRBACKUP */ ALTER DATABASE END BACKUP'
    ORA-03114: not connected to ORACLE
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0318E 'Alter database end backup' failed
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0301W SQL error -3114 at location BrbDbLogClose-1, SQL statement:
    'UPDATE SAP_SDBAH SET RC = '0005', ENDE = '20090922161744', OBJ = ' ', LINE = '#  224     0     0     81358       7817759352        0                0  ALL          online_split    util_file        -
    7.00 (25)' WHERE BEG = '20090922145225' AND FUNCT = 'anf' AND SYSID = 'BP1''
    ORA-03114: not connected to ORACLE
    BR0326W Update of database log header failed
    BR0056I End of database backup: bebnhrzd.anf 2009-09-22 16.17.44
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0054I BRBACKUP terminated with errors
    Backup utility finished with returncode 5
    Backup FAILED

    Hello,
    in note 534729 is nothing about ORA-03135: connection lost contact only error ORA-03114 which refer to the note 335199 and in this note in nothing about ORA-03114 I want to say two things: this two oracle errors (ORA-03135 and ORA-03114) are not in alertSID.log on db server or in syslog on backup server. This error are only reported from brbackup which is running on backup server which is "client side". We don't have problem with connection from work processes on all instances to db server, we have only problem with brbackup which lost connection after split disk system. How i say this problem occurs only sometimes.  I was tested network connection from backup server to db server via niping a this is result:
    (root@hytti) #./niping -c -H kiuru -B 30000
    Sat Sep 26 14:10:58 2009
    connect to server o.k.
    send and receive 10 messages (len 30000)
    times -
    avg      7305 usecs
    max     46234 usecs
    min      2168 usecs
    bw    8020.50 kb/sec
    excluding max and min:
    av2      3081 usecs
    bw2  19013.91 kb/sec
    do you have any idea?? Thanks!

  • Is it mandatory to use PRIOR in CONNECT BY NOCYCLE in Oracle 10.2.0.4

    Hi,
    Is it mandatory to use PRIOR in CONNECT BY NOCYCLE in Oracle 10.2.0.4.
    While I am executing a query in 10.2.0.2 which is having CONNECT BY NOCYCLE and PRIOR is not included, it was executing fine.
    But in 10.2.0.4 If i run the same query without using PRIOR in CONNECT BY NOCYCLE, it is running indefinitely.
    If I add PRIOR in CONNECT BY NOCYCLE then it is executing successfully.
    So I want to know is it mandatory to add PRIOR in CONNECT BY NOCYCLE from 10.2.0.4 onwards.
    If Yes, can you please provide any support documents for that.
    Thanks,
    Mahipal

    Hi,
    I was not using PRIOR with CONNECT BY NOCYCLE in 10.2.0.2, but the query ran perfectly in fraction of seconds without any issues.
    But in 10.2.0.4 while I was running the same query, it has been running for longertimes.
    Below is the Query:
    SELECT 1 type_num, r.NAME root_name, r.DATA_GROUP root_data_group,
    NULL child_name, NULL child_data_group, NULL child_type,
    NULL facility_type
    FROM DATA_GROUP r
    WHERE r.DATA_GROUP = (SELECT MIN (DATA_GROUP)
    FROM DATA_GROUP
    WHERE node_type = 'R' AND tree_type = 'C'
    GROUP BY tree_type)
    UNION ALL
    SELECT DISTINCT 2 type_num, NULL root_name, NULL root_data_group,
    dg_child.NAME AS child_name,
    dgl.DATA_GROUP AS child_data_group,
    dg_child.node_type AS child_type, f.TYPE AS facility_type
    FROM DATA_GROUP_LINK dgl, DATA_GROUP dg_child, FACILITY f
    WHERE dgl.DATA_GROUP = dg_child.DATA_GROUP
    AND dg_child.node_type = 'F'
    AND f.facility_num = dg_child.DATA_GROUP
         START WITH dgl.parent_data_group IN (
    (SELECT DATA_GROUP
    FROM DATA_GROUP_SYSTEM_USER
    WHERE system_user_num = 1000088400 AND is_active = 'Y'
    UNION
    SELECT 1016189 AS DATA_GROUP
    FROM DUAL))                              
    CONNECT BY NOCYCLE dgl.parent_data_group = dgl.DATA_GROUP
    We don't want to do any code changes in the query.
    Please let me know is there in solution in 10.2.0.4 to run this query with out any code changes.
    Thanks,
    Mahi

  • Problem with connecting to DB2 from ADFBC

    I have a problem with connection to DB2 data using ADF BC components. Everything looks fine till I run the page(JSF) to see the data of a db2 table. I created a read only view object. This view is registered in the AM and from AM the view is returning the rows without any problem. But when I am running the page which has the view as a table these errors are thrown. Please help me to fix this.
    JBO-30003: The application pool (od.mft.views.MFTServiceLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:336)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
    ## Detail 0 ##
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:220
    ## Detail 0 ##
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:545)
    Thanks
    Gangs

    Steve, the tester works good as expected and its retreiving the rows. As I said earlier the problem is with the JSF page when I ran the page on Embeded Oc4j of Jdev the page showing the above. The exception does not show on the console.
    Please let me know if you need any more details.
    thanks
    Gangs

  • Problem with connecting and syncing   (quicktime.qts)

    Hi,
    I have a problem with connecting and syncing my Iphone to itunes.
    iphone alone on PC -> uploading files (fotos) is possible
    itunes starts normaly, if iphone is not conected.
    if i connect iphone after starting itunes, or if i start itunes after connecting iphone i get an itunes-error with message:
    AppName: itunes.exe AppVer: 9.0.2.25 ModName: quicktime.qts
    ModVer: 7.65.17.80 Offset: 00909a47
    i test different things...
    - used another USB-port
    - used another PC
    - used macbook of my wife instead PC
    - deinstalled and new installed of itunes (older and newer versions) folow tutorials of apple
    - use another USB-Cable...
    I'm resigned, Please help me..
    Tom

    AppName: itunes.exe AppVer: 9.0.2.25 ModName: quicktime.qts
    In this context, that can sometimes indicate trouble with a content file on the phone (or Touch).
    Do you have any podcasts stored on the iPhone at the moment? If so, if you delete them from the phone, can you connect to iTunes without the error?

  • HT204053 I have a problem. I bought Pages and Numbers for my iMac and so far everything was OK.  Suddenly i have a problem with connection to iCloud. Dokuments created on iMac in Pages or Numbers are not transfered to iCloud. Not uploaded in iCloud.

    I have a problem.
    I bought Pages and Numbers for my iMac and so far everything was OK.
    Suddenly i have a problem with connection to iCloud.
    Dokuments created on iMac in Pages or Numbers are not transfered to iCloud. Not uploaded to iCloud. There is a sign  (small shape of iCloud), that they are waiting to be uploaded to iCloud.
    I think the iCloud is OK.
    i can see and manage documents in iCloud. i can create them on iPad and  see them and delete them in iCloud.
    But not on iMac.
    i dont know what has happened and I am not abble to find the solution. It was OK till some days ago….

    I have a similar problem! Everything stopped working after upgrading to Mac OS 10.8.4 through the App Store. Help!

  • Problem with connecting to free wifi after upgrading to Windows 8.1 from Windows 8

    Hi
    I had problems with connecting to free Wifi after upgrading my PC(Notebook) to Windows 8.1 from Windows 8. As I travel a lot within europe, I am used to being able to connect to Free Wifi(those that dont need a key or password to enter) but soon after downloading
    Windows 8.1 I almost never was able to do this. I'd always get «LIMITED» even though the signal was strong.This was so fustrating,so much so that I reset my PC to clear it of Windows 8.1 and am now back to Windows 8.This is a shame because I was really liking
    using Windows 8.1 and if not for this problem(which is a big one) I'd still be using it. If I download Windows 8.1 again from the Windows store what is the probability that I'll have the same problems?
    Thanks Portozzygirl

    More often than not when a device isn't working it is because the driver has become corrupted. Re-installing a fresh copy should help
    http://windows.microsoft.com/en-us/windows7/Update-a-driver-for-hardware-that-isnt-working-properly?SignedIn=1
    http://captaindbg.com/how-to-update-drivers-on-windows-7/   (works on win 8 too)
    Wanikiya and Dyami--Team Zigzag

  • After I've upgraded my iPhone iOS to 5.0.1, I got problems with connectivity. If my iPhone lose network, then it gets frozzen and I cannot make calls. After restart the telephone still does not work.

    After I've upgraded my iPhone iOS to 5.0.1, I got problems with connectivity. If my iPhone lose network, then it gets frozzen and I cannot make calls. After restart the telephone still does not work.

    1. Download the iOS 5.0.1: http://www.tobias-hartmann.net/2011/11/download-ios-5-0-1-veroffentlicht-direkte -downloadlinks/
    2. open itunes,Click in iTunes while holding down the Shift key (on Windows) or Alt key (Mac) to restore and firmware

  • How do I get connected to a server on my network via an IP address?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    I am new to Mac...How do I get connected to a server on my network via a hyper link IP address path?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    Some of the following is going to use some technical terms — this area is inherently somewhat technical. 
    If you don't understand some part of the following reply, please ask.
    Is this your own OS X Server system on your own network, or is this some other server within some larger organization? 
    You're posting this in the OS X Server forum, which is a software package that allows OS X systems to provide web-based and many other services; to become servers.
    If it's your OS X Server on your network, then the network and DNS configurations are suspect, or the server is somehow malfunctioning or misconfigured.   This is unfortunately fairly common, as some folks do try to avoid setting up DNS services.
    If it's a larger organization and somebody else is managing the server and the network, then you'll probably need to contact the IT folks for assistance; to learn the network setup and DNS requirements, and if there's a problem with the server itself.
    The basic web URL "hyper link IP address path" — without using DNS — usually looks something the following, where you'll need to replace 10.20.30.40 with the IP address of your server:
    http://10.20.30.40
    UptimeJeff has posted a URL that specifies the AFP file system; an OS X file share.  That's used if you're connecting to an Apple storage service somewhere on your network.  You might alternatively need to specify smb://10.20.30.40 or such, if it's a Windows file server.  (There can be additional requirements for connecting to Windows Server systems, too.)
    If there's local IT staff available here, please contact them for assistance.  If these are your own local systems and your own local OS X Server system, then some information on the server will be needed.  (If you're on a NAT'd network, you'll also need to get DNS services configured and working on your local OS X Server system and your network — you'll not be able to skip this step and reference ISP DNS servers here — or things can and usually will get weird.)

  • Problems with date in procedure on Oracle 11g

    Hi gurus,
    I have some problems with the date format on Oracle 11g.
    Let me explain the situation:
    When I am starting a request like
    select to_number(to_char(to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
    from sys.dual
    I got as result 2009 as number.
    When I do the same in a procedure of a package like this
    my_year := to_number(to_char(to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));
    the variable my_year contains the value 9 instead of 2009.
    Can someone explain me what's going wrong?
    I have just tested with changing the environment variable nls_date_format for the session and for the complete database with no success.
    Regards,
    Björn

    Thank you all for your replies so far:
    @Alex: You are right, using your short script in sqlplus gives me also 2009 as result
    So, I am now posting the essential excerpts of the procedure because the whole one is to large:
    function insert_szrl (my_fremd_name varchar, my_elementadresse varchar,
    my_zeitstempel varchar, my_wert float,
    my_status varchar, my_zyklus varchar,
    my_offset integer,
    my_quelle varchar, my_nzm_daten integer) return integer is
    begin
    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
    if my_zyklus = 'mm' then
    my_zeitstempeldate := add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1) +1 + (my_tageswechsel+1/24);
    my_days := to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy') - add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1);
    my_year := to_number(to_char(to_date(my_date,'dd.mm.yyyy'), 'yyyy'));
    ptime.umschalttage_tuned (my_year, my_ws, my_sw);
    end if;
    While debugging the complete procedure I see since the start only a date which looks like '01.04.2009 07:00:00'
    Edited by: user10994305 on 19.05.2009 15:58
    Edited by: user10994305 on 19.05.2009 15:58

  • Problem with connecting ipad 2 with crestron cp2e...help plss its urgent... I hv a ipad 2 with mobile pro g connected with cp2e. when i pressed any button in ipad its connet with cp2e but after 4-5 sec one error comes (warning wifi was powered off while t

    problem with connecting ipad 2 with crestron cp2e...help plss its urgent...
    I hv a ipad 2 with mobile pro g connected with cp2e. when i pressed any button in ipad its connet with cp2e but after 4-5 sec one error comes (warning wifi was powered off while the device was in auto -lock(sleep)press connect to reconnect) when i pressed again its connected with cp2e. i am using netgear wireless access point . i also has been changed access point as well as updated ipad firmware bt problem is as it is .. pls help.

    Hi have you solved the issue ?
    Cause I have the same problem.
    Tnx

  • Experiencing problems with connecting my iPhone 6plus to my Hyundai sonata phone kit via Bluetooth, Experiencing problems with connecting my iPhone 6plus to my Hyundai sonata phone kit via Bluetooth

    Experiencing problems with connecting my iPhone 6plus to my Hyundai sonata phone kit via Bluetooth, Experiencing problems with connecting my iPhone 6plus to my Hyundai sonata phone kit via Bluetooth

    Hello NiiTeye,
    I'm sorry to hear you are having these issues with your iPhone. If you are having issues connecting to your car stereo via Bluetooth, you may find the troubleshooting steps outlined in the following articles helpful:
    Get help using your iPhone, iPad, or iPod touch with your car stereo - Apple Support
    iOS: Troubleshooting Bluetooth connections - Apple Support
    Sincerely,
    - Brenden

  • Problems with connection to the Mountain Lion

    Someone is having problems with connection on Mac Mountain Lion? I did a clean install and the connection is unstable.

    Have you tried to reset your network settings ?
    What I would do is delete the connection, and then retry the set up of that connection.
    System Preferences>Network, select Wi-Fi on the left and then click on the 'minus' button

  • I am having problems with connecting to my router wireles...

    I am having problems with connecting to my router wirelessly.  How do I determine my access point's network key?

    Follow this from a computer already connected: 1. Open setup page of router by typing http://192.168.1.1 in browser’s address bar, and typing password as "admin" and no user name. Use your password if you have changed it earlier. 2. Go to wireless tab. 3. Go to wireless security sub-tab. 4. If security mode is wpa or wpa2 note down pass phrase/shared key, if security mode is WEP note down wep key number 1. This will be your network key.

Maybe you are looking for

  • I know this is more bridge oriented, but id love help!

    I need help, i am using CS6 everything.  When i try to preview text effects (or any for that matter), i get the pinwheel, then eventual it loads, but offers no preview, well its a preview, but text effects for example aren't moving at all.  All that

  • How to get 10.6.3 update?

    Can't seem to find where to download 10.6.3. My iPad will not show up in tunes on my laptop and under settings general on my iPad it just says its up to date?

  • Suggest to have more information about ducument line close status

    Version: (Please provide the current version) 2005B Patch 35 Description of requirements: (Please provide a detailed description)      We cant tell line status as close but which type in default report or query report      Mainly there are 3 type :  

  • Stack Overflow during Unmarshal

    Hi, I'm using JWSDP 1.6 which includes JAXB RI 1.0.5. I compiled a schema that includes the following section:      <xs:element name="UNITSTATUS">           <xs:annotation>                <xs:documentation>Unit Status Aggregate</xs:documentation>    

  • Went 10.3.9 to 10.4.8 & now MacOS won't connect to Servers using afp! HELP!

    I did an upgrade installation of Mac OS 10.4.3 ontop of Mac OS 10.3.9 on a G4 AlBook. I then did the downloadable combo updater to take it 10.4.8. However now when I try to connect to any servers using Go - > Connect to Server I get no response. When