Connect By Without Prior

Hi,
In 2005, this link (AskTom) discussed connect by without prior and Tom Kyte said:
"I shall file a documentation bug to have the documentation updated to accurately reflect reality."In 2007 11g was released and Oracle 11g doc states:
* In a hierarchical query, one expression in condition must be qualified with the PRIOR operator to refer to the parent row.
PRIOR is most commonly used when comparing column values with the equality operator. (The PRIOR keyword can be on either side of the operator.) PRIOR causes Oracle to use the value of the parent row in the column. Operators other than the equal sign (=) are theoretically possible in CONNECT BY clauses. However, the conditions created by these other operators can result in an infinite loop through the possible combinations. In this case Oracle detects the loop at run time and returns an error.But connect by without prior is still allowed in 11g
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
select level lvl from dual connect by level <= 10
LVL
1
2
3
4
5
6
7
8
9
10Does this mean that connect by without prior is now officially allowed?

Bishòp wrote:
In 2007 11g was released and Oracle 11g doc states:
* In a hierarchical query, one expression in condition must be qualified with the PRIOR operator to refer to the parent row.
PRIOR is most commonly used when comparing column values with the equality operator. (The PRIOR keyword can be on either side of the operator.) PRIOR causes Oracle to use the value of the parent row in the column. Operators other than the equal sign (=) are theoretically possible in CONNECT BY clauses. However, the conditions created by these other operators can result in an infinite loop through the possible combinations. In this case Oracle detects the loop at run time and returns an error.
Tom saw it as a bug in the documentation because of the way that Oracle allows connect by without prior to be used.
I know some people who still argue that the documentation says you shouldn't do a connect by without a prior and that it will be unsupported, but...
a) In 10.1.0.2 if you did "select rownum from dual connect by rownum <= 10" it would actually return 11 rows and this was "corrected" in 10.2 so that it returned 10 rows. Why would Oracle correct something that they didn't support?
b) I think the key thing is to try and understand what is being said by the documentation...
In a hierarchical query_, one expression in condition must be qualified with the PRIOR operator to refer to the parent row.
A hierarchical query is where you want to refer to a parent row, but are we doing that with our "select rownum|level from dual connect by rownum|level <= X" statements that don't have a PRIOR in them? I would consider it that we are not asking for a "hierarchical" query but are in fact just asking for it to connect to itself, therefore creating a loop, while the loop condition holds true.
In fact, if you try and use PRIOR with rownum or level you get...
SQL> ed
Wrote file afiedt.buf
  1  select rownum
  2  from dual
  3* connect by rownum = prior rownum + 1
SQL> /
connect by rownum = prior rownum + 1
ERROR at line 3:
ORA-00976: LEVEL, PRIOR, or ROWNUM not allowed here
SQL>which is actually telling you, in no uncertain terms, that if you are going to use PRIOR then you can't use level or rownum, and conversely, if you are going to use level or rownum then you can't use PRIOR.
This would therefore indicate that it is expected behaviour and it is just the documentation that is worded badly and often taken wrongly.
;)

Similar Messages

  • Diff between connect by prior empno = mgr  & connect by empno =   prior mgr

    Hi ,
    Can any body tell me why both query give different result please tell me why
    select empno, mgr,ename, level
    from scott.emp
    start with ename = 'JONES'
    connect by prior empno = mgr
    select empno, mgr,ename, level
    from scott.emp
    start with ename = 'JONES'
    connect by empno = prior mgr

    Hi,
    nav wrote:
    Hi ,
    Can any body tell me why both query give different result please tell me whyWhy would you expect them to be the same?
    PRIOR empno = mgris different from
    empno = PRIOR mgrin the same way that
    SQRT (x) = ymeans something other than
    x = SQRT (y)
    select empno, mgr,ename, level
    from scott.emp
    start with ename = 'JONES'
    connect by prior empno = mgr This is what's called a Top-Down Query , where you find 'JONES' and all its descendants (as you normaly look at the hierachy).
    On each level (>1), a new row will join the result set if its mgr is the same as the empno of a row on the prior level.
    For example: the START WITH clause says that 'JONES' (empid=7566) will be on LEVEL=1.
    Who will be on LEVEL=2? Any row that satisfies the CONNECT BY condiition "PRIOR empno = mgr". Since 7566 is the only empno on LEVEL=1, that is equivalent to saying "7566 = mgr". There happen to be 2 rows that meet that condition: ename='SCOTT' (empno=7788) and ename='FORD' (empno=7902).
    Who will be on LEVEL=2? Any row that satisfies the CONNECT BY condiition "PRIOR empno = mgr". Since the rows with empnos 7788 and 7902 are the only rows on LEVEL=1 in this case, the condition is equivalent to saying "7788 = mgr OR 7902 = mgr". There happen to be 2 rows that meet that condition: ename='ADAMS' (empno=7876) and ename='SMITH' (empno=7369).
    Who will be on LEVEL=3? Any row that satisfies the CONNECT BY condiition "PRIOR empno = mgr", which, in this case, is equivalent to saying "7876 = mgr OR 7369 = mgr". There happen to be no rows whcih meet that condition.
    select empno, mgr,ename, level
    from scott.emp
    start with ename = 'JONES'
    connect by empno = prior mgrThis is called a Bottom-Up Query , where you find 'JONES' and all its ancestors (as you normaly look at the hierachy).
    On each level, a new row will join the result set if its empno is the same as the mgr of a row on the prior level.
    Edited by: Frank Kulash on Apr 28, 2011 1:38 PM

  • Connect by nocycle prior issue

    Hi All,
    Below Query results in getting managers and employees with in the levels 1,2 and 3.
    select distinct super.full_name manager,ppf.full_name "Employee", level lvl
    from per_all_assignments_f paf, per_all_people_f ppf, per_person_types ppt, per_all_people_f super
    where ppf.person_id = paf.person_id
    and ppt.person_type_id = ppf.person_type_id
    and ppt.system_person_type in( 'EMP','CWK','OTHER')
    and super.person_id(+) = paf.supervisor_id
    and sysdate between super.effective_start_date and super.effective_end_date
    and sysdate between ppf.effective_start_date and ppf.effective_end_date
    and sysdate between paf.effective_start_date and paf.effective_end_date
    and paf.business_group_id = 81
    start with ppf.employee_number='XXX'--Assume it is CEO
    connect by nocycle prior paf.person_id = paf.supervisor_id
    and level<=3
    what should be thw query if I want to get only for level 2 or level 3 or level 4 etc.
    I tried to with this
    select distinct super.full_name manager,ppf.full_name "Employee", level lvl
    from per_all_assignments_f paf, per_all_people_f ppf, per_person_types ppt, per_all_people_f super
    where ppf.person_id = paf.person_id
    and ppt.person_type_id = ppf.person_type_id
    and ppt.system_person_type in( 'EMP','CWK','OTHER')
    and super.person_id(+) = paf.supervisor_id
    and sysdate between super.effective_start_date and super.effective_end_date
    and sysdate between ppf.effective_start_date and ppf.effective_end_date
    and sysdate between paf.effective_start_date and paf.effective_end_date
    and paf.business_group_id = 81
    start with ppf.employee_number='XXX'--Assume it is CEO
    connect by nocycle prior paf.person_id = paf.supervisor_id
    and level=3
    This results 0 rows. We have records under lelev =3. Is there any other way to write the query to get level 3 or level 4 and so on.
    Help is appreciated.

    Explain Plan
    PLAN_TABLE_OUTPUT
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
    | 0 | SELECT STATEMENT | | 194 | 32204 | 370 (2)|
    | 1 | TABLE ACCESS BY INDEX ROWID | FND_LOOKUP_VALUES | 1 | 52 | 4 (0)|
    |* 2 | INDEX RANGE SCAN | FND_LOOKUP_VALUES_U1 | 1 | | 3 (0)|
    | 3 | SORT UNIQUE | | 194 | 32204 | 369 (1)|
    | 4 | NESTED LOOPS | | | | |
    | 5 | NESTED LOOPS | | 194 | 32204 | 368 (1)|
    |* 6 | HASH JOIN RIGHT OUTER | | 101 | 12827 | 166 (2)|
    | 7 | VIEW | HR_LOCATIONS | 2 | 14 | 5 (0)|
    | 8 | NESTED LOOPS | | 2 | 34 | 5 (0)|
    |* 9 | TABLE ACCESS FULL | HR_LOCATIONS_ALL | 1 | 9 | 5 (0)|
    |* 10 | INDEX UNIQUE SCAN | HR_LOCATIONS_ALL_TL_PK | 1 | 8 | 0 (0)|
    |* 11 | HASH JOIN | | 101 | 12120 | 160 (1)|
    |* 12 | TABLE ACCESS FULL | PER_PERSON_TYPES | 20 | 240 | 6 (0)|
    | 13 | NESTED LOOPS | | | | |
    | 14 | NESTED LOOPS | | 103 | 11124 | 154 (1)|
    |* 15 | HASH JOIN OUTER | | 54 | 3348 | 46 (3)|
    | 16 | VIEW | | 54 | 1674 | 33 (0)|
    |* 17 | FILTER | | | | |
    |* 18 | CONNECT BY WITH FILTERING | | | | |
    | 19 | TABLE ACCESS BY INDEX ROWID | PER_ALL_ASSIGNMENTS_F | | | |
    | 20 | NESTED LOOPS | | 27 | 2052 | 38 (0)|
    | 21 | NESTED LOOPS | | 12 | 852 | 26 (0)|
    | 22 | NESTED LOOPS | | 6 | 300 | 20 (0)|
    | 23 | TABLE ACCESS BY INDEX ROWID| PQH_ROLES | 1 | 22 | 1 (0)|
    |* 24 | INDEX UNIQUE SCAN | PQH_ROLES_UK | 1 | | 0 (0)|
    |* 25 | TABLE ACCESS BY INDEX ROWID| PER_PEOPLE_EXTRA_INFO | 6 | 168 | 19 (0)|
    |* 26 | INDEX RANGE SCAN | PER_PEOPLE_EXTRA_INFO_FK1 | 179 | | 2 (0)|
    |* 27 | INDEX RANGE SCAN | PER_PEOPLE_F_PK | 2 | 42 | 1 (0)|
    |* 28 | INDEX RANGE SCAN | PER_ASSIGNMENTS_F_N12 | 2 | 10 | 1 (0)|
    | 29 | NESTED LOOPS | | | | |
    | 30 | CONNECT BY PUMP | | | | |
    |* 31 | FILTER | | | | |
    | 32 | TABLE ACCESS BY INDEX ROWID | PER_ALL_ASSIGNMENTS_F | 54 | 1836 | 33 (0)|
    |* 33 | INDEX RANGE SCAN | PER_ASSIGNMENTS_F_N10 | 36 | | 2 (0)|
    | 34 | TABLE ACCESS BY INDEX ROWID | PER_ASSIGNMENT_EXTRA_INFO | 206 | 6386 | 12 (0)|
    |* 35 | INDEX RANGE SCAN | PER_ASSIGNMENT_EXTRA_INFO_FK2 | 206 | | 2 (0)|
    |* 36 | INDEX RANGE SCAN | PER_PEOPLE_F_PK | 2 | | 1 (0)|
    | 37 | TABLE ACCESS BY INDEX ROWID | PER_ALL_PEOPLE_F | 2 | 92 | 2 (0)|
    |* 38 | INDEX RANGE SCAN | PER_PEOPLE_F_PK | 2 | | 1 (0)|
    | 39 | TABLE ACCESS BY INDEX ROWID | PER_ALL_PEOPLE_F | 2 | 78 | 2 (0)|
    Predicate Information (identified by operation id):
    2 - access("LOOKUP_TYPE"='MF_HR_APPROVAL_LIMITS' AND "LOOKUP_CODE"=:B1 AND "LANGUAGE"='US')
    filter("LOOKUP_CODE"=:B1 AND "LANGUAGE"='US')
    6 - access("PAF"."LOCATION_ID"="HL"."LOCATION_ID"(+))
    9 - filter(NVL("LOC"."BUSINESS_GROUP_ID",NVL("HR_GENERAL"."GET_BUSINESS_GROUP_ID"(),(-99)))=NVL("HR_GE
    NERAL"."GET_BUSINESS_GROUP_ID"(),NVL("LOC"."BUSINESS_GROUP_ID",(-99))))
    10 - access("LOC"."LOCATION_ID"="LOT"."LOCATION_ID" AND "LOT"."LANGUAGE"=USERENV('LANG'))
    11 - access("PPT"."PERSON_TYPE_ID"="PPF"."PERSON_TYPE_ID")
    12 - filter("PPT"."SYSTEM_PERSON_TYPE"='CWK' OR "PPT"."SYSTEM_PERSON_TYPE"='EMP' OR
    "PPT"."SYSTEM_PERSON_TYPE"='OTHER')
    15 - access("PAF"."ASSIGNMENT_ID"="PAEI"."ASSIGNMENT_ID"(+))
    17 - filter("EFFECTIVE_START_DATE"<=SYSDATE@! AND "EFFECTIVE_END_DATE">=SYSDATE@! AND LEVEL>6)
    18 - access("SUPERVISOR_ID"=PRIOR "PERSON_ID")
    filter(LEVEL<=7)
    24 - access("ROLE_NAME"='CEO')
    25 - filter("RLS"."ROLE_ID"=TO_NUMBER("PEI"."PEI_INFORMATION3"))
    26 - access("INFORMATION_TYPE"='PQH_ROLE_USERS')
    27 - access("PEI"."PERSON_ID"="PPF"."PERSON_ID" AND "PPF"."EFFECTIVE_END_DATE">=SYSDATE@! AND
    "PPF"."EFFECTIVE_START_DATE"<=SYSDATE@!)
    filter("PPF"."EFFECTIVE_END_DATE">=SYSDATE@!)
    28 - access("PERSON_ID"="PPF"."PERSON_ID")
    31 - filter(LEVEL<=7)
    33 - access("SUPERVISOR_ID"=PRIOR "PERSON_ID")
    35 - access("PAEI"."INFORMATION_TYPE"(+)='MF_HR_APPROVAL_LIMITS')
    36 - access("PPF"."PERSON_ID"="PAF"."PERSON_ID" AND "PPF"."EFFECTIVE_END_DATE">=SYSDATE@! AND
    "PPF"."EFFECTIVE_START_DATE"<=SYSDATE@!)
    filter("PPF"."EFFECTIVE_END_DATE">=SYSDATE@!)
    38 - access("SUPER"."PERSON_ID"="PAF"."SUPERVISOR_ID" AND "SUPER"."EFFECTIVE_END_DATE">=SYSDATE@! AND
    "SUPER"."EFFECTIVE_START_DATE"<=SYSDATE@!)
    filter("SUPER"."EFFECTIVE_END_DATE">=SYSDATE@!)
    Note
    - 'PLAN_TABLE' is old version

  • How can I connect oracle without installing its SQL*Net client?

    How can I connect oracle without installing its SQL*Net client?

    Pls suggest, any possible solution, i cross checked from below link, and tried to install the instant clients, but
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
    its showing me error of "This application has failed to start because OCI.dll was not found. Re-installing the application may fix this problem."
    Let me know if you have any thing on this.

  • Telstra Staff Connect Plan without Device

    I have recently joined Telstra and I am trying to apply for Telstra Staff Connect Plan but I do not need a new device right now. The Telstra online store portal doesn't allow to apply without selecting a device. Is there a way to apply for casual staff connect plan without selecting a device?

    Hello Michel,We are not Telstra staff here, only the moderators are.We have had this question before, and I believe your manager has to approve some paperwork.I imagine it also depends if you have received this previously or is this a new contract?You can confirm this by using the 24/7 Live Chat, and the link is below.https://livechat.telstra.com/TCOM:Crowdsupport​:ConsumerHope this assists

  • Connect macbook without superdrive to a macbook with superdrive

    I have an iDVD project on an older macbook without a superdrive. The iDVD project is complete, but I can't burn the dvd. I also have a newer macbook with a superdrive. Is there a way to connect the 2 computers together so that I can use the super drive from the other computer to burn the iDVD project?
    Thanks

    Ok, Thanks for the reply. But when I was looking up the requirements/instructions for remote disc. It says that remote disc cannot be used to burn a cd or dvd. Is this correct or is there another way?
    Thanks again.
    from apple's support site:
    DVD or CD sharing: Using Remote Disc
    Note: These types of discs or activities are not supported by DVD or CD sharing:
    DVD movies.
    Audio CDs.
    Copy protected discs such as game discs.
    Install discs for an operating system such as Microsoft Windows (for use with Boot Camp), or Mac OS X.
    Burn a CD or DVD

  • HT4199 My iphone has always connected automatically without problem to the wifi network at work, i.e.BTBusinessHub, and at home, i.e.Bthomehub. Now it tries to connect at work but doesnt manage it although it still works at home. Can anyone advise why?

    My iphone has always connected automatically and without problem to the wifi at work i.e. BTBusinesshub and at home BTHomehub but yesterday it would not connect at work. It is ok at home but again today at work it is not connecting. It appears to try but is not connecting, please help.

    You can try doing a reset, hold down the home/power button until you see the apple logo and then release, then wait for the phone to boot back up - then check wifi - if that doesn't work then
    do a network reset note:  you will have to reenter wifi password again when your in range.
    settings - general - reset - reset network settings.  If that doesn't work then I would talk to your IT dept.

  • Safe to connect it without iTunes?

    This is actually more of a question before I risk trying something than a help post after something happens.
    I am currently relegated to using a computer that I don't have permission to install things on, so I can't install iTunes, and I forgot to bring my iPod software CD with me, so I can't install that anyway. My iPod is already formatted for Windows, however.
    Is it possible to plug my iPod up to my XP computer without installing iTunes or the iPod software? I don't want to access the music, I just want to use it as an external hard-drive.
    I vaguely remember hearing somewhere a long time ago that doing this will reformat my iPod or something, so I just wanted to confirm whether that's true or false.
    I have iPod Software version 1.2.1 (or whatever was current for Windows last August) if that matters.

    Hi,
    Yes, ASA is non-intrusive.
    If you connected to a DMZ, your normal traffic will not be affected. The only traffic affected will be the one that is routed towards the IP of the ASA.
    For ASA configuration you can use the below guides:
    http://www.cisco.com/en/US/products/ps6120/prod_configuration_examples_list.html
    Please rate if this helped.
    Regards,
    Daniel

  • Connect by, get prior computed value?

    Hi,
    with my data below, how can I get value 'B' for the 4th record?
    The rule is "if there is no value for this record, take previously +computed+ value". It seems I can just get prior value from the table, not prior computed value.
    I hope you understand what I mean, It's kind of hard to express (not native speaker).
    CREATE TABLE REC
    ID INT,
    PARENT_ID INT,
    VALUE VARCHAR2(20)
    insert into rec values (1,null,'A');
    insert into rec values (2,1,'B');
    insert into rec values (3,2,null);
    insert into rec values (4,3,null);
    select
    connect_by_root value,
    id,
    parent_id,
    coalesce(value, prior value)
    from
    rec
    start with parent_id is null
    connect by prior id=parent_id

    SQL> column name format a50
    SQL> select * from emp_test order by deptno;
         EMPNO ENAME      JOB              MGR HIREDATE          SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 1981-06-09      20000          1         10
          7839 KING       PRESIDENT            1981-11-17      10000          1         10
          7788 SCOTT      ANALYST         7566 2087-04-19       6000          1         20
          7902 FORD       ANALYST         7566 1981-12-03       6000          1         20
          7566 JONES      MANAGER         7839 1981-04-02       5950          1         20
          7699 DAVID      MANAGER         7839 1981-05-01      20000          1         30
          7698 BLAKE      MANAGER         7839 1981-05-01      20000          1         30
    7 ligne(s) sélectionnée(s).
    SQL> SELECT     RPAD ('*', 2 * LEVEL, '*') || ename NAME, sal,
      2             (SELECT     SUM (e2.sal)
      3                    FROM emp_test e2
      4              START WITH e2.empno = e1.empno
      5              CONNECT BY PRIOR e2.mgr = e2.empno) sum_sal
      6        FROM emp_test e1
      7  START WITH e1.mgr IS NULL
      8  CONNECT BY PRIOR empno = mgr;
    NAME                                                      SAL    SUM_SAL
    **KING                                                  10000      10000
    ****BLAKE                                               20000      30000
    ****JONES                                                5950      15950
    ******FORD                                               6000      21950
    ******SCOTT                                              6000      21950
    ****DAVID                                               20000      30000
    ****CLARK                                               20000      30000
    7 ligne(s) sélectionnée(s).
    SQL> http://asktom.oracle.com/pls/asktom/f?p=100:11:4012920471710899::::P11_QUESTION_ID:30609389052804

  • Connecting dbserver without installing client

    iam using oracle 9i database for windows server 2003,and my application is developed in Visual basic,application is installed at nearly 80 locatons and each time i have to install oracle client,at client side,is it possible connect database server without installing client,
    pls suggest me the right thing
    thank you

    i used that component at client ,
    but it is giving error as oracle client and networking components were not found
    if i install client then it is not necessary to take odbc driver , i can take oracle9i client driver it self which comes with installation

  • Connecting printer without using internet

    I have an airport express and macbook pro. I have an wireless internet connection established and just want to use the Airport to print wirelessly and save to a hard drive wirelessly. Right now, I just want to print wirelessly and when I go throug the utility set up as instructed it keeps setting up a wireless network but in the end still doesn't work. How do I set up the printer without setting up for wireless internet? Thanks

    You just need to set up the AirPort Express Base Station (AX) as a "wireless client" to your existing wireless network...
    To set up the AirPort Express Base Station (AX) as a "Wireless Client," using the AirPort Admin Utility, either connect to the AX's wireless network or temporarily connect your computer directly (using an Ethernet cable) to the Ethernet port of the AX, and then, try these settings:
    AirPort tab
    - Base Station Name: <whatever you wish or use the default>
    - Wireless Mode: Join an Existing Wireless Network (Wireless Client)
    - Wireless Network: <type in your wireless network name or select it from the pop-up menu>
    - Wireless Security: Not enabled
    OR, if you are using security on your wireless network:
    Security Options
    Change Wireless Security
    - Wireless Security: <Select the appropriate level of security for your wireless network: 40-bit WEP|128-bit WEP | WPA Personal | WPA Enterprise>
    - Password: <enter your wireless network security password or key>
    Music tab (optional)
    - Enable AirTunes on this base station (checked)
    - iTunes Speaker Name: <enter name of speaker for iTunes remote speaker list>

  • Connecting iPod without USB?

    So... not much more to say. Just wondering if this it is possible to connect the iPod to my computer without using a USB port?

    firewire. they sell firewire ipod cords. check ebay. check the internet.. they are out there.

  • Connection Failed Without Reason

    Hi, my project involves Applet-servlet communication. The applet sends request to the servlet, the servlet does a DB query and sends back the result.
    After running the Applet for several minutes without any problem, it stops. Every time when Applet sends the request to the servlet or reads the response from the servlet, the Applet gives me an error:
    java.net.ConnectException: Connection refused: connect
    And at that time, Tomcat shutdown itself as well.
    This happened after I installed Tomcat 5.5.7 on a new Linux box. I couldn�t find ANY error message in the log files on the server.
    The firewall is closed at all time on the server.
    Any idea about how this can happen?
    Thanks.
    HONG

    Gonna be pretty hard to help you remotely like this.
    It sounds like your servlet (or code that it calls)
    maybe conditionally exectues a System.exit()
    statement, or otherwise crashes or runs out of memory.Even the Applet is not be loaded, Tomcat died on it own as well.
    I don't think it's out of memory because the Linux box I am testing on got huge memory.
    I couldn't find anything from the log files. I am thinking if the way I set up tomcat is wrong.
    Sorry about crosspost / continued topic at:
    http://forum.java.sun.com/thread.jspa?threadID=635227
    HONG

  • ATV2 - connecting speakers without receiver

    I am planning to buy ATV2. I am interested in streaming music through ATV2. Is it possible to connect speakers to ATV2 without using receiver, I mean whether speakers can be directly connected with ATV2. During listening of music TV should be turned off.

    Welcome to the Apple Community.
    You wouldn't need a receiver if you have powered speakers with an optical input. However you may find that if you turn your TV off while playing music that the Apple TV turns itself off and won't play.

  • Netcfg - no connection, interface without devices connected

    I have two interfaces eth0, eth1
    eth0 (DHCP) - connect to router, provide internet
    eth1 (STATIC IP) - connect with print server in my printer
    - I expect interface should up without need to have powered on device connected to it
    Everything worked fine, when interfaces were configured with /etc/rc.conf.
    Now I configured network with netcfg and:
    eth0 - up and everything ok
    eth1 - no starts up, when no device is connected (powered off device connected) to this ethernet card
    log:
    # NETCFG_DEBUG="yes" netcfg eth1-static
    DEBUG: Loading profile eth1-static
    DEBUG: Configuring interface eth1
    :: eth1-static up [BUSY] DEBUG: status reported to profile_up as:
    DEBUG: Loading profile eth1-static
    DEBUG: Configuring interface eth1
    DEBUG: ethernet_iproute_up ifup
    > No connection
    DEBUG: profile_up connect failed
    but when printer is powered on, interface starts up:
    # netcfg eth1-static
    :: eth1-static up [DONE]
    network profile content
    # cat /etc/network.d/eth1-static
    CONNECTION='ethernet'
    DESCRIPTION='A basic static ethernet connection using iproute'
    INTERFACE='eth1'
    IP='static'
    ADDR='192.168.0.1'
    Am I missing some setting? Maybe I should disable/enable something in profile?
    Things to reproduce:
    1. two ethernet cards
    2. first connected network and second  connected to switched off device, or not connected
    3. configure 2 netcfg profiles (first - dhcp, second -static ip)
    4. the second interface will fail to start up
    Last edited by ostanislaw (2011-06-18 10:31:12)

    Now I configured second interface - eth1 the old way in /etc/rc.conf:
    eth1="eth1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 mtu 1492"
    INTERFACES=(eth1)
    While eth0 is configured by netcfg profile.
    Both interfaces works. But my problem is not solved, because both interface should be configured in netcfg.
    I think netcfg check if network is available and doesn't start eth1 interface, while device configured the old way in /etc/rc.conf doesn't perform this check. There should be option to disable it in netcfg profile.
    Last edited by ostanislaw (2011-06-18 10:44:18)

Maybe you are looking for

  • Exception when useing imporrt jxl.*

    Hi it is my class i have written import java.io.*; import jxl.*; import java.util.*; import jxl.Workbook; import jxl.write.DateFormat; import jxl.write.Number; import jxl.write.*; import java.text.SimpleDateFormat; class create public static void mai

  • Issue with starting the emctl dbconsole

    Hello All, I need your help related to the below issue with the emctl, I am using Oracle 11g R2 on windows XP. My enterprise manager was working well. But at some day i was not able to start the dbconsole with error net msg A service specific error o

  • How to open files in MIDP (from the jar file)?

    Hello, I can't seem to figure out how to open a file that is in my MIDP applications jar-File. From what I've found via Google, I assume that the way to do it should be by using Connector.openInputStream("file:{path_to_my_file}") but I only get the e

  • Upload content in xls file to oracle table

    I am creating a HTMLDB report using a SQL query that refers to multiple tables. The data is present in multiple xls file (which in turn are downloaded form a 3rd party tool), which I upload using the HTMLDB data load/unload option in Utilities and cr

  • Why is my transaction file growing when db is in simple mode and there are no waiting transactions

    I noticed that my database log file has reached 160GBs. My database is in simple recovery mode and I used the following query to see if there are any waiting transactions. SELECT d.name,d.log_reuse_wait,d.log_reuse_wait_desc FROM sys.databases d It r