Sql query when fired for first time

Here is my query. I installed database and software using DBCA. Now i got connected to sql. Now my doubt is when I fired SELECT * FROM EMP from scott user, for the first time, what are the different steps followed to fectch the data. I mean how the user gets connected to the database and which background process works at what stages. Please give detailed explanation. Thanks.

When connecting to the database the client makes a request to the listener, and the listener checks the availability of the requested database service and responds to the client with an ACCEPT message, which indicates connection dispatching.
After that, the listener sends a RESEND message back to the client and uses this time to check the database service. The client recieves the RESEND message and sends the same request again to the Listener.
After recieving the ACCEPT message the connection is established, and this connection is different depending if you are using a Dedicated Server or Shared Server configuration.
When you issue the query:
SELECT * FROM emp;Oracle checks in the Shared Pool, in the Data Dictionary cache if the object exists and if you have sufficient privileges to access it (user Scott in this case). It then checks the Library cache if this statement has been executed before. If it did, another parse will not be necessary. Then the SQL statement is parsed (if necessary), interpreted and executed.
The DBRW (Database Writer) background process then checks in the Buffer Cache if the blocks which contain the information from the EMP table are already there. If they are, a physical read is not necessary and it fetches the rows from the Buffer Cache.
If they are not, DBWR reads the data files, retrieves the data from them, store the related blocks in the Buffer Cache (so in the next executions of this query a physical read will not be needed) and then the data is shown to the user.
There are other details envolved, but in a general view that is what happens.

Similar Messages

  • Slow performance pages when accessing for first time

    Hi Oracle developers,
    Hope this is the right place to ask my question regarding Fusion Applications performance.
    I'm dealing with a hard issue in our Fusion Applications 11.1.7 'test' environment for educational purposes. The thing is that whenever a page is accessed the first time (after a restart) it takes a very long time for the page to appear on the screen.
    When it has been accessed before the page is rendered almost instantly. I suspect this has to with caching/compilation of the pages.
    I already looked at article (Doc ID 1518515.1) and the settings were already set as is described in the solution part of the note.
    My question:
    Is there a fix for this?
    Is there a way to precompile all Fusion Applications JSP pages after a restart.
    Hope you can help me out with this!
    Kind regards,
    Charif

    Hi Charif,
    we are looking into ways to speed this up, but at the moment there is nothing you can do to avoid this delay.  I know this sounds vague, but I cannot discuss future potential features here.
    Thanks,
    Oliver
    Fusion Applications Developer Relations
    @fadevrel
    http://blogs.oracle.com/fadevrel
    http://youtube.com/FADeveloperRelations

  • K7N2G Beeps when booting for first time

    I purshased the K7N2G series motherboard, and after connecting everything when I boot it beeps for about 1 and 1/2 seconds straight then stops, then a few seconds later it does it again.  It does this until I power it off.  A few times I was able to get into the BIOS, where the only things I set were the boot order, disabled the floppy controller, and changed the FSB to 133Mhz.  But nonetheless, it did this before I got into the BIOS the first time.  I have the following items attached to it:
    AMD 2200 w/ fan(which I made sure was working correctly when I booted)
    256MB DDR333 memory(installed in slot 1)
    40GB brand new unpartitioned IBM hard drive
    HP 4x CDRW drive
    Hard drive is set as master and plugged into the middle of the cable, and cdrom is slave at the end both connected to IDE 1.  I realize this isnt the best way to have them hooked up but its only like that for convenience purposes now.  Any help on this would be greatly appreciated
    Thanks.

    hi
    want some more info.
    ram what brand.
    what is the power output on 3.3 5v and 12v rails on the psu?.
    what does the d-bracket show?
    NOTE the d-bracket shows wrong to often but it could be worth checking.
    sometimes it showes a floppy or cpu error when using bad memory.
    bye

  • How do I keep photos on iphone when syncing for first time

    I gave my iPhone 4 to my son as an 8th grade graduation gift.
    He now wants to sync it to his macbook, so I helped him set up an itunes account.
    When we go to sync it, it says it will wipe the phone clean.
    He has some music on there from my itunes acct, and alot of photos he has taken.
    How can he do an initial sync without losing his dat (mostly photos)
    Thanks!

    I am not sure if you can do this if it is your first time on a new iTunes account, but I like to uncheck the box that says something like "Automatically manage your media". This means that iTunes does not care what apps and music etc. that I have on on my phone and if I want to add something I just click and drag a media file onto my phone's name and if I want to delete something I just view files on my phone via iTunes and delete it. I never need to check and uncheck songs in iTunes using this method. Itunes also never has to automatically delete and replace "outdated" media this way. If you can access this checkbox on the Device Summary page when you connect to your phone to iTunes, I highly recommend trying this.

  • Error with iTunes when connecting for first time.

    Here is the error that I get when I connect my phone to my computer:
    The software required for iPhone is not installed. Run the iTunes installer to remove iTunes. then install iTunes again.
    I have the latest version on iTunes installed (7.3). I have tried removing itunes and reinstalling 4 or 5 times. Evan restarted my computer few times too. I'm running Vista so not sure if that's the problem.

    Hi Bigrash,
    Close iTunes, and disconnect your iPhone from your computer.
    Go to "Control Panel", and go into "Programs".
    Select "Installed Programs".
    Here, find "Apple Mobile Device Support" from the list, and click on it. From the "File" menu, select "Change/Remove", and then click "Remove".
    After that application has been fully uninstalled, go to this page, to download another copy of the iTunesSetup.exe installer:
    Download iTunes - 7.3.0.54
    After you've downloaded the iTunes installation pack again, launch iTunes, and connect your iPhone.
    Do you still get that same error message, or not?
    -Kylene

  • -3095 error and then 5 when connected for first time.

    I Inboxes the AppleTV and I get the -3905 error and when I tried again I get error 5.
    cant seem to connect to my Wifi.
    Thanks in advance!

    Hi LeoCal,
    I apologize, I'm a bit unclear on the exact nature of the issue you are describing, and/or when exactly you are seeing these error messages. If your Apple TV doesn't appear to be working correctly on first setup, you may find the troubleshooting steps outlined in the following article helpful:
    Apple TV: Basic troubleshooting - Apple Support
    Regards,
    - Brenden

  • SQL Server Management Studio - Configuring the environment for first time use

    Hi
    I have recently switched my local 'My Documents' folder location to a network drive that I 'make available off line' to allow on-line/off-line work and synchronisation when I am working in and out of the office.
    When I load my SQL Server Management Studio 2005 I frequently get 'Microsoft SQL Server Management Studio is configuring the environment for first time use'.
    Management Studio  them loads and I can continue without problem.
    I am guessing it is trying to make reference to some settings file. Any ideas? I wonder if I can change/move these settings elsewhere to a local drive?
    Thanks

    Hi,
    There is bug report of this issue:
    http://connect.microsoft.com/SQLServer/feedback/details/126364/configuring-enviroment-for-the-first-time-every-time-in-ms-sql-server-management-express
    "SQL Server Management Studio Express saves the settings for the user in ...\Documents and Settings\<User Profile>\Local Settings\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
    and in ...\Documents and Settings\<user profile>\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
    if any of these files are not available or unusable, SSMSE will generate new ones."
    Hope this helps.
    BR,
    JoukoK

  • HT201250 i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. do i keep my files in the portable hard disk when I connect it again with the macbook or the time machine will era

    i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. Am i keeping my files in the portable hard disk when I will connect it again with the macbook or the time machine will erase all?
    I would like to know if after I erase all my data, empy hard drive inside the macbook, the time machine will erase all my files that I have saved in my "WD "My passport" external hard drive

    Welcome to Apple Support Communities
    Time Machine has to erase the external disk in order to make backups. Before setting Time Machine up, copy the files of your external disk to the hard disk of the Mac in order not to lose them, and then, set up Time Machine. The first backup will start automatically.
    If you want more information about Time Machine, read the Pondini's site > http://pondini.org

  • Error when launch MaxDB studio for first time

    Dear, Experts
    I faced with one issue for launch MaxDB studio for first time.
    It reported:
    Connect user failed
    SAP DBTech JDBC: Cannot connect to jdbc:sapdb://.../.UMDB [Restart required].
    Creating default user management failed
    Could not create database ".UMDB": [C:\sapdb\clients\DatabaseStudio\pgm\dbmcli.exe] > ERR, -24832, ERR_SHMNOTAVAILABLE ...
    Could you please help me on this?
    Thank you in advance.
    Best Regards

    If not solved yet...
    What says appsrv.log ? Which user are you using to start the appserver ? Which user have you specified when sreating the database ?
    Nicolas.

  • What should I do to setup a new MacBook pro for first time when moving from a PC?

    What should I do to setup a new MacBook pro for first time when moving from a PC?

    you have to use the migration assistant if you want your files transfered from your pc to mac this link will be helpful
    http://support.apple.com/kb/HT4796

  • Lov is not validating when i open a form for first time

    hi all,
    i am using form6i.
    i have one multi record block. in which lov is attached to it.
    but when i open the form for first time the item corresponding the above said is not showing and if i enter the value then also its not validating against. its showing error frm-40210
    but when i click on other item and come to this item Lov is showing.
    what could be the reason for this strange behaviour.
    i have checked set_item_properties too(there is properties have been set)
    Please advice.
    Thanks..

    FRM-40210: Search string not found.
    what could be the reason for this strange behaviour.Do you have an "Initial Value" set for the item? Do you have the "Validate from list" property set to yes or are you setting the initial value through code?
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Error when booting app server for first time

    Hi All,
    My OS is OEL 6,PT 8.53 and HCM9.2 after creating the app server domain and booting it for first time i am getting an error as below,
    exec PSWATCHSRV -o ./LOGS/stdout -e ./LOGS/stderr -A -- -ID 221921 -D TESTSERV -                              S PSWATCHSRV :
    CMDTUX_CAT:816: ERROR: Cannot exec, executable file not found
    tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error ha                              ndler
    exec tmshutdown -qy
    Any help appreciated.
    TUXEDO LOG Says,
    162253.wipcoe1234!tmloadcf.5379.1098766080.-2: 05-03-2013: client high water (0), total client (0)
    162253.wipcoe1234!tmloadcf.5379.1098766080.-2: 05-03-2013: Tuxedo Version 11.1.1.3.0, 64-bit
    162253.wipcoe1234!tmloadcf.5379.1098766080.-2: CMDTUX_CAT:879: INFO: A new file system has been created. (size = 1197 512-byte blocks)
    162253.wipcoe1234!tmloadcf.5379.1098766080.-2: CMDTUX_CAT:871: INFO: TUXCONFIG file /home/oracle/psft/pt/8.53/appserv/HCMDM92/PSTUXCFG has been created
    162253.wipcoe1234!tmloadcf.5384.2986219264.-2: 05-03-2013: Tuxedo Version 11.1.1.3.0, 64-bit
    162253.wipcoe1234!tmloadcf.5384.2986219264.-2: CMDTUX_CAT:879: INFO: A new file system has been created. (size = 1197 512-byte blocks)
    162253.wipcoe1234!tmloadcf.5384.2986219264.-2: CMDTUX_CAT:871: INFO: TUXCONFIG file /home/oracle/psft/pt/8.53/appserv/HCMDM92/PSTUXCFG has been created
    162258.wipcoe1234!PSADMIN.5355: Begin attempt on domain HCMDM92
    162302.wipcoe1234!tmadmin.5392.1509406464.-2: TMADMIN_CAT:1330: INFO: Command: boot -A
    162304.wipcoe1234!tmboot.5393.2297452288.-2: 05-03-2013: Tuxedo Version 11.1.1.3.0, 64-bit
    162304.wipcoe1234!tmboot.5393.2297452288.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 120 seconds
    162304.wipcoe1234!tmboot.5393.2297452288.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
    162306.wipcoe1234!BBL.5394.2180380416.0: 05-03-2013: Tuxedo Version 11.1.1.3.0, 64-bit, Patch Level (none)
    162306.wipcoe1234!BBL.5394.2180380416.0: LIBTUX_CAT:262: INFO: Standard main starting
    162308.wipcoe1234!tmboot.5397.3909768960.-2: 05-03-2013: Tuxedo Version 11.1.1.3.0, 64-bit
    162308.wipcoe1234!tmboot.5397.3909768960.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 120 seconds
    162308.wipcoe1234!tmboot.5397.3909768960.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
    162308.wipcoe1234!tmboot.5397.3909768960.-2: tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error handler
    162311.wipcoe1234!BBL.5394.2180380416.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
    162314.wipcoe1234!PSADMIN.5355: End boot attempt on domain HCMDM92
    Edited by: ajith on May 3, 2013 5:39 PM

    If not solved yet...
    What says appsrv.log ? Which user are you using to start the appserver ? Which user have you specified when sreating the database ?
    Nicolas.

  • Itunes application error when attempting to open for first time. HELP

    Running windows xp pro, just bought new ipod classic, installed itunes software. When attempting to open for first time i get an itunes.exe - application error, error message that reads "The instruction at "0x100001040" referenced memory at "0x100001040". The memory could not be "read". Click ok to terminate the propgram. Click on CANCEL to debug the program. I have tried re-installing several times, cleaned temp etc. Nothing. Please help, i really want to start using my new ipod.

    You have to unhide your library folder and adjust the user permissions to allow write access.
    Mylenium

  • When I connected my sony mp3 player to iMac for first time all music deleted.  why?  and can I retrieve it?

    When I connected my sony mp3 player to mac for first time, all music deleted.  Why?  and where did it go?  Can I retrieve it?

    carol1963 wrote:
    When I connected my sony mp3 player to mac for first time, all music deleted.  Why?  and where did it go? 
    No idea.
    Can I retrieve it?
    Restore from your most current backup.

  • HT4859 i have setup an ipad without connecting to computer, i am now connecting for first time to itunes it asks if i want to set up as new ipad or restore from previous backup (my iphone not ipad), i have backed ipad up to icloud when i connect back to i

    i have set up my wifes ipad mini wirelesly, i am now connecting for first time to itunes it asks if i want to set up as new ipad or restore from previous backup (my iphone not ipad), i have backed ipad up to icloud when i connect back to itunes will it give me an option to restore from icloud, i dont want to lose the apps and data my wife has already installed through her account... any thoughts

    1. set up as new
    2. transfer you wife's purchases.
    3. Just in case create one computer back up manually.
    Enjoy.

Maybe you are looking for