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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Design Issue - Quick response appreciated

RE: Design Issue - Quick response appreciated

From: Rao, Maheswara <Maheswara.Rao_at_Sungardp3.com>
Date: Fri, 21 Sep 2001 10:37:42 -0700
Message-ID: <F001.00394EB3.20010921103022@fatcity.com>

In our
case, we do not have any other columns --- 1. which could identify uniquely a record and yet do not undergo a change.
<SPAN
class=182302817-21092001> 
<SPAN
class=182302817-21092001>Thanks,
<SPAN
class=182302817-21092001> 
<SPAN
class=182302817-21092001>Rao

<FONT face=Tahoma

  size=2>-----Original Message-----From: Christopher Spence   [mailto:cspence_at_FuelSpot.com]Sent: Friday, September 21, 2001 1:35   PMTo: Multiple recipients of list ORACLE-LSubject: RE:   Design Issue - Quick response appreciated   

<SPAN

  style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Generally<FONT 
  color=navy face=Arial size=2><SPAN 
  style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"> it is bad practice 
  to use columns in the primary key, which change.<SPAN   style="mso-spacerun: yes">  They introduce many different   problems.
<SPAN

  style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">    

<SPAN

  style="COLOR: navy; FONT-SIZE: 12pt; mso-no-proof: yes">"Do not criticize   someone until you walked a mile in their shoes, that way when you criticize   them, you are a mile a way and have their shoes."
<SPAN

  style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'; FONT-SIZE: 18pt; mso-no-proof: yes">Christopher   R. Spence<SPAN
  style="COLOR: navy; mso-no-proof: yes"> <FONT color=navy   face="Comic Sans MS" size=2><SPAN
  style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'; FONT-SIZE: 10pt; mso-no-proof: yes">Oracle   DBA<SPAN
  style="COLOR: navy; mso-no-proof: yes"> <FONT color=navy   face="Comic Sans MS" size=2><SPAN
  style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'; FONT-SIZE: 10pt; mso-no-proof: yes">Phone:   (978) 322-5744<SPAN
  style="COLOR: navy; mso-no-proof: yes"> <FONT color=navy   face="Comic Sans MS" size=2><SPAN
  style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'; FONT-SIZE: 10pt; mso-no-proof: yes">Fax:      (707) 885-2275<SPAN
  style="COLOR: navy; mso-no-proof: yes">
<SPAN

  style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'; FONT-SIZE: 10pt; mso-no-proof: yes">Fuelspot<FONT   color=navy>
<SPAN

  style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'; FONT-SIZE: 10pt; mso-no-proof: yes">73   Princeton Street<SPAN
  style="COLOR: navy; mso-no-proof: yes"> <FONT color=navy   face="Comic Sans MS" size=2><SPAN
  style="COLOR: navy; FONT-FAMILY: 'Comic Sans MS'; FONT-SIZE: 10pt; mso-no-proof: yes">North,   Chelmsford 01863<SPAN
  style="COLOR: navy; mso-no-proof: yes">     

<SPAN

  style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt">-----Original   Message-----From: Rao,
  Maheswara [mailto:Maheswara.Rao_at_Sungardp3.com] <SPAN   style="FONT-WEIGHT: bold">Sent<SPAN
  style="FONT-WEIGHT: bold">: Friday, September 21, 2001 12:35   PMTo: Multiple recipients of
  list ORACLE-LSubject: Design
  Issue - Quick response appreciated
<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2><SPAN
  style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">List,   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2>OLTP
  application with 24x7 requirement. 300,000 records per day are inserted   into the transaction table. Environment: Solari 7. Oracle   817.   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2>The
  transaction table layout.   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2>Security
  ID    

<FONT color=blue face=Arial

  size=2>Account
  ID   

<FONT color=blue face=Arial

  size=2>Account
  Type   

<FONT color=blue face=Arial

  size=2>Trade
  Date   

<FONT color=blue face=Arial

  size=2>And
  other columns in this table.   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2>In the
  above table, the primary key is -- Security ID + Account ID + Account Type +   Trade Date   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2>There
  are many to one relationships built to other child tables   from Transaction Table   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2><SPAN
  style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Scenario:   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2>User
  inserts a record into transaction table.  In the first record, Account ID   value is "HP" and he might insert a record into the child table (Or this   transaction may not insert a record into a child table). After some time, the   user queries the original record with the primary key and then changes the   value in the column - Account ID to  "IBM".  Now, the original   transaction record is NOT UPDATED.  A record IS INSERTED with the new   values.  Also, he might or might not insert a record into a child table   with this new values of primary key.   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2>Now the
  user would query the transaction table with Account ID = IBM.    But, the user wants to get all the previous records also; in this case,   he want to see the record with Account ID = "HP" also. Also, he want to see   the related records from the child tables.   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2>I tried
  with the idea of sequence number generation but it was   failing.   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2>Any
  ideas or suggestions are much
  appreciated.   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2><SPAN
  style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Thanks,   

<FONT face="Times New Roman"

  size=3>    

<FONT color=blue face=Arial

  size=2><SPAN
  style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Rao   

<FONT color=blue face=Arial

  size=2><SPAN
  style="COLOR: blue; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Maheswara   Rao,   

<FONT color=blue face=Arial

  size=2>Oracle
  DBA   
<FONT color=blue face=Arial

  size=2>SunGard
  Securities  Received on Fri Sep 21 2001 - 12:37:42 CDT

Original text of this message

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