home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / oracle / 2949 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  3.0 KB

  1. Path: sparky!uunet!uswnvg!nv6.uswnvg.com!cjackso
  2. From: cjackso@uswnvg.com (Clay Jackson)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: SQL*NET: a server serves multiple ORACLE_HOME/ORACLE_SID?
  5. Message-ID: <3119@uswnvg.uswnvg.com>
  6. Date: 25 Jan 93 22:11:00 GMT
  7. References: <jan.727921229@wombaj.kowari.cpsg.com.au>
  8. Sender: news@uswnvg.uswnvg.com
  9. Organization: U S WEST NewVector Group, Inc.
  10. Lines: 56
  11. X-Newsreader: Tin 1.1 PL5
  12.  
  13. Jian Cai (jan@kowari.cpsg.com.au) wrote:
  14. : Q: Does an ORACLE server serves requests from different ORACLE_HOME
  15. :    and/or ORACLE_SID?
  16. :    Assume on host A there are multiple sets of ORACLE_HOME/ORACLE_SID
  17. :    and on host B there is one orasrv running. Will the server on B serves
  18. :    clients on A? If not, how to get it work?
  19.  
  20. Your example is a bit different from (what I infer is) your question.  I'm not
  21. sure how to answer your example, but, if your question was:
  22.     Server(Host) A has two Oracle instances running (but one orasrv)
  23.     Client B wants to access one of those instances 
  24. Then the answer is a qualified "yes".   The ORACLE_SID from the client
  25. determines which SID/ORACLE_HOME gets used (orasrv looks in /etc/oratab
  26. (on Unix systems) to find the correct combination).  We do this all the 
  27. time.   The caveat is that if you're gonna use only ONE orasrv, then
  28. BOTH Oracle instances MUST be running THE SAME VERSION of the RDBMS
  29. kernel, and must have been linked with the "correct" (ie the same)
  30. SQL*NET drivers.  In such a case, there's really no point in having
  31. two separate ORACLE_HOMEs, since all of the executables have to be
  32. at the same rev anyway.
  33.  
  34. If you want to get REALLY wierd, it is possible to run more than one
  35. version of the RDBMS (actually, it's not the kernel that gets you, it's
  36. the versions of the SQL*NET drivers that are linked with the kernel, but
  37. you should get the idea).  Here's what you need to do (all of this
  38. assumes you're on a Unix box):
  39.     1)  In /etc/services, you'll find a line that looks something like
  40.         orasrv          1525/tcp        tcp             # oracle
  41.         This specifies the PORT number that orasrv is going to use.
  42.         Add another line with a new port number, ala:
  43.         mysrv           1526/tcp        tcp             # new server
  44.         You may also have to hack your tcp startup files to enable 
  45.         this port, and your (Unix) kernel to support it.
  46.     2)  Start a the second listener, from the Unix command line, like
  47.         so (note, this only works if you're using the TLI based
  48.         server products - the command will probably be a bit
  49.         different for socket based tcp):
  50.         TLI_SERVER=mysrv; export TLI_SERVER
  51.         tcptlictl start
  52.         This will start a second listener, on the port you specified
  53.         above.
  54.     3)  To connect to the second listener, put the name of the server
  55.         in the connect string, like so:
  56.         connect scott/tiger@T:<hostname>,mysrv:<sid>
  57. If you're unsure about any of this, you may want to contact Oracle
  58. Support and/or your SysAdmins for further assistance.  As always, your
  59. mileage may vary.
  60.  
  61. Good luck!
  62.  
  63.  
  64. --
  65. Clay Jackson - N7QNM
  66. US WEST NewVector Group Inc
  67. Bellevue, WA
  68. cjackso@uswnvg.com
  69.