May be a BUG: DELETE with same predicate as SELECT fails

Hi,
I select a concatenation of rowid and ora_rowscn as
SQL>SELECT ROWID||ORA_ROWSCN FROM TT;
OUTPUT:
ROWID||ORA_ROWSCN
AAADkOAAEAAAADWAAA1006305
Now when i select as
SQL> SELECT * FROM TT
  2  WHERE
  3  ROWID = 'AAADkOAAEAAAADWAAA'
  4  AND
  5  ORA_ROWSCN = 1006305;
OUTPUT:
ONE
A
but when i try to delete as
SQL> DELETE FROM TT
  2  WHERE
  3  ROWID = 'AAADkOAAEAAAADWAAA'
  4  AND
  5  ORA_ROWSCN = 1006305;
OUTPUT:
0 rows deleted.
Again, when i try Update as
SQL> UPDATE  TT SET ONE='PPP'
  2  WHERE
  3  ROWID = 'AAADkOAAEAAAADWAAA'
  4  AND
  5  ORA_ROWSCN = 1006305;
OUTPUT:
1 rows updatedWhy this is so?
If it is BUG then, How can i raise a it for "Oracle Database 10g Express Edition" ?
Kind Regards,
Thanks.
Gurpreet S. Gill

No,No its a big project( with around 20 GB of
database)
we are just migrating our back end only, as the
client want our application to run on Oracle but the
current Back end is SQL BASE.Can't say I'm familiar with this product.
As in our application, we are using 100% of SQL
statements, which are similar in both SQL Base &
Oracle.Similiar?
We had success fully converted the same application
into SQL Server too( without changing the application
code)sqlserver and Oracle do differ in several aspects of their architecture.
this is where the oracle is lacking off.Or the model of said backend, if tracking changes is done by some internal mechanism that can and will be different on different products/patforms.
C.

Similar Messages

  • Sqlloader with same csv files - 1 fails the other works fine!

    Hi,
    I am using sqlldr to load data from a csv file into a table. The table has 23 columns in it. The last column is nullable. The CSV has got 23 column values for all the records excepting couple of records which have 22 values leaving the last 23rd field blank as 23rd column in the table is nullable. Sqlloader loaded everything fine in Dev env but the records failed on Live Env with error - 'Rejected - Error on table ...column not found before end of logical record (use TRAILING NULLCOLS)'.
    Surprisingly - when I copied the live csv file to Dev Env and ran it - it rejected same records with same errors but the other earlier CSV file with same 22 column values worked fine. So I have 2 copies of same CSV file which have different names - one works fine and the other rejects a few records.
    Could anyone please let me know where and what to look for? Thanks in advance for the expert advice of you esteemed people on Forum.
    Regards,
    Ash

    Ash -
    Are you saying you had one file, copied to two servers, and the copy you sent to live never works on either server, but the copy you have always had on DEV works fine? This sounds like an operating system or network issue, where moving the file caused a change you cannot see. Typically happens when you go between Windows and Unix, because the end-of-line sequences are different. You could try using file comparison tools to see if they really are the same (diff on Unix, fc on Windows). You could also use the Unix utility od (octal dump, e.g. od -c file1) to see what you cannot see.
    Good luck,
    Andy

  • What issues we may face in installing a new Prod portal with same SID as existing one

    Hello All -
    We found some vbs script files in the host of EP Prod system. On confirmation from SAP we deleted those files without any harm to our prod EP system. But customer is still concerned about the security of the system and wanted us build the new EP prod system with same SID.
    We approached SAP and they suggested to install a new EP system and do customization rather than performing system copy from existing prod EP system because that may still bring those security threat changes to new EP prod system. (we ll decommission the old EP if everything works fine in new EP)
    Now I would like to list all the issues we may face in building a new EP system with same SID as that of already existing one and then doing entire customization again in new EP from Basis team point of view. The following are very few i could think of. Could you please add some other concerns you could think of.
    1) Keeping in mind that this EP system is in use for more than 6 years, some of the customization could have been done on lower versions. So could those changes be again exported from Dev and imported into new version of EP we are building now ?
    2) Can't add two hosts with same name in DNS Server
    3) Can't add two systems with same SID in Solution Manager for calculation of SPS to upgrade new EP

    You would have to run ipsinstall and install the new gateway. Make sure to follow the installation instruction for installing a gateway.
    After you install the gateway you follow the steps in the link you posted to let the server know there is a new gateway.
    Then make sure to restart the gateway and server.
    HTH ..

  • HT204088 When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?

    When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?

    I have the same thing happening on my iPod Touch 5th gen. Been happening for at least a month. I have updated to the most recent version of iOS which hasn't solved the issue. Must be a bug that they didn't get around to resolving yet, a year later. Really annoying to have it pop up when you are in the middle of a game though.

  • How to delete one existing file before uploading a file with same name?

    Hello everybody.
    I am uploading a file to Tomcat server. But, the problem is:
    i want to delete an existing file in the server, if i upload a fresh file with same name. In other words, "First check for the file with the same name in the server. If it exists, then delete existing file in the server and upload fresh one". If such file doesnot exist, then upload the file to server.
    I have given deleteonExit()
    but, for the first time when user is uploading, i want to check for the file with same name in the server.
    i am pasting the code here. please help:
    <!-- uploading the file -->
    <%
    String contentType = request.getContentType();
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0))
    DataInputStream in = new DataInputStream(request.getInputStream());
    int formDataLength = request.getContentLength();
    byte dataBytes[] = new byte[formDataLength];
    int byteRead = 0;
    int totalBytesRead = 0;
    while (totalBytesRead < formDataLength)
    byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
    totalBytesRead += byteRead;
    String contextRootPath = this.getServletContext().getRealPath("/");
    contextRootPath=contextRootPath.concat("uploaded");
    String file = new String(dataBytes);
    String saveFile = file.substring(file.indexOf("filename=\"") + 10);
    saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
    saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1,saveFile.indexOf("\""));
    // Create a directory; all ancestor directories must exist
    File outputFile = new File(contextRootPath, saveFile);
    var=outputFile.getPath();
    outputFile.createNewFile();
    int lastIndex = contentType.lastIndexOf("=");
    String boundary = contentType.substring(lastIndex + 1,contentType.length());
    int pos;
    pos = file.indexOf("filename=\"");
    pos = file.indexOf("\n", pos) + 1;
    pos = file.indexOf("\n", pos) + 1;
    pos = file.indexOf("\n", pos) + 1;
    int boundaryLocation = file.indexOf(boundary, pos) - 4;
    int startPos = ((file.substring(0, pos)).getBytes()).length;
    int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
    FileOutputStream fileOut = new FileOutputStream(outputFile);
    fileOut.write(dataBytes, startPos, (endPos - startPos));
    fileOut.flush();
    fileOut.close();
    outputFile.deleteOnExit();
    %>Please help. Thanks for taking time.
    Regards,
    Ashvini

    Thank you MartinHilpert,
    I have one more doubt,
    I am uploading the file to one folder called "uploaded". Before uploading a fresh file, i want to delete all existing files in that folder. IS that possible ?? If yes, can you please tell me how to do that ??
    Regards, Thanks for your time.
    Ashlvini

  • BUG:  With same name jpg and RAW in same folder

    OK, we have established that you can't import same filenames RAW/jpg into the same folder, but you can drag them in later. This is useful for stacking.
    Bugs that occur when jpg and RAW with same name together in same folder. (have not tested for psd, tif etc.
    1. If you rename the jpg, the RAW also gets renamed
    2. You cannot move the jpg properly within the folder in grid mode.
    Most of my landscape shots need to go to photoshop. I developed a nice workflow which integrates PS quite well with LR...see post here:
    http://www.adobeforums.com/cgi-bin/webx/.3bc34679/5
    I created the workflow so that I could retain same name RAW/jpg stacks in the same folder. I have altered the workflow slightly so the jpg gets autorenamed with filename_# ... see the link above.
    Kev

    It's the same design issue Kevin. Sidecar files get renamed automatically and these are treated as sidecars.

  • HT5622 Good day!! I was having two Iphones with same icloud id, later i deleted 1 id from one device, and made 2nd id for this device but same time my old id is stored on other device and i can not change it with another id, can any1 guide me on this issu

    Good day!! I was having two Iphones with same icloud id, later i deleted 1 id from one device, and made 2nd id for this device but same time my old id is stored on other device and i can not change it with another id, can any1 guide me on this issue.

    Log in to icloud.com on a web browser and remove the device from "Find My iPhone"

  • HEEELLPP - Deleted employee data, while deleting applicant with same ID

    Hello,
    I need help solving a problem created in payments. We deleted all internal applicant data on our base, using PU90 through LSMW. The problem with this transaction is that it is based on PU00. So, the program deleted all records in PTQUODED as it didn't check if the Personnel Id wasn't an employee.
    Now I need to replace data and we are trying to use database backup.
    Any other suggestions? Is there any other employee table that could be deleted with the applicant's infotypes?
    Thanks,
    Leonardo

    https://forums.sdn.sap.com/click.jspa?searchID=16777547&messageID=5847814

  • Updating PK with same value - effect on CASCADE UPDATE

    Hello,
    I would like to understand how sql server 2008 deals with cascade updates
    For example I have
    Parent table: Employee with column Id as varchar(20) primary key
    Child table with IdEmployee as varchar(20) foreign key
    I set up Cascade Update for those two tables, meaning any change to primary key in Employee table will cause update in child table rows that match affecting Id
    Scenario 1:
    Update Employee
    set Id = 'ABC',
    Name = 'something new'
    where Id = 'CCC'
    Result of child table: all rows with foreign key IdEmployee and value of 'CCC' are updated. Expected behavior.
    Scenario 2:
    Update Employee
    set Id = 'ABC',
    Name = 'something new 2'
    where Id = 'ABC'
    This time, i am doing something different. I am beside update of column Name with new value, also update primary key but
    with SAME value
    Question is: what is going to happen to child rows? Are they ALL going to UPDATE due to CASCADE UPDATE
    So far, what i did in order to find solution is:
    1. I put an timestamp column in child table that should update each time row gets updated
    2. I put a trigger for update event on child table that will write something to some log table
    *After I set up those two I ran example like above just to be sure timestamp gets changed as well trigger is being fired
    Results of updating PK with same value:
    1. Timestamp didnt change
    2. Trigger didnt fire
    Is this enough to make conclusion that updating primary key with same value ALONG with updating some other columns won't
    affect child tables with UPDATE CASCADE ON
    Update:
    Database is CI AS collation
    If i do following
    Update Employee
    set Id = 'abc',
    Name = 'something new'
    where Id = 'ABC'
    1. Timestamp will change
    2. Trigger will fire
    Conclusion: Case sensitive is important here!
    Thank you very much in advance
    Milos

    >>  would like to understand how sql server 2008 deals with cascade updates <<
    Your posting has a number of conceptual errors. 
    1. The terms “parent” and “child” are not RDBMS; they are used in network databases. We have “referenced” and “referencing” tables; they can be the same table.
    2. A table models a SET of things, so there is no “Employee” table unless you truly have a one-man company. We want a collective or plural name for the SET/table. A better name is “Personnel” for this table. 
    3. Her is no such thing as a generic “id” in RDBMS; it has to be “<something in particular>_id” to be valid. Identifiers are usually fixed length 
    4. It is very, very rude not to post DDL on a forum. You also do not know the ISO-11179 Rules for data element names. They do not change names from table to table! Does your name change whenever you use it in a new place?? NO! Same principle with data. 
    5. The ISO standard uses “<property>_<attribute property>” syntax, no the old PascalCase.
    6. Why did you post a useless narrative? How do we compile “I SET up Cascade UPDATE for those two tables,..” to test it?? 
    CREATE TABLE Personnel
    (emp_id CHAR(20) NOT NULL PRIMARY KEY,
     emp_name VARCHAR(25) NOT NULL,
    CREATE TABLE Health_Plan
    (health_plan_acct CHAR(20) NOT NULL PRIMARY KEY,
     emp_id CHAR(20) NOT NULL 
     REFERENCES Personnel(emp_id)
     ON UPDATE CASCADE
     ON DELETE CASCADE,
    Scenario 1:
    UPDATE Personnel
       SET emp_id = 'ABC',
           emp_name = 'something new'
     WHERE emp_id = 'CCC';
    Result of child table: all rows with foreign key emp_id and value of 'CCC' are updated. Expected behavior.
    Scenario 2:
    UPDATE Personnel
       SET emp_id = 'ABC',
           emp_name = 'something new 2'
     WHERE emp_id = 'ABC';
    This time, I am doing something different. I am beside UPDATE of column emp_name with new value, also UPDATE PRIMARY KEY but
    with SAME value.
    >> Question is: what is going to happen to child [sic: referencing]  rows? Are they ALL going to UPDATE due to CASCADE UPDATE. <<
    SQL uses a set-oriented model, so the whole table is updated as a unit of work in theory. 
    So far, what I did in order to find solution is:
    >> I put an timestamp column in child [sic: referencing] table that should UPDATE each time row gets updated <<
    Why? It is not in the SET clause list; it cannot change. As an aside,  The T-SQL TIMESTAMP is not the ANSI/ISO TIMESTAMP; it is DATETIME2(n) in T-SQL. The old TIMESTAMP is being deprecated because it stinks both in concept and implementation. 
    >> I put a trigger for UPDATE event on child [sic: referencing] table that will write something to some log table.<<
    TRIGGERs are fired by what is called a “database event” shown in the ON [DELETE | UPDATE] clause. T-SQL adds INSERT as an event. An update to any value or to no value at all is still an update. Depending on the collation, case may or may not matter in the final
    outcome. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Create Equipment with same Number rang at Diff Equipment Catagory

    Hallo Guys,
    client bymistake created some equipments which are actually PRT with catagory M ( Machine)
    now they made deletion indicator to that and inactive the part and now want to create same machine as a PRT with same number range interval
    as that of made at machine, but as per std system is not allowing to create duplicate records.
    How to achive this ?
    Regards,
    Rip

    If no Equipments were created after the Deleted Equipments then you may have an option.
    Tcode OIEN
    Go to Number range interval, Then the Current number  can be changed as under. Reduce this Current number by those many equipments. Then new equipments will have the same numbers of the deleted equipments
    You should do it in trial servers and if suits to you then you can decide to go ahead. You should be prepared to have filters in Selection-screes to avoid the DLFL INAC equipments appear in the reports
    Jogeswara Rao K

  • 2 phones with same problem - Cannot email photo from photo app...

    Hi. I am going crazy here. Got my first gen iphone and new 3G ipone - all running latest 2.0 firmware (the later 547 version)...
    Both phones have different gmail accounts setup on them and work fine when in the mail app for both sending and receiving (both phones).
    Here is the problem.. If I go into the photos app and try to email a picture (on both phones this exact same thing happens), it takes ages with the spinnning logo along the top line near the carrier info.
    Eventually it comes up with the message "Photo Delivery Failed - A copy has been placed in your Outbox. Sending the message content to the server failed."
    I have tried deleting the accounts and reinstalling them - resetting network settings etc. all the same..
    Why is this happening and on both phones with differnt gmail accounts..
    Is this a known bug in the v2.0 software?
    I am not using mobile.me by the way...
    I am stumped - anyone?

    Hey, just saw your email after fighting the "Message could not be sent" alert which happened every time I tried to send a photo from my iPhone... I tried my gmail, MobileMe and a personal account, no luck, and the "hard restart" that other posts talked about (http://discussions.apple.com/thread.jspa?messageID=8019073&#8019073) did not help me either.
    Then I realized that the problem was only on my WiFi network (just like you said!); flipped it over to 3G, and the Photo was emailed with no problems.
    This must be some sort of bug in the operating system... grr! But I'm glad you posted your findings, it saved me!

  • 2012 R2 DC crashes after import Root CA from 2008 R2 DC/CA (with same name)

    Hello Everyone.
    We migrate a Windows Server 2008 R2 DC with Root CA to an Windows Server 2012 R2 DC with same IP and Computername on a new VM. The Windows Server 2012 R2 works fine before we import the Root CA Information from a Backup (http://technet.microsoft.com/en-us/library/ee126140(v=ws.10).aspx)
    After import the Root CA Information, we can´t rename any object, OU, user account, etc, whichever DC AD Users and Computers is pointing at, lsass.exe will crash and the DC will reboot after 60 seconds. Remove ADCS is no helping.
    Depromote DC and removing ADDS, reboot... and promote the W12R2 to DC is the same Problem. Now we delete (properly) the Server and reinstall the W12R2 OS and promote the Server to DC. After
    new install the rename any object works fine.
    Does anyone have an idea? Any help would be appreciated!
    Regards Achim

    Hi,
    Is there any detail error message?
    If the issue is related to CA, i would suggest that you may ask in:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=winserversecurity
    Regards.
    Vivian Wang

  • How do you open a Numbers file sent from another Mac user with same operating system, i get a pop up that says I'm missing an index.hml file??? HELP PLEASE

    how do you open a Numbers file sent from another Mac user with same operating system, i get a pop up that says I'm missing an index.hml file??? HELP PLEASE

    The operating system may be the same but the Numbers applications are likely different.  You need to get the apps in sync.  Unfortunately, the Numbers (and Pages as well) saga is pretty confusing (and frustrating).  Here's some info from the iWork resident version expert (PeterBreis0807):
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs.

  • Adobe XMP Files not deleted with Raw Files in ACR

    I am using Photoshop CS3 on a Windows XP platform. My camera raw files are mostly kept on a Windows 2003 file server, which has a gigabit connection to my workstation. However, I have the same problems when using PS CS3 on my Windows XP laptop.
    I take many hundreds of 'technical' photographs using an Olympus E1 and Canon G9 cameras. I usually bracket the exposures on the E1, specially when photographing white painted yachts, and then rate and select the images that I want in ACR 4.1.1. Unwanted images are deleted at this time.
    The problem I am having is that the associated *.xmp files are not always deleted with the camera raw files, with the result that I now have literally thousands of these 'orphaned' files cluttering up the server. The only options I have are to delete the files manually, which is a pain, or to leave them on the server, wasting unnecessary space.
    I have the same issue with Canon and Nikon raw files, so this problem is not specific to Olympus files.
    This is a long standing problem, and I would be grateful if anyone has any answers?
    If any Adobe programmers are watching, it would be handy if you could provide a simple utility to delete orphaned *.xmp files, or at least compress them into some kind of archive.
    Thanks,
    Nigel.

    [quote] As far as Photoshop and ACR go, ALL raw files are treated as read-only.
    Your original raw files remain untouched, no matter what you do to them.
    Any adjustments you make to a raw file are kept only as metadata (flags, if you will) in that XMP side-car file. Every time you want to re-open that raw image file, ACR will reach for the XMP file and apply the adjustments automatically, transparently. [/quote]
    That is not quite correct. Camera RAW files can be permanently deleted from within Adobe Camera Raw. The problem with ACR 4.1 to 4.4 4 was that the XMP files were left behind. This now seems to have been rectified in the latest version (ACR 4.5).
    Thank you Adobe!

  • Bridge CS4 won't output to pdf multiple images with same filename

    Hiya...my googling efforts have thus far failed!
    I've got CS4, and in Bridge, I created a New Smart Collection to find all filenames in a folder containing "." or ".jpg" - which in turn searched through all the subfolders like what you used to be able to do in Photoshop CS3.  Very simple stuff, but all the images are jpg's, but in multiple folders (I don't want to move them out of the folders, as the files came from an external source, and there are heaps of folders, and I don't want to pdf each subfolder seperately as it will take forever).
    The problem is that some of the files have the same filenames (again I'd prefer not to rename, as it happens a lot on this project, and they are all over the place).  So whilst Bridge will show the thumbnail images correctly in the content tabbed screen in my New Smart Collection, but once I've done the Output to PDF thing, for example, instead of showing both different images it has pdf only the first image but repeated it twice.  And this happens multiple times throughout the pdf, the more times the same filename is used, the more times the first image gets repeated.
    I know that it is messy to have multiple similar filenames, but why can't bridge just place the image anyway?  It allocated a space for it on the pdf and does show it in bridge, it just doesn't seem to survive the transfer to pdf well.
    The only other thing that I have done is use the below link (which was posted on another adobe forum thread) to create a custom pdf output template (nothing too fancy, just number of rows / columns, size, font etc).  But I've tried using the standard bridge templates and it does the same thing.
    http://www.proficiografik.com/2009/08/03/save-custom-pdf-output-template-in-adobe-bridge-c s4.html
    Any help would be appreciated...even if to tell me that I am being unreasonable!
    UPDATE 16/11/09
    Just to let you know that I seem to have resolved the bug inadvertently with one of the Adobe updates. The below is the link for the AdobeOutputModule-2.1-mul-AdobeUpdate.zip which was released on 2/19/2009 - which allows for headers & footers to be placed in the Ouput pdf. I finally installed it today, and everything seems to be working fine now (i.e. I can pdf multiple images with the same filenames and the pdf will actually show each different image rather than repeating only 1 of the images).
    Must have been a fix installed in the contact sheet templates that get installed with the update - not sure why the original version was corrupted, but I've left that with the Adobe guys (I submitted a bug report - and they were able to replicate the problem but hadn't fixed it as yet).
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4228
    Message was edited by: djtun71 (16/11/09)

    When I click import from disc I am asked to choose a disc and then I get this message:
    The following photos will not be imported because they are already present in the catalog. To see these photos in the catalog select 'Show in Library' (the import will be canceled).
    This is followed by a long list of images. If I click 'Show in Library' I can see all the images with the same filename. And then they start to automatically write over those images with images from the disc. However they keep the same metadata and keywords from the previous images. If I click on Import and deselect the "don't reimport suspected duplicates" box, it imports only the images that don't share filenames and none of the images that do.
    Is there a way of setting the "Don't reimport suspected duplicates" box in preferences?

Maybe you are looking for

  • Can I add the same style sheet to multiple nodes in the same scene?

    I know this sounds like a dumb question, so I'll give an explanation below.  I've done this with FXML and Scene Builder and haven't noticed any negative effects yet.  I'm mostly curious what happens internally when I add a style sheet to a node and t

  • Recovery HD disk repair failed

    iMac very slow.  Did recovery HD disk repair that failed with error to format and reload OS.  Doing full Time Machine restore from external HD.  If that fails what are the steps to (1) format drive, (2) restore OSX and I restore all programs and file

  • How to get pictures from sd card on the e-station

    How do i get the pictures from the sd card in the slotof the e-station

  • Send Context in BPM

    hi, I have more than 2 conditions in the SWITCH condition in BPM. For each SWITCH condition i have a SEND step inside. Branch 1 -> Send 1 Branch 2 -> Send 2 ... Idea is once the condition is satisifed in the SWITCH condition, using the <b>SEND CONTEX

  • Poor Repair and Customer Service - Ideapad U400

    My system is an Ideapad U400, approximately 3 months old. I am currently a student. Approximately 1 week into the semester (Jan. 31) my computer would no longer turn on. I immediately called their customer service number and was told that I would be