Four fundamental questions on Sequences

DB version:11G
Question *1* and *2*:
To determine the current value of a Sequence i try
SQL> SELECT  SEQ_SHP_HDR.CURRVAL FROM DUAL;
SELECT  SEQ_SHP_HDR.CURRVAL FROM DUAL
ERROR at line 1:
ORA-08002: sequence SEQ_SHP_HDR.CURRVAL is not yet defined in this
sessionI know that if i use
SELECT  SEQ_SHP_HDR.NEXTVAL FROM DUAL;i can get CURRVAL from the sequence. But that will increment the sequence.
So I tried looking at user_sequences.last_number . But user_sequences.last_number was showing 552 when the actual currval was 545 !
Why am i getting the above error (SEQ_SHP_HDR.CURRVAL is not yet defined in this session) and how can one accurately determine
the currval of a sequence without incrementing it using NEXTVAL?
Question *3*.
To Increment a sequence, one should use
alter sequence <sequencename> increment by n ;Right?
Do you guys use
SELECT  <sequencename>.NEXTVAL FROM DUAL;to increment SEQUENCES?
Question *4*.
I was trying to increment a sequence. After the ALTER statement, the sequence didn't get incremented. I had to issue a NEXTVAL call to actually get this reflected. Why is this happening?
SQL> select * from v$version where rownum=1;
BANNER
Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
SQL> CREATE SEQUENCE myseq
  2    START WITH 1
  3    NOMAXVALUE;
Sequence created.
SQL> select myseq.nextval from dual;
   NEXTVAL
         1
SQL> alter sequence myseq increment by 7;
Sequence altered.
SQL> select myseq.currval from dual;
   CURRVAL
         1
SQL> select myseq.nextval from dual;
   NEXTVAL
         8
SQL> select myseq.currval from dual;
   CURRVAL
         8
        

Steve_74 wrote:
DB version:11G
Question *1* and *2*:
To determine the current value of a Sequence i try
SQL> SELECT  SEQ_SHP_HDR.CURRVAL FROM DUAL;
SELECT  SEQ_SHP_HDR.CURRVAL FROM DUAL
ERROR at line 1:
ORA-08002: sequence SEQ_SHP_HDR.CURRVAL is not yet defined in this
sessionI know that if i use
SELECT  SEQ_SHP_HDR.NEXTVAL FROM DUAL;i can get CURRVAL from the sequence. But that will increment the sequence.
So I tried looking at user_sequences.last_number . But user_sequences.last_number was showing 552 when the actual currval was 545 !
Why am i getting the above error (SEQ_SHP_HDR.CURRVAL is not yet defined in this session) and how can one accurately determine
the currval of a sequence without incrementing it using NEXTVAL?You cant get the CURRVAL unless you execute the NEXTVAL alteast once in your session. And you cant use the user_sequences.last_number if the CACHE is enabled.
Question *3*.
To Increment a sequence, one should use
alter sequence <sequencename> increment by n ;Right?WRONG!! You have actually altered the structure of your sequence. With ALTER comand you are actually setting the increment value. Here "n" sets the increment size. If set as 1 it will increment by 1. If set as 2 will increment by 2.
Do you guys use
SELECT  <sequencename>.NEXTVAL FROM DUAL;to increment SEQUENCES?YES that is the correct way to increment a sequence. Use NEXTVAL to increment a sequence.
Question *4*.
I was trying to increment a sequence. After the ALTER statement, the sequence didn't get incremented. I had to issue a NEXTVAL call to actually get this reflected. Why is this happening?
SQL> select * from v$version where rownum=1;
BANNER
Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
SQL> CREATE SEQUENCE myseq
2    START WITH 1
3    NOMAXVALUE;
Sequence created.
SQL> select myseq.nextval from dual;
NEXTVAL
1
SQL> alter sequence myseq increment by 7;
Sequence altered.
SQL> select myseq.currval from dual;
CURRVAL
1
SQL> select myseq.nextval from dual;
NEXTVAL
8
SQL> select myseq.currval from dual;
CURRVAL
8
Answer for the question 3 answers this one as well!!

Similar Messages

  • Fundamental question: disable the GUI while RMI is communicating?

    Good afternoon,
    I'm using RMI in a swing application and i have fundamental question:
    I have a jlist with categories and another jlist which displays the items of the selected category. When a user selects a category rmi is used to get the items of the selected category from the server (internet).
    Should i disable the whole application while rmi is communicating with the server? For example with a glasspane with a cancel button.
    What is the best practice in this case?
    Best regards,
    James

    I found a really nice solution, now i call my remote methods like:
    taskManager.executeAction(new ITaskResult(){
          public void done(Object result) {
            Collections.sort(rpcs, new RpcComperator());
            fireContentsChanged(this, 0, getSize());
          public void failed(Exception e) {
            WindowUtils.showErrorDialog(owner, "Could not change server");
        }, new IAction(){
          public Object action() throws DBException, AccessException {
            return taskManager.getBasic().changeRpc(rpc);
        }, true);The first parameter of executeAction() is a object which gets notified when a task completes (done()) or fails (failed()). The second parameter is a object which indicates which remote functions should be called. And finally the third parameter defines if the user should wait until the remote function completes.
    If the user should wait the executeAction() function shows a nice modal dialog with a progressbar and a cancel button. If the user doesn't have to wait it takes the progressbar on the statusbar to indicate the system is busy.
    Much rewriting was needed, but i think it is quite simple and it is fully swing thread save. But it wonders me that such a thing wasn't available.

  • Fundamental questions before starting next project

    Last project I put together received scathing criticism - and I have to say that I did not put any effort at all to clean the code up or optimize it. The reason is I started with small projects and within couple of months it just grew out of hand with requirements matrix gradually increasing.
    So this time around I want to take advice from you guys on architecture issues before I jump into programming. The two fundamental questions:
    1) I always thought that SubVi is like a method in C++. If I need to use that code multiple times, then I better put it in a SubVi. But after going through some of the posts on this forum it seems that people use SubVis to reduce # of wires,blocks,etc. on the main Vi too. Is this a standard practice?
    2) If I want to have more than 1 VI in the software, what is the best way to send data from one VI to the other VI? SubVI has input and output wires. So it is easy. But VIs do not. Basically I want to have Main VI where I get all the information from the use through a front panel and then go off doing my data acquisition. I want to keep the Main VI as clean as possible. There will be some operations which will need only 1 input and will have only 1 output. But this operation will be used only once in the who operation. So can I have this operation all in a VI and then call it in the Main VI?
    3) If I have 3 different VIs in my application, and I define something (say an array) in the Main VI or for that matter second_VI.vi in my application, will that be available in the third_VI.vi ?
    Thanks in advance.

    labview_beginner wrote:
    1) I always thought that SubVi is like a method in C++. If I need to use that code multiple times, then I better put it in a SubVi. But after going through some of the posts on this forum it seems that people use SubVis to reduce # of wires,blocks,etc. on the main Vi too. Is this a standard practice?
    You could call it similar to a method.  I would say a subroutine or function is a better terminology since the term method is more applicable to object oriented based programming.  Basically any way to encapsulate a portion of code, particularly if you use it over and over.  It might have input and/or outputs, or neither.
    2) If I want to have more than 1 VI in the software, what is the best way to send data from one VI to the other VI? SubVI has input and output wires. So it is easy. But VIs do not. Basically I want to have Main VI where I get all the information from the use through a front panel and then go off doing my data acquisition. I want to keep the Main VI as clean as possible. There will be some operations which will need only 1 input and will have only 1 output. But this operation will be used only once in the who operation. So can I have this operation all in a VI and then call it in the Main VI?
    There is no difference between a VI and a subVI other than semantics.  Both are completely independent excecutable portions of code.  Your main or top-level VI can have inputs and outputs as well.  You could execute it stand alone, or it could become a subVI of an even higher portion of code in your hierarchy.  The only difference between the two is that a subVI is just a term to distinguish it as being a portion of a higher level of code.  There are multiple ways of passing data between VI's.  One is wires.  When a subVI ends, the data on its indicator that is connected to the panel is available to travel down the wire to another portion of code.  Another is global or shared variables which stores data to be used by multiple locations.  Another is a function global variable, a LV2 style variable, or action engine.  All of these use special characteristics of uninitialized shift registers to store data between calls of that subVI.  Other methods of sharing data are on the Synchronization pallette such as queues and notifiers to store and pass data.
    Using a subVI, even it used in only 1 location can help keep a portion of your block diagram clear.  It gives you the ability to hide some details such as a complicated algorithm.  You can write an algorithm as a subVI and it gives you the ability to test the inputs and outpus as a standalone.  Once you have that. You can drop it in and use it even if it is only at 1 location.  If you need to change it, you can modify the subVI and test it without risking the corruption of the rest of your main VI
    3) If I have 3 different VIs in my application, and I define something (say an array) in the Main VI or for that matter second_VI.vi in my application, will that be available in the third_VI.vi ?
    Possibly, it all depends on which of the methods listed in number 2 you would like to use.
    Thanks in advance.

  • Fundamental question on EJB, JNDI and client jars

    Hi,
    This is a very fundamental question on EJBs and their clients - what
    all should go into the client jar of an ejb?
    I know for sure that just the remote and home interface classes of the
    ejb are sufficient on the client's classpath to work with an EJB on a
    totally different server, but I dont understand the logic behind it.
    If the client has to pass its object parameters over the network to
    the server where the ejb bean is located, should the container
    generated stub not be present on the client's classpath? After the
    client does the JNDI lookup of the ejb home on the server, how does it
    serialize and pass the parameters over the network if the container
    generated stub is not present?
    Any help would be greatly appreciated. Pointers to material on the
    internet which explain this/related things in detail would be a great
    help.
    Thank you,
    Anoushka

    hello,
    well, the process is fairly simple actually.. The client needn't necessarily have
    the container generated stub. as a client u could contact what is known as a boot-strap
    service to download the stub over the wire.. infact one of the advantages of RMI
    is precisely that. and since RMI is the underlying architecture of EJBs, it all
    becomes rather simple. when u 'lookup' a bean, what u are in essence doing is
    asking the server to send down the stub to your JVM. well.. right now this is
    what i got time for..i will try to post a lengthier explanation in a couple of
    days at leisure..
    Vijay
    "Anoushka" <[email protected]> wrote:
    >
    Hi,
    This is a very fundamental question on EJBs and their clients - what
    all should go into the client jar of an ejb?
    I know for sure that just the remote and home interface classes of the
    ejb are sufficient on the client's classpath to work with an EJB on a
    totally different server, but I dont understand the logic behind it.
    If the client has to pass its object parameters over the network to
    the server where the ejb bean is located, should the container
    generated stub not be present on the client's classpath? After the
    client does the JNDI lookup of the ejb home on the server, how does it
    serialize and pass the parameters over the network if the container
    generated stub is not present?
    Any help would be greatly appreciated. Pointers to material on the
    internet which explain this/related things in detail would be a great
    help.
    Thank you,
    Anoushka

  • 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

  • Solution Manager - v3.2 - Fundamental Question

    Hi
    I have a fundamental SAP / SM question which I cant seem to actually clarify....
    Do ALL SAP servers in a SAP Infrastructure have to have a servername of 13 Characters?...
    When revieing the OSS it mentioned HOSTNAME...and it seems to use this interchangably with Computer Name...
    So, for example...
    Can I have a Solutions Manager server with a Netbios name of "SOLUTIONSMANAGE"  - 15 CHARACTERS and a SAP ECC Server with a server name also with 15 Characters......?
    The OSS and all the documentation refers to SAP Prereq of 13 Characters for the Host...but what is the host defininition in this case?..What does the 13 Character limit apply to? How do companies with Naming conventions longer than 13 Characters implement the landscape?
    Many Thanks!
    J

    Hi Oliver,
    Check out these URL's
    <u><b>Solution manager</b></u>
    http://help.sap.com/saphelp_sm32/helpdata/en/index.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.logon.redirect
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/how to integrate bex web applications into sap solution manager.pdf
    http://www.sap.com/services/pdf/BWP_SB_SAP_Solution_Manager.pdf
    http://www.sapinfo.net/index.php4?ACTION=noframe&url=http://www.sapinfo.net/public/en/print.php4/article/Article-220903dbfa95a95bd1/en
    https://service.sap.com/solutionmanager
    http://www.sapinsideronline.com/spijsp/article.jsp?article_id=41229&volume_id=5577
    http://service.sap.com/roasmaps
    Regards,
    RK

  • Question on Sequence..

    There is an primary key in my table which is assigned value from a sequence.
    For this i first fetch the value from sequence and assign it to the column while inserting.
    My question is :
    How can i reset the value of the sequence in case if the insertion operation fails..
    Regards
    Kaustubh

    You cannot rollback the sequence value.Don't give up so easily. Here's a very basic example of what you can do. It's not the ideal coding, but it shows the principle.
    SQL> create table x (id number, x number);
    Table created.
    SQL>
    SQL> create sequence myseq;
    Sequence created.
    SQL>
    SQL> declare
      2    procedure insertval(x varchar2) is
      3      sq number;
      4    begin
      5      select myseq.nextval into sq from dual;
      6      dbms_output.put_line('attempting to insert sequence : '||sq);
      7      execute immediate ('insert into x values ('||sq||', '||x||')');
      8      dbms_output.put_line('success');
      9    exception
    10      when others then
    11        dbms_output.put_line('failure');
    12        execute immediate ('alter sequence myseq increment by -1');
    13        declare
    14          dummy number;
    15        begin
    16          execute immediate ('select myseq.nextval from dual') into dummy;
    17          dbms_output.put_line('sequence rolled back by 1 to '||dummy);
    18        end;
    19        execute immediate ('alter sequence myseq increment by 1');
    20    end;
    21  begin
    22    insertval('1');
    23    insertval('2');
    24    insertval('a');
    25    insertval('3');
    26    insertval('4');
    27  end;
    28  /
    attempting to insert sequence : 1
    success
    attempting to insert sequence : 2
    success
    attempting to insert sequence : 3
    failure
    sequence rolled back by 1 to 2
    attempting to insert sequence : 3
    success
    attempting to insert sequence : 4
    success
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from x;
            ID          X
             1          1
             2          2
             3          3
             4          4
    SQL>

  • HOWTO QUESTION: inout sequences from client

    Does anyone understand how to handle inout sequences in Java. I have to call a CORBA server method that accepts an inout sequence of structures. I can invoke the method, but how do I access the return values?

    As far as I understand this topic, this is the task of
    the holder objects. For example, if you have a method
    in IDL
    void foo(inout MyObject obj);
    It will be converted to Java
    void foo(MyObjectHolder obj);
    You would use it by invoking
    MyObject obj = new MyObject();
    MyObjectHolder objHolder = new
    new MyObjectHolder(obj);
    myXYServer.foo(objHolder);
    // now do something with obj
    objHolder.value.doSomething()
    I believe the question is to manipulate the inout variable. An 'inout' is a variable that originate from the
    client, but can be altered by the server and sent back to the client
    struct inItem
         string key;
         string value;
    }; // inItem
    struct outItem
         string key;
         string value;
    }; // outItem
    struct inoutItem
         string key;
         string value;
    }; // outItem
    typedef sequence <inoutItem> inoutResponse;
    interface InfoRoamServer
         long processData(in Intype inreq, out outType, inout inoutResponse response);
    The java code generated should include Helper and Holder for each of the struct, use them to
    set/get data from response object
    If we initialize
    inoutResponseHolder response = new inoutResponseHolder();
    Set value
    response.value =...
    to get Value
    = response.value ;

  • App-V 4.6 - A question about sequencing Add-ons

    Hello,
    just a short question about app-v and add-ons:
    I want to sequence and publish an add-on for Microsoft Excel in app-v 4.6. But is it right that (if i want to use an add-on later) i have to use a virtual (sequenced) primary program?
    I do not find these information during my research and I am not really shure about it.
    It would be nice if it is possible to use a sequenced add-on with a local installation of e.g. Excel.
    Thank you very much!
    Gruß ST_Jan

    Hello,
    No, you can sequence the add-in and then create a shortcut to Excel.
    See this generic guide;
    http://blogs.technet.com/b/gladiatormsft/archive/2012/09/02/app-v-4-6-oldie-but-goodie-using-url-shortcuts-to-simply-user-experience-when-running-virtualized-ie-plug-ins-plus-a-bonus-tip.aspx
    and this topic;
    http://blogs.technet.com/b/virtualvibes/archive/2013/05/01/sequencing-a-shortcut-in-app-v-4-6-local-and-virtual-interaction.aspx
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • Four Basic Questions

    I don't see a FAQ list for this area, so I'm going to ask questions that are fairly basic because I need help.
    I am ready to turn a G4 tower into a server. I have reformatted the internal HD, bought two new SATA drives and a Firmtek SeriTek Serial ATA controller, so I feel pretty good from a hardware perspective.
    The plan is to install the Mac OS X (Tiger) Server software onto the existing HD and use the two SATA drives for user files/data/storage. I believe this is possible, but have the following questions:
    1. Can I partition the SATA drives (wanting to divide the 300GB drives into 4 75GB volumes) and still have the RAID work (assuming I partition each drive in the same way)? The manual seems to indicate each disk in a RAID must have a single partition, but I think I've read otherwise here and am confused on this.
    2. If I can use multiple partitions, am I right in assuming that I need to create the partitions via Disk Utility BEFORE I install OS X Server?
    3. And regardless of whether I can use partitions or not, the RAID is set up in the Mac OS X Server installation process, right? (Even when I am installing the software to a disk that will not be part of the RAID?)
    4. Finally, (I have the 10 user license for the server software), are each of the partitions considered (in Apple terminology) a "share point"? In other words, if I do these four partitions, and someone logs into all four, will that use up 4 of the 10 licenses I have? I seriously hope not, but fear that it will. (Background, we have 6 employees, so I had the thought "10 users is plenty" ... but if 6 of the employees try to log in to three of the partitions each, is that 18 share points? That would seem to make the term "users" irrelevant.)
    Thanks in advance for your help, I'd be grateful for insight here. I think I've done my research, but these basic questions are not ones I can seem to find answers to.
    Patrick

    1. Can I partition the SATA drives (wanting to divide
    the 300GB drives into 4 75GB volumes) and still have
    the RAID work (assuming I partition each drive in the
    same way)?
    I'm assuming you mean using Apple's software RAID to mirror the two SATA drives connected to your PCI card, right? If so, then you can just install the OS into the internal HD, and start up your new server. Then, launch disk utility, create the RAID mirror 'logical disk', and then (I think) you can create your multiple partitions on the RAID volume (not 100% sure it will let you, but that would be the process if it does). In any case, you might want to consider getting a PCI SATA controller that does hardware RAID itself - less strain on the server CPU, and generally more robust than software RAID. Also: you didn't say how big your SATA drives are, but they'd need to be 300 GB each to get a 300 GB RAID mirror volume, as a RAID mirror is half as big as the sum of it's members.
    2. If I can use multiple partitions, am I right in
    assuming that I need to create the partitions via
    Disk Utility BEFORE I install OS X Server?
    Since you're installing the OS on the internal drive which isn't part of the RAID, then no, you could install the OS first on the internal, then set up the RAID SATA disks later.
    3. And regardless of whether I can use partitions or
    not, the RAID is set up in the Mac OS X Server
    installation process, right? (Even when I am
    installing the software to a disk that will not be
    part of the RAID?)
    RAID is setup from the disk utility app, which you can do before or after you install the OS. Probably easier to do it after.
    4. Finally, (I have the 10 user license for the
    server software), are each of the partitions
    considered (in Apple terminology) a "share point"?
    No: partitions have nothing to do with sharepoints, and neither have anything to do with licensing. You can have 1 partition with 10 sharepoints inside it, or you could have 10 partitions with only one of them containing a sharepoint (note: be sure not to share a partition or volume: create a folder inside and share that instead). In either case, the 10 user license only restricts the number of users that can concurrently connect to the server (i.e. you can create more than 10 user accounts, but only 10 of them can log in at a time).
    iBook G4   Mac OS X (10.4.3)  

  • Question Type 'Sequence' with thumbnails?

    Hi all,
    I would like to know, if there is a work around in Captivate 3 to build a 'Sequence' question using images rather than text.
    Would be great, if the solution (if any) was applicable to other question types like 'Multiple Choice' as well.
    I checked, if this feature is supported in Captivate 4 (trial), but apparently it is not.
    Can anyone of you guys help me here?
    Thanks a lot,
    Tina

    Hi there
    I'm guessing you mean to have the ability to click and drag the image? If so, I'm sorry but the answer is no. There is no ability to click and drag images in any version of Captivate to date.
    If I correctly interpreted that, please file a feature request to add your voice to others that have asked for it. (link is in my sig)
    You are able to insert images into Question slides. But they will simple be visible and not interactive in any way.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Questions regarding sequence settings, render, and export

    Just a couple of questions:
    1. Will my sequence settings and render quality affect my final output? I am thinking it does, and it may seem elementary to most of you, but it would be nice to get a definite answer. If so, then should I be rendering @ the best quality possible? In turn, should I too be switching my codec? Which correlates with my next question....
    2. What codec should I be using? As it is I've been just getting footage off of mini dv. For best possible quality what should my workflow look like? Should I change my sequence settings codec to uncompressed? Which one? Uncompressed-8bit or 10 or animation? Or is okay to leave that setting at DC NTSC PRO?
    Then, most importantly, when exporting what is my best possible output with the least amount of quality loss? For mediocore quality i've been exporting through h.264 or sorenson 3 - for a bit higher DV NTSC PRO, for max uncompressed 8 bit.... how about the other settings? deinterlace? cbr or vbr? etc..
    Much thanks - I'm a lot confused concerning the technical usage of the program. B)

    Hi David, thank you for the reply and welcome.
    Just to clarify my workflow a bit more - I'm importing mini dv footage, but i'm altering that pretty much extensively with many overlays, in program effects, and various exterior plugins such as boris red, magic bullet, twixtor, etc.. Would mantaining a sequence suited for dv ntsc make sense if mantaining those effect's and overlay's vibrancy, motion, and color is key? Or should I then change my sequence settings to animation or uncompressed 8 or something other?
    What I want for final output is a pristine master (basically I want what I see is what I get) that I can then downcompress for either internet (h264?) or dvd without too much headache. I think Animation only plays on computers? Would it hurt quality badly moving it to a dvd that is playable on dvd players? Or is another setting that I don't know the solution?
    Does it hurt quality if I render it at lower draft settings and dv ntsc and then when i'm done change my sequence settings to higher settings and change it to, say, animation, AND THEN re-render and export to my sequence codec? I'm assuming no, because I'm still working with my original capture source, but just checking.
    thanks again David, and to anyone that may be able to help! B)
    Message was edited by: eric sanpablo

  • A few general questions about sequences, framerates (fps), audio sources

    If I create a sequence in Pro that is 23.976fps, matching my audo from Canon T2i shot with 24fps... and an audio with 48hz... and then if I import an audio (music) with 44hz..
    does it affect my output settings?
    Another question. If i have 23.976fps sequence, and I output it for Vimeo (which they say should be 30fps) does it have ANY effect on video/audio synchronzation?

    PrPro can handle most common Audio Sample Rates, like 44.1KHz @ 16-bit, and will Conform those Assets to edit in a 48KHz 16-bit Project. Other than an extra moment of the Conforming process, should not be an issue. This ARTICLE will give you some background on Conforming and Indexing.
    Good luck,
    Hunt

  • Two Fundamental questions on UPGRADE/Patch

    Question 1.
    If i upgrade from 10.2.0.1.0 to 10.2.0.3.0, should i call this as an Upgrade or Patching?
    Question 2.
    If i upgrade(or patch) from 10.2.0.1.0 to 10.2.0.3.0, can i reverse theses changes and go back to 10.2.0.1.0?

    james_p wrote:
    You cannot downgrade the instance/databaseThanks Maran. But according to the following link (which Ying has suggested) 10gR2 can be downgraded back to 9.2.0.6.0
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14238/downgrade.htm#i1010243
    Just for clarification: You can only downgrade your database (without using a backup) if your COMPATIBLE setting is less than the default of "10.2". If it has been set to "10.2" there is no way of downgrading directly, then you need to restore from backup.
    If the COMPATIBLE parameter is still e.g. "9.2" then you can follow the instructions and basically - after performing the described steps - open the same physical database using a 9.2 instance.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Fundamental question on etherchannel hashing.

    Folks,
    I had some very basic questions on the way hashing takes place on Cisco switches connected to each other over a port channel.
    Considering that 2 links are used between the switch, namely port Gi 0/1 and Gi 0/2.
    1) By default I understand that this could be a L2 etherchannel or L3 etherchannel, the default mode of hashing is still the Source and destination MAC id, am I correct?
    2) So now if the source IP of 1.1.1.1 needs to reach to 1.1.1.2 how would the hashing calculation take place? Again I understand that this is on the basis of the last 3 bits from the IP address field. 001 and 010 come to 011 which is 3. So based on the number of ports it will select which interface to assign.
    I still do not understand what has the below output got to do with the selection:
    Core-01#sh interfaces port-channel 40 etherchannel
    Age of the Port-channel   = 204d:07h:40m:10s
    Logical slot/port   = 14/3          Number of ports = 2
    GC                  = 0x00000000      HotStandBy port = null
    Passive port list   = Te1/4 Te2/4
    Port state          = Port-channel L3-Ag Ag-Inuse
    Protocol            =    -
    Port security       = Disabled
    Fast-switchover     = disabled
    Fast-switchover Dampening = disabled
    Load share deferral = disabled
    Ports in the Port-channel:
    Index   Load      Port          EC state       No of bits
    ------+------+------------+------------------+-----------
     0      E4            Te1/4                 On   4
     1      1B            Te2/4                 On   4
    Time since last port bundled:    204d:07h:19m:44s    Te2/4
    Time since last port Un-bundled: 204d:07h:19m:54s    Te1/4
    Core-01#
    What does that load-value mean? and how is that calculated? and does that have a role to play in the selection of the port?
    Thanks,
    Nik

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    So it looks like how to divide the bits is decided by the switch.
    Ah, yea, reread my original post for answer to your second question.  ;)
    An actual hashing algorithm can be rather complicated.  What they try to do is to "fairly" divide the input value across the number of hash buckets.  For example, if you have two Etherchannel links, they will try to hash the hash attribute such that 50% goes to one link and 50% to the other link.
    For example, assuming you hash on source IP, how do you hash 192.168.1.1, .2, .3 and .4?  A very simple hash algorithm could just go "odd"/"even", but what if your IPs were .2, .4, .6 and .8?  A more complex algorithm would try to still hash these IPs equally across your two links.
    Again, hashing algorithms can get complex, search the Internet on the subject, and you may better appreciate this.
    Because of the possibility of such complexity, one vendor's hashing might be better than another vendor's, so they often will keep their actual algorithm secret.
    No matter, though, how good a hashing algorithm might be, they all will hash the same attribute to the same bucket.  For example, if you're still using source IP, and only source IP, as your hash attribute, all traffic from the same host is going to use the same link.  This is why what attributes are used are important.  Choices vary per Cisco platform.  Normally, you want the hash attributes to differ between every different traffic flow.
    Etherchannel does not analyze actual link loading.  If there are only two active flows, and both hash to the same link, that link might become saturated, while another link is completely idle.
    Short term Etherchannel usage, unless you're dealing with lots of flows, is often not very balanced.  Longer term Etherchannel usage, should be almost balanced.  If not, most likely you're not using the optimal hash attributes for your traffic.

Maybe you are looking for

  • Too Many Files in iWeb Site - Why must iWeb create so many duplicates?

    I have created a website for all of my family photos. My current hosting plan gives me 100GB space and a limitation of 20,000 files. The problem that I have at the moment is how iWeb creates the site and all of the required files for display. I am us

  • Slow Shutdown (added log-file)

    Hello Support Community, my 10.8.2 mpb is shutting down really slow. I already repaired the disk perimissions and the dis itself via disk utility, cleared my chaches, booted in safe-mode and tried to close all programmes and dismount all devices bevo

  • Oracle forms error while calling through browser

    Hi, I have an application server 10g r1 running on linux advanced server 4 and installed jinitiator 1.22.But when i calling form through browser from other machine a message is appeared on the screen without showing the form java.lang.classnotfoundex

  • OracleBlob/LiteLob Length or GetBytes fails with S1000[POL-3314]

    Trying to access OracleBlob Length or GetBytes fails with S1000[POL-3314], has anyone found a solution to this problem? Oracle.DataAccess.Lite.OracleException: S1000[POL-3314] unknown error at Oracle.DataAccess.Lite.OracleConnection.OE(IntPtr stmt, I

  • Application loads (1 second) then disappears.  Help!

    I have NO Java experience. I'm just trying to run a Java (data base query) application that I have downloaded. I'm trying to run a .jar application called sdssQA v 2.2.25a located at: http://cas.sdss.org/dr4/en/help/download/sdssQA/pub/sdssQA.jar I'v