NC302_UPDATE_ORA.sql 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --
  2. -- Licensed Materials - Property of IBM
  3. --
  4. -- BI and PM: JSM
  5. --
  6. -- (c) Copyright IBM Corp. 2003, 2010.
  7. --
  8. -- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. --
  10. -------------------------------------------------------------------------------
  11. -- NC302_UPDATE_ORA.SQL *DO NOT EDIT* Data Store Version: 302
  12. -------------------------------------------------------------------------------
  13. -------------------------------------------------------------------------------
  14. --$100-- backup create begin
  15. -------------------------------------------------------------------------------
  16. -------------------------------------------------------------------------------
  17. --$110-- backup inserts begin
  18. -------------------------------------------------------------------------------
  19. -------------------------------------------------------------------------------
  20. --$130-- views drop begin
  21. -------------------------------------------------------------------------------
  22. -------------------------------------------------------------------------------
  23. --$140-- tables drop begin
  24. -------------------------------------------------------------------------------
  25. -------------------------------------------------------------------------------
  26. --$200-- recreate tables begin
  27. -------------------------------------------------------------------------------
  28. -------------------------------------------------------------------------------
  29. --$202-- primary keys add begin
  30. -------------------------------------------------------------------------------
  31. -- alter the colum types actually
  32. ALTER TABLE NC_JOBQUEUE MODIFY (PK_RUN_ID VARCHAR2(45));
  33. ALTER TABLE NC_JOBQUEUE MODIFY (SERVICE_NAME VARCHAR2(40));
  34. ALTER TABLE NC_JOBQUEUE MODIFY (SERVER_GROUP VARCHAR2(40));
  35. -------------------------------------------------------------------------------
  36. --$210-- views create begin
  37. -------------------------------------------------------------------------------
  38. -------------------------------------------------------------------------------
  39. --$220-- server data inserts begin
  40. -------------------------------------------------------------------------------
  41. INSERT INTO NC_DB_VERSION (DB_VERSION_ID,BUILD) VALUES(302,'build no.');
  42. -- trim the padded service_name and server_group entries
  43. UPDATE NC_JOBQUEUE SET SERVICE_NAME=RTRIM(SERVICE_NAME,' ');
  44. UPDATE NC_JOBQUEUE SET SERVER_GROUP=RTRIM(SERVER_GROUP,' ');
  45. -------------------------------------------------------------------------------
  46. --$230-- restore inserts begin
  47. -------------------------------------------------------------------------------
  48. -------------------------------------------------------------------------------
  49. --$250-- backup drop begin
  50. -------------------------------------------------------------------------------
  51. -------------------------------------------------------------------------------
  52. --$260-- end sql by function
  53. -------------------------------------------------------------------------------
  54. -- END NC302_UPDATE_ORA.SQL * DO NOT EDIT *
  55. -------------------------------------------------------------------------------