Entity with one child - rule

All,
I have a parent entity with only one base entity.
In the rule I am calculating base entity's acct3 as
If acct1>acct2 then acct3=-acct2 else acct3=-acct1
acct1 and acct2 have journals at base entity.
I am not calculating acct3 for parent entity.
So I am expecting parent entity's acct3 is consolidated from base entity.
But it is not, acct3 for Parent entity is also getting calculated (which I am not doing in the rule).
          <Entity Currency>     <Entity Curr Adjs>     <Entity Curr Total>
base     acct1     -     100     100
     acct2     200     -     200
     acct3     -                             -                           -
parent     acct1     100          100
     acct2     200          200
     acct3     -100                                              -100
What could be the reason?
Any help greately appriciated.
Thanks

Thanks for the response, code looks as below (reminds me implied sharing in essbase)
SUB CALCULATE()
If HS.Scenario.Member = "Actual" or HS.Scenario.Member = "Plan" then
          Select Case HS.Entity.Member
               Case "myBaseEntity","BaseEntity2"
                    HS.EXP "A#Test1" &Nones& " = A#Acct1" &Tops& " - A#Acct2" &Tops
                    Dim t1data
                    t1data = HS.GetCell("A#Test1" &Nones)
                    If t1data > "0" then
                         HS.EXP "A#Acct3"  &Nones& " = -A#Acct2" &Tops
                         HS.EXP "A#Acct4"  &Nones& " = -A#Acct2" &Tops
                    Else
                         HS.EXP "A#Acct3"  &Nones& " = -A#Acct1" &Tops
                         HS.EXP "A#Acct4"  &Nones& " = -A#Acct1" &Tops
                    End if
               Case "BaseEntityABC"
               End Select' HS.Entity.Member
End if
End Sub thank you once again

Similar Messages

  • Possible?Multi-Entity View Object with one Entity Object that is Read-only.

    I know this sounds crazy, but I would like to create a multi-entity view object, where one entity object is based on a table in my application (we'll call it "Users", which basically stores the primary key for the person from the institutional people database), and the other table is a entity object based on a view of the institutional people database table (read only access), which we can call "People".
    I know that since no updates will be done to the People table, it really should be a read-only View Object, but I would lose the ability to sort on attributes like Last Name, Hire date, etc, since those would be transient attributes in my ViewObject for the Users. By having People as an entity object, I can then create a multi entity view object and have the ability to join Users to People and be able to sort on the above mentioned fields (like Last Name).
    The problem is that when I use the JDev (I'm currently using 10.1.2.1) AppModule BC4J tester, when I click on the multi-entity view object that I added to the AppModule it gives me an error:
    oracle.jbo.RowCreateException) JBO-25017: Error while creating a new entity row for People.
    ----- LEVEL 1: DETAIL 0 -----
    (java.lang.InstantiationException) null
    I have tried to change all the attributes to updateable in my entity object, but no create method, and I have tried to make them all read-only, but no effect, I get the same error (probably because the People view is read-only in my schema).
    Is there a way to change the entity object so that it will not try to create a new row when it runs the Tester? So that the multi entity view object behaves more like a view link, but gives me the added bonus of being able to sort on the Last Name column from the People table?
    Thanks for any help on this subject...at worst, I will have to use the view link method to get the job accomplished, but it would be "cooler" if this would work!
    Jeremy.

    Steve, thanks for your quick response to my question.
    To answer your questions, I was trying to create the Multi-entity View Object to give me more flexibility when working with my User table, and my People view. The flexibility I desired was that I would be able to sort my Users based on attributes in the People view. This is not possible when the there is only one Entity in my VO, and the People view data are all transient attributes, because they are not in the SQL statement.
    Ultimately, after working with one of my colleagues, we decided to use the approach that you mentioned by creating a read-only VO with the SQL query we want to display to the user (contains both User and People data fields), and then use a different ViewObject when performing other actions on the User Table (such as inserts/updates/deletes). By using the setWhereClauseParam() method in the handleLifeCycle() for the JSP page, we should be able to navigate between the different View Objects, so that the user does not see any difference.
    Thanks! Oh, and by the way, I have read your article you included before, and I have used it many times before to tune my View Objects! Thanks!

  • Level/Generation of members with only one child

    Hello!I have a little problem with generations and levels in an outline like this: Dimension Member1 Member1a Member1b Member2 Member2a Member3 Member3a Member3b"Member2" has only the child "Member2a". All other members in generation 2 have more than one member. The function @CURGEN(Dimension) shows for all these members the value 2, but for the member "Member2" it shows generation 3 and level 0. In my opinion "Member2" is generation 2 and level 1.Who is wrong? Essbase? Thanks for your support!Andreas

    This is the classic 'implied share' gotcha. When a member has only one child, Essbase by default sets up the child as a shared member to the parent. I believe this was an attempt to save space etc. but it causes problems in @ functions and partitions (and maybe elsewhere!). You need to tag the parent (level 1) member as 'never share'. This should solve it.

  • Fastest way to find parents with only one child?

    I have two very large tables (both >6 million rows) in an oracle 8i DB. They have a parent child relationship and I would like to construct a query to give me the parents that have only one child......syntactically, what's the best way to construct this query?
    I was going to try:
    select join_id
    FROM parent
    where join_id in (select join_id, count(join_id)
    FROM child
    group by join_id
    having count(*)=1)
    but then I realized that the subselect has two columns to return and the primary query is only expecting one column, so this will not work.
    I suspect there's a quick and dirty way to find out what parents have only one child....
    I thought of using rowid's but am not sure this is the best way and in the example below I tried, I'm having problems b/c of functions not being allowed in the where clause.....
    select join_id
    from child d
    where rowid in (select min(rowid)
              FROM child s
              WHERE min(d.rowid)=max(s.rowid)
              AND s.join_id=d.join_id))
    Any thoughts?

    The two tables are order_header and order_detail. The order_header carries order specific information and the detail contains item specific information.
    So if you had ordered three separate products, you would have:
    one row in the order_header table (parent)
    and three rows in the order_detail table (child)
    They are linked by order_number.
    I presented the problem this way to make it more accessible to more posters.....;)
    One possible solution that I've thought of for my problem is this:
    select join_id
    from child_table d
    where (d.rowid, d.rowid) IN (select min(rowid) MIN_ROW
                   ,max(rowid) MAX_ROW
                   FROM child_table
                   WHERE s.str_order_number=d.str_order_number
                   AND s.date>='30-JAN-2005'
                   AND s.date<='31-JAN-2005'))
    I think this might work because I think that we can safely assume that if the minimum rowid and the maximum rowid (with the same join_id ) are the same then there is only one child record.....is this logic correct?

  • UDO WITH MORE THAN ONE CHILD TABLE

    Hello There.
    Can I handle more than one child table for a master table by code?
    if I can, how do I create this udo, I have tryed the following code, but it takes the last child table ("jobs7")
    If oUserObjectMD.GetByKey("Jbs_UO") = 0 Then
                oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
                oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
                oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tNO
                'oUserObjectMD.FormColumns   
                oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
                oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
                oUserObjectMD.FindColumns.ColumnAlias = "Code"
                oUserObjectMD.FindColumns.Add()
                oUserObjectMD.FindColumns.SetCurrentLine(1)
                oUserObjectMD.FindColumns.ColumnAlias = "Name"
                oUserObjectMD.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
                oUserObjectMD.LogTableName = ""
                oUserObjectMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tNO
                oUserObjectMD.ChildTables.TableName = "JOBS1"
                oUserObjectMD.ChildTables.TableName = "JOBS2"
                oUserObjectMD.ChildTables.TableName = "JOBS3"
                oUserObjectMD.ChildTables.TableName = "JOBS4"
                oUserObjectMD.ChildTables.TableName = "JOBS5"
                oUserObjectMD.ChildTables.TableName = "JOBS6"
                oUserObjectMD.ChildTables.TableName = "JOBS7"
                oUserObjectMD.ExtensionName = ""
                oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tNO
                oUserObjectMD.Code = "Jbs_UO"
                oUserObjectMD.Name = "Jobs UDO"
                oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_MasterData
                oUserObjectMD.TableName = "JOBS"
                If oUserObjectMD.Add() <> 0 Then
                    Dim ErrMsg As String
                    Dim ErrCode As Long
                    oCompany.GetLastError(ErrCode, ErrMsg)
                    MsgBox("Errorf adding UDO master Data" & vbCrLf & ErrMsg)
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserObjectMD)
                    oUserObjectMD = Nothing
                    Return False
                End If
            End If

    Hi Hagai
    after oUserObjectMD.ChildTables.TableName = "JOBS1"
    just write
    oUserObjectMD.ChildTables.Add
    that would be
    oUserObjectMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tNO
    oUserObjectMD.ChildTables.TableName = "JOBS1"
    oUserObjectMD.ChildTables.Add
    oUserObjectMD.ChildTables.TableName = "JOBS2"
    oUserObjectMD.ChildTables.Add
    oUserObjectMD.ChildTables.TableName = "JOBS3"
    oUserObjectMD.ChildTables.Add
    oUserObjectMD.ChildTables.TableName = "JOBS4"
    oUserObjectMD.ChildTables.Add
    oUserObjectMD.ChildTables.TableName = "JOBS5"
    oUserObjectMD.ChildTables.Add
    oUserObjectMD.ChildTables.TableName = "JOBS6"
    oUserObjectMD.ChildTables.Add
    oUserObjectMD.ChildTables.TableName = "JOBS7"

  • EJB 3.0: How to merge detached entity with collection

    Hello,
    suppose you have 2 database tables: PARENT and CHILD with one-to-many association. In a session bean you load the parent entity together with collection of children and send it all to client. Client might change parent or child data, add/remove children.
    Now back in a session bean you want to update database, so you call:
    entityManager.merge(detached_parent_entity);Problem is, that removed child objects from entity bean collection are not deleted from database. Bacause I am currently using Hibernate, I could follow the FAQ (http://www.hibernate.org/116.html#A17) and add delete-orphan cascade, but I don't want to be tight to Hibernate nor other frameworks.
    Is there any sexy solution?
    Thanks for replies!

    I'm afarid not - a generic feature that will allow to
    delete orphan children didn't make it into the final
    spec.
    regards,
    -marinaDo you happen to have any links to public discussions about this feature with regard to the development of the spec? This is a very nice feature in Hibernate and it's absence in EJB 3.0 is rather disappointing.
    Thanks.

  • Different consolidation methods for one entity on one scenario

    Dear experts,
    How can I have different consolidation methods for one entity on one scenario?
    One entity is going from proportionate to equity method. We would like to check variations due to this change.
    Best regards,
    Benoit

    Hi Benoit,
    How's things?
    Managing the consolidation methods is based on the setup of your consolidation rules.
    However, the first place that you should look is the Ownership Management. Select the parent of the entity that you work to process. In the screen, you will be able to see the available methods and the ownership. All these settings are related with the consolidation rules available in your application.
    Regards,
    Thanos
    < spam signature link removed by moderator >

  • Un-nest XML with single child element

    I'm trying to write a generic function for un-nesting child nodes where nesting is deemed unnecessary. Typically when the element only has one child element.
    For example, given the following source....
    <ROOT>
      <ITEM>
        <DESCRIPTION>TEST1</DESCRIPTION>
      </ITEM>
      <ITEM>
        <DESCRIPTION>TEST2</DESCRIPTION>
      </ITEM>
    </ROOT>I actually want.....
    <ROOT>
      <DESCRIPTION>TEST1</DESCRIPTION>
      <DESCRIPTION>TEST2</DESCRIPTION>
    </ROOT>because we think ITEM isn't really required before we deliver XML data.
    I've been trying to achieve this with a function, where I pass in the XPath to the node I want flattening, something like
    function UnNest(pXMLData XMLType, pXPath varchar2) return XMLType...Called like the following...
    declare
    begin
      vXMLData := UnNest(SomeXMLData, '/ROOT/ITEM')
    end;I tried using XQuery Update (11gR2), as follows,
    select /*+ no_xml_query_rewrite */
      xmlquery('
        copy $d := .
         modify (
            for $i in $d/ROOT/ITEM
            return
              replace node $i with $i/child::node()  
         return $d'
      passing xmltype(
    '<ROOT>
      <ITEM>
        <DESCRIPTION>TEST1</DESCRIPTION>
      </ITEM>
      <ITEM>
        <DESCRIPTION>TEST2</DESCRIPTION>
      </ITEM>
    </ROOT>'
      returning content) XML
    from dual.... which works, but when I try to pass in a path variable, it doesn't.
    select /*+ no_xml_query_rewrite */
      xmlquery('
        copy $d := .
         modify (
            for $i in $d/$Unnestpath
            return
              replace node $i with $i/child::node()  
         return $d'
      passing xmltype(
    '<ROOT>
      <ITEM>
        <DESCRIPTION>TEST1</DESCRIPTION>
      </ITEM>
      <ITEM>
        <DESCRIPTION>TEST2</DESCRIPTION>
      </ITEM>
    </ROOT>'
      'ROWSET/ROW' as "Unnestpath"
      returning content) XML
    from dual
    ORA-19112: error raised during evaluation:
    XVM-01020: [XPTY0020] The path step context item is not a node
    6             replace node $i with $i/child::node()  
    -                                   ^Am I missing something obvious?
    My destination platform is 11gR2 64 bit but going forward I may need a solution for 10gR2 too. Perhaps there is another way without using XQuery Update? Any advice would be greatly appreciated.

    paul zip wrote:
    when I try to pass in a path variable, it doesn't.Yes, paths are not variables, they have to be static. However, you can make the whole query dynamic.
    Another option is XSLT, which will work on both releases, or a combination of extract/updatexml calls.
    SQL> create or replace function UnNest(pXMLData XMLType, pXPath varchar2)
      2  return XMLType
      3  is
      4    result          XMLType;
      5    xsl_template    varchar2(2000) :=
      6    '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      7    <xsl:template match="@*|node()">
      8      <xsl:copy>
      9        <xsl:apply-templates select="@*|node()"/>
    10      </xsl:copy>
    11    </xsl:template>
    12    <xsl:template match="#TARGET_XPATH#">
    13      <xsl:apply-templates select="node()"/>
    14    </xsl:template>
    15  </xsl:stylesheet>';
    16 
    17  begin
    18 
    19    select xmltransform(
    20             pXMLData
    21           , xmlparse(document replace(xsl_template, '#TARGET_XPATH#', pXPath))
    22           )
    23    into result
    24    from dual ;
    25 
    26    return result;
    27 
    28  end;
    29  /
    Function created
    SQL> set long 5000
    SQL>
    SQL> select unnest(
      2  xmltype(
      3  '<ROOT>
      4    <ITEM>
      5      <DESCRIPTION>TEST1</DESCRIPTION>
      6    </ITEM>
      7    <ITEM>
      8      <DESCRIPTION>TEST2</DESCRIPTION>
      9    </ITEM>
    10  </ROOT>'),
    11  '/ROOT/ITEM'
    12  )
    13  from dual;
    UNNEST(XMLTYPE('<ROOT><ITEM><D
    <ROOT>
    <DESCRIPTION>TEST1</DESCRIPTION>
    <DESCRIPTION>TEST2</DESCRIPTION>
    </ROOT>
    Typically when the element only has one child element.If it's a general rule to apply, XSLT can do it very easily on every node that satisfies this condition.
    Edited by: odie_63 on 21 mai 2013 12:38

  • GR/IR expenses not affected with the settlement rule run process in the GL

    <i><b>Please neglect by previous post with the same title</b></i>
    There is a problem I face while running the settlement rule process related to internal orders on the GR/IR expenses.
    According to the internal order settlement rule every expense associated to an Internal order no. whether its an account payable or manual journal accounts it should be settled (distributed) on the cost centers specified in each internal order after the monthly settlement run process is done through T.Code "KO8G", and this actually happens on the entries that are booked manually through T.Code "FB50", but the GR/IR entries is the biggest problem, it didn't reflect the settlement rule distributions in the GL it just gives me the original transaction once its was automatically created through T.Code "MIGO" they are only allocated to a one profit center with no cost center and without being distributed to a multiple cost centers according to the distribution strategy.
    After a long search I found that the cost center distribution occurred only on a secondary none GL account named A&P Settlement (720010), all GR/IR expenses was settled correctly only on this account not through the ordinary GL accounts (e.g. Gifts, printed materials) and of course the correct distribution didn't appear in the GL,
    So is there a transaction or any way to allocate the GR/IR expenses to there correct cost centers with the correct cost element in the GL?
    Is there anything to do with the GR/IR calculation that depends on quantity base not value base?
    <i><b>The Process as follows:</b></i>
    (<b>1) Creating Internal order with a settlement rule (E.g. Cost center 1 (50%) Cost center 2 (50%)</b>
    <b>2) Creating a purchase order associated to an internal order</b>
    <b>3) The Goods received and creating the GR transaction T.Code "MIGO"</b>
    Acc/DR Expenses accounts
    Acc/CR GI/IR Account 400301
    Profit enter ###### (eg. 111177)
    Cost Center <blank>
    Internal order no. ####### (e.g. 9810512)
    <b>
    4) Closing the GR/IR accounts when receiving the invoice T.Code "MIRO"</b>
    <b>When we receive vendor invoice:</b>
    Acc/Dr GI/IR Account 400301
    Acc/Cr Vendor Account
    Profit enter ###### (eg. 111177)
    Cost Center <blank>
    Internal order no. ####### (e.g. 9810512)
    <b>5) Performing the Internal order settlement rule run process</b>
    <b>(N.B.</b> By entering the report of the cost center (Actual/Plan/ Variance) T.Code S_ALR_87013611
    I found that GR/IR expenses was not charged on the concerned cost centers as shown in the GL <b>)</b>
    <b>Your Reply is highly appreciated</b>

    Thanks for your kind reply,
    But is there a way solve this problem?
    And what is the use of leaving a field in the account assignment tab for an internal order while creating a PO and it will not take advantage of the settlement rule????????
    And as you know the internal order settlement is a way to create a multiple account assignment
    Can we solve the problem by making an automatic fake transaction that reverse the value of the GR/IR and creating another transaction can apply on it the settlement rule??
    You know that settlement rule process is one of the best features in the SAP system it save time and effort to make distributions manually

  • I have 2 Apple ids and two corresponding iCloud accounts. My five Apple devices are linked to one or the other. As one consequence a small number of my contacts are associated with one iCloud account, the majority with the other. How can I merge?

    For reasons not entirely clear to me I have ended up with two Apple ids, two iCloud accounts and my Apple devices being associated with one or the other iCloud account/Apple id. One of the complications is that my contacts are partially owned by one iCloud account, partially by the other.
    Is there any way to
    - merge the contacts (I have tried exporting from one and importing into the other but one set will overwrite the other)?
    - migrate all devices to one single iCloud account without being locked out for 3 months?
    - merge Apple ids or just delete one of them without locking out devices?
    Grateful for any suggestions because this is turning into a headache.

    You can merge the contacts from one account with your other one without overwriting them.  Sign into the first account, download them as vCard (iCloud: Export contact information as a vCard), email them to a device signed into the account you want to merge them with, tap the vCard and choose Add..., then Create New Contacts.
    You can also migrate a copy of the data in one account and merge it with the other by signing into the account you are leaving, then signing out (or deleting the account if not running iOS 8), then choosing Keep on My iDevice when prompted.  Then sign into the other account and choose Merge when prompted.  This won't move Notes however.  If you are syncing notes that you want to migrate from the other account, you can temporarily add the account to your Mac as a secondary account by going to System Preferences>Internet Accounts (or Mail,Contacts,Calendars)>Add Account>iCloud and signing in with the other account ID.  Then enable notes syncing in the secondary account.  You will then be able to open the notes app and drag and drop notes from one account to the other.  When you're done, delete the secondary account from your Mac.
    You can't merge IDs as Apple does not allow it.  Also, you won't be locked out of anything for 3 months.  The "90-day switch" rule only applies to changing your iTunes store account, not your iCloud account.  Just leave your iTunes store account as-is.  The ID you use for the iTunes store does not have to be the same as the ID you use for iCloud.

  • Can I use more than one iPod with one computer?

    Howdy,
    I have a (hopefully) quick question. Can I use two iPods with one user account on one computer? Can iTunes keep two different iPods separate with different syncing rules for the same user account and iTunes library? I'm interested in the answer for both Mac and Windows machines.
    Thanks!
    Mikael
    TiBook   Mac OS X (10.4.6)  

    You can use more than on iPod on one computer, and you can also use one iPod on more than one computer. Check out these articles:
    http://docs.info.apple.com/article.html?artnum=300432
    http://docs.info.apple.com/article.html?artnum=61675
    Hope these help you out!
    Best wishes,
    CG

  • I am working in a school.   Last year we had one ipad cart (holding 30 ipads) with one macbook to work with.   This year we purchased a second Ipad cart (another 30 ipads) but not the second macbook.   Can I use this same macbook to sync all 60 ipads?

    I am working in a school.  Last year we had one ipad cart which holds 30 ipads and one macbook for syncing.  This year we bought another cart of 30 ipads, but not an extra macbook.   Can I sync all 60 ipads to the one macbook computer? 

    In theory everything that you are saying sounds right to me.
    I am not sure at all what the limitations are when using the iPad in education as far as how many iPads can sync to one iTunes account. I am going to take a stab in the dark here and guess that you can sync up to 49 iPads with one Mac and one iTunes account since the device that I found has 49 ports. How's that for an obvious guess?
    But seriously, I don't how Apple treats volume licensing with a single iTunes account in education. You were using 30 iPads this past school year so we know that's not a problem. The device that I found has 49 ports so we assume that 49 iPads are OK as well. You would have to check with Apple as to what the limitations/rules arefor using a single iTunes account.
    There has to be a way to sync as many iPads as you have students in those classes or the iPad in education would not be a viable option. What I don't know about is how you go about paying for that volume license or how it is implemented.
    For personal use, you can use up to 10 devices with a single Apple ID/iTunes account. No more than 5 of those devices can be computers.

  • How to bind a single Entity with Odata

    Hi experts,
    just playing around with UI5...short question:
    I have created a WebService in GW, reading user data (using  BAPI_USER_GET_DETAIL).
    Very easy, just for testing.
    No I want to show my own user data on a SAPUI5 page.
    Have created a controller:
    onInit: function() {
    var odataUrl = "/sap/opu/odata/sap/ZXYZ_SRV/";
    var odataUser = "user";
    var odataPass = "password";
    var oModel = new sap.ui.model.odata.ODataModel(odataUrl, false, odataUser, odataPass);
    this.getView().setModel(oModel);
    Okay, this is working
    Now I want to read a single entity with my WebService (this would be the GetEntity one, NOT the GetEntitySet).
    I have created a very simple view, including a MatrixLayout with 2 columns, here I wanto to add a Label and the value of the WebService.
    What I have done:
    var oMatrixPers = new sap.ui.commons.layout.MatrixLayout({
    layoutFixed: false,
    width : "300px",
    columns: 2
    var oLabel = new sap.ui.commons.Label({
    text : "Lastname"
    var oTF = new sap.ui.commons.TextField({
    editable: false,
    }).bindValue("value", "{/own_dataSet(TEST)}");
    oLabel.setLabelFor(oTF);
    oMatrixPers.createRow(oLabel, oTF);
    I'm sure it is an easy question - maybe someone can help?
    Thanks
    Michael

    All right, One more suggestion ,
    var oTF = new sap.ui.commons.TextField({ 
    editable: false, 
    value: "{THE PROPERTY NAME FROM THE ENTITY}"
    oMatrixPers.bindElement('/own_dataSet('TEST')');
    oMatrixPers.setModel(oModel); 
    This will most probably get you the value, if you do not get any other error in the Console

  • Make a router out of a simple notebook with one NIC (buy a second NIC)

    Hello all,
    Before starting, I think I must say hello to you because I'm new here : this is my first post . So, in fact, I'm working with Linux since 5 years. I'm running Gentoo on my workstation and my old server, Ubuntu on my notebook and for family, and finaly, I'm running Red Hat at work place for workstation and servers. I'm a Linux and JBoss administrator .
    I've decided to run/try Arch because it seams to growth with rock-solid ideas and it's a binary distribution. I now prefer a binary distribution for my server, because it's taking too much time to let old computer or notebook compile the whole world (alone or not ...). I prefer now looking around and learn another Linux distribution. This is why I started to install my first Arch Linux : I will try to run a server on a simple notebook. In fact, it's a working machine, but without any graphics capabilities (memory has burned...), and so, perfect for a little server low consumption. I want it to replace my current server/router running Gentoo on an old Pentium 3.
    For now, I've encountered these little problem :
    - LID problem when screen is close : reboot never work (power off just after the BIOS, when the LID state is "screen closed"...) => disable LID connection (unplugged from motherboard)
    - ssh problem => must now use "/etc/hosts.allow" to let remote machine to be connected
    - try routing packet with one NIC => for now, doesn't work ...
    - try to get X11 Forwarding => doesn't work too, but it will works quickly
    My infrastructure is just a server/router splitting in two part for the LAN at home :
    - one part is LAN with all workstations
    - the other part is LAN_router which is another network with only the ADSL router to access internet
    So, its looking like this : <machine1> => <switch> => <[eth1]server/router[eth0]> => <switch> => <router_ADSL> => INTERNET
    All is fine ... with the old machine ... for the new one, it has only one network interface ... The question is : how to do routing with only one NIC ???
    In theory, I "should" work ... but .. some component can have some little hard time to do the right things .. and for me, is not working right now.
    The first try is to use one interface with one IP aliasing, like this :
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:1d:e4:a3:d5:1a brd ff:ff:ff:ff:ff:ff
    inet 10.2.1.8/26 brd 10.2.1.63 scope global eth0
    inet 10.2.1.66/26 brd 10.2.1.127 scope global eth0:0
    inet6 fc80::21a:e2ff:fea3:d56a/64 scope link
    valid_lft forever preferred_lft forever
    Two sub network are used :
    - 10.2.1.0/26
    - 10.2.1.64/26
    I must have 2 ip on one NIC, so aliasing can be used (when testing, the new server/router is able to ping a workstation and the ADSL router ; it can also use internet). I've heart there is some problem with "iptables" to set forwarding rules when using IP Aliasing ... but I prefer try myself . It doesn't work for now, probably because of this. But, is there a way to use a "workaround" ? For example, if "iptables" is not able to play with aliasing, and so, interface such as "eth0:0", may be there is a way to tell it, like this :
    [root@serveurn ~]# iptables-save
    # Generated by iptables-save v1.4.10 on Sun Dec 12 17:30:01 2010
    *nat
    :PREROUTING ACCEPT [0:0]
    :INPUT ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    :POSTROUTING ACCEPT [0:0]
    -A POSTROUTING ! -d 10.2.1.0/26 -o eth0 -j SNAT --to-source 10.2.1.66
    COMMIT
    # Completed on Sun Dec 12 17:30:01 2010
    # Generated by iptables-save v1.4.10 on Sun Dec 12 17:30:01 2010
    *filter
    :INPUT DROP [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [9:932]
    -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A INPUT -i lo -j ACCEPT
    -A INPUT -p icmp -j ACCEPT
    -A INPUT -s 10.2.1.0/26 -p tcp -m tcp --dport 22 -j ACCEPT
    -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
    COMMIT
    # Completed on Sun Dec 12 17:30:01 2010
    ... use the interface "eth0" (for the whole throughput) and do SNAT for all excepted for the LAN network ? But it seams to not work ...
    I got a second idea : if it wan't work with aliasing ... may be can I use virtual interface and bridge ... create a bridge with "eth0" and "tap0" so I can add more than one ip in the machine .. and may be, will be able to route packet from these two interface ???
    But for now, I have to understand why X11 Forwarding don't work ...
    EDIT: xorg problem solved : xorg-auth was requested ...
    Last edited by loopx (2011-01-09 18:08:28)

    fukawi2 wrote:" ...it is dirty and nasty and shouldn't be done unless you're stuck on a deserted island and your only hope of rescue is building a router out of 2 coconuts, a sea shell and a single NIC that was washed up on the beach in the last storm. "
    PRICELESS !!
    @loopx: Honestly: return the USB NIC you just got, buy a compatible device(maybe an asus rt-n16) and install dd-wrt. You'll be a lot happier....
    Last edited by Daniel_F (2011-01-10 00:34:08)

  • Join  a Parent Table with 2 Child table based on a value

    Dear Guru's
    We have a Parent Table and 2 Child table . The Parent Table has a column like seqtype with only 2 possible values C and S . If the Value is C , then the details are available in Child 1 table and if the Value is S then the Details are in Child 2 table
    How can we query the Data from this type of arrangement ? I am little bit confused and hit a road block
    Will the following query will work ?
    Select
    from Parent P , Child C1, Child C2
    where P.seqtype = C1.Seqtype
    and P.seqtype = C2.Seqtype
    With Warm Regards
    ssr

    You didn't mention the column names in two child tables. Whether the columns are same in 2 tables of these are different.
    If the columns are same better to go and change your design to have only one child table. However if stiil business stops you having one table you can use UNION ALL (Assuming you want to fetch same column information from two child tables) like below:
    SELECT p.col1
          ,c1.col2
          ,c1.col3
          ,c1.col4
      FROM parent     p
          ,child      c1
    WHERE p.seqtype = c1.seqtype
    UNION ALL
    SELECT p.col1
          ,c2.col2
          ,c2.col3
          ,c2.col4
      FROM parent     p
          ,child      c2
    WHERE p.seqtype = c2.seqtype Regards
    Arun

Maybe you are looking for

  • Creative cloud app: Installing update: stuck at 2% Message "trying to connect to server"

    I've flushed all my browsers cache, Uninstalled the app and re-installed it, cleaned the hosts, checked every single thread available with the same problem... none are solved. web-fonts won't sync until the update happens so I cant really work.  This

  • Office 2013 compatibility with BootCamp

    Hi, I am fairly new to the community.  I recently purchased a IMAC and I have the capability of downloading either the compatible Office 2011 for MAC or Office 2013 and then I guess using Bootcamp to run on my IMAC.  I also want to purchase the Offic

  • Photoshop Album SE 3.0: An eMail anhängen

    Die oben beschriebene Funktion führt bei mir zur Microsoft Outlook-Meldung: "Der Vorgang konnte wegen Netz- oder Kommunikationsproblemen nicht ausgeführt werden ..." Danach bricht die Funktion ab. Wer weiß Rat ? Danke !

  • Improve performance select in parameterized cursor.

    DECLARE CURSOR cur_inv_bal_ship_from( l_num_qty_multiplier gfstmr4_eop_transaction_type. inventory_multiplier_num%TYPE, l_str_inventory_type gfstmr9_eop_txn_rule.inventory_type_code%TYPE, l_str_type_code gfstmr9_eop_txn_rule.txn_type_code%TYPE)IS SEL

  • Please restart InDesign-Return to Finder

    Process:         Adobe InDesign CS6 [3579] Path:            /Applications/Adobe InDesign CS6/Adobe InDesign CS6.app/Contents/MacOS/Adobe InDesign CS6 Identifier:      com.adobe.InDesign Version:         8.0.1.406 (8010) Code Type:       X86 (Native)