uniqueness of the value of the attribute on the multiple database

Hello

I ODSEE 11.1.1.7.2 on SLES platform version. My question is, I have two suffixes on another database on the same instance

suffix: or = Org1, o = domain.com-> userRoot_Org1 (name of the comic)

suffix: or = Org2, o = domain.com-> userRoot_Org2 (db name)

I want to have a unique value for the attribute 'o' between these two suffixes. I created the following plugin but does not work... someone can help me?

DN: cn = clientID uniqueness, cn = plugins, cn = config

objectClass: top

objectClass: nsSlapdPlugin

objectClass: ds-signedPlugin

objectClass: extensibleObject

CN: unique clientID

nsslapd-pluginPath: /opt/dsee7/lib/uid-plugin.so

nsslapd-pluginInitfunc: NSUniqueAttr_Init

nsslapd-pluginType: preoperative

nsslapd-pluginarg0: o

nsslapd-plugin-depends-on-type: database

nsslapd-pluginarg1: suffix = "or = Org1, o = domain.com" \ ", = domain.com" ", = Org2, o = Org2, o is domain.com", "o = domain.com'

nsslapd-pluginEnabled: on

entryDN: cn = clientid uniqueness, cn = plugins, cn = config

nsslapd-pluginId: NSUniqueAttr

nsslapd-pluginVersion: 11.1.1.7.2

nsslapd-pluginVendor: Oracle Corporation

nsslapd-pluginDescription: enforce unique attribute values

also tried the below...

nsslapd-pluginarg1: or = Org1, o = domain.com

nsslapd-pluginarg2: or = Org2, o = domain.com

Hello

Have you created this configuration manually in the directory configuration file?
To avoid unnecessary attempts to specify plugin args, I would recommend using dsconf to configure the plugin as described in the https://docs.oracle.com/cd/E20295_01/html/821-1220/bcayb.html#scrolltoc

Sylvain

Please mark this answer as correct or helpful, when it is appropriate to make it easier for others to find

Tags: Fusion Middleware

Similar Questions

  • Ask the multiple database

    Hi all
    I have two databases A and B.
    I work in A database but want to retrieve a record from a table that is in the database of B.
    I am using a select query as

    Select max (end_dt) in Journal

    This journal is in database B

    Please give any suggestions.

    Thank you

    create a link of database on one of the database to bind to the b database:

    CREATE DATABASE LINK DB_B
       CONNECT TO scott IDENTIFIED BY tiger
       USING 'Bl';
    

    Then on A, you can query the table of the newspaper on B:

    SELECT max(end_dt) FROM log@DB_B;
    

    The user who creates the database on one link has the privilege of CREATE DATABASE LINK system.

    grant CREATE DATABASE LINK to userOnA.

  • Unique to the multiple SSID and possible access point single channel?

    Hello world.

    I have a silly question.

    Let say, we have three VLAN, vlan1, 2, 3 and they are mapped to the following wireless LANs:

    VLAN 1 ssid1

    VLAN 2 ssid2

    Vlan3 ssid 3

    AP - trunk - dagprogramm network.

    Our access point has mobile devices in three local wireless networks, IE ssid1ssid2 and ssid3

    Since the mode AP use half duplex, mobile devices need acknowledgement positive to ap they can send data, so once channel let channel 3 (assuming that 802. 11b is used) can be shared by all the devices in three local wireless networks.

    My understanding is correct?

    Thanks and a great weekend.

    An access point = an associated action related channel and each ssid and the customer that one channel and the AP is essentially as a hub

    concerning

    Joe

  • anchor tag unique to the multiple links on a page

    to makes things easy, I wanted to know how the arrow down on this site. Cyclemon / experience of the... It is a single anchor tag pinned down. It is just move to the bottom of 1 article to another. I have no idea how to do that and I'd like someone to teach me. Thank you.

    I was going by the code that has been on this page. The problem you would have with the implementation with Muse in this way is that the code directly references the name of the div on the page. Muse names arbitrarily its containers, so you should publish the page and note the names he gives them before that you could write code to do it.

    Is there a reason that you should do this instead of the standard anchor method?

  • [ADF, JDev12.1.3] How to set the value of an attribute of VO 'max (attribute) + 1' when creating a new record?

    Hallo,

    I have a VO that selects records from a table databace where FkId = < value >.

    For example: this is the database table...

    ID RowDetNumber OtherFields FkId

    1   3     1            ...

    2   3     2            ...

    3   3     3            ...

    4   3     4            ...

    5   4     1            ...         |

    6   4     2            ...         | -VO selects these records (where FkId = 4 for example)

    7   4     3            ...         |

    8   5     1            ...

    9   5     2            ...

    When a new record is created the field RowDetNumber must be calculated with the logic of the max (RowDetNumber) + 1.

    So for the example above, the calculated value should be 3 + 1 = 4.

    I would like to know how I can calculate the value and assign to the RowDetNumber attribute.

    I did some experiments using a Groovy expression as a default value for the field, but I got only errors.

    I'm a bit confused on how I can do so a few details / examples / tips are welcome

    In particular, a small example for every possible approach would be happy.

    Thank you

    Federico

    Federico, the solution mentioned in the block will work as it only generates unique numbers without guarantee that the generated numbers are without flaw. However, if you want to use max + 1 this normally means you want to have a sequence without gap. It is very very complicated in nature. It doesn't matter what application you're trying, there is almost always room for error, ending with duplicate numbers.

    The trigger also works as the DB supports triggers on MS SQL.

    If you don't need a number of gap-less for the attribute, you can use the groovy solution and just get a number of a sequence is is guaranteed unique and greater value, like the last number that you asked of the sequence. In this way, you can have the sorted records

    ID RowDetNumber OtherFields FkId

    1  3    1            ...

    2  3    7            ...

    3  3    9            ...

    4  3    10            ...

    5  4    3            ...        |

    6  4    5            ...        | -VO selects these records (where FkId = 4 for example)

    7  4    12            ...        |

    8  5    4            ...

    9  5    6            ...

    Timo

  • Cannot change the value of an attribute

    I'm having a lot of trouble trying to change the value of an attribute in a document in my database. I get the error message:
    Transaction specified for a non-transactional database
    Nov 26, 2008 9:35:02 AM com.kitfox.db.BaseLocal processRequest
    SEVERE: null
    com.sleepycat.dbxml.XmlException: Error: Invalid argument, errcode = DATABASE_ERROR
            at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
            at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:89)
    However, the database is configured to perform operations:
            try {
                EnvironmentConfig config = new EnvironmentConfig();
                config.setAllowCreate(createIfAbsent);
                config.setInitializeLocking(true);
                config.setInitializeLogging(true);
                config.setInitializeCache(true);
                config.setTransactional(true);
                config.setRunRecovery(true);
                config.setThreaded(true);
                //config.setLockDetectMode(LockDetectMode.DEFAULT);
    
                env = new Environment(home, config);
    
                XmlManagerConfig managerConfig = new XmlManagerConfig();
                managerConfig.setAllowAutoOpen(true);
                managerConfig.setAdoptEnvironment(true);
                managerConfig.setAllowExternalAccess(true);
                manager = new XmlManager(env, managerConfig);
    
                manager.setDefaultContainerType(XmlContainer.NodeContainer);
                
                manager.registerResolver(resolver);
    
                if (manager.existsContainer(CONTAINER_NAME) == 0) {
                    container = manager.createContainer(CONTAINER_NAME);
    
                    //Add index
                    {
                        XmlIndexSpecification is = container.getIndexSpecification();
                        is.addIndex(GAMEBASE_NS, "uid", "node-element-presence-none unique-edge-attribute-equality-decimal");
                        is.addIndex(GAMEBASE_NS, "name", "node-element-presence-none edge-attribute-equality-string");
    
                        XmlUpdateContext uc = manager.createUpdateContext();
                        container.setIndexSpecification(is, uc);
                        is.delete();
                    }
                    
                    //Initial document
                    {
                        InputStream is = null;
                        XmlInputStream xin = null;
                        URL initXml = getClass().getResource("/com/kitfox/db/dbInit.xml");
                        is = initXml.openStream();
    
                        xin = manager.createInputStream(is);
    
                        container.putDocument(DOCUMENT_NAME, xin);
                        xin.delete();
                    }
    
                } else {
                    container = manager.openContainer(CONTAINER_NAME);
                }
    While I am able to update my document by running insert or remove instructions independently, they fail:
        let $dir := $repository//gb:directory[@gb:uid=$cmd/@uid]
        return
            replace value of node $dir/@gb:name with "blorp"
    
        let $dir := $repository//gb:directory[@gb:uid=$cmd/@uid]
        return
            (delete node $dir/@gb:name,
            insert node (attribute gb:name {"bigbird"}) into $dir)
    Any idea what goes wrong? How can I change my attribute value?

    Published by: kitfox on November 26, 2008 09:48

    The problem is that even if your environment is configured to use transactions, your container is not. Set up for using transactions is a process in two steps, first of all, you must set up the environment that you did, then you must configure each container in the environment, what you can do as follows:

    XmlContainerConfig config = new XmlContainerConfig();
    config.setTransactional(true);
    container = manager.createContainer(CONTAINER_NAME, config);
    

    The same steps are used to open the container.

    Lauren Foutz

  • The value "en - 029" attribute "language" in the "assemblyIdentity" element is invalid.

    Hello

    For one of our localization project we added support for the English locale Caribbean(en-029) in our windows desktop application. Deploy us this application using click once. But after adding of these resource files click once deployment manifest, we get the following error when launching the application

    Activation context generation failed for "C:\Users\dmoghe\AppData\Local\Apps\2.0\7L743ZTV. "DLK\JGMO494T.40E\onli... tion_c8ea7f7184136a36_000e.0001_4b5ae982e9ff8201\OnlineAVL2.exe.manifest". Error in manifest or policy file "C:\Users\dmoghe\AppData\Local\Apps\2.0\7L743ZTV. "DLK\JGMO494T.40E\onli... tion_c8ea7f7184136a36_000e.0001_4b5ae982e9ff8201\OnlineAVL2.exe.manifest" line 395. The value "en - 029" attribute "language" in the "assemblyIdentity" element is invalid.

    Does the click once activation framework supports en-029 as an attribute to an assembly language or should I use another language?

    We are using .NET framework 2.0

    Please let me know.

    Hi Darshan,

    Thanks for posting your query in Microsoft Community Forum. However, the question you posted would be better suited in the TechNet Forums.

    I would recommend posting your query in the TechNet Forums :

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Thank you.

  • What is the best way to set a default value on an attribute that is dependent on a query?

    Hello master,

    I use Jdev 12.1.2. I have a project requirement where I have to set a default value for an attribute. The default value is derived from an SQL query.  I was intending to set the value of the Create method of the entity using VO class. But I preferred to have an opinion on if I do best.  Please advise

    Thank you and best regards,

    Mohamed

    It is a logical place, so just go ahead with this...

  • How to automatically complete a transitional according to the value of another attribute when attribute line is questioned in the VO?

    Hello world

    The task seems simple enough, but I have not found a way to populate an attribute transitional according to the value of another attribute when the line is queried. What is the best way to achieve this?

    Thank you.

    James

    Use VORowImpl, if you have any transient attributes defined in the view object, whose value is derived from other attributes of the line, you can override the GET method and add logic there

    Please note that this class represents a row in the results collection in a display object.

  • Can declaratively set the value of some attributes depend on an attribute in a row of VO?

    Hi, experts.

    In jdev 11.1.2.3,.

    Can declaratively set the value of some attributes depend on an attribute in a row of VO?

    For example, there is a VO (id, salt boolean, integer status, entire IsValid), how to set status=-1,IsValid=-1 when salt is checked (selected)?

    I tried:

    Method A:

    1 set the status depends on saltand the default attribute value:

    If (salt is true)

    Returns - 1

    on the other

    {

    If (salt is false)

    Returns 0

    on the other

    Returns a null value

    }

    2. set IsValid dependent statusand attributes by default as: status.

    3. set all of these three attributes can be changed to always.

    If the parameter above may work, then apparently it's much simpler to write Java code.

    Unfortunately, he is unable to work the way you want.

    There is some complex another declaratively to do:

    Method B:

    1. create a selVO (id, booleanValue1 boolean, integer numberValue1, string stringValue1) with static values:

    (1, false, 0, "" false for salt: not selected ' ");

    (2, true,-1, "" the true value of salt: selected ' ");

    2. put selVO as Data Source list for the list of the salt value and return values from the list:

    Salt-> booleanValue1,

    Status-> numberValue1,

    IsValid-> numberValue1.

    But this alternative way has a few weaks a fortiori more complex:

    Advice from the interface user of salt can not defined by default list Type "CheckBox".

    Cannot, therefore, method A feasible?


    Thank you!

    BAO

    Hello Bao,

    You can write THE Expression value of Field2

    #{bindings. Field1.inputValue == 'Y '? 1:-1}

    (Auto submit True on Field1

    Field1 Field2 on partial trigger)

    Also, you can write logic in VORowimpl Set accessor methods.

    Thank you

    Jeet

  • How to get previous value of an attribute in the VOImpl file?

    Hi all
    I want to compare if the current value of the attribute VO A1 is equal to the previous value of the A1 when the value of this attribute A1 gets changed, how to get the previous value of the A1?
    I know that in the VORowImpl file I can use this.getA1 () which returns me the current value of the A1, but I don't know how me may return the previous value?

    Appreciate your help in advance!
    Thank you
    Yvette

    getPostedAttribute the value of the attribute as it was queried from the database.
    Here is an example written in EmployeesImpl

        /**
         * Sets value as the attribute value for Salary.
         * @param value value to set the Salary
         */
        public void setSalary(BigDecimal value) {
            Object attribute = getPostedAttribute((EmployeesImpl.SALARY));
            if(attribute!=null)
                System.out.println("Attribite value " + attribute); //this will give you the value as it was in the data base before you modified it.
            else
                System.out.println("attribute value is null");
            setAttributeInternal(SALARY, value);
        }
    
  • Retrieve the attributes of table of database source Java webservice API

    Hello

    I have a source of data, with all the columns of mandatoru and the additional columns. I can search these columns, and they are listed in the source database "attribute Mapping" tab.

    When I try to get these columns/attributes of Web services Java API ResultElement, I don't have access to them, apparently. I try with the getCustumAttributes(), but it is empty. I also tried mapping of these attributes to something else, but the "Mapping of attributes" tab always reset my selections.

    How to read the values of these columns in the result of my search?

    Thank you
    Søren

    Hi Soren,

    When you use the Java API, you must indicate ITS what personalized search attributes you want to return. This is done by an fetchAttribute array [integer] ID's discover the Java API in OracleSearchService.doOracleSearch.

    Once you add your list to your appeal request, ITS them will return in the resulting XML. I think that the reason that its does not automatically return all custom attributes is to improve performance. Need to return the query more than you need.

    I hope this helps.

    Best regards

    -Stephen

  • Is it possible to connect Win 8, 8.1 language unique to the domain server.

    Original title - Win 8, 8.1 single language...

    Dear team

    It is possible to connect the victory 8, 8.1 language unique to the domain server or not.

    If so please share me the details for the same thing...

    Hi Arnaud,.

    Thanks for posting your question in the Microsoft Community Forums.

    A domain is a group of the PC network that share a common database and security policy. Computers can be on different LANs. A COMPUTER administrator runs the estate as a unit with rules and common procedures. One or several PCs on a domain's servers. Control of security servers and permissions for all computers on the domain. This makes it easier for an admin, IT changes because the changes are automatically made to all PC.

    Windows Pro 8 and 8.1 of Windows Pro allows you to join a domain so that you can connect to your company or school network. PC running Windows 8.1 or 8.1 RT Windows cannot join a domain.

    Domain users must provide a password or other information of connection whenever they have access to the field.

    If you have a user account on a domain, you can connect to any PC on the field without needing an account on this PC. You can probably make only changes limited to a PC settings because IT admins often want to keep network PC compatible.

    Feel free to post your request here on the Forums of Windows, we would be happy to help you.

  • Two columns must be UNIQUE if the second is not NULL.

    Two columns must be UNIQUE if the second is not NULL. If the second is NULL, the first has no need to be UNIQUE.

    CREATE TABLE Moo
    (
    Prima        INT PRIMARY KEY,
    Secunda    INT NOT NULL,
    Tertia        VARCHAR2(1)
    );
    
    CREATE UNIQUE INDEX Cow ON Moo(Secunda, NVL(Tertia, TO_CHAR(Prima)));
    
    INSERT INTO Moo(Prima, Secunda, Tertia)
    SELECT 1, 1, NULL FROM Dual UNION ALL
    SELECT 2, 1, NULL FROM Dual;
    
    DROP TABLE Moo;
    
    

    Is there another way to do it?

    Added 'SINGLE '.

    I had a little trouble at matches your description to your example, but if you want to apply the uniqueness on (secunda, tertia) only for lines where tertia is not null, then the following should work:

    create an index unique xxx on moo)

    cases when is not null, then end of secunda, tertia

    Tertia

    );

    Concerning

    Jonathan Lewis

    P.S. When do a quick test of the best way to define this index, I found what seems to be a bug in 11.2.0.4 (and maybe other versions) with the expression:

    Tertia case if no then cast (null as an int) to another end secunda

    Update: now blog at: Easy & #8211; Oops. | Notebook of the Oracle

  • How to find this value in the oracle database to find out the table

    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    918440 wrote:
    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    Go to the online documentation and discover the data dictionary. You may be interested in reading about ALL_TAB_COLUMNS, but you will need to know what you want until you can query the view to find information

Maybe you are looking for

  • Tecra 8200: How to get the WPA encryption?

    How can I get wpa running on my tecra 8200. I installed Windows XP SP2, but it still doesn't work. Where can I download an update of the firmware of WLAN card because it's my last hope...

  • Ping local IP devices

    Is it possible to Ping connected local IP addresses on different VLANS / subnets connected to the LAN, for example (192.168.0.5) ports, since the Web Interface of FVS336Gv2 when you're connected remotely? This would be very useful to try to solve the

  • HP Envy 5530: Question of scanning

    Hi there when I try to scan the overview screen appears correct, but when the scan sends to the computer, I'm not receving the whole scan and all I get is the header of the page and its very big I get 3 images with three different headers. Ive scanne

  • Generate digital waveforms of high frequency

    Hi all I have some problems. Today, I am generating several digital high frequency waves with my DAQ (PCI-6251) card. The duty cycle of the waveform must be adjustable. The required frequency is 100 kHz. To do this, I have tried several solutions: (1

  • Continuity of the functions of the basic function generator

    I would use the basic function generator to create a continuous waveform. im not sure if Im not run or use the function generator correctly. for each iternation of the while loop, I would like to only one point of the exit sinusoid. Then the next ite