How can I guarantee the consistency of tracsaction

Hi,
We have a product called SMS(Subscribe Management System). It is a CCB(Customer Care Billing) System used in DVB domain, and contains two server: billing server and customer server. Billing server is written using C++, Customer server is written using java. We uses corba for communications between Billing server and Customer server. Billing server uses omniORB-4.0.6(Opensource C++ ORB), Customer Server uses weblogic server 9.0, and uses weblogic ORB to invork corba service provided by Billing server in sessionstateless bean.
We have succeeded in invorking corba service in slsb, and now my challenge is the tracsaction in two server must be consistent, so I think it should be use distributed tracsaction and two-phase commit, but omniORB-4.0.6 doesn't provide any tracsaction support.
Could someone give me some advice for the question below
1、Must I use distributed tracsaction and two-phase commit?
2、How can I guarantee the consistency of tracsaction? I think I can define corba service throws exception, and in slsb, I can catch the exception and the CMT mechanism could guarantee the consistency of tracsaction; but if exception occurs in slsb, how can I rollback the tracsaction in billing server?
Any insight into the problem is appreciated.
Thanks
Haocheng Yuan

There you go …

Similar Messages

  • Switching to FIOS, want the new high-capacity DVR. How can I guarantee getting one?

    After 12 years I have to say goodbye to Dish because my old oaks are getting too tall and too wide and I don't have a clean line of sight...so I'm switching to FiOS.  I've gotten used to the best DVR in the industry, and I understand that there are new high capacity DVRs for FiOS that rival the Dish DVR's capacity.  How can I guarantee that when I order FiOS I'll get one?

    You can't . Its whatever is put on the truck that morning. HOWEVER, you can do what I did and refuse the install. My installer was nice enough to go back to the office and get one for me. It is outgrageous to offer the older smaller equipment to new customers.

  • How can I set the different boolean text in the button array?

    I created the OK boolean button array. How can I change the boolean text of each button to be different at run-time? I changed one, but the others are changed also.

    > Thank you for your help
    > Unfortunately I'm a beginner of this software. Please you
    > explain me more details.
    Select the control using the positioning tool and choose
    Customize... from the Edit menu or choose it by popping up
    on/right clicking on the control and selecting Advanced>>
    Customize...
    This will open the control up in a new window -- the control
    editor window. This window allows for lots of additional
    control modifications and allows for them to be saved into
    typedefs to promote reuse and make things more consistent.
    Once in the control editor, popup on the button and select
    the menu item near the bottom Multiple Text Strings.
    Close the editor window and the first dialog will ask if
    you would like to save the change
    d file. Choose No, and a
    second dialog will ask if you would like to Replace the
    Original Control. Choose Yes.
    At this point the Button will support multiple text labels.
    To edit the True string, make the Boolean True and use the
    Labeling tool to edit the string that is visible. To edit
    the False string, make the Boolean False and use the labeling
    tool to edit that string too.
    Greg McKaskle

  • How can I change the name of item in TableViewController iOS

    How can I change the name of item in TableViewController? I want to be able to change the title of an item if I added one. Code:
    //  ViewController.m
    //  Movie List
    //  Created by Damian on 20/02/15.
    //  Copyright (c) 2015 Tika Software. All rights reserved.
    #import "ViewController.h"
    @interface ViewController ()
    These outlets to the buttons use a `strong` reference instead of `weak` because we want
    to keep the buttons around even if they're not inside a view.
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
    // A simple array of strings for the data model.
    @property (nonatomic, strong) NSMutableArray *dataArray;
    @end
    #pragma mark -
    @implementation ViewController
    - (void)viewDidLoad
        [super viewDidLoad];
         This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
        self.tableView.allowsMultipleSelectionDuringEditing = YES;
        // populate the data array with some example objects
        self.dataArray = [NSMutableArray new];
        NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
        for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
            NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
            [self.dataArray addObject:itemName];
        // make our view consistent
        [self updateButtonsToMatchTableState];
    #pragma mark - UITableViewDelegate
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        return self.dataArray.count;
    - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateDeleteButtonTitle];
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateButtonsToMatchTableState];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        // Configure a cell to show the corresponding string from the array.
        static NSString *kCellID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
        cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
        return cell;
    #pragma mark - Action methods
    - (IBAction)editAction:(id)sender
        [self.tableView setEditing:YES animated:YES];
        [self updateButtonsToMatchTableState];
    - (IBAction)cancelAction:(id)sender
        [self.tableView setEditing:NO animated:YES];
        [self updateButtonsToMatchTableState];
    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        // The user tapped one of the OK/Cancel buttons.
        if (buttonIndex == 0)
            // Delete what the user selected.
            NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
            BOOL deleteSpecificRows = selectedRows.count > 0;
            if (deleteSpecificRows)
                // Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
                NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
                for (NSIndexPath *selectionIndex in selectedRows)
                    [indicesOfItemsToDelete addIndex:selectionIndex.row];
                // Delete the objects from our data model.
                [self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
                // Tell the tableView that we deleted the objects
                [self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
            else
                // Delete everything, delete the objects from our data model.
                [self.dataArray removeAllObjects];
                // Tell the tableView that we deleted the objects.
                // Because we are deleting all the rows, just reload the current table section
                [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
            // Exit editing mode after the deletion.
            [self.tableView setEditing:NO animated:YES];
            [self updateButtonsToMatchTableState];
    - (IBAction)deleteAction:(id)sender
        // Open a dialog with just an OK button.
        NSString *actionTitle;
        if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
            actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
        else
            actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
        NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
        NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
                                                                 delegate:self
                                                        cancelButtonTitle:cancelTitle
                                                   destructiveButtonTitle:okTitle
                                                        otherButtonTitles:nil];
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
        // Show from our table view (pops up in the middle of the table).
        [actionSheet showInView:self.view];
    - (IBAction)addAction:(id)sender
        [self.dataArray addObject:@"New Movie"];
        // Tell the tableView about the item that was added.
        NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
        [self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
                              withRowAnimation:UITableViewRowAnimationAutomatic];
        // Tell the tableView we have finished adding or removing items.
        [self.tableView endUpdates];
        // Scroll the tableView so the new item is visible
        [self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
                              atScrollPosition:UITableViewScrollPositionBottom
                                      animated:YES];
        // Update the buttons if we need to.
        [self updateButtonsToMatchTableState];
    #pragma mark - Updating button state
    - (void)updateButtonsToMatchTableState
        if (self.tableView.editing)
            // Show the option to cancel the edit.
            self.navigationItem.rightBarButtonItem = self.cancelButton;
            [self updateDeleteButtonTitle];
            // Show the delete button.
            self.navigationItem.leftBarButtonItem = self.deleteButton;
        else
            // Not in editing mode.
            self.navigationItem.leftBarButtonItem = self.addButton;
            // Show the edit button, but disable the edit button if there's nothing to edit.
            if (self.dataArray.count > 0)
                self.editButton.enabled = YES;
            else
                self.editButton.enabled = NO;
            self.navigationItem.rightBarButtonItem = self.editButton;
    - (void)updateDeleteButtonTitle
        // Update the delete button's title, based on how many items are selected
        NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
        BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
        BOOL noItemsAreSelected = selectedRows.count == 0;
        if (allItemsAreSelected || noItemsAreSelected)
            self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
        else
            NSString *titleFormatString =
            NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
            self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
    @end

    Hey JB001,
    Sounds like you have more going on than just a simple issue with Home Sharing and more dealing with Wi-Fi syncing. Start with the article below and see if that may resolve it.
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
    http://support.apple.com/kb/TS4062
    If it does not work out, then may I suggest contacting Apple for further assistance to walk you through it or just take that time that you were talking about to sort it out.
    Contact Apple Support
    https://getsupport.apple.com/GetproductgroupList.action
    Regards,
    -Norm G.

  • 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 can we change the input field on a view stop showing zeros

    Hello,
           To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
    Edited by: sap_learner on Mar 25, 2010 5:44 PM
    Edited by: sap_learner on Mar 25, 2010 5:49 PM
    Edited by: sap_learner on Mar 25, 2010 5:55 PM

    hello Manas Dua,
                           Thanks for your help. I am able to resolve my problem.
    My code will help  the future comers to resolve this kind of issues.
    *The code is applied to method WDDOINIT of the default view.
      DATA lo_nd_terms_input    TYPE REF TO if_wd_context_node.
      DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
      DATA lv_zeros             TYPE wdy_attribute_format_prop.
      lv_zeros-null_as_blank = 'X'.
      lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
      lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
      lo_nd_terms_input_i->set_attribute_format_props(
        EXPORTING
          name              = `ENTER THE ATTRIBUTE NAME`
          format_properties = lv_zeros     ).
    Edited by: sap_learner on Mar 26, 2010 5:02 PM

  • How Can i retain the Shared Variable Values after PC rebooting

    Hi all,
    I am facing a paculiar problem with Shared Variables. I have an application in which shared variables are used for data communication.
    One of the application requirement is to retain the variable values eventhough PC is rebooted or started after crashing. 
    As per the my understanding, the variable values will retain eventhough the PC is rebooted. But here i can observe a paculiar problem like some library variables are retaing the values while some others not. I enabled logging for all the variables.
    I tried many ways. like logging enabled, logging disabled, changing variable names, changing process names etc... But i am not getting a consistent behaviour.
    I hope some you can help me in solving this issue.. "How Can i retain the Shared Variable Values after PC rebooting"
    Thanks and Regards,
    Mir

    Hi Blackperl,
    Thanks for the post and I hope your well. 
    What do you mean by not getting consistent behaviour.. this will all depend on excatly when the crash happens i.e. before the write or after. 
    Surely a better method would be to log the data to a file during the reboot...
    I beleived the value read back
    will be the default value for the shared variable's data type.
    The LabVIEW DSC 8.0 module adds more functionality to the shared variable, including initial values and alarms.
    If you enable an initial value on a shared variable, when the variable
    engine comes back on-line it will default to this value. Setting a bad
    status alarm for the shared variable is also a good way of handling
    this type of event. Additionally, if you are using a LabVIEW Real-Time
    target such as Compact RIO or Compact FieldPoint, it is appropriate to
    consider hosting the shared variable engine on the real-time target.
    These devices have watch-dog capabilities and are typically the
    hardware controlling the critical pieces of an application. Most
    Windows or PC-based targets do not have these fail-safes.
    I guess, if you could explain to me again that would be great. From my point of view, if I have a cRIO and a Windows PC. If the windows PC crashes, the cRIO will still update its shared variables. Then once the PC has started up its own shared variable engine, and the bindings are loaded, it will once again continue to update its copies of the variables.
    Please let me know what you think,
    Kind Regards,
    James.
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • How can i transfer the system variable value through DTW in SBO

    Hi,
    I want to transfer the system variable("Excisable" in the Item master data in the SBO 'India' database) value through the template by the DTW.
    But i don't have any template consisting of this system variable.
    So please suggest me that how can i transfer the value of this system variable(Excisable) and by which template.Please tell me any constraint if it is on the value of this variable.
    I will be very thankful to you.
    Thanks & Regard,
    Sandeep
    Message was edited by:
            Marc Riar

    Sandeep,
    This question has come up several times on this Forum.
    Please read this read.
    Importing excisable item
    Suda

  • How can i locate the properties files within a ejb container?

    when i develop servlet+javabean structure application,in order to imploement decoupling,i
    would like to write the config information in the properties files(key-value pair),in
    servlet,i use "getResourceAsStream(String relativePath)" method to retrieve the
    configuration information from the properties files(i even write the SQL clause
    in the files),it alwsys works well.
    now,i want to implement such function within the ejb container,that is to read
    a properties file from session bean,but i don't know how can i locate the file
    within the ejb container by using relative path,i wonder if there is the same
    method within ejb container as "getResourceAsStream(.......)" method within servlet
    container?
    thanks for any helps!
    the code snippet is appreciated!

    In general, you should look at using environment entries (variables) in the
    deployment descriptors (both the war and EJB jar rather than properties
    files for configuring J2EE applications. The reasons for this are many:
    1. This is the official way to do it according to the spec. Properties
    files are the J2SE way of doing things
    2. As you note, that it's not obvious how you would (legally) read a
    properties file inside an EJB.
    3. It's consistent between the web and EJB part of your code
    4. the weblogic console and tools have good capabilities to edit these
    fields.
    Kent
    "zhebincong" <[email protected]> wrote in message
    news:[email protected]..
    >
    when i develop servlet+javabean structure application,in order toimploement decoupling,i
    would like to write the config information in the propertiesfiles(key-value pair),in
    servlet,i use "getResourceAsStream(String relativePath)" method toretrieve the
    configuration information from the properties files(i even write the SQLclause
    in the files),it alwsys works well.
    now,i want to implement such function within the ejb container,that is toread
    a properties file from session bean,but i don't know how can i locate thefile
    within the ejb container by using relative path,i wonder if there is thesame
    method within ejb container as "getResourceAsStream(.......)" methodwithin servlet
    container?
    thanks for any helps!
    the code snippet is appreciated!

  • How can we take the incremental export using the datapump at schema level.

    Hi,
    How can we take the incremental export using the datapump at schema level. Example, today i had taken the full export of one schema.
    After 7 days from now , how can i take the export of change data , from the data of my full export.
    using the export datapump parameter - FLASHBACK_TIME ,can we mention the date range. Example sysdate - (sysdate -7)
    Please advice
    thanks
    Naveen.

    Think of the Data Pump Export/Import tools as taking a "picture" or "snapshot."
    When you use these utilities it exports the data as it appears (by default) while it's doing the export operation. There is no way to export a delta in comparison to a previous export.
    The FLASHBACK_TIME parameter allows you to get a consistent export as of a particular point in time.
    I recommend you go to http://tahiti.oracle.com. Click on your version and go to the Utilities Guide. This is where all the information on Data Pump is located and should answer a lot of your questions.

  • How can we free the memory of array

    how can we refresh the memory of an array every time......if we want new values or fresh values each time.........becuase array index out of exception error is coming up and i want to deallocate the memory at the end of iteration or in the starting

    how can we refresh the memory of an array every
    time......if we want new values or fresh values each
    time.........becuase array index out of exception
    error is coming up and i want to deallocate the
    memory at the end of iteration or in the startingThis post consist of 95% gibberish. The only part that is not gibberish is "array index out of bounds exception" and that has nothing to do with memory at all.
    Please attempt to learn some basic Java before injuring yourself permanently.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com . A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoritative than this.

  • Uniqueness conflict avoidence,guarantee the consistency of data?

    I lil'(........okay ,alot) confused about when is exactly we use the conflict avoidence (e.g. generating sequence number)or resolution???If we have alot, say it's millions row of data, is it wise for us to implement the conflict avoidence, since the generation of sequence number never guarantee the consistency of data.Just 4 example if i insert a new record for a students table, and I used the sequence number as the PK, it's never guarantee that a row with some information on it will not have redundant copies.....Confused...Could anyone have any solution for uniqueness conflict resolution/avoidence instead of generating the sequence number???Thanx lot!!!

    I'm not completely sure I follow your question...
    If you are asking how to ensure that a particular primary key is not reused in multiple nodes in a replicated environment, the easiest answer is to set up slightly different sequences on the different nodes. That is, when you have N nodes
    Node 1
    CREATE SEQUENCE seq_name START WITH 1 INCREMENT BY <<n>>;
    Node 2
    CREATE SEQUENCE seq_name START WITH 2 INCREMENT BY <<n>>;
    Node N
    CREATE SEQUENCE seq_name START WITH <<n>> INCREMENT BY <<n>>
    Justin

  • How can i guarantee that comma (8'hbc) will be aligned to first byte of received data?

    i'm now using the spartan6  gtp to transmit 32 data through the fiber(with 8b/10b encoding enable),when i send the data which includes the comma  (32'h090909bc),how can i guarantee that comma (8'hbc)  will be aligned to first byte of  received data .and i just can guarantee that comma (8'hbc)  will be aligned to even byte of  received data (attribute ALIGN_COMMA_WORD is set to be 2).

    Hi,
    Please avoid posting multiple post. I have answered your query here - http://forums.xilinx.com/t5/Spartan-Family-FPGAs/how-can-i-guarantee-that-comma-8-hbc-will-be-aligned-to-first/m-p/644938/highlight/false#M32601
     

  • How can i minimize the deadlock for the below event

    <deadlock>
     <victim-list>
      <victimProcess
    id="process2ccd0c8"
    />
     </victim-list>
     <process-list>
      <process
    id="process2ccd0c8"
    taskpriority="0"
    logused="472"
    waitresource="RID: 7:1:301805:0"
    waittime="4729"
    ownerId="218717433"
    transactionname="implicit_transaction"
    lasttranstarted="2015-02-18T02:01:42.190"
    XDES="0x8ff01f078"
    lockMode="S"
    schedulerid="2"
    kpid="19796"
    status="suspended"
    spid="161"
    sbid="0"
    ecid="0"
    priority="0"
    trancount="1"
    lastbatchstarted="2015-02-18T02:01:42.197"
    lastbatchcompleted="2015-02-18T02:01:42.193"
    lastattention="1900-01-01T00:00:00.193"
    clientapp="Microsoft SQL Server JDBC Driver"
    hostname="xxxxxxxxxxxx"
    hostpid="0"
    loginname="xxxx"
    isolationlevel="read committed (2)"
    xactid="218717433"
    currentdb="7"
    lockTimeout="4294967295"
    clientoption1="671088672"
    clientoption2="128058">
       <executionStack>
        <frame
    procname="adhoc"
    line="1"
    sqlhandle="0x02000000f96c7e18b47b33db0c837f7598795780ea68c03a0000000000000000000000000000000000000000">
    SELECT LOC as LocationName, MATERIALUNITOFMEASURE,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QA',QTY,0)) QUANTITY_ON_HAND,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QP',QTY,0)) QUANTITY_ON_ORDER,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QS',QTY,0)) QUANTITY_SOLD,
    SUM(WMDLXK.DECODE(QTY_TYPE,'--',QTY,0)) QUANTITY_ON_DEMAND,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QO',QTY,0)) QUANTITY_OUT_OF_STOCK,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QR',QTY,0)) QUANTITY_RECEIVED,
    SUM(WMDLXK.DECODE(QTY_TYPE,'--',QTY,0)) QUANTITY_REQUESTED,
    SUM(WMDLXK.DECODE(QTY_TYPE,'--',QTY,0)) QUANTITY_RETURNED,
    SUM(WMDLXK.DECODE(QTY_TYPE,'--',QTY,0)) ADJUSTMENT_INVENTORY_QTY
    FROM
    SELECT DISTINCT LOC_SDQ3 AS LOC, MATERIALUNITOFMEASURE, QTY_SDQ4 AS QTY, QTY_TYPE FROM WMDLXK.CDM_LOCATION_QUANTITY T WHERE LOC_SDQ3 IS NOT NULL AND EDI_BATCH_ID ='erh7ck009edns0ia00003pi92015 02 18 02:01:41'
    AND LINE_NUM ='1'
    UNION
    SELECT DISTINCT LOC_SDQ5 AS LOC,  MATERIALUNITOFMEASURE, QTY_SDQ6 AS QTY, QTY_TYPE FROM WMDLXK.CDM_LOCATION_QUANTITY T WHERE LOC_SDQ5 IS NOT NULL AND EDI_BATCH_ID ='erh7ck009edns0i   
    </frame>
        <frame
    procname="unknown"
    line="1"
    sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
    unknown   
    </frame>
       </executionStack>
       <inputbuf>
    SELECT LOC as LocationName, MATERIALUNITOFMEASURE,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QA',QTY,0)) QUANTITY_ON_HAND,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QP',QTY,0)) QUANTITY_ON_ORDER,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QS',QTY,0)) QUANTITY_SOLD,
    SUM(WMDLXK.DECODE(QTY_TYPE,'--',QTY,0)) QUANTITY_ON_DEMAND,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QO',QTY,0)) QUANTITY_OUT_OF_STOCK,
    SUM(WMDLXK.DECODE(QTY_TYPE,'QR',QTY,0)) QUANTITY_RECEIVED,
    SUM(WMDLXK.DECODE(QTY_TYPE,'--',QTY,0)) QUANTITY_REQUESTED,
    SUM(WMDLXK.DECODE(QTY_TYPE,'--',QTY,0)) QUANTITY_RETURNED,
    SUM(WMDLXK.DECODE(QTY_TYPE,'--',QTY,0)) ADJUSTMENT_INVENTORY_QTY
    FROM
    SELECT DISTINCT LOC_SDQ3 AS LOC, MATERIALUNITOFMEASURE, QTY_SDQ4 AS QTY, QTY_TYPE FROM WMDLXK.CDM_LOCATION_QUANTITY T WHERE LOC_SDQ3 IS NOT NULL AND EDI_BATCH_ID ='erh7ck009edns0ia00003pi92015 02 18 02:01:41'
    AND LINE_NUM ='1'
    UNION
    SELECT DISTINCT LOC_SDQ5 AS LOC,  MATERIALUNITOFMEASURE, QTY_SDQ6 AS QTY, QTY_TYPE FROM WMDLXK.CDM_LOCATION_QUANTITY T WHERE LOC_SDQ5 IS NOT NULL AND EDI_BATCH_ID ='erh7ck009edns0  
    </inputbuf>
      </process>
      <process
    id="processabf1498"
    taskpriority="0"
    logused="41352"
    waitresource="RID: 7:1:301806:33"
    waittime="4766"
    ownerId="218712317"
    transactionname="implicit_transaction"
    lasttranstarted="2015-02-18T02:01:38.403"
    XDES="0x8ff87e568"
    lockMode="U"
    schedulerid="9"
    kpid="19044"
    status="suspended"
    spid="149"
    sbid="0"
    ecid="0"
    priority="0"
    trancount="2"
    lastbatchstarted="2015-02-18T02:01:42.190"
    lastbatchcompleted="2015-02-18T02:01:42.183"
    lastattention="1900-01-01T00:00:00.183"
    clientapp="Microsoft SQL Server JDBC Driver"
    hostname="xxxxxxxxxxm"
    hostpid="0"
    loginname="XXXX"
    isolationlevel="read committed (2)"
    xactid="218712317"
    currentdb="7"
    lockTimeout="4294967295"
    clientoption1="671088672"
    clientoption2="128058">
       <executionStack>
        <frame
    procname="adhoc"
    line="1"
    stmtstart="40"
    sqlhandle="0x02000000f91f4423850b7703e5697b611b66f2000795329b0000000000000000000000000000000000000000">
    DELETE  FROM WMDLXK.CDM_LOCATION_QUANTITY  WHERE EDI_BATCH_ID = @P0   
    </frame>
        <frame
    procname="unknown"
    line="1"
    sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
    unknown   
    </frame>
       </executionStack>
       <inputbuf>
    (@P0 nvarchar(4000))DELETE  FROM WMDLXK.CDM_LOCATION_QUANTITY  WHERE EDI_BATCH_ID = @P0          
    </inputbuf>
      </process>
     </process-list>
     <resource-list>
      <ridlock
    fileid="1"
    pageid="301805"
    dbid="7"
    objectname="WMIDPEN2.WMDLXK.CDM_LOCATION_QUANTITY"
    id="lock827cedd00"
    mode="X"
    associatedObjectId="72057594062766080">
       <owner-list>
        <owner
    id="processabf1498"
    mode="X" />
       </owner-list>
       <waiter-list>
        <waiter
    id="process2ccd0c8"
    mode="S"
    requestType="wait" />
       </waiter-list>
      </ridlock>
      <ridlock
    fileid="1"
    pageid="301806"
    dbid="7"
    objectname="WMIDPEN2.WMDLXK.CDM_LOCATION_QUANTITY"
    id="lock4e67a3c00"
    mode="X"
    associatedObjectId="72057594062766080">
       <owner-list>
        <owner
    id="process2ccd0c8"
    mode="X" />
       </owner-list>
       <waiter-list>
        <waiter
    id="processabf1498"
    mode="U"
    requestType="wait" />
       </waiter-list>
      </ridlock>
     </resource-list>
    </deadlock>
    Please help me, How can i minimize the deadlock issue for this event

    Indexing improvements might greatly improve query performance and reduce likelihood of deadlock, but they are no guarantee to remove deadlocks.
    An additional strategy you might try is to serialise the queries. I am guessing that the SELECT and DELETE start at similar times getting IS and IX table locks respectively. Then the DELETE is escalating to a table X lock, for which it must wait for the
    IS lock to go. The SELECT query continues until it needs a record/page that is X locked by the DELETE statement. That would be a deadlock. For the DELETE, you might get a full table lock at the beginning of the query. ie try changing the DELETE to the following
    BEGIN TRANSACTION
    SELECT TOP 0 * FROM WMDLXK.CDM_LOCATION_QUANTITY WITH (TABLOCKX)
    DELETE  FROM WMDLXK.CDM_LOCATION_QUANTITY  WHERE EDI_BATCH_ID = @P0
    COMMIT TRANSACTION
    The SELECT in the query above will wait until it can get a full table X lock. No deadlock as it will wait for executing select queries to complete. Then the DELETE statement can execute within the full table X lock, so no deadlock there. At the COMMIT, the
    full table X lock is released and waiting SELECT queries can continue.
    Note: The SELECT queries will be slowed up (waiting for shared lock) while the DELETE executes. Are you OK with that? Actually, it is slightly worse, as a SELECT query might have to wait while the DELETE waits for its X lock, then wait while the DELETE executes.
    Hope that helps,
    Richard

  • How can I findout the coulm value contains 0 through 9 for the table

    could u plz suggest me how can I findout the coulm value contains <> 0 through 9 for the table...

    Well I am going to give it a shot, because I believe I am looking for the same thing.
    I have a value that is of type varchar2. How can I determine if it has special characters or alpha characters in it? In other words, I only want the value to consist of numbers. (Initially it had been thought that Letters would be used as well, but now they just want numbers and the datatype of the column cannot be altered since there is data in it.)
    I have gotten this far, but I do not know what else I can use besides '[:alpha:]'? I cannot seem to find this documented anywhere...I can find the regexp package reference, but not the character classes...
    select regexp_instr('1a23456', '[[:alpha:]]',1,1,1, 'i') x
    from dual
    This works fine = returns 3, so I know there is an alpha character.
    select regexp_instr('1$23456', '[[:alpha:]]',1,1,1, 'i') x
    from dual
    This returns 0 - what do I need to change so that it detects the '$' and returns 3?
    Thanks!!
    Janel

Maybe you are looking for

  • Web Forms Not working on Client Machines with Separate Win

    Hi friends, We deployed all our Forms on web and we are using Developer Server 6.0 ,OAS 4.07, Oracle Jinitator 1.1.7.18 ,Netscape 4.7 Browser My problem is we configured forms to open in a separate window this is giving problems on Client Machines th

  • IPod 5G Freezes during Video Playback

    iPod freezes during video playback. Does anybody else have this problem? Usually freezes up about 10 minutes into a video, and then complety locks up. This usually requires 2 to 3 restarts untill it comes back working properly.

  • Problem with video conference

    I just bought a MacBook, and I am having problems connecting to others via the iSight. I got it to work with my roommate's computer, but I mainly want it to work on my fiancee's. I have Tiger, and she has Windows XP. I searched and searched and opene

  • URL redirection in a mutinode 12.1.3 environment

    Hi,      We have a multinode (2 Apps Tier Nodes) implementation of Oracle E-Business Suite Version 12.1.3 with a shared APPL_TOP. Here is the configuration information DB Tier Node Server Name : UXD012 Operating System : HP-UX Itanium 11.31 64-Bit Or

  • Client Settings non modifiable for  ob52, ob58 etc

    Certain objects in the IMG need to be modifiable in all our clients, specifically transaction OB58 (maintain financial statement version). Currently, any updates to the standard financial statement (for example, when a new G/L account is created and