Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> SQL7-> Oracle Help

SQL7-> Oracle Help

From: James A. Littlefield <jal_at_alum.mit.edu>
Date: Thu, 03 Jun 1999 08:10:45 -0400
Message-ID: <375670C5.21985016@alum.mit.edu>


Moving from NT/SQL7.0 to Linux/Oracle I have encountered a few issues. Perhaps someone can point an Oracle newbie to right solution(s).

  1. My database has some MS/SQL7 varbinary columns. This seems to map to the raw datatype under Oracle? I would like to apply some contraints to ensure that the values are only within a certain range. SQL7 lets me define contraints which compare the values of a varbinary(1) to constants such as 0x01. I have been able to compare for equality under Oracle using RAWTOHEX() to get a string and compare the string to a constant '01' but this does not work for ranges. What is the best way to do this?
  2. SQL7 has an identity datatype which causes each inserted row to get assigned a unique value. The closest thing I have found under Ora is to define a sequence and use values from the sequence. Is this the correct approach.
  3. To guard against concurrent read/update errors MS/SQL7 suggests using adding a column type of timestamp. The timestamp column gets updated automatically whenever anyone does a modification to the column. Applications can tell if update collisions have occured by adding a "where timestamp = " clause to the table update statements. How does this work under Oracle
  4. MS/SQL7 has a database option (xact_abort) which controls behavior during execution of a batch. If xact_abort is on, the entire batch is rolled back if any of its statements fail. If xact_abort is off, only the offending statement is rolled back but execution of the rest of the batch continues. What option(s) control this behavior under Ora.

Thanks for any suggestions/pointers.

Jim Received on Thu Jun 03 1999 - 07:10:45 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US