[SOLVED] SFTP-chroot Wiki incorrect? Use /sbin/nologin not /bin/false?

Following the instructions on https://wiki.archlinux.org/index.php/SFTP-chroot, setting the login shell with
# usermod -s /bin/false sftpuser1
does not allow me to sftp into the user account.
Sshd debug output is
debug1: userauth-request for user sftpuser1 service ssh-connection method password [preauth]
debug1: attempt 4 failures 3 [preauth]
debug1: PAM: password authentication failed for sftpuser1: Authentication failure
Failed password for sftpuser1 from <IP> port 42482 ssh2
When replaced with the following two steps, I am able to sftp into the user account
# usermod -s /sbin/nologin sftpuser1
and add the following line to /etc/shells
/sbin/nologin
Should the wiki page be updated or am I missing something?
Last edited by willemw (2013-02-21 12:44:56)

I had a similar Problem, I had /sbin/nologin for the users, but I didn't put it into /etc/shells. That worked fine until one of the last updates to openssh, the sftp-users couldn't login after that.
I did some investigating and found the cause: the file /etc/pam.d/sshd was changed in one of the last updates, changing the way logins are checked against pam for ssh. In the old file there was no check against /etc/shells, which basically meant you could have anything set as shell for the sftp-users. But with the change in the pam file (its now referencing the base pam files), /etc/shells is now also checked on ssh login, which renders the logins created like discribed on the wiki-page unusable.
So it seems the way the OP used (/sbin/nologin and entry in /etc/shells) is the right one. I have edited the wiki to reflect this change.

Similar Messages

  • SFTP chroot from non-global zone to zfs pool

    Hi,
    I am unable to create an SFTP chroot inside a zone to a shared folder on the global zone.
    Inside the global zone:
    I have created a zfs pool (rpool/data) and then mounted it to /data.
    I then created some shared folders: /data/sftp/ipl/import and /data/sftp/ipl/export
    I then created a non-global zone and added a file system that loops back to /data.
    Inside the zone:
    I then did the ususal stuff to create a chroot sftp user, similar to: http://nixinfra.blogspot.com.au/2012/12/openssh-chroot-sftp-setup-in-linux.html
    I modifed the /etc/ssh/sshd_config file and hard wired the ChrootDirectory to /data/sftp/ipl.
    When I attempt to sftp into the zone an error message is displayed in the zone -> fatal: bad ownership or modes for chroot directory /data/
    Multiple web sites warn that folder ownership and access privileges is important. However, issuing chown -R root:iplgroup /data made no difference. Perhaps it is something todo with the fact the folders were created in the global zone?
    If I create a simple shared folder inside the zone it works, e.g. /data3/ftp/ipl......ChrootDirectory => /data3/ftp/ipl
    If I use the users home directory it works. eg /export/home/sftpuser......ChrootDirectory => %h
    FYI. The reason for having a ZFS shared folder is to allow separate SFTP and FTP zones and a common/shared data repository for FTP and SFTP exchanges with remote systems. e.g. One remote client pushes data to the FTP server. A second remote client pulls the data via SFTP. Having separate zones increases security?
    Any help would be appreciated to solve this issue.
    Regards John

    sanjaykumarfromsymantec wrote:
    Hi,
    I want to do IPC between inter-zones ( commnication between processes running two different zones). So what are the different techniques can be used. I am not interested in TCP/IP ( AF_INET) sockets.Zones are designed to prevent most visibility between non-global zones and other zones. So network communication (like you might use between two physical machines) are the most common method.
    You could mount a global zone filesystem into multiple non-global zones (via lofs) and have your programs push data there. But you'll probably have to poll for updates. I'm not certain that's easier or better than network communication.
    Darren

  • Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent

    Hello all,
    I'm using JDev 11.1.1.2 and having this strange annoying error since upgrade from JDev 11.1.1.1. Older JDev worked correctly.
    So this alert appears almost every time after click on ImageCommandLink, CommandButton, even if page does not contain CommandLink. PPR works fine after the alert. Does anyone know what this error means?
    Message: Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichCommandLink [oracle.adf.RichCommandLink] id=r1:1:_afrCommandDelegate
    StackTrace:
    function(x217)
    [AdfRichCommandLink [oracle.adf.RichCommandLink] id=r1:1:_afrCommandDelegate]
    function(x246)
    [AdfRichCommandLink [oracle.adf.RichCommandLink] id=r1:1:_afrCommandDelegate]
    function()
    function(x59)
    [AdfRichRegion [oracle.adf.RichRegion] id=r1,
    AdfRichOutputLabel [oracle.adf.RichOutputLabel] id=r1:1:ol1,
    AdfRichPanelBox [oracle.adf.RichPanelBox] id=r1:1:pb1,
    AdfRichPanelTabbed [oracle.adf.RichPanelTabbed] id=r1:1:pt1,
    AdfRichShowDetailItem [oracle.adf.RichShowDetailItem] id=r1:1:sdiPrep,
    AdfRichOutputLabel [oracle.adf.RichOutputLabel] id=r1:1:ol30,
    AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:cil1,
    AdfRichTable [oracle.adf.RichTable] id=r1:1:tblList,
    AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c1,AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c2,
    AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c3,AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c4,
    AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c5,AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c6,
    AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c7,AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c8,
    AdfRichColumn [oracle.adf.RichColumn] id=r1:1:tblList:c9,
    AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:0:cil2,AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:0:cil4,
    AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:0:cil5,AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:1:cil2,
    AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:1:cil4,AdfRichCommandImageLink [oracle.adf.RichCommandImageLink] id=r1:1:tblList:1:cil5,
    AdfRichShowDetailItem [oracle.adf.RichShowDetailItem] id=r1:1:sdiPayList,
    AdfRichCommandLink [oracle.adf.RichCommandLink] id=r1:1:_afrCommandDelegate]
    Line: 404
    Char: 2
    Code: 0
    URI: http://127.0.0.1:7101/App-Web-context-root/afr/partition/ie/default/opt/boot-SHEPHERD-PS1-9296.js
    The structure is as follows: a menu is located on the main page (CommandLinks), and navigation is carried out within the region. Within the region there is no CommandLink, so I guess menu is the one that makes problems. This problem did not exist in JDev 11.1.1.1.
    Menu is implemented like this one: http://biemond.blogspot.com/2009/03/mainpage-and-task-flow-region.html

    I also had the same problem.
    Expect to solve.....
    Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it18
    StackTrace:
    function(x217)
    [AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it18]
    function(x246)
    [AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it18]
    function()
    function(x59)
    [AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it22,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it27,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it18,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it14,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it32,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it19,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it13,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it17,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it30,AdfRichInputText [oracle.adf.RichInputText] id=pc1:t3:0:it9]
    Line: 404
    Characters: 2
    Code: 0
    URI: http://127.0.0.1:7101/ERP-UserInterface-context-root/afr/partition/ie/default/opt/boot-SHEPHERD-PS1-9296.js

  • Assertion failed: Incorrect use of AdfRichUIPeer on adf tree

    Hi all,
    I am using adf tree component as given below.
    <af:tree value="#{bindings.QACodesParentVO.treeModel}"
    var="node"
    selectionListener="#{QAReasonCodesBean.denialCodesRowSelection}"
    rowSelection="single" id="t1"
    binding="#{QAReasonCodesBean.t1}"
    contentDelivery="immediate">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1">
    <af:showPopupBehavior popupId="p1"
    triggerType="contextMenu"
    alignId="ot1"/>
    </af:outputText>
    </f:facet>
    <f:facet name="contextMenu">
    <af:popup id="p1">
    <af:menu text="menu 1" id="m1">
    <af:commandMenuItem actionListener="#{QAReasonCodesBean.createItem}"
    disabled="#{!bindings.Create.enabled}"
    id="cmi3"
    text="#{viewcontrollerBundle.CREATE_ITEM}"/>
    <af:commandMenuItem disabled="#{!bindings.Delete.enabled}"
    id="cmi4"
    text="#{viewcontrollerBundle.DELETE_ITEM}">
    <af:showPopupBehavior popupId="::p5"
    triggerType="action"/>
    </af:commandMenuItem>
    </af:menu>
    </af:popup>
    </f:facet>
    </af:tree>
    This tree giving the following error when I am collapsing the expanded the tree nodes. Not in all cases only in few cases.
    Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichOutputText [oracle.adf.RichOutputText]
    id=pt21:r1:1:t1:2:ot1
    StackTrace:
    anonymous(x217)
    [AdfRichOutputText [oracle.adf.RichOutputText] id=pt21:r1:1:t1:2:ot1]
    anonymous(x248)
    [AdfRichOutputText [oracle.adf.RichOutputText] id=pt21:r1:1:t1:2:ot1]
    anonymous()
    anonymous(x367)
    [[object HTMLTableElement]]
    anonymous(x395)
    [[object HTMLTableElement]]
    anonymous(x302)
    [[object HTMLTableElement]]
    anonymous(x309,x310,x311)
    [[object HTMLTableElement],1,(empty)]
    anonymous(x481,x482,x483,x484)
    [[object HTMLTableElement],6,(empty),(empty)]
    anonymous(x88,x89)
    [[object HTMLDivElement],[object HTMLDivElement]]
    anonymous(x112,x113,x114)
    [AdfRichTree [oracle.adf.RichTree] id=pt21:r1:1:t1,[object HTMLDivElement],[object HTMLDivElement]]
    anonymous(x784,x785,x786,x787,x788)
    [[object Element],,(empty),,[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object
    HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object
    HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object
    HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object
    HTMLDivElement],[object HTMLDivElement],[object HTMLDivElement],[object HTMLFormElement],[object HTMLDivElement],(empty)]
    anonymous(x730,x731,x732,x733,x734)
    [[object Element],true,(empty),(empty),[object Object]]
    anonymous(x712,x713)
    [[object XMLDocument],[object Object]]
    anonymous(x617)
    [AdfDataTransferRequestEvent Object, status=4, context=[object Object], request=AdfXMLRequest Object completionState:4]
    anonymous(x7,x8)
    [AdfDhtmlPage Object,AdfDataTransferRequestEvent Object, status=4, context=[object Object], request=AdfXMLRequest Object completionState:4]
    anonymous(x83)
    [AdfXMLRequest Object completionState:4]
    anonymous(x87)
    [AdfXMLRequest Object completionState:4]
    anonymous()
    anonymous()
    [[object Event]]
    I am I doing any thing wrong in the tree code. How to resolve this issue.
    Regards
    Gayaz

    Hi, did you solved this ?

  • How to undo "This solved my question" on this Using iPhone forum?

    How to undo "This solved my question" on this "Using iPhone" forum?
    new to this forum... how do you undo this?

    **** lol, In that case they should give a warning or some type of "You sure?" yes/no. I clicked completely by mistake. anyways...

  • Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src

    I get this problem Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src
    So far in the posts i only see this problem . Please let us know how to solve this?
    Thanks
    Sankar

    Tses wrote:
    Am I the only one in the world who tried ΟLT 12c with ADF 11g R2 PS3 ?
    :-(Hi! You're not alone :)
    We tried to record some load tests (OpenScript 12.2.0.1 Build 223) for our ADF R2 application.
    But during the playback I had the same error: "Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src ".
    Haven't you found the solution yet?
    By the way, when I use operation "Revert to Recorded" for all nodes of my test and playback it again, I see in results that the script has passed without errors, but nothing has changed in database.
    Thanks.
    Natalie

  • How do you solve error "You can't use this version of the application Install Mac OS X.app with this version of Mac OS X" when trying to go back to leopard from lion?

    How do you solve error "You can't use this version of the application Install Mac OS X.app with this version of Mac OS X" when trying to go back to leopard from lion?
    Local Mac shop said to hold down "c" after inserting disk to get "disk utility" to come up in order to wipe hard drive.  I can't seem to get it to do this.

    This W7 was purchased for using Fusion, as others did - per reviews from amazon.  The technician today called their contact at VMWare - Fusion not officially for use with Lion - even though I read at the VMWare support site that others have made it work.  Apparently my setup doesn't work. 
    Do you know how to do the proceedure for bringing up the disk utility when starting the disk?
    BTW, some of the windows applications I want to continue using are Incredimail, Calendarscope, Stamps.com and a few others I have used over many years.  What do you use for email and calendar?
    Wow, sounds like another reason to not use MS Windows.
    Regarding your Disk Utility question, please elablorate I'm not sure what you're trying to do. Disk Utilty is just that...a utility, it's something most users never have to use especially on a new computer. Let me know what you're trying to do there before I give you some instructions.
    As for as your Windows apps I would recommend using Mail and iCal, both come as part of OS X and are very robust tools. Don't discount the software built right into OS X it's very robust and powerful not all like the bloatware most Windows boxes ship with. Stamps.com well I'd look for another alternative. It's clear they don't support OS X which makes me a little suspicious that they're so behind the times. 
    Also if you have not been exposed to these links before I'd strongly recommend bookmarking them and using them. They're extermely useful!
    Switch 101
    Mac 101
    Find Out How Video tutorials

  • This error is often caused by incorrect use of the "Strict" document type

    Okay...so I have 6 errors - all the same and has to do with my document type.
    I've searched the code and I am using a transitional doc type so why the errors?
    http://02cada7.netsolhost.com/Stasik_Family_Website/index.html

    Yeah I did that...but the cause doesn't make sense to me.
    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    I'm not using a strict document time - I am using transitional and I am not using proprietary extensions.

  • Incorrect use of the TOP clause

    Hi
    I need to demonstrate the use of the TOP clause, however when I run my SQL it says incorrect use of the clause.
    Question: List the top 3 earners in the company( from the employees table). List employee_id, last_name, and the salary in descending order.
    below is my attempt:
    Select TOP 3 employee_id, last_name, salary
    FROM employees
    ORDER BY salary DESC;
    Any assistance will be appreciated
    Thanks

    Imtiyaaz wrote:
    Ok i've tried this:
    SELECT * from
    ( SELECT employee_id, last_name, salary
    FROM employees
    ORDER BY salary
    WHERE ROWNUM <= 3;
    and it works but I need to display the salary in descending order, if I do this:
    SELECT * from
    ( SELECT employee_id, last_name, salary
    FROM employees
    ORDER BY salary DESC
    WHERE ROWNUM <= 3;
    it does not display the top 3 salaries anymore but rather the first 3 rows of the table...?Are you sure that what you ran is what you posted? It works correctly for me:
    SQL > select * from (
      2  select employee_id, first_name, last_name, salary
      3  from hr.employees
      4  order by salary desc )
      5  where rownum <= 3;
    EMPLOYEE_ID FIRST_NAME           LAST_NAME                     SALARY
            100 Steven               King                           24000
            101 Neena                Kochhar                        17000
            102 Lex                  De Haan                        17000John

  • Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentCompon

    JDev 11.1.1.2.0
    Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichInputText [oracle.adf.RichInputText]
    the problem is with x220.getProperty("_parentId") its coming as null, why only someone from Oracle can tell this,
    AdfRichUIPeer.GetDomNodeForCommentComponent= function(x220)
    *var x221=x220.getProperty("_parentId");*
    var x222="compS|" + x220.getClientId();
    var x223=AdfAgent.AGENT.getElementById(x221);
    if (x223)
    var x224=x223.firstChild;
    if (x224)
    return AdfRichUIPeer._getCommentNodeForComponent(x224,x222);
    var x225=AdfPage.PAGE.getDomDocument().body;
    var x226=AdfRichUIPeer._findCommentNodeWithContent(x225,x222);
    if (x226!=null)
    return x226;
    AdfAssert.assertionFailed(
    "Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent." + x220,1);
    return null;}

    Please post your question on the internal Oracle Forums - No one on OTN has access to drop builds.

  • Assertion failed: Incorrect use of AdfRichUIPeer....

    Dear all,
    i have a table which its partial trigger is set to a button and that button's partial submit is set to true...
    now i got that error when trying to navigate between the input texts when the table is in the insertion mode -->
    Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichSelectOneChoice [oracle.adf.RichSelectOneChoice] id=r1:2:t1:17:soc1
    StackTrace:
    I searched the forum and changed the partial submit of the button to false and everything went fine with me , but am not sure why the partial submit of the button caused that problem ?
    Thanks in Advance,
    Lama
    Edited by: Delta on Sep 28, 2010 5:37 AM

    Hi,
    I too have come across this kind of exception.
    Generally we get this error message, when the adf tags are not used properly. I mean the syntax. In my case, i got this exception because of using render property.
    The page was supposed to render a taksflow from the list of 3 taskflows based on the value selected from a selectOneChoice. With this implementation, i got this error. Later i used visible property and then it starts working fine.
    Hence would like to have a look at your page/fragments. Can you post your code here.
    Thanks,
    Kiran Konjeti

  • HELP!! SDO_RELATE inside Oracle procedure - ORA-13207: incorrect use of the

    Hello,
    I need help !
    I have a problem with queries inside procedures/packages.
    When execute sql
    SQL> SELECT LOC_OBJ_ID
    2 FROM VORO_LOC X, LBS_OZ_AREAS OZ
    3 WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, 'MASK=ANYINTERACT') = 'TRUE'
    4 AND OZ.OZ_NAME='PTK' AND OZ.OZ_GROUP='GORCZEWSKA';
    LOC_OBJ_ID
    2211379
    i have results - it's OK
    The next sql is same, but with agregation
    SQL> SELECT COUNT(*) ILOSC
    2 FROM VORO_LOC X, LBS_OZ_AREAS OZ
    3 WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, 'MASK=ANYINTERACT') = 'TRUE'
    4 AND OZ.OZ_NAME='PTK' AND OZ.OZ_GROUP='GORCZEWSKA';
    ILOSC
    1
    it's OK
    But when i want use this SQL inside proedurees in store result in variable i have problem
    SQL> declare
    2 V_NUMBER_NEI_LOC number;
    3 begin
    4 SELECT COUNT(*) ILOSC
    5 INTO V_NUMBER_NEI_LOC
    6 FROM VORO_LOC X, LBS_OZ_AREAS OZ
    7 WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, 'MASK=ANYINTERACT') = 'TRUE'
    8 AND OZ.OZ_NAME='PTK' AND OZ.OZ_GROUP='GORCZEWSKA';
    9 end;
    10 /
    declare
    ORA-13207: incorrect use of the [SDO_RELATE] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 259
    ORA-06512: at line 4
    ORA-06512: at line 4
    Please help!

    This might be some issue with SQL in PL/SQL. We will check into this.
    In the meantime, can you try the dynamic SQL to execute that
    sdo_relate query to see if it works?
    Here is the example with dynamic SQL:
    declare
    V_NUMBER_NEI_LOC number;
    begin
    EXECUTE IMMEDIATE
    ' SELECT COUNT(*) ILOSC ' ||
    ' FROM VORO_LOC X, LBS_OZ_AREAS OZ ' ||
    ' WHERE MDSYS.SDO_RELATE(X.SHAPE, OZ.GEOLOC, ' ||
    ' ''MASK=ANYINTERACT'') = ''TRUE'' ' ||
    ' AND OZ.OZ_NAME=''PTK'' AND OZ.OZ_GROUP=''GORCZEWSKA'' '
    INTO V_NUMBER_NEI_LOC;
    end;
    /

  • Error on running BEx Query: Variable does not exist or is incorrectly used

    Hi all,
    I have a characteristic in my query which I restrict using a variable with Mutliple Single values.
    When I run the query in the Analyzer or RSRT, I get the following error:
    "Variable does not exist or is incorrectly used"
    Please help me fix this error.
    Thanks and Regards,
    Srilakshmi B

    Hi,
    I have a characteristic in my query which I restrict using a variable with Mutliple Single values.
    When you define any Filter Values, BEx will ask you to select either Single Values or Variables or Value Ranges etc..
    If you want to select by Multiple single values, you should include all the values in the Restriction area.
    Please do not define any variables, unless the User wants to enter any thing. Look for any other variables which are not defined correctly..........
    Regards,
    Suman

  • ORA-13207: incorrect use of the [More than 2D not supported] operator

    Oracle 8.1.7.4:
    The same query works in an Oracle DB on Linux and Windows, but in a Solaris it gives me the following error:
    cc_redes_met_coaxial@ORAG2&gt; SELECT lot_f.lot_id id,
    ROUND(MDSYS.SDO_GEOM.SDO_DISTANCE(lot_geom.geometry, ped_geom.geometry, 0.5),2) dist
    FROM lot_f,
    pedestal_f,
    G_GEOMETRY_0 lot_geom,
    2 G_GEOMETRY_0 ped_geom
    WHERE lot_f.feat_num = lot_geom.feat_num
    3 AND pedestal_f.acc_point_id = 611
    AND pedestal_f.feat_num = ped_geom.feat_num
    4 AND lot_f.g_version+0 = 0
    AND (lot_f.g_next_version &gt; 0 OR lot_f.g_next_version IS NULL)
    5 AND pedestal_f.g_version+0 = 0
    6 AND (pedestal_f.g_next_version &gt; 0 OR pedestal_f.g_next_version IS NULL)
    AND MDSYS.SDO_WITHIN_DISTANCE(lot_geom.geometry, ped_geom.geometry,'distance = 100' ) = 'TRUE';
    7 8 9 10 11 12 13 14 SELECT lot_f.lot_id id,
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13207: incorrect use of the [More than 2D not supported] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84
    ORA-06512: at line 1
    The data is in 3D. I took a look at the trace file but no useful information. It does not have to be 2d, right?
    I can use SDO_WITHIN_DISTANCE with data in 3d, can't I?
    Does anyone know what is going on? Maybe a bug?
    Regards,
    Alex

    Daniel,
    I created the spatial index in 2d, but if I collect stats on all tables the optimizer doesn't use the spatial index.
    I tried to influence the optimizer using hints, but it seems to ignore the hint clause. The query I did is above:
    SELECT /*+ INDEX(lot_geom G_GEOMETRY_0_SI) INDEX(ped_geom G_GEOMETRY_0_SI) */
         lot_f.lot_id id,
    ROUND(MDSYS.SDO_GEOM.SDO_DISTANCE(lot_geom.geometry, ped_geom.geometry, 0.5),2) dist
    FROM lot_f,
    pedestal_f,
    G_GEOMETRY_0 lot_geom,
    G_GEOMETRY_0 ped_geom
    WHERE lot_f.feat_num = lot_geom.feat_num
    AND pedestal_f.acc_point_id = 611
    AND pedestal_f.feat_num = ped_geom.feat_num
    AND lot_f.g_version+0 = 0
    AND (lot_f.g_next_version > 0 OR lot_f.g_next_version IS NULL)
    AND pedestal_f.g_version+0 = 0
    AND (pedestal_f.g_next_version > 0 OR pedestal_f.g_next_version IS NULL)
    AND MDSYS.SDO_WITHIN_DISTANCE(lot_geom.geometry, ped_geom.geometry,
    'distance = 100' ) = 'TRUE';
    So I "forced" a plan that uses the spatial indexes deleting the statistics from the tables that have geometry columns. The execution plan looks like this:
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2652 Card=10182 Bytes=79969428)
    1 0 CONCATENATION
    2 1 NESTED LOOPS (Cost=876 Card=3428 Bytes=26923512)
    3 2 NESTED LOOPS (Cost=121 Card=1078 Bytes=8450442)
    4 3 NESTED LOOPS (Cost=4 Card=33 Bytes=129492)
    5 4 TABLE ACCESS (FULL) OF 'PEDESTAL_F' (Cost=1 Card=1 Bytes=16)
    6 4 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=3 Card=3268 Bytes=12771344)
    7 6 INDEX (RANGE SCAN) OF 'G_GEOMETRY_0_PRIMARY' (UNIQUE) (Cost=2 Card=3268)
    8 3 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=121 Card=3268 Bytes=12794220)
    9 8 DOMAIN INDEX OF 'G_GEOMETRY_0_SI' (Cost=51)
    10 2 TABLE ACCESS (BY INDEX ROWID) OF 'LOT_F' (Cost=1 Card=318 Bytes=4770)
    11 10 INDEX (RANGE SCAN) OF 'GI_LOT_F0_FEAT_NUM_0' (UNIQUE) (Cost=1 Card=318)
    12 1 NESTED LOOPS (Cost=876 Card=3428 Bytes=26923512)
    13 12 NESTED LOOPS (Cost=121 Card=1078 Bytes=8450442)
    14 13 NESTED LOOPS (Cost=4 Card=33 Bytes=129492)
    15 14 TABLE ACCESS (FULL) OF 'PEDESTAL_F' (Cost=1 Card=1 Bytes=16)
    16 14 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=3 Card=3268 Bytes=12771344)
    17 16 INDEX (RANGE SCAN) OF 'G_GEOMETRY_0_PRIMARY' (UNIQUE) (Cost=2 Card=3268)
    18 13 TABLE ACCESS (BY INDEX ROWID) OF 'G_GEOMETRY_0' (Cost=121 Card=3268 Bytes=12794220)
    19 18 DOMAIN INDEX OF 'G_GEOMETRY_0_SI' (Cost=51)
    20 12 TABLE ACCESS (BY INDEX ROWID) OF 'LOT_F' (Cost=1 Card=318 Bytes=4770)
    21 20 INDEX (RANGE SCAN) OF 'GI_LOT_F0_FEAT_NUM_0' (UNIQUE) (Cost=1 Card=318)
    But when I executed the query, I got:
    cc_redes_met_coaxial@ORAG2> /
    ROUND(MDSYS.SDO_GEOM.SDO_DISTANCE(lot_geom.geometry, ped_geom.geometry, 0.5),2) dist
    ERROR at line 2:
    ORA-03113: end-of-file on communication channel
    Collecting stats on geometry tables makes the query work only because it doesn't use the spatial index.
    I took a look the trace file, but I didn't see any interesting information. I can send you if you want.
    Do you have any clue?
    Regards,
    Alex

  • Failed to solve variable web.formaction.myForm using path

    Hi,
    I am running several OATS tests for monitoring some EM apps through the EM beacons.
    These OATS tests have been running on a couple of beacons for several months with absolutely no problems. All of a sudden on saturday my service tests started showing down although the applications are up.
    When i go onto the beacon and run the debug script i am seeing the following error for all steps after my SSO step 06:02:12,662 INFO [1] Step: [1] Single Sign On - Login
    06:02:15,204 ERROR [1] Iteration 1 failed at line (script.java:25). Failed to solve variable web.formaction.myForm using path .//FORM[@name='myForm']/@action
    oracle.oats.scripting.modules.http.api.exceptions.SolveException: Failed to solve variable web.formaction.myForm using path .//FORM[@name='myForm']/@action
    at oracle.oats.scripting.modules.http.api.exceptions.SolveException.createSolveExceptionPath(SolveException.java:94)
    at oracle.oats.scripting.modules.http.api.internal.InternalHTTPService.solveXpath(InternalHTTPService.java:1096)
    at oracle.oats.scripting.modules.http.api.internal.InternalHTTPService.solveXpath(InternalHTTPService.java:1045)
    at oracle.oats.scripting.modules.http.api.HTTPService.solveXPath(HTTPService.java:1432)
    at script.run(script.java:25)
    at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:313)
    at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
    at java.lang.Thread.run(Thread.java:619)
    It is almost like its no longer picking up the username or something.
    Any insight into this issue?
    Many thanks
    Lynne

    Hi Jamie,
    I am also facing a similar issue and I am getting following error : "Failed to solve variable web.input.orgapachemyfacestrinidadfa using path .//INPUT[@name='org.apache.myfaces.trinidad.faces.FORM']/@value"
    which is making the script fail.
    Can you please let me know how you resolved the issue in your script so that even I can do the same.
    Regards,
    Sheena

Maybe you are looking for

  • Error while setting up db mirroring in sql server 2012

    Hi Team, I am trying to setup DB Mirroring in our setup and Need your help here! I've 3 servers (2 (Principal and witness) of them are in one machine and 1 (Mirror) is in other machine) setup ... Firewalls are turned off on all 3 of them.... I want t

  • IPOD DVD/VIDEO CONVERTER PROBLEM

    After testing cucusoft converter software successfully recently, I made the plunge. It worked fine for a day, now when I go to play the DVD/Video on the Ipod, I get an album-like cover (on the IPOD screen) and audio, but no video. Any suggestions to

  • Gradient Transparency Mask not working

    Hey there. I am working with Flash 8 trying to create a gradient mask effect with 2 images and a headline. I have created this effect 2xs already for the border of the page. I used 2 movieclips, gave them instance names, checked "runtime bitmap cachi

  • Typing yields only "ding" and no text appears!!!

    This can't get any more basic!!! New document, typing on keyboard yields only ding sound and no text appears in the document!!!  ***????

  • OSB Business Service not found

    Hello, I'm creating a business service with sbconsole. The enpoint uri is http://localhost:7001/SalesOrders/Order. I activate the changes with the change control activate button. I'm checking with IE the link and I am getting Error 404--Not Found. Wh