Question regarding sequences and fragmented data

Hi all,
I plan to implement two identical database schemas on two different oracle database servers. The two databases will then be linked via a Database Link and a View will be used to show the data from both db's using 1 sql statement.
My question is this:
If 5 records are inserted into the table on the first database and then 10 records are inserted into the matching table on the second database, how would the sequence for the table in the first database know that the next value should be 16 and not 6.
I hope this makes sense, any questions just ask.
Thanks,
Martin

Ok, I am not sure if I fully undserstand the question but let's give it a go. In the first place a sequence is stored in the data dictionary of a database. Te fact that you have two servers (and two databases : is that correct ?) means that you have two sequences also. The sequence is local to each db.
If you want the tables to be aware of each other so that the next record takes into account also the records in the other db you may have to manually generate the sequence. I don't know if you can share the sequence between two dbs but let's see if anyone else does.
Regards

Similar Messages

  • Answer the following question regarding GUI_UPLOAD and Open Data Set

    1. what’s the connection or relationship of S_GUI to GUI_UPLOAD?
    2. GUI_UPLOAD saves files to local directory of a use while OPEN DATA SET saves/archives files in the server directory.  Where is the risk directed towards consuming disk space?  Server disk or workstation disk space?
    3. how will this work for multiple files?
    4. Regarding Open Data Set - How the files will be put in AL11?

    The GUI_DOWNLOAD only download the file to local PC...so any abap code running in other pc will not able to use the file.
    BUt if you use open dataset to load the file APPLICATION server any ABAP pogram can access the file.
    Following code explains how you load file using open data setto appl server,
    you can check in t-code <b>AL11</b> for files/dir in applicatin server.
    you to change the value of <b>myfile</b> variable in my code..
    you have to give the full path of the dirctory.
    <b><b>plz reward  points if it hlps you.</b></b>
    Report ZANID_TEST2 message-id ZM.
    data begin of itab occurs 0. "your internal table
    include structure MARA.
    data end of itab.
    *--file upload purpose--
    DATA: BEGIN OF it_file OCCURS 0,
    buffer(200),
    END OF it_file.
    DATA: myfile(128) type c value 'E:\usr\sap\put\sample1xx.txt',
    start-of-selection.
    *--populating itab--
    select * from mara into corresponding fields of table itab
    up to 100 rows.
    perform UPLOAD_FILE_TO_APPL.
    *--form definitin--
    form UPLOAD_FILE_TO_APPL.
    OPEN DATASET myfile FOR OUTPUT IN TEXT MODE.
    IF sy-subrc NE 0.
    MESSAGE e999(zm) WITH 'File could not be opened'.
    ENDIF.
    *-- creating the file data table
    loop at itab.
    *-- i am only taking two fields
    concatenate itab-matnr itab-matkl into it_file-buffer
    separated by space.
    append it_file.
    endloop.
    LOOP AT it_file.
    TRANSFER it_file-buffer TO myfile.
    CLEAR IT_FILE-BUFFER.
    ENDLOOP.
    CLOSE DATASET myfile.
    IF sy-subrc NE 0.
    MESSAGE e999(zm) WITH 'File could not be closed'.
    ENDIF.
    endform. " DUPLOAD_FILE_TO_APPL

  • Question regarding roaming and data usage

    I am currently out of my main country of service, and as such I have a question regarding roaming and data usage.
    I am told that the airplane mode is sufficient from keeping the phone off from roaming, but does this apply to any background data usage for applications and such?
    If the phone is in airplane mode, are all use of the phone including wifi and application use through the wifi outside of all extra charges from roaming?

    Ann154 wrote:
    If you are getting charged to use the wifi, then it is possible.  Otherwise no
    Just to elaborate here, Ann154 is referring to access charges for wifi, which is nothing to do with Verizon, so if you are using it in a plane, hotel, an internet cafe etc that charges for Wifi rather than being free .   Verizon does not charge you (or indeed know about!) wifi usage, or any other usage that is not on their cellular network (such as using a foreign SIM for example in global phones)  So these charges, if any, will not show up on the verizon bill app.  Having it in airplane mode prevents all cellular data traffic so you should be fine

  • **question regarding 3G and wif**.

    I have a question regarding 3G and wifi. I have #G activated as well as wifi, when I go to retrieve mail for example I get a pop up asking me if I want to connect to a wifi network…should I have wifi and 3G activated at the same time, and why am I getting the pop up…
    Thanks

    You can have them on at the same time, but they will not be used at the same time for data. The order of preference for data is WiFi > 3G > EDGE > GPRS. You're getting the pop up, most likely, because you have Settings > Wi-Fi > Ask to Join Networks set to ON. You can set that to OFF, and the iPhone will still join known (i.e. previously used) WiFi networks automatically.

  • Question regarding Dashboard and column prompt

    My question regarding Dashboard and column prompt:
    1) Dashboard prompt usually work with only for columns which are in subject area. In my report I've created some of the columns which are based on other columns. Like I've daysNumber column that is based on two other columns, as it calculates the difference of two dates. When I create dashboard prompt I can't find this column there. I need to make a prompt on this column.
    2)For one of the column I've only two values 1 and 0. When I create prompt for this column, is it possible that in drop down list It shows 'Yes' for 1 and 'No' for 0 and still filter the request??

    Hi Toony,...
    I think there was another way of doing this...
    In the dashboard prompt go to Show option > select SQL Results from dropdown.
    There you need to write your Logical SQL like...
    SELECT CASE WHEN 1=0 THEN PERIODS.YEAR ELSE difference of date functionality END FROM SubjectAreaName
    Here.. Periods.Year is the column which is already exists in repository's presentation layer..
    and difference of date functionality is the code or formula of column which you want to show in drop-down...
    Also write the CASE WHEN 1=0 THEN PERIODS.YEAR ELSE difference of date functionality END code in fx of that prompt.
    I think it helps you in doing this..
    Just check and inform me if it works...
    Thanks & Regards
    Kishore Guggilla
    Edited by: Kishore Guggilla on Oct 31, 2008 9:35 AM

  • Question regarding MM and FI integration

    Hi Experts
    I have a question regarding MM and FI integration
    Is the transaction Key in OMJJ is same as OBYC transaction key?
    If yes, then why canu2019t I see transaction Key BSX in Movement type 101?
    Thanks

    No, they are not the same.  The movement type transaction (OMJJ) links the account key and account modifier to a specific movement types.  Transaction code (OBYC) contains the account assignments for all material document postings, whether they are movement type dependent or not.  Account key BSX is not movement type dependent.  Instead, BSX is dependent on the valuation class of the material, so it won't show in OMJJ.
    thanks,

  • Question regarding iphoto and folders

    I am a Mac newbie (9 months) and quite happy expect i freeze all the time after i installed lion, but that is for a different thread.;)
    I had all of my pictures on an external hard drive.  I had them organized in folders by year (also had a Year/edited for family photos we changed) and then by date/event...ie, 2011 04-05 Easter Dinner at Dad's. 
    When I got my macbook pro, I hooked up the hard drive and iphoto took care of importing all the pictures.  (i have upgraded to iphoto 11).  At first, I LOVED it.  Putting face names in the pictures, etc, but after a while i got tired of having to reorganize them to find pictures the way i used to. I have over 15,000 pictures and renaming (even with the batch option) and moving them, and fixing dates, etc was becoming overwhelming.  I found myself longing for my very simple folder organization.  So i went  to look for the folders, eventually found them and found out there were folders for originals, modified, thumbnails, etc.  and when i went in my originals, they weren't in folders I had originally had on my external drive.
    My wife, who is our picture editor, preffers photoshop and i have a windows laptop that i want to use for nothing other than pictures.
    So......my question is:
    How can i best take my photo's and put them back on a hard drive and then transfer them to the other laptop?  Is there anyway to recover my old file system (deleted off the hard drive, except for an old backup but i have added thousands of pictures and have no way of telling which ones are in iphoto are old or new).  I am fearful that if I just copy iphoto to the hard drive that the windows laptop will not read them, or that it will still show up with all of the different folders (original, modified, thumbs, etc)
    And/or, is there a program to manage pictures for my macbook pro that will keep photos in folders more similarly to how i did before, so it will be easy to move pics from one laptop to the other.
    Thanks!!!!

    1. You know that iPhoto can do all this.
    2. You can sort by Date -> View Menu -> Sort Photos.
    3. You can search by date -> Click on the Search icon and select calendar. Then you can find all the pics from any day, month or year
    4. You can search by date using Smart Albums too.
    5. You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    6. No there is no way to export back to your previous system. It's gone. You could have easily imported while mirroring that system, but it's too late for that now.
    7. To get Photos out of iPhoto: File -> Export.  Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.
    8. iPhoto can run a Referenced Library (where you have your own folder system) but I don't recommend it - especially for people unfamiliar with iPhoto and Macs. It also adds no extra functionality at all. It's just dumb storage.
    Regards
    TD

  • Question Regarding MIDI and Sample Accuracy

    Hi,
    I have 2 questions regarding MIDI.
    1. MIDI is moved by ticks. In the arrange window however, you can move a region by samples. When doing this, you can move within values of the ticks (which you can see on your position box that pops up) Now, will this MIDI note actually be played back at that specific sample point, or will it round the event to the closest tick? (example, if I have a MIDI note directly on 1.1.1.1, and I move the REGION in the arrange... will that MIDI note now fall on the sample that I have moved the region to, or will it be rounded to the closest tick?)
    2. When making a midi template from an audio region, will the MIDI information land exactly on the sample of the transient, or will it be rounded to the closest tick?
    I've looked through the manual, and couldn't find any specific answer to these questions.
    Thanks!
    Message was edited by: Matthew Usnick

    Ok, I've done some experimenting, and here are my results.
    I believe those numbers ARE samples. I came to this conclusion by counting (for some reason it starts on 11) and cutting a region to be 33 samples long (so, minus 11, is 22 actual samples). I then went to the Audio Bin window, and chose to view region length as samples. And there it said it: 22 samples. So, you can in fact move MIDI regions by samples!
    Second, I wanted to see if the MIDI notes in the region itself would be quantized to the nearest tick. I cut a piece of audio, so it had a 1 sample attack (zoomed in asa far as I could in the sample editor, selected the smallest portion, and faded in, and made the start point, the region start position). I saved the region as a new audio file, and loaded it up in the exs sampler.
    I then made a MIDI region, with and triggered the sample on beat 1 (quantized, on the money). I then went into the arrange window, made a fixed cycle length, and bounced the audio. I then moved the MIDI region by one sample to the right. I did this 22 times (which is the number of samples in a tick, at 120, apparently). After bouncing all of these (cycle position remained fixed, only the MIDI region was moving) I imported all the audio into the arrange on new tracks, and YES!!! The sample start was cascaded by a sample each time!
    SO.
    Not only can you move MIDI regions by sample, but the positions are NOT quantized to Logics ticks!
    This is very good news, and glad I worked this out!
    (if anyone thinks this sounds wrong, please correct me, but I'm pretty sure I proved it, in my test)
    Message was edited by: Matthew Usnick

  • Question regarding homehub and Open reach router -...

    Hi all,
      I had infinity installed earlier this month and am happy with it so far. I do have a few questions regarding the service and hardware though.
      I run both my BT openreach router and BT Home hub from the same power socket. The problem is, if I turn the plug on so both the Homehub and Openreach Router start up at the same time, the home hub will never get an Internet connection from the router. To solve this I have to turn the BT home hub on first and leave it for a minute, then start the router up and it all works fine. I'm just curious if this is the norm or do I have some faulty hardware?
      Secondly, I appreciate the estimated speed BT quote isn't always accurate, I was quoted 49mbits down but received 38mbits down - Which I was happy with. Recently though it has dropped to 30. I am worried this might continue to drop over time. and as of present I am 20mbits down on the estimate . For the record 30mbits is actually fine and probably more than I would ever need. If I could boost it some how though I would be interested to hear from you.
    Thanks, .

    Just a clarification: the two boxes are the HomeHub (router, black) and the modem (white).  The HomeHub has its own power switch, the modem doesn't.
    There is something wrong if the HomeHub needs to be turned on before the modem.  As others have said, in general best to leave the modem on all the time.  You should be able to connect them up in any order, or together.  (For example, I recently tripped the mains cutout, and when I restored power the modem and HomeHub went on together and everything was ok).
    Check if the router can connect/disconnect from the broadband using the web interface.  Leaving the modem and HomeHub on all the time, go to http://192.168.1.254/ on a browser on a connected computer, and see whether the Connect/Disconnect button works.

  • Question regarding IWDTree and context Value Node naming

    Hi,
    I have a question regarding the IWDTree / IWDTreeNodeType components.
    I have a context looking like this:
    Context
      + ResponseNode
        + PersonNode (1..1)
          + PersonAddressNode                    (empty node, placeholder)
          | + AdresNode (0..n)
          + PersonChildNode                      (empty node, placeholder)
          | + PersonNode (0..n)
          |   + PersonAddressNode                (empty node, placeholder)
          |     + AddressNode (0..n)
          + PersonParentsNode                    (empty node, placeholder)
            + PersonNode (0..n)
              + PersonAddressNode                (empty node, placeholder)
                + AddressNode (0..n)
    The context represents a person, a person's address, and a person's children and parents with their respective addresses.
    As a result, on different branches, a PersonNode and AddressNode can appear.
    And for some strange reason, all PersonNodes and AddressNodes link to the same ResponseNode.PersonNode.PersonParentsNode.PersonNode and ResponseNode.PersonNode.PersonParentsNode.PersonNode.PersonAddressNode.AddressNode respectively, irregardless of their branch...
    Is it illegal to have multiple PersonNode and AddressNode node names, and should they be named uniquely?

    Generally, node names need to be unique inside the context, attributes in different nodes can have same names. I wonder if the context structure you described will result in code without compile errors.
    The WD Tree can only be used with recursive context nodes or with a hierarchy of non-singleton child nodes.
    Can you give an example how your tree should look like at runtime?

  • Few questions regarding Training and event management

    Dear All,
    Can you please help me with the following queries regarding Training and Event Management:
    1. How to freeze a completed business event so that no changes to its record (like delete/update attendee details or event detail) is possible?
    2. How to get feedback from attendee/faculty with a predefined format with rating (1-4 scale)
    3. How to maintain department and category wise training man/hrs or training man/days?
    Any help will be appreciated.
    Regards,
    Toa

    Hi Toa,
    1. Run report RHHISTO0 via SA38. Once the business event is flagged as "historical" no further changes can be done.
    3. SM30 - T77S0 - Make the following swtiches active:
    SEMIN AINST
    SEMIN APART
    Then when events are followed up, these training data is recorded to employee 2002 infotype. You can report on it via PT90 (for department-based selection use "Further selections")
    Regards,
    Dilek

  • Need information regarding Approver and approved date of Shopping Carts

    Dear All,
    We have got a requiremrnt to extract a list approvers and approved dates of shopping carts created for a given department and date range.
    Is there any standard way to find that?
    If we need to create a Z report please let us know the tables invovled.
    Thank you.
    Regards
    Arindam

    Hi
    Each approval step in SRM has got a work item guid and its relevant data stored in few Data tables. You may build a custom report to meet your requirements.
    Refer to this post for more details:
    Re: SRM table which stored shopping cart approval start and end time
    Regards
    Virender Singh

  • Question regarding battery and warranty

    Hi all! I have a quick question about how and if my warranty applies to my battery. After about a year and a half of ownership (I have the three-year extended warranty), my battery has gone completely down the toilet. It wasn't a problem before, but this year I have to lug my T61p around a lot for lab work. My battery is now rated at... 39.75Wh when it shipped at 84.24Wh. This is a pretty drastic difference. In any case, I don't think that this is covered by warranty, but figured that I'd ask before I drop $180 on a new battery (ouch). And, speaking of, if my suspicions are correct, does anybody know where I might find a 9-cell battery for the T61p? All I'm seeing on Lenovo's website is the one for the N100... which doesn't... match very well. Yaknow.
    Thanks a lot!
    ThinkPad T61p [June 2008]: 2.5Ghz Penryn Core 2 Duo, 4GB DDR2 RAM, NVidia Quadro FX 570m 256MB, 160GB 7200RPM Fujitsu HDD, 1920x1200 WUXGA Matte LCD, Windows 7 RC1

    Is either of these appropriate? I'm wary of the one on Amazon, as there are other (off-brand) batteries that are advertised as being Lenovo ones (though those generally sell for  a lower price). The other one just looks like I'll have to call up to buy it.
    http://www.amazon.com/Lenovo-43R9255-ThinkPad-Notebook-Battery/dp/B001DX9EKA
    http://affordablepcsupply.com/products/IBM/REF/42T4511.html
    Thoughts?
    ThinkPad T61p [June 2008]: 2.5Ghz Penryn Core 2 Duo, 4GB DDR2 RAM, NVidia Quadro FX 570m 256MB, 160GB 7200RPM Fujitsu HDD, 1920x1200 WUXGA Matte LCD, Windows 7 RC1

  • Question regarding selectOneMenu and PROCESS_VALIDATIONS(3) phase

    Hi im a bit lost regarding selectOneMenu and how validation phase all works together.
    The thing is that i have a simple selectOneMenu
    <h:form id="SearchForm">                                                  
         <h:panelGrid columns="3"  border="0">
              <h:outputLabel id="caseTypeText" value="#{msg.searchCaseCaseType}" for="caseType" />                         
              <h:selectOneMenu id="caseType" value="#{searchCaseBean.caseType}" style="width: 200px;" binding="#{searchCaseBean.caseTypeSelect}">     
                   <f:selectItem itemValue="" itemLabel="#{msg.CommonTextAll}" />                                             
                   <f:selectItems value="#{searchCaseBean.caseTypes}"  />                              
              </h:selectOneMenu>
              <h:message for="caseType" styleClass="errorMessage" />
              <h:panelGroup />
              <h:panelGroup />
              <h:commandButton action="#{searchCaseBean.actionSearch}" value="#{msg.buttonSearch}" />
         </h:panelGrid>
    </h:form>Now when i hit submit button i can see that the bean method searchCaseBean.caseTypes (used in the <f:selectItems> tag) is executed in the PROCESS_VALIDATIONS(3) phase. How come? I dont whant this method to be executed in phase 3, only in phase 6.
    If i add the this in the method if (FacesContext.getCurrentInstance().getRenderResponse())
    public List<SelectItem> getStepStatuses(){
         List<CaseStep> caseSteps = new ArrayList<CaseStep>();
         if (FacesContext.getCurrentInstance().getRenderResponse()) {
              caseSteps = getCaseService().getCaseStep(value);     
         List<SelectItem> selectItems = new ArrayList<SelectItem>(caseSteps.size());
         for(int i=0; i < caseSteps.size(); i++){
              CaseStep step = caseSteps.get(i);               
              String stepStatus = step.getStatus() + "_" + step.getSubStatus();           
              selectItems.add(new SelectItem(stepStatus, step.getShortName()));
         return selectItems;
    } Now i get a validation error (javax.faces.component.UISelectOne.INVALID) for the select field and only phase1, phase2, phase 3 and phase 6 is executed.
    Im lost?

    I see. Many thanxs BalusC. Im using your blog very often, and its very helpfull for me.
    I changed now to use the constructor load method instead. But know im getting problem of calling my service layer (Spring service bean). Its seems they havent been init when jsf bean is calling its constructor.
    Can i init the spring service bean from the faces-config file?
    JSF Bean
        public SearchCaseBean() {
              super();
                    //caseService need to be init
              if(getCaseService() == null){
                   setCaseService((CaseService)getWebApplicationContextBean("caseService"));
              fillCaseTypeSelectItems();
              fillCaseStatusSelectItems();
    .....faces-config
    <managed-bean>
              <managed-bean-name>searchCaseBean</managed-bean-name>
              <managed-bean-class>portal.web.SearchCaseBean</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>          
              <managed-property>
                   <property-name>caseService</property-name>
                   <value>#{caseService}</value>
              </managed-property>
         </managed-bean>

  • Question on Sequences and how best to use them

    Hi all,
    I am used to Premiere Pro v6 and I have recently moved to CS4.1.
    Could you explain to me how best and why to use multiple sequences for a single project in Premiere Pro CS4.1?  I understand that you can have different formats on each, but I was wondering if there was a technique for using multiple sequences for a large project, eg a wedding where each scene could have a different sequence.  Am I on the right track.
    If so, then how does one preview edited footage that spans multiple sequences?
    Your help and advice would be appreciated.
    Cheers

    It all depends on your workflow, but personally when doing large projects, I prefer to work on smaller pieces first. Your example of a wedding could easily be broken down into sequences like intro, preparation, ceremony, reception, party and background material. Then make a master sequence where you combine all the sequences into this master sequence. It also makes it easy to place chapter markers at the beginning of each smaller sequence and it makes the overview of the project a lot easier. It also makes it easier to maintain a semblance of organization in the project bins.
    When I did a sailing movie last year (http://vimeo.com/1122531) I had different sequences for St. Maarten, Jost van Dijke, Virgin Gorda, The Baths, The Bitter End, Saba and again St. Maarten, plus the intro and the end sequence. When all of these parts were finished, it was simply a matter of putting all in a master sequence and go to Encore.

Maybe you are looking for

  • Change font size in Firefox 4 and browser windows.

    <blockquote>Locking duplicate thread.<br> Please continue here: [/questions/807389]</blockquote><br> I am a newby. Have never used firefox. The type is too small for me to read. I added an add-on and was able to increase the font size in the menu bar

  • Help with splitting a file

    I'm Starting in Java programing and need some help. Based in the information of txt file, I need to split a file.txt into "n" .txt files, depending of the blocks thats the file containt. It's delimited by """". And put the name between "UZ0RN0" the s

  • Limited remote administration

    I'm not sure how to appropriately title this, nor how to approach it. Basically the situation is like so: I have a server, which is host to a variety of services; from httpd, to remote gui's for specific tasks on the server; I have remote and local a

  • Default fonts in ADE

    Dear Bentley Wolfe, Asking about the default generic fonts in ADE without embedding in CSS stylesheet, it found that "Times" is the default font-family, if it's right, can i use another font-family (e.g. Verdana, Arial and sans-serif) without embeddi

  • By clicking print preview it showing error

    Hi All, By clicking print preview or print ,it showing error " no matching records found adp1" PL 10 2005B Regards, naresh K