home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / oracle / 1497 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  4.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!ub!dsinc!pitt.edu!gvls1!tredysvr!cellar!kml
  2. From: kml@cellar.org (John Galt)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Beginner's questions
  5. Keywords: beginner
  6. Message-ID: <53RkqB4w164w@cellar.org>
  7. Date: 4 Sep 92 11:50:39 GMT
  8. References: <1992Sep2.151700.25630@cbfsb.cb.att.com>
  9. Sender: bbs@cellar.org (The Cellar BBS)
  10. Organization: The Cellar BBS and public access system
  11. Lines: 84
  12.  
  13. gerette@cbnewsb.cb.att.com (marianne.g.pittorino) writes:
  14.  
  15. > Hi Oracle Users!
  16. > I am just beginning to learn about Oracle and I have some really basic
  17. > questions.  I have just started reading this newsgroup and the little I
  18. > have read impresses me greatly.  I would appreciate it if some kind person
  19. > would send me some answers (whether in e-mail or another posting is fine --
  20. > whatever you think is appropriate).
  21. >      1) Is it better to create a small database initially and add tablespaces
  22. >     to the database instead of creating a large database initially?
  23.  
  24. I prefer to start somewhere in between.  That is, you should start small,
  25. but with a number of tablespaces.  That will keep you from overburdening
  26. the SYSTEM tablespace.  You can then move rollback segments and temporary
  27. segments out of SYSTEM entirely.  It's easy to add on more space as you go.
  28.  
  29. >      2) Is it better to have lots of little tablespaces or fewer, larger
  30. >     tablespaces?
  31.  
  32. Depends.  If your applications are small, then use small tablespaces.  If you
  33. have few disks to spread them over, use larger tablespaces.  The trade-offs
  34. are disk IO versus separation of applications.
  35.  
  36. >      3) Are temporary tables and indices easily created/dropped within an
  37. >     application using Pro*C?
  38. Sorry, don't know ProC.  It's simple in SQLPlus, though.
  39.  
  40. >      4) How do you completely destroy a database (i.e., no more datafiles,
  41. >     no more control files, no more anything; I want it to seem as if the
  42. >     database NEVER existed!)?  Could I just remove all files associated
  43. >     with the database or is there some internal table that would be really
  44. >     upset if I did?
  45. 1.  To clear out a database completely, just rerun the create database 
  46. command.   2.  To completely remove a database, delete all its files.
  47.  
  48. >      5) I created a tablespace, then dropped it (including contents).  Why
  49. >     isn't the datafile removed and why does the row for the tablespace
  50. >     (status = INVALID) still exist in dba_tablespaces?
  51. The tablespace datafile should no longer show up as being accessed (in 
  52. VMS, you can do a show dev/file on the disk to tell).  It is not deleted
  53. by the database automatically; you have to do it.  INVALID simply means
  54. that a tablespace with that name has been dropped.  No problem.
  55.  
  56. >      6) Is there any easy way to rename tables (aside from selecting into the
  57. >     new table and dropping the old table)? Likewise, is there any easy way
  58. >     to rename columns?  The RDBMS I use now has simple rename commands:
  59. >         rename (old_table_name, new_table_name)
  60. >         rename_col (table, old_column_name, new_column_name)
  61. >     Does anything like this exist in Oracle?
  62. Ther is no way to easily rename columns in Oracle.  To rename a table,
  63. SQL> rename emp to old-emp;
  64. Only tables and views can be renamed in Oracle.
  65.  
  66. >      7) How is fragmentation monitored and how is it repaired?
  67. There are a bazillion fragmentation scripts out there.  Call Oracle and
  68. request Oracle magazine be sent to you.  I have two articles there that'll
  69. help: The One Minute DBA (Winter 92) and, for repairing fragmentation
  70. problems, Export by Tablespace, The Missing Utility (Spring 92).
  71. Fragmentation is repaired by recreating the tablespace and performing
  72. and exp/imp of all objects contained there.
  73. > If an FAQ file exists for this group, please tell me how I can get a copy.  I
  74. > don't want to rehash the same old questions over and over.
  75. > Thank you,
  76. > Marianne G. Pittorino
  77.  
  78.  
  79. No FAQ is out there yet.  I may start one up. 
  80.  
  81. Kevin.
  82.  
  83.  
  84.        As a matter of fact, no, I don't have a life.
  85.   kml%cellar@tredysvr.tredydev.unisys.com - My other account is a Mercedes.
  86.