home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / programm / 7826 < prev    next >
Encoding:
Text File  |  1992-12-21  |  4.9 KB  |  125 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!asuvax!ukma!deepthought!neil
  3. From: deepthought!neil (Neil Greene)
  4. Subject: Re: Linking to SPARC based ORACLE using DBKit ?
  5. Message-ID: <1992Dec18.204540.8033@kynug.org>
  6. Sender: neil@kynug.org (Neil Greene)
  7. Reply-To: Neil_Greene@kynug.org
  8. Organization: Kentucky NeXT User Group, Inc.
  9. References: <1992Dec18.180203.4193@bas-a.bcc.ac.uk>
  10. Date: Fri, 18 Dec 1992 20:45:40 GMT
  11. Lines: 112
  12.  
  13. In article <1992Dec18.180203.4193@bas-a.bcc.ac.uk> sheep@tankgirl (Sheep  
  14. T. Iconoclast) writes:
  15. > Hi we just upgrade to Next Step 3.0 , and I noticed this pretty funky
  16. > DBKit. We have some nothing but ORACLE running on a SPARC is
  17. > possible people in another deparment working on a collaboartive project.
  18. > I wanted to show off the Next Step by linking to there own database from 
  19. > our next machines (both on the Internet why not ?). As far as I  
  20. understand 
  21. > you begin by createing a DBModel using the DBModeler. 
  22. > Stage 1. in DBModeler do new and Select the Adaptor. 
  23. > Ok Select ORACLE
  24. > Stage 2. Fill in the link information
  25. > SERVER ID, Hostmachine,Login, Password.
  26. > for SERVER ID I used the setenv ORACLE_SID value let's say ualoracle
  27. > for hostmachine i used fish (I tested and can ping fish ok).
  28. > for login I used patric (they only have one user on the DB)
  29. > for the password I used flatfish (the only password for the only user) 
  30. > I press the OK button and the same dialog box returns.
  31. > QUESTION What's missing ? What's wrong ?
  32. > The RTFM says "In general, if you can connect with Sybase's isql or  
  33. > Oracle's sqlplus, then you should be able to connect from DBModeler".
  34. > OK I want to get this straight. Does this mean that 
  35. > a) you cannot link to a remote machine running SQL ie if you
  36. > want to use the adapter then you must perchase Oracle first.
  37. > b) You cannot link to a remote non next machine running Oracle 
  38. > ie you can only link to Oracle on  remote Next. 
  39. > I have problems with this because they can talk to the Oracle 
  40. > server from some Macs they have in there department.
  41. > As far as DBModeler goes why is there not any error messages. Networking 
  42. > with other machines is really really difficuly, error messages must come  
  43. > up
  44. > to help work out who's at fault. I think this is a fundermental fault of 
  45. > client server computing. 
  46. > Will the DB modler link not go beyond the local gateway (they are in a  
  47. > diffrent 
  48. > department).
  49. > We know the wacky symbols to type in like the 
  50. > "scott/tiget@T:alexandra:sjOracle"
  51. > but cannot get to the Login string stage (shown later in the DBModeler 
  52. > documentation).
  53. > I'm looking for help finding out what's going wrong. I know I get
  54. > some Input/output packets at the first attempt but after that nothing.
  55. > All help gratefully accepted 
  56. > sheep.
  57. > Ps 
  58. > happy Xmas ! 
  59.  
  60. You will have to modify your NeXT NetInfo database alittle to allow it to  
  61. communicate with the Oracle server on port 1525.  This information can now  
  62. be found in the 93_Winter_NeXTAnswers, but here it is:
  63.  
  64. > Q:  What should I do on the NeXT in order to use my Oracle server with 
  65. > DBKit?
  66. > A:  You need to do the following: 
  67. > 1) If you just want to use the NeXT as a client:
  68. > a) Check with the Oracle DBA to verify that the database is using socket 
  69. > 1525 (this is the default).  Enter the following into /etc/services:
  70. >     orasrv     1525/tcp     oracle
  71. > b) Niload the Oracle services.  Be sure to check with the Oracle DBA to 
  72. > verify that the database is using socket 1525 (this is the default).  If 
  73. > you want your entire network of NeXT machines to see the server,  niload 
  74. > the entry in  the root NetInfo domain on the master NetInfo server.
  75. >      localhost> su
  76. >     localhost# niload services / </etc/services
  77.  
  78. Also remember, that the Oracle Adaptor is _only_ going to see tables owned  
  79. by the user logging into the Oracle server thru the adaptor.  To see  
  80. tables used by others for use in the DBModeler, see the following. Also  
  81. found in 93_Winter_NeXTAnswers:
  82.  
  83. > Q:  The model that I built via DBModeler only shows the views and tables 
  84. > owned by me.  How can I access all the views and tables from my Oracle 
  85. > database? 
  86. > A:  By default, DBModeler will load in tables and views owned by  the 
  87. > current user only.  However, you can extend the list of users for whom 
  88. > tables and views should be loaded in.  To do so, add the following to 
  89. > the defaults database for example, to show the tables and views owned by 
  90. > the users David, Joe, Tony:
  91. > localhost> dwrite OracleAdaptor OracleTableOwners "'DAVID','JOE','TONY'"
  92.  
  93. If that still does not work, I would check for the correct information to  
  94. be correct:
  95.  
  96.       Oracle instance name (this is the database name)
  97.       Oracle user account
  98.       Oracle user password
  99.     
  100. --
  101. Neil Greene
  102. President, Kentucky NeXT User Group, Inc.
  103. Email: Neil_Greene@kynug.org [NeXTMail]
  104. -- 
  105. Neil Greene
  106. President, Kentucky NeXT User Group, Inc.
  107. Email: Neil_Greene@kynug.org [NeXTMail]
  108.