How does Oracle handles the delete ?

Hi ,
I have a unix loder that does the issue this command
EXEC SQL DELETE FROM TBl1 where id in (select id from TMP)
if any user is accessing a record in TBL1 , will Oracle wait for the record to be released before it does the delete or it simply skip it ?
pls advise
tks & rgds

It will wait please look at the example below:
Session 1:
[email protected]> select * from dept;
DEPTNO DNAME LOC
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
[email protected]> update dept set loc = 'WARSAW' where deptno = 10;
1 row updated.
Session 2:
[email protected]> delete dept;
-- waiting
Session 1:
[email protected]> commit;
Commit complete.
Session 2:
4 rows deleted.
[email protected]> select * from dept;
DEPTNO DNAME LOC
10 ACCOUNTING WARSAW
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
Location was changed
Best Regards
Krystian Zieja / mob

Similar Messages

  • How does oracle suggest the archive log

    Hi All,
    My question is about user managed backup and recovery.
    For User managed hot database refreshes.
    We  create a new controlfile and do cancel based recovery.
    How does oracle suggest the next archive to apply when we do "recover database using backup controlfile until cancel;"
    I mean we created a new control file ..rt.
    where is the information about the archivelogs stored.
    Thanks,
    Silver

    In the controlfile.
    The "using backup controlfile" means using a backed up controlfile, and you want to fool Oracle into thinking a point in time recovery will happen so don't use what would be the controlfiles current scn time to automatically say the recovery is complete.  If you have created a new controlfile, all it can know about is where the logs should be and compare to what log sequences the datafile headers have.  So it uses the init.ora parameters and what the data file headers have in them to figure it out. http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:3151992035532#36651366990046
    If you backup controlfile to trace you can see log files that have the incarnation history.  See "Recovering Through a RESETLOGS with a Created Control File"  in Performing User-Managed Recovery: Advanced Scenarios

  • How does oracle know the databse is inconsistent and needs recovery?

    Hello,
    How does Oracle know that the datafiles are inconsistent and db needs recovery when rebuilding the db off of the online/hot backups? Whereas, it doesn’t ask for recovery when rebuilding the database from cold backup (I understand that, for cold backup, database is shutdown immediate and hence the db is consistent). In both scenarios, a new control file is created (that means it won’t have SCN) and only datafile header will have the SCN. What’s that piece of info that oracle check to know if the database is consistent or inconsistent during the backup restore and recovery and where that info resides?
    Thank you for any hints and answers.
    Jay

    Oracle uses the datafiles to identify if they are consistent. If the datafiles backup was taken when the database was OPEN, they are marked as "fuzzy" in the header. Also, likely, the Checkpoint SCNs may be different if tablespace checkpoints (e.g. by ALTER TABLESPACE BEGIN BACKUP) are at different points in time.
    If the backup was a cold backup with the database shutdown normal/immediate, the headers are marked appropriately.
    When you run CREATE CONTROLFILE, it has to read the datafiles because the controlfile, itself, has no SCN and LogSequenceNumbers information.
    Hemant K Chitale

  • MappedByteBuffer - How does it handle the physical memory?

    Hello!
    I have some question regarding the java.nio.MappedByteBuffer class. I am wondering how does it exactly handle the physical memory.
    As first, I guess when I map a file into the the memory it does not mean that the whole file is being read into the physical memory. Am I right?
    My second question is, if I map more files into the memory, is there a real danger that I will get an out-of-memory exception? Is available any official resource about the memory management of this class?
    And my third question is, what is more efficient way at all, to use the MappedByteBuffer class or to use a FileChannel?
    I am looking forward to your replies!

    Tomi1226 wrote:
    I have some question regarding the java.nio.MappedByteBuffer class. I am wondering how does it exactly handle the physical memory.Java maps the file into virtual memory, the OS determines how to translate virtual memory into physical memory. Java has no control over how the OS does this, nor should it need to.
    As first, I guess when I map a file into the the memory it does not mean that the whole file is being read into the physical memory. Am I right?True, map != read or what would be the point.
    My second question is, if I map more files into the memory, is there a real danger that I will get an out-of-memory exception? An out of memory ERROR occurs when you run out of heap space. If you create enough file maps you are likely to run out of file handles or some other resourfe before you run out of heap.
    Exception != Error.
    Is available any official resource about the memory management of this class?Which class?
    And my third question is, what is more efficient way at all, to use the MappedByteBuffer class or to use a FileChannel?It depends on what you are doing.

  • How does Oracle fills the Blocks of an extent ?

    Hi,
    does anybody know why Oracle uses p.e. the fourth block of the first extent, then the 8th block, and not continous amount of blocks?
    So the HWM is higher then necessary.
    Thanks
    Marco

    Thanks Mark for the fast Reply.
    Yes, you are right, seeing is beliving ... :-)
    I had imported a table into the db (and there were NO deletes!)
    SQL> select tablespace_name, initial_extent, ALLOCATION_TYPE, SEGMENT_SPACE_MANAGEMENT from dba_tablespaces where tablespace_name='KUNDEN';
    TABLESPACE_NAME INITIAL_EXTENT ALLOCATIO SEGMEN
    KUNDEN 5242880 UNIFORM AUTO
    SQL> select count(*) from orte;
    COUNT(*)
    1628
    SQL> select segment_name, tablespace_name, header_block, bytes, blocks, extents from dba_segments where segment_name='ORTE';
    SEGMENT_NAME TABLESPACE_NAME HEADER_BLOCK BYTES BLOCKS EXTENTS
    ORTE KUNDEN 28820 5242880
    640 1
    SQL> SELECT DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID) AS block_nr, COUNT(*) AS anzahl FROM orte
    GROUP BY DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
    BLOCK_ID ROWS_IN_BLOCK
    28844 255
    28848 218
    28852 230
    28856 233
    28864 241
    28860 244
    28868 207
    Thanks
    Marco

  • How does Compressor handle the upscaling??? Architecture animation render.

    good5day!
    it seems that the due date is becoming my do date for a 3d architectural animation. therefore i'm looking for alternatives.
    for the first time* i need to deliver an animation as dvd movie (previously- mov, mpeg, avi, xvid blabla)
    when i want perfect quality, i render an animation in 1280x720px (16:9), format-uncompressed .mov or targa image sequence. steping up this resolution is insane, render time would be years for my machine...:)
    well, but this time..no time
    therefore:
    if i did the render in 853x480 (also uncompressed mov or tga), how would apple final cut compressor perform when upscaling to 1280x720px (720p)? is the upscale factor too big for getting good quality? or compressor can handle it?
    the presentation will be shown on apple 24" displays (where probably even SD DVD would look good if watched from reasonable distance) and as i am informed- a monster tv, dunno what they meant, but it's scary:)
    so- anybody has experience/knoledge about upscaling vs quality in compressor?
    thanks in advance,
    reinis

    If you are planning to play these back from QT player, there might be some advantage in having Compressor scale these up to HD resolution. Compressor should be able to do a good job with the upscaling, but it will take a long time, particularly if you turn on the frame controls.
    The only other option for full-screen playback that I know of would be DVD Player, for which you would have to play back a VIDEO_TS folder from the hard drive. I don't think it will play back an HDDVD build, in which case you might as well encode an SD mpeg. You are still converting the frame size in this case, and compressor will take a long time.
    To get the output to the Monster TV (eek!) you might find the most expedient method would be to create an SD DVD and play it back with an upscaling DVD player. I find that upscaling in hardware in this way can often give better HD quality than trying to convert in software.

  • How does Oracle handle resource files?

    Good day everyone,
    I have a Java code that opens a text file. When I load this code into Oracle using loadjava, I also load in the text file as a resource file. When I run the code on Oracle (after publishing all necessary Java code), I get a NullPointerException, because it can't find the text file when I try to open it. I get no resolve errors when I user loadjava.
    How can Java inside Oracle open external text files?
    Thanks in advance for your help,
    Gary

    I think you should rewrite your code using the following.
    FileWriter fw = new FileWriter(getServletContext().getRealPath("/testfile.txt"));
    FileReader fr = new FileReader(getServletContext().getRealPath("/testfile.txt"));It works for me.

  • How does Oracle hanlde I/O error

    I've setup an Oracle RAC using four Linux RH hosts connected with fiber channel to a DS4700 disk array.
    In case of a failover between the FC paths it could happen that a disk I/O request return error. How does Oracle handle that, will Oracle retry the error ?

    There are several possibilities to stripe a tablespace.
    You can create
    a) an ORACLE Tablespace with several datafiles
    b) an OS mountpoint which has striped several disks
    If you've an existing tablespace and want to stripe this tablespace with ORACLE than you can create an additional tablespace wtih several datafiles which are on different disks. After this you can use
    - imp/exp
    - CTAS
    - online redifinition
    to copy the tables to the tablespace.
    You should also consider that you've a less safe system if you have several disks which are not mirrored or on a RAID 5 system.

  • How to create blocks on Procedures? How does one handle I/U/D on the block?

    Hello Gurus,
    How to create blocks on Procedures? How does one handle I/U/D on the block?
    Please give an example.
    Thank You,

    Hello Gurus,
    How to create blocks on Procedures? How does one handle I/U/D on the block?
    Please give an example.
    Thank You,

  • How to handle the deleted records from R3

    Hello,
    We have created a generic data source on a database table in R3 side and now we have a case where there is a huge volume of data gets deleted and new records get updated every day.
    By doing a delta load we are able to load the New records and also the changed ones but we are unable to identify the deleted records from that table and move them to BI for deleteing those records in BI also.
    Can any one please suggest a solution for the handling the deleted records.
    Thanks,
    Ravindra.

    we had the same requirement some time ago and had two option:
    1. ask the R/3 development team add a deletion indicator in the table (and thus not actually deleting the record). this deletion indicator could then be used like for any other standard datasource
    this option was however refused, due to huge data volume after a while
    2. at the end of the load we copied the ZTABLE1 to ZTABLE2. then in the begin of the load (day after) we compare the data of table1 to table2. entries available in table2 but not in table1 are deleted, and we put a 'D'. in deletion indicator; as we only keep the deleted entries for one day, the volume of the new table is acceptable.
    M.

  • How does Safari handle fonts? Because the fonts looks different

    Hi,
    I "developped" (please don't laugh) a webpage in Firefox.
    http://test.patrickeischen.com
    Safari however changes the font, font-size and line-height which is not what I want. Does Safari handle the fonts different that other browsers?
    Patrick

    I think the problem is with an error in this line in the CSS:
    font: small/1.75em , Tahoma, "Trebuchet MS", Verdana, sans-serif;
    There should not be a comma after "small/1.75em". That line should read:
    font: small/1.75em Tahoma, "Trebuchet MS", Verdana, sans-serif;
    Other web browsers are probably being forgiving about that error and interpreting that line of CSS as it is intended, while Safari is balking at that error and ignoring everything after the comma that doesn't belong.
    I noticed that error when I was skimming through the CSS looking for your font declarations. But you can also find it by running the W3C CSS validator, a very handy tool when working on web sites, along with the W3C HTML validator. While these won't in themselves help you understand everything there is to know about web coding errors and browser display differences, using them to minimize or eliminate your coding errors often helps narrow down other problems as well.
    Message was edited by: Rachel R

  • How does this happen: The picture of recent apps you get when double clicking the home button showed in Settings-Wifi that I had been connected to a network I have not been near for two months. Its not a recent "image" of Settings-Wifi. Can anyone explain

    How does this happen: The picture of recent apps you get when double clicking the home button showed in Settings-Wifi that I had been connected to a network I have not been near for two months. Its not a recent "image" of Settings-Wifi. Can anyone explain?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • How does apex detect the MIMETYPE of an upload?

    Hello,
    I need to import a bunch of files from the OS filesystem to my own table (blob).
    For implementing the download of these files I need to know the mimetype.
    Now, the files are stored in my table, but I have no clue how to detect the mimetype of
    my files (blob).
    How does Apex detect the mimetype of an uploaded file?
    Thanks,
    Michael
    Edited by: MJaro on 21.09.2010 15:52, Reason: little typo

    Michael,
    Mimetype detection is done during upload, if you don't have a mimetype column in your table where APEX can store it, this information is lost.
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • How does oracle know which AO Framework page or process to execute.

    Hi,
    How does oracle know which AO Framework page or process to execute. I use to think this was defined in the Function definition. But looking through some Function definition in HRMS setup I noticed some of them simply calling the same first page, such as the one below used in many managers menus. This initial page is the page that allows managers to choose the employee they want to work on.
    OA.jsp?akRegionCode=HR_PERSON_TREE_TOP_SS&akRegionApplicationId=800.
    My question is, after executing this initial page, how does Oracle then varies the OA page by the diffferent functions?

    Hi;
    Thanks for sharing
    Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding*
    Regard
    Helios

  • How does oracle write to datafiles in a tablespace?

    hi all
    Suppose I have a tablespace consisting of two datafiles. When I need to wirte data onto it,how does ORACLE
    write ? Does it initially write to the first datafile and then write to the second datafile when the first datafile getting full or write to two datafiles in an random manner?
    Thanks for your reply.

    hi all
    I have read reply in reponse to thread "tablespaces or datafile " and testcase in that thread shows that ORACLE will write to datafiles in round-robin manner.
    But my test show totally different result:
    SQL>
    SQL> create tablespace ts_maoxl
    2 datafile '/crash/oradata/TESTDB/datafile/1.bdf' size 5m,
    3 '/crash/oradata/TESTDB/datafile/2.bdf' size 5m
    4 EXTENT MANAGEMENT LOCAL;
    Tablespace created
    SQL>
    SQL> create table maoxl(id char(2000),id3 char(2000),id2 char(2000)) tablespace ts_maoxl;
    Table created
    SQL>
    SQL> declare
    2 begin
    3 for i in 0..99 loop
    4 insert into maoxl values('x','y','z');
    5 end loop;
    6 commit;
    7 end;
    8 /
    PL/SQL procedure successfully completed
    SQL> select count(*) from maoxl;
    COUNT(*)
    100
    SQL> select t.file_id,t.extent_id,bytes from dba_extents t where tablespace_name='TS_MAOXL';
    FILE_ID EXTENT_ID BYTES
    5 0 65536
    5 1 65536
    5 2 65536
    5 3 65536
    5 4 65536
    5 5 65536
    5 6 65536
    5 7 65536
    5 8 65536
    5 9 65536
    5 10 65536
    5 11 65536
    5 12 65536
    5 13 65536
    14 rows selectedAll extents are allocated from datafile 5,none from datafile 6. My result is different from yours.
    BTW,The result of my testcase was from a 10.2.0.4 database running on HP-UNIX
    What could be the problem?
    thanks

Maybe you are looking for

  • Need help with installation

    I recently received a laptop from school to access my online classes.  When I tried to use Adobe Reader I received the following message:  Adobe Reader 9.1 has encountered a problem and needs to close.  Sorry for the inconvenience.  I tried tech supp

  • Update Repeating

    Everything is working fine with my Mac App Store, except for an update I have. When it first came out, I downloaded the Twitter for Mac app. Everything was fine. Then an update to the app came, I downloaded it, everything was fine. But now, another u

  • PowerShell Script for updating accounts in CSV

    Hi Experts...!!!! I need to have a power shell script that can update the status(Enable/disable) accounts given in a .csv file with DNs of the user accounts in it.... Any suggestions... Thank You...  TechSpec90

  • Word-pdf

    Estoy guardando archivos word en pdf XI Pro y el texto, espacios, composición etc. salen deformes, diferentes al original

  • Problems with Trading partner when settling an internal order

    Hi experts, We are trying to settle an internal order to a G/L account. For this account there is a validation defined, which states error when the trading partner is not entered. Hovewer we cannot change or cancel the validation for business reasons