Small Concept Buildup in regard to different Sessions of sqlplus..

Hi,
I am using Oracle 10g over RHEL4..
I have opened two sessions of sqlplus through different Terminal windows.. Now the issue that I am facing is listed below..
I made one sql file which contains some select query under one Terminal prompt.. Now i tried executing the same file from Other terminal prompt in sqlplus hr/hr,, it doesn't reflects the data instead when i did sqlplus hr/hr again(after exiting, then logging),, then it retrieved the actual data that i saved in the sql file under first Terminal prompt..
This happens everytime, i.e. every time I made some changes in the file under first Terminal prompt, and tried executing the one in other Terminal Prompt, then it reflects the previous data onlyy.. After i exit the session, and logged in again as hr/hr, then it reflects the actual data..
Please share the logic behind this..
Thanks in advance..
Rahul

The logic is one of the most basic of concepts in the Oracle database and one you must learn before you can have any hope of being successful. Oracle does not allow dirty reads.
Go to the docs at http://tahiti.oracle.com and read the Concept docs paying special attention to the following keywords:
SCN (system change number)
COMMIT
ROLLBACK
TRANSACTION
Multiversion Read Consistency
From the standpoint of the database in any other than the current session: Nothing is changed until you commit the transaction.

Similar Messages

  • Use of SAP memory to transfer data between two different sessions.

    Hello experts,
    I wish to know how to use SAP memory to transfer data between two different sessions.
    The scenario is that when I run a report and change a variable, the value of changed variable should be availabe to another user on another terminal.
    Thanks & Regards!
    Sumit

    Hello,
    Just to add what Max has already mentioned. IMPORT TO / EXPORT FROM DATABASE statements can be used to store data in special "cluster" tables (you can't use any DDIC table) e.g., INDX.
    @OP: You can opt for Shared Memory(SHM) for this specific requirement as well. In my opinion SHM is a bit tricky to code, but it is easier to monitor. The opposite holds true for "data clusters".
    You should remember SHM is app-server specific. So if you've a load balancing scenario, using SHM can cause problems.
    Hope i'm clear.
    BR,
    Suhas
    Edited by: Suhas Saha on Nov 19, 2010 4:12 PM

  • Same query different timings , different sessions at the same time

    I am running exactly the same query from 2 different sessions almost simultaneously and in one session it is taking 2 seconds and in the other it is taking 20 seconds. The explain plans in both the sessions (by set autotrace on) are exactly the same. The timing is almost same for succesive runs of the query in the same sessions. That is when I run the query again in the "slow session" it is always around 20 seconds and when I run the query again in the "fast session" it is always fast. The queries are being run within a few seconds of each other so the load on the database is almost same.
    My hunch is that it is a database parameter that needs to be changed to solve this problem, can someone guide me with this ....which parameters I should ask our DBAs to adjust ? Our database is Oracle 10G.
    Regards
    Amitabha

    Duplicate thread
    Same query different timings , different sessions at the same time
    Gints Plivna
    http://www.gplivna.eu

  • Hi I have two questions. I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users? How is the session timeout set? Thanks, YS

     

    <i>I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users?</i>
    Um, there is no such thing as NAS4.1.
    I'm assuming that you mean NAS4.0 (maybe NAS4.0sp1?). If so, then the session timeouts are specified in the session section of the NTV configuration files.
    AFAIK, you can specify session timeouts on a per user basis.

  • [OBSOLET]Automatically logging in different sessions in KDM via kdmctl

    I recently found comfort in KDE, so I try to use KDM on my mediacenter to manage both, a KDE session, as well as an XBMC session.
    What I want to do: Log in as $USER on two different sessions, one with XBMC and one with the KDE desktop automatically on boot without the need to provide a password.
    After playing a bit with the control center, I came as far as automatically logging in a user and/or allowing a user a passwordless login. This is a good first step. I cannot, however, find a way to define the session it should use, the control center setting for auto login will always use the default session (which is the last session I manually logged in to). There is no way to configure multiple sessions at once in the controlcenter.
    So I looked for cli tools and discovered kdmctl. It has a number of features, for example will "kdmctl activate :1" jump to the display :1. Another step closer to my goal is "kdmctl reserve", which opens a new login prompt on the next free $DISPLAY. Now it seems like kdmctl is very session-sensitive. I need root access to call it from a tty, while a normal user is sufficient inside a KDM managed X session. Calling kdmctl in a tty will give me more options, than calling it in X, even with sudo. Upon "# kdmctl" in a tty, I can see resume, manage and login options, which are not there in a KDE session.
    What I have so far:
    1. I can use the KDE control center to log in a user automatically on :0, but I cannot specify the session (Plasma, XBMC, etc.).
    2. I can run "# kdmctl reserve" to create a new login prompt at :1
    3. I can login to :1 by issuing "# kdmctl login :1 now USERNAME PASSWORD", but only from a tty (which would be sufficient, as I intend to write a systemd unit).
    What I cannot do:
    1. I cannot specify the session. I have found http://docs.kde.org/stable/de/kde-works … opics.html, but it is not really helpful. It says I need "[session_arguments]" in the "format of printf specified .dmrc". I assume this is how I could specify my session, but I cannot find any documentation. Maybe I'm using the wrong keywords. There is neither a man page for kdmrc nor for dmrc. This is what I'd like to have some help with.
    EDIT: It's not actually solved but has become obsolete. KDE4 is fading away and, according to the wiki, KDE5/plasma5 prefers SDDM. Besides that, I stopped using KDE, stopped switching sessions, stopped working on this a long time ago.
    Last edited by Awebb (2015-03-29 11:55:33)

    Anybody any clues?
    -Mahendra.

  • Maintaining different sessions in browser tabs in ADF 11g application

    I have a simple ADF 11g application which uses ADF BC 11g.
    I want to maintain different sessions between the tabs in the same browser.
    Currently it is messing up with session variables. Please reply to me ASAP.
    Thanks,
    Bobby
    Edited by: 866444 on Jun 16, 2011 11:35 AM

    Assuming you are having problems because of the usage of JSF Session scope beans, then the answer is to use pageFlowScope for that set of data - then it is not shared between tabs.

  • Can I download a file in different sessions or should it be in a single session? In other words can I pause the download of a file, shutdown/restart my system and then resume download from where I left off? Or will it start from the very beginning?

    Can I download a file in different sessions or should it be in a single session? In other words can I pause the download of a file, shutdown/restart my system and then resume download from where I left off? Or will it start from the very beginning?

    If a server supports resuming downloads then the download should continue where it left off.<br />
    You can test that by simple starting a large download and wait a minute or so before pausing it.<br />
    Then you can close and restart Firefox and see if resuming works.
    You can set the pref browser.download.manager.quitBehavior to 2 on the about:config page.<br />
    That will make Firefox ask for confirmation if you want to cancel the download if you close Firefox.
    See:
    * http://kb.mozillazine.org/browser.download.manager.quitBehavior

  • Data of different session are not getting refreshed.

    We used select one choice and it is bind to the iterator. Data of different session are not getting reflected.
    Problem Scenario : Two browsers are open with same screen . In browser-1, I am adding new item which display on drop down of same screen. But drop down of browser-2 is not displaying the new added value.
    Please let me know how to refresh the data of browser-2 if I added data on different session.
    //JSFF entry
    <af:selectOneChoice binding="#{backingBeanScope.Product.ICTCSTName}"
    id="iCTCSTName" simple="true"
    label="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.label}"
    required="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.hints.mandatory}"
    value="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.inputValue}"
    autoSubmit="true">
    <f:selectItems value="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.items}"
    binding="#{backingBeanScope.Product.si2}"
    id="si2"/>
    </af:selectOneChoice>
    //Pagedef entry
    <list IterBinding="tpCrudeSuperTypeFindAllPopulatedCTIterator"
    ListOperMode="navigation"
    ListIter="tpCrudeSuperTypeFindAllPopulatedCTIterator"
    id="tpCrudeSuperTypeFindAllPopulatedCT" DTSupportsMRU="true">
    <AttrNames>
    <Item Value="superTypeName"/>
    </AttrNames>
    </list>

    Are you sure backingBeanScope is the correct scope for your scenario?
    Session scope sound more appropriate to me.
    binding="#{backingBeanScope.Product.si2}"

  • Will a sequence return same value for two different sessions?

    Is there a possibility that a sequence will return same value to two different sessions when it is referred exactly at the same instance of time?

    @Justin... Thanks for your insight; indeed, we too feel this shouldn't ever happen and never heard of it either, but there it is. (No, we haven't logged a TAR yet -- whatever that is -- partly because it didn't occur to us and partly because we only recently came across the issue and sensibly want to do some testing before we cry foul.)
    However, the code is pretty straight-forward, much like this (inside a FOR EACH ROW trigger body):
    SELECT <seqname>.NEXTVAL INTO <keyvar> FROM DUAL;
    INSERT INTO <tblname> (<keyfield>, <... some other fields>)
    VALUES(<keyvar>, <... some other values> );
    (where <tblname> is NOT the table on which the trigger is fired). This is the only place where the sequence is ever accessed. The sequence state is way below its limits (either MAXVALUE or <keyfield>/<keyvar> datatype size).
    In this setup, end users sometimes got an out-of-the-blue SQL error to the effect that uniqueness constraint has been violated -- as I said, we used to have a unique index on <keyfield> -- which leads us to assume that the sequence generated a duplicate key (only way for the constraint to be violated, AFAIK). We released the constraint and indeed, using a simple SELECT <keyfield>, COUNT(*) FROM <tblname> GROUP BY <keyfield> HAVING COUNT(*)>1 got us some results.
    Unfortunately, the <tblname> table gets regularly purged by a consumer process so it's hard to trace; now we created a logger trigger, on <tblname> this time, which tracks cases of duplicate <keyfield> inserts... We'll see how it goes.
    @Laurent... winks at the CYCLE thing Our sequence is (needless to say) declared as NOCYCLE and the datatype is large enough to hold MAXVALUE.

  • Different session used when calling stored procedure from form

    after commiting data in a form to a table, a stored procedure is called that inserts the data written to the table into several other tables. Some columns in the original table are updated - no commit is issued in the procedure. On returning from the procedure the form is re-queried but the updated columns don't contain the updates. This seems to imply that the stored procedure is running as a different session to the one of the form.
    Is this the case? Can we make the form and the stored procedure use the same session so that the data is available in both without having to commit in the procedure?

    No. They should be within one session unless you explicitly open a new session.
    The reason why you dont see updates of the data block when you requery is probably the changes on the form never go to the back end. I think first you have to make sure data changes go to db table. You can do a commit_form before calling the stored procedure and open up another session (e.g. sqlplus) to check the data in the table changed or not.

  • Can we define different session time-outs for different user types in the DD?

    Hello,
    Do you know a way to specify different session time-outs in deployment
    descriptor for different users/roles?
    For example:
    Role-A should be invalidated after 10 minutes
    Role-B should be invalidated after 100 minutes
    Shortly, I would be grateful if you can help,
    Fehmi.

    "Fehmi" <[email protected]> wrote in message
    news:3f50fb75$[email protected]..
    >
    Hello,
    Do you know a way to specify different session time-outs in deployment
    descriptor for different users/roles?
    For example:
    Role-A should be invalidated after 10 minutes
    Role-B should be invalidated after 100 minutes
    I don't believe you can timeout a session based on a user or a role. I think
    you can just specify when
    all sessions timeout (via the session descriptor). But, you may want to ask
    in the weblogic.developer.interest.servlet newsgroup.

  • Same process different sessions

    Hi,
    DB version is 10.2.0.1
    I could see same process having four different sessions and all are inactive..why is that so ?
    SQL> /
    SPID         PROCESS      STATUS   USERNAME        MACHINE              LOGON_TIME        LAST_CALL_ET ACTION     MODULE            SID    SNO
    13359        1234         INACTIVE ELOG               vm01       07-30-10 10:37:59   .098333333                              572     34
    13841        1234         INACTIVE ELOG               vm01       07-30-10 10:42:07   .029166667                              573     47
    13853        1234         INACTIVE ELOG               vm01       07-30-10 10:42:28        .0025                              570    111
    13851        1234         INACTIVE ELOG               vm01       07-30-10 10:42:28   .023333333                              583    123thanks,
    baskar.l

    Hi Hemant,
    Tomcat application is running in this DB.
    SQL> L
      1  SELECT
      2  p.spid,
      3  s.process,
      4  s.status,
      5  s.username,
      6  s.machine,
      7  to_char(s.logon_time,'mm-dd-yy hh24:mi:ss') Logon_Time,
      8  s.last_call_et/3600 Last_Call_ET,
      9  s.action,
    10  s.module,
    11  s.sid,
    12  s.serial#
    13  FROM
    14  V$SESSION s
    15  , V$PROCESS p
    16  WHERE
    17  s.paddr = p.addr
    18  AND
    19  s.username IS NOT NULL
    20  AND
    21* s.status='INACTIVE' order by logon_time
    SQL> @inactive
    SPID         PROCESS      STATUS   USERNAME        MACHINE              LOGON_TIME        LAST_CALL_ET ACTION     MODULE            SID    SNO
    13359        1234         INACTIVE ELOG            vm01       07-30-10 10:37:59   .741111111                              572     34
    13841        1234         INACTIVE ELOG            vm01       07-30-10 10:42:07   .671944444                              573     47
    13851        1234         INACTIVE ELOG            vm01       07-30-10 10:42:28   .666111111                              583    123
    14036        1234         INACTIVE TRAVELDESK      vm01       07-30-10 10:44:31   .070833333                              571     22
    14307        1234         INACTIVE ELOG            vm01       07-30-10 10:47:37   .580277778                              570    113
    14495        1234         INACTIVE ELOG            vm01       07-30-10 10:49:06   .555277778                              568     11
    14594        1234         INACTIVE ELOG            vm01       07-30-10 10:50:53   .525555556                              567     13
    15156        1234         INACTIVE ELOG            vm01       07-30-10 10:56:35   .430555556                              569    121
    15542        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:00:24   .367777778                              564     23
    15544        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:00:25   .366666667                              566     45
    15548        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:00:25   .361111111                              562      2
    15546        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:00:25   .366666667                              563     11
    15566        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:00:50   .360277778                              555      2
    15568        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:00:50   .360277778                              554      2
    15562        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:00:50   .360277778                              557      2
    15570        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:00:50   .354444444                              553      2
    15670        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:01:12   .346111111                              560     24
    15767        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:02:10   .337777778                              556      5
    15765        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:02:10   .337777778                              558      5
    15763        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:02:10   .337777778                              559      5
    15761        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:02:10   .337777778                              561     19
    15771        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:02:10   .337777778                              551      2
    15769        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:02:10   .337777778                              552     20
    16051        1234         INACTIVE TCMSPROD        vm01       07-30-10 11:05:45   .140833333                              588    461
    16237        1234         INACTIVE ELOG            vm01       07-30-10 11:07:16        .2525                              565     53
    16330        1234         INACTIVE ELOG            vm01       07-30-10 11:08:03   .239444444                              548     37
    16519        1234         INACTIVE ELOG            vm01       07-30-10 11:10:16        .2025                              547     30
    17532        1234         INACTIVE ELOG            vm01       07-30-10 11:21:25   .016666667                              550     91
    17534        1234         INACTIVE ELOG            vm01       07-30-10 11:21:25   .011666667                              549     65
    29 rows selected.thanks,
    baskar.l

  • Remote Access - Screen Sharing - possible to have a different session?

    I was wondering of there was some way, maybe using X11, of doing screen sharing to my iMac but with a different session.
    Can I log-in across the network and get a separate logged-in session from the one on the main screen?
    If so, how do I do it? Is there a 'How to' somewhere?
    I'd imagine something like setting up a Display parameter for X11 that can run remotely on my machine, so I can log on as a different person and run a different session without affecting what's on the main screen. Effectively to be multi-user access.

    On a Unix or Linux system (and OS/X is a Unix system) you can have multiple remote sessions running under X11.
    Mac OS X does NOT use X11 as its graphic engine. X11 is a side car on Mac OS X, provided so users that need to access Linux/Unix system which do use X11 have a way of displaying X-Windows output.
    Mac OS X itself does not use X11 in any way. So even if you could do what you want, it would not get any of the native Mac OS X applications displayed on your system.
    As someone else has pointed out, there is a trick with Fast User Switching and the Vine Server that can allow multiple users to access the system. It is a bit of a hack, and less than perfect, but if it works for you, that might be an option.

  • Change a string parameter for different session

    Hi Gurus,
    I would like to find out how can I change a string parameter for an existing different session?
    In DBMS_SYSTEM package there are two functions :
    - SET_INT_PARAM_IN_SESSION
    - SET_BOOL_PARAM_IN_SESSION
    which change values of parameters, but not string ones :(
    Is it possible and if not, is there an alternative for changing STATISTICS_LEVEL for different session to ALL?
    Thank you in advance,
    Ela

    Hi,
    >>Once again: how to change a string parameter for a DIFFERENT session?
    Once again I will repeat if I was not clear before: You cannot to do this. Just directly using ALTER SESSION against the session.
    * SET_INT_PARAM_IN_SESSION: Sets[u] integer-type init.ora parameters in any session
    * SET_BOOL_PARAM_IN_SESSION: Sets boolean-type init.ora parameters in any session
    Cheers
    Legatti

  • Different sessions for multiple jobs?

    Will different jobs run with different sessions or one session?

    Ravi,
    I am seeing different jobs cycling through the same set of session ids. For example, if a single job is running, it usually has 258 but then a subsequent job typically has 310. These are different jobs executed at different times.
    Is this due to some sort of connection pooling? I am just trying to understand it because I am considering using the session id to distinguish job runs but if the same session could be reused, I might have a problem.
    Thanks,
    Dianna

Maybe you are looking for

  • How to delete or remove the selected row in a table

    Dear Experts, I'm facing a typical requirement in VC, similiar to variable selection screen in BI Queries : I will have two tabes and if the user selects data from one table it will be moved to target table.I'm able to populate the target table with

  • Uninstall Adobe 7.0 Standard

    I don't have the exact version of 7.0 but I'm unable to uininstall it. It gives me an error message in the middle of it about some temporary folder it can't create and I can only select ok and then it backs out of the whole process. Now I can't open

  • Help please with nav bar!!

    Please could somebody help me?! I am still new to Dreamweaver and im changing my spry menu bar to something that will work properly on other devices BUT ive replaced the menu bar with a pure css menu bar which is now working great on other devices ex

  • Passing Form Vars to a CFC

    I am trying to pass Form variables to a CFC. Yes, the CFC works being called from Flex, with no arguments, but being new to Flex I am not sure how to post the values in the form fields back to the CFC. So my questions are: 1) how do you reference for

  • Initialize array vs array constant

    j'ai besoin d'un tableau initialisé. de ces 2 options: - la fonction initialize array - une constante tableau quelle est la meilleure ? ... et surtout pourquoi. en terme de performance, de gestion mémoire (ou autres paramètres) Je me doute que si la