How to support non-equality-join?

Give a special key, I can get a special value.
But if I want to get many key/value pairs in a range, for instance,
SELECT key, value
FROM my_table
WHERE value BETWEEN begin_v AND end_v,
How does BDB help get the result? Does Cursor support this function?
Thank you.
Shuanghua

Hi Shuanghua,
Dbc::get: http://www.oracle.com/technology/documentation/berkeley-db/db/api_cxx/frame.html
The Dbc::get method retrieves key/data pairs from the database. The address and length of the key are returned in the object to which key refers (except for the case of the DB_SET flag, in which the key object is unchanged), and the address and length of the data are returned in the object to which data refers.
DB_GET_BOTH_RANGE
The DB_GET_BOTH_RANGE flag is identical to the DB_GET_BOTH flag, except that, in the case of any database supporting sorted duplicate sets, the returned key/data pair is the smallest data item greater than or equal to the specified data item (as determined by the comparison function), permitting partial matches and range searches in duplicate data sets.
DB_SET_RANGE
The DB_SET_RANGE flag is identical to the DB_SET flag, except that in the case of the Btree access method, the key is returned as well as the data item and the returned key/data pair is the smallest key greater than or equal to the specified key (as determined by the Btree comparison function), permitting partial key matches and range searches.
Db::key_range: http://www.oracle.com/technology/documentation/berkeley-db/db/api_cxx/db_key_range.html
The Db::key_range method returns an estimate of the proportion of keys that are less than, equal to, and greater than the specified key.
Bulk Retrieval API: http://www.oracle.com/technology/documentation/berkeley-db/db/api_cxx/frame.html
All instances of the bulk retrieval classes may be used only once, and to traverse the bulk retrieval buffer in the forward direction only. However, they are nondestructive, so multiple iterators can be instantiated and used on the same returned data Dbt.
I think that using those you can achieve the behavior mentioned above.
Regards,
Bogdan Coman, Oracle

Similar Messages

  • How to support non alphanumeric characters when using WORLD_LEXER?

    BASIC_LEXER has an attribute of printjoins which we can specify the non alphanumberic characters as normal alphanumberic in query and included with the token. However, WORLD_LEXER doesn't have this attribute. So in order to use some non alphanumberic characters and treat them as alphanumberic characters in Oracle Text Index, such as ><$, what should I can?
    Thanks in advance for any help.

    I use WORLD_LEXER to create Oracle Text Index to support UTF-8.
    Below is the script to create table and index:
    REM Create table
    CREATE TABLE my_test
    ( id VARCHAR2(32 BYTE) NOT NULL,
    code VARCHAR2(100 BYTE) NOT NULL,
         CONSTRAINT "my_test_pk" PRIMARY KEY ("id"));
    REM create index
    exec ctx_ddl.create_preference('stars_lexer','WORLD_LEXER');
    exec ctx_ddl.create_preference('stars_wordlist', 'BASIC_WORDLIST');
    exec ctx_ddl.set_attribute('stars_wordlist','substring_index','TRUE');
    exec ctx_ddl.set_attribute('stars_wordlist','PREFIX_INDEX','TRUE');
    -- create index for Table corrosion level
    CREATE INDEX my_test_index
    ON my_test(code)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('LEXER stars_lexer STOPLIST stars_stop WORDLIST stars_wordlist SYNC(EVERY "SYSDATE+5/1440") TRANSACTIONAL');
    INSERT INTO my_test('1', 'English word1');
    INSERT INTO my_test('2', '违违');
    INSERT INTO my_test('3', '违违&^|违违');
    When I query:
    select * from corrosion_levels r where contains(r.CORROSION_LEVEL, '{%违${|违%}') > 0
    ID CODE
    3 违违$(|违违
    2 违违
    Actually, the result what I want is: 3 违违$(|违违
    So the requirement is that all non-alphanumeric characters should be treated as normal alphanumeric charcters. Please tell me how to implement it.

  • Equal Join and Outer Join in OBIEE

    Hello expert,
    I think the default join in OBIEE is Outer Join. So no matter what join conditions that I specify on the physical layer, the result that I get in the presentation layer is still outer join.
    How to specify the equal join or inner join in Business and Logical layer?

    Hello,
    Thank you for your reply. However it does not work. I got the following message:
    [nQSError: 32005] The object "Fact - Fruit" bc if type 'LOGICAL TABLE SOURCE': is missing a foreign key or a complex join in the join graph.
    The situation that I have is:
    Fact table: "Fact - Fruit"
    List of value table (look up table): "dim_list_of_values"
    I am only interested in the type in the "dim_list_of_values" table where equals to "Apple". So I only want to join the "Fact - Fruit" and "dim_list_of_values" with those records with "Apple" type.
    It sounds to me that I am unable to define a freign key.

  • How Can We Tune the Joins with "OR" Caluse ?

    Hi
    We've identified one Query in one of Our PL/SQL Stored Procedure which is taking huge time to fetch the records. I have simulated the problem as shown below. The problem Is, How can i tune the Jions with "OR" Clause. i have tried replacing them with Exists Caluse, But the Performance was not much was expected.
    CREATE TABLE TEST
    (ID NUMBER VDATE DATE );
    BEGIN
      FOR i IN 1 .. 100000 LOOP
        INSERT INTO TEST
        VALUES
          (i, TO_DATE(TRUNC(DBMS_RANDOM.VALUE(2452641, 2452641 + 364)), 'J'));
        IF MOD(i, 1000) = 0 THEN
          COMMIT;
        END IF;
      END LOOP;
    END;
    CREATE TABLE RTEST1 ( ID NUMBER, VMONTH NUMBER );
    INSERT INTO RTEST1
    SELECT ID, TO_NUMBER(TO_CHAR(VDATE,'MM'))
    FROM TEST ;
    CREATE TABLE RTEST2 ( ID NUMBER, VMONTH NUMBER );
    INSERT INTO RTEST2
    SELECT ID, TO_NUMBER(TO_CHAR(VDATE,'MM'))
    FROM TEST;
    CREATE INDEX RTEST1_IDX2 ON RTEST1(VMONTH)
    CREATE INDEX RTEST2_IDX1 ON RTEST2(VMONTH)
    ALTER TABLE RTEST1 ADD CONSTRAINT RTEST1_PK  PRIMARY KEY (ID)
    ALTER TABLE RTEST2 ADD CONSTRAINT RTEST2_PK  PRIMARY KEY (ID)
    SELECT A.ID, B.VMONTH
    FROM RTEST1 A , RTEST2 B
    WHERE A.ID = B.ID  
    AND ( (A.ID = B.VMONTH) OR ( B.ID = A.VMONTH ) )  
    BEGIN
    DBMS_STATS.gather_table_stats(ownname => 'PHASE30DEV',tabname => 'RTEST1');  
    DBMS_STATS.gather_table_stats(ownname => 'PHASE30DEV',tabname => 'RTEST2');
    DBMS_STATS.gather_index_stats(ownname => 'PHASE30DEV',indname => 'RTEST1_IDX1');
    DBMS_STATS.gather_index_stats(ownname => 'PHASE30DEV',indname => 'RTEST2_IDX2');
    DBMS_STATS.gather_index_stats(ownname => 'PHASE30DEV',indname => 'RTEST1_IDX2');
    DBMS_STATS.gather_index_stats(ownname => 'PHASE30DEV',indname => 'RTEST2_IDX1');
    END; Pls suggest !!!!!!! How can I tune the Joins with "OR" Clause.
    Regards
    RJ

    I don't like it, but you could use a hint:
    SQL>r
      1  SELECT A.ID, B.VMONTH
      2  FROM RTEST1 A , RTEST2 B
      3  WHERE A.ID = B.ID
      4* AND ( (A.ID = B.VMONTH) OR ( B.ID = A.VMONTH ) )
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=94 Card=2 Bytes=28)
       1    0   TABLE ACCESS (BY INDEX ROWID) OF 'RTEST2' (Cost=94 Card=1 Bytes=7)
       2    1     NESTED LOOPS (Cost=94 Card=2 Bytes=28)
       3    2       TABLE ACCESS (FULL) OF 'RTEST1' (Cost=20 Card=100000 Bytes=700000)
       4    2       BITMAP CONVERSION (TO ROWIDS)
       5    4         BITMAP AND
       6    5           BITMAP CONVERSION (FROM ROWIDS)
       7    6             INDEX (RANGE SCAN) OF 'RTEST2_PK' (UNIQUE)
       8    5           BITMAP OR
       9    8             BITMAP CONVERSION (FROM ROWIDS)
      10    9               INDEX (RANGE SCAN) OF 'RTEST2_IDX1' (NON-UNIQUE)
      11    8             BITMAP CONVERSION (FROM ROWIDS)
      12   11               INDEX (RANGE SCAN) OF 'RTEST2_PK' (UNIQUE)
    Statistics
              0  recursive calls
              0  db block gets
         300332  consistent gets
              0  physical reads
              0  redo size
            252  bytes sent via SQL*Net to client
            235  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              2  rows processed
    SQL>SELECT /*+ ordered use_hash(b) */ A.ID, B.VMONTH
      2    FROM RTEST1 A, RTEST2 B
      3   WHERE A.ID = B.ID  AND(A.ID = B.VMONTH OR B.ID = A.VMONTH)
      4  ;
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=175 Card=2 Bytes=28)
       1    0   HASH JOIN (Cost=175 Card=2 Bytes=28)
       2    1     TABLE ACCESS (FULL) OF 'RTEST1' (Cost=20 Card=100000 Bytes=700000)
       3    1     TABLE ACCESS (FULL) OF 'RTEST2' (Cost=20 Card=100000 Bytes=700000)
    Statistics
              9  recursive calls
              0  db block gets
            256  consistent gets
            156  physical reads
              0  redo size
            252  bytes sent via SQL*Net to client
            235  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              2  rows processed

  • How apple support my iphone who ever my serial is replaced and  how i know my iphone is refurbished  ??

    Hi everyone! I have iphone 4s, which was my friends bought it from canada appstore about 1 month before and has serial number DQ*******TDD and IMEI ****. When i try to check warranty on the page https://selfsolve.apple.com/wcResults.do i see
    We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us.
    And if i try to enter IMEI here i see
    Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us.
    Does it means, that I was bought a non exist iPhone? Or it was refurbished? I need an official answer to take them to seller because I was bought iPhone as a new.
    How I know my iphone is  refurbished?
    Thank you.
    answers that i folow up and find are :
    - Did you purchase the device from Apple or an authorized reseller? If not, then you were scammed.
    - It means you bought a gray market phone that was replaced, reported lost, or reported stolen, then re-sold illegally. It has no warranty and Apple will not service it with an out of warranty replacement.
    - If your phone was replaced, it was most likely refurbished.
    - You cannot tell the difference between a refurbished phone and a new one.
    - check your serial number if its starts with 5K then its refurbished model
    Not true. All it does is identify it as 'service stock'. It may be refurbised, or it may be new. There is no way for you, or even someone at an Apple Store, to tell the difference.
    6 - You bought a phone that was stolen, lost, or taken in for repair and then re-sold illegally. get your money back if you can.
                 If there is ever a hardware problem that requires service, you will most likely not be able to get it serviced or replaced by Apple.
    7- During the refurbishment process the devices are assigned a new serial number.
    8- This means that your iPhone was replaced by Apple and you entered the serial number for your old iPhone which was replaced.
    9- That means that particular phone has been replaced under warranty. Where did you get the phone from? If it was used, the previous owner may have had it replaced and not returned it to Apple as they were supposed to and sold it.
    10-  Interpreting what you postd, it would seem you had the device replaced at some earlier stage.  Apple doesn't repair but instead replaces the whole unit with a refurbished unit which has its own serial number. Whatever the case, you will have to see Apple about the matter.
    11-  white box (new) or a brown box (refurb)
    now my questions :
    how i know my iphone is refurbished and how apple support my iphone who ever my serial is replaced ??

    How can I know my device is refurbished or new one??Can I check my device is refurbished or new with serial number?

  • Change default key size on non Domain joined CA.

    Hello,
    I have one standalone non domain joined CA I would like to change the default key size of all issued certs to 2048.  Since it is a stand along, there are no AD template to modify.  Can this be changed in the registry?
    Shawn

    CAPolicy.inf is the way to go.
    See the following thread
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/ce001d8f-c722-4429-83cb-328b92876292/how-to-change-root-certificate-keys-length-and-validity-period?forum=winserversecurity
    Hth, Anders Janson Enfo Zipper

  • Does Active Directory Support Non English Languages?

    Hi,
    I want to know that does Active Directory Support Non English Languages like japanes, Arabian?
    I think we can have domain name in non english languages also. How active directory handles it.
    Sandeep Gupta

    This actually isn't controlled by Active Directory but by the core operating system and its language packs.
    Server 2012
    http://www.microsoft.com/oem/en/installation/downloads/Pages/Windows-Server-2012-Language-Packs.aspx?mtag=TW-P-S12#fbid=CPJWmInHH14
    Server 2008 R2
    http://www.microsoft.com/en-us/download/details.aspx?id=1246
    Server 2008
    http://www.microsoft.com/en-us/download/details.aspx?id=22681
    Paul Bergson
    MVP - Directory Services MCITP: Enterprise Administrator
    MCTS, MCT, MCSE, MCSA, Security, BS CSci
    2012, 2008, Vista, 2003, 2000 (Early Achiever), NT4
    Twitter @pbbergs
    http://blogs.dirteam.com/blogs/paulbergson < br> Please no e-mails, any questions should be posted in the NewsGroup. This posting is provided AS IS with no warranties, and confers no rights.

  • Trying to install KB3035025 to allow Non-workplace join machines use the UpdatePassword ADFS end point Error the update is not applicable to your computer

    I put the hotfix on our ADFS Server (2012 R2) and tried to install it and received this:
    I made sure all the prerequisites were installed - they are.
    Any ideas?

    I did some digging and the version of Microsoft.IdentityServer.Service.dll is version 6.3.9600.17720 
    This is higher than what is in this hot fix and I guess is related to this update: https://support.microsoft.com/en-us/kb/3045711
    In ADFS when I try an change the password for a non-workplace join computer I get a complexity error but I know for sure the password meets the domain complexity requirements.
    Thanks in advance!
    Jon

  • How to Export Non-Administrators Local GPO for import on a different PC

    How to export Non-Administrators Local Group Policy and import on another PC?
    All articles for exporting local GPO say to copy the C:\Windows\System32\GroupPolicy and C:\Windows\System32\GroupPolicyUsers folder to another PC however that only works for changes done to the "Local Computer" or "User" (if you
    alter the SIDs to match), respectively. It doesn't work to import Non-Admin Local GPO.
    There are several requests for this you can find when searching and no solutions provided.

    Hi,
    For manage local GPO, we could take use of the LocalGPO tool included in the SCM.
    LocalGPO allows you to manage the local group policy objects (LGPO) on non-domain joined computers. You can use LocalGPO to backup the LGPO from a stand-alone machine. You can also use it to apply the settings from a GPO backup to other computers, this includes
    GPO backups created by LocalGPO, SCM, or the Active Directory Domain Services GPO backups created with the Group Policy Management Console.
    Here is a good article talking about it:
    SCM v2 Beta: LocalGPO Rocks!
    And here is a thread for reference:
    Using LocalGPO.wsf for standalone PC's
    Best regards
    Michael Shao
    TechNet Community Support

  • Create a certificate for non domain-joined PCs

    We have a standard AD domain wit a CA and SharePoint/Exchange servers, hosted internally and externally with TMG 2010 as our firewall. For the external hosting, we have an external certificate from one of the main certificate providers. Internally, our domain-joined
    PCs look to the CA to get their trusted certificate from.
    This is the issue I am encountering:
    Our external users (the ones whose PC is not joined to our domain) are fine when they access our SharePoint and Exchange services externally.
    However, when they are connected via VPN, they receive a certificate error and when I look in Certificate > Certification path, I can see that it says:
    "DOMAIN NAME" Issuing CA1 > "NAME OF SHAREPOINT WEBSITE".
    When such a PC connects to the same website when NOT connected via VPN to the domain, they receive:
    "DOMAIN NAME" Root CA > "DOMAIN NAME" Issuing CA1 > "NAME OF SHAREPOINT WEBSITE".
    How can I create a certificate for these non-domain joined PCs so that I can import the certificate in the Trusted Root Certification Authorities store? Thank you!

    It sounds like the question you are really asking is :
    How do I designate the internal root CA as a trusted root CA
    Run certutil -addstore root RootCert.crt (this must be run from an administrative command prompt)
    This designates the root CA as a trusted root on the client. You also may want to install the intermediate cert to the store (you are not clear on what VPN product you are using, so it may or may not do proper chain building).
    Run Certutil -addstore CA IssuingCA.crt 
    Brian

  • Licensing for non domain joined machines

    Good Day
    would additional licensing be required to manage non domain joined machines or would this be covered by the current EA. can someone explain how licensing for the management of non domain machines would work?
    thanks
    daniel

    Hi,
    There is no difference if you don't want to license them differently and if that is possibly in you agreement, so you should contact you MS License reseller.
    You could buy a System Center Configuration Manager CAL if you want to manage it, that will only cover ConfigMgr and not Endpoint protection for instance. So you should really contact your reseller and see what is the most optimal solution for you company/organisation.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Install AADSync on a Workgroup server (non-domain joined)

    Does anyone has experiences with installing AADSync on a non-domain joined server (workgroup). A company with multiple forests wants to have a "neutral" server for the identity synchronisation. It looks like the tool is installing fine, but can
    there be some configuration issues?

    This is supported.  See here:
    "Your computer can be stand-alone, a member server or a domain controller. "
    ref: http://msdn.microsoft.com/en-us/library/azure/dn757602.aspx
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • How to use non sap application in sap.......?

    hi,
            anyone has any idea how to use non sap application  like java class in sap through abap programming. please let me know ...
    thanks in advance.
    saurin shah.

    Hi,
    DATA: COMMAND TYPE STRING VALUE 'C:\j2sdk1.4.2_08\bin\java',
    DIR TYPE STRING VALUE D:\eclipse\workspace',
    PARAMETER TYPE STRING VALUE 'Helloworld'. "here the name of your java program
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
    EXPORTING
    APPLICATION = COMMAND
    PARAMETER = PARAMETER
    DEFAULT_DIRECTORY = DIR
    MAXIMIZED =
    MINIMIZED = 'X' "If you need the DOS window to be minimized
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    BAD_PARAMETER = 3
    FILE_NOT_FOUND = 4
    PATH_NOT_FOUND = 5
    FILE_EXTENSION_UNKNOWN = 6
    ERROR_EXECUTE_FAILED = 7
    OTHERS = 8.
    check this link
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    Regards,
    Satish

  • How do I create Equal Height Columns with my Background Images?

    Hi there,
    here is my page http://www.allthingsprintuk.co.uk/ATPHome.html
    My problem is that the side bar HTML list is coming off the page in IE. & also the html  in the header can look awful due to browser settings.
    My question is how do I create Equal Height Columns with my Background Images so that they fit with the HTML text? Is there a good link you can point me to, or a tutorial?
    The only way I can see by doing it is slicing my images up into 3 (top middle & bottom) & then setting the middle to repeat y????
    Or does anyone know of a way to create rounded corners WITH drop shadows in CSS that will work on all browsers?
    Thanks in advance
    Louisa

    Try these http://www.pixelan.com/

  • IdM doesn't support non-default port on mysql 4.1 as repository??

    Hi
    IdM doesn't support non-default port on mysql 4.1 as repository??
    IdM version is 6.0.
    I setup mysql 4.1 using non-default port 3307.
    (default port is 3306)
    During setup wizard,
    the URL [jdbc:mysql://localhost:3307/waveset] doesn't work.
    I am getting following error.
    com.waveset.util.InternalError:
         ==> com.waveset.util.ConfigurationError:
         ==> com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    Of cource,
    the URL [jdbc:mysql://localhost/waveset] works well
    when I setup mysql using default port.

    Hi,
    it does work with non standard ports but whatever port you specify it will always try to connect to the default port before actually changing the repo setting.
    Therefore use the switches -n -o $WSHOME/WEB-INF/ServerRepository.xml to write the new configuration without performing the broken checks.
    Regards,
    Patrick

Maybe you are looking for

  • [SOLVED]mounting cdrom and usb devices doesn't work

    Hello, i have trouble mounting my usb devices. automount doesn't work and i can't mount them manually even as a superuser. here's the output of mount command: mount: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper pr

  • Search help default value in SE11

    Hello! I would like to set a default value to a self-made search help. I referred the following link in this theme: http://help.sap.com/saphelp_erp2005vp/helpdata/en/73/5414f0adbd11d194f200a0c929b3c3/frameset.htm This docu tells me, how can I enter d

  • Why does iOS "connect" to a network even if it doesn't know the password?

    The network's clearly protected, but it just "connects" and sits there. It puts a checkmark next to the network, but it's truly not connected. Happens across devices on my iPhone as well.

  • MbP doesn't recognize external HD anymore!?

    Hi, I know there are some disscusions about this topic, but nothing is really like mine problem I think. So my problem is; suddenly my mbp did not recognoze my external hd anymore. I was watching a serie from my EHD, and I wanted to click to the next

  • Error during in-app purchase testing download

    Hello, I've done an in-app with  my Viewer Builder v 1.5 and I created the Product ID and all the necessary  informations at my iTunes Connect Account. However, when I test the  purchase in my iPad with a test account, the box "ERROR DURING PURCHASE