<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Speaking to an Oracle base in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471634#M775596</link>
    <description>Paul,&lt;BR /&gt;&lt;BR /&gt;Are you wanting to run this script at a UNIX level?  IF so, hen you can do an if statement to check for pmon.  If pmon is running, then oracle exists and is running on this server.  &lt;BR /&gt;&lt;BR /&gt;Hope this is helpful, but needed more information to offer more&lt;BR /&gt;&lt;BR /&gt;Rhonda&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Dec 2000 17:06:07 GMT</pubDate>
    <dc:creator>Rhonda Thorne</dc:creator>
    <dc:date>2000-12-07T17:06:07Z</dc:date>
    <item>
      <title>Speaking to an Oracle base</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471632#M775594</link>
      <description>Dear Gurus,&lt;BR /&gt;&lt;BR /&gt;I am trying to write a small script that will insert a row into an Oracle table on a central database server host.&lt;BR /&gt;&lt;BR /&gt;Problem is, I want to execute this script on a number of different servers, some of which do not have Oracle installed.&lt;BR /&gt;&lt;BR /&gt;Can you give me some pointers on how to speak to remote databases&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Many thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Paul M.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PS -- Oracle v7.3.4.4, HPUXv11.</description>
      <pubDate>Thu, 07 Dec 2000 15:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471632#M775594</guid>
      <dc:creator>Paul Murray</dc:creator>
      <dc:date>2000-12-07T15:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Speaking to an Oracle base</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471633#M775595</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You'll need to run the Oracle client 'sqlplus' somewhere. &lt;BR /&gt;&lt;BR /&gt;This can either be:-&lt;BR /&gt;- locally on the server where the database is running &lt;BR /&gt;- on a remote server with Oracle client installed and with TNS configured so that Oracle's networking software can reach the database.&lt;BR /&gt;&lt;BR /&gt;If you don't have Oracle client installed on a server then can you configure 'remsh' so that you can run a script on one that has?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Thu, 07 Dec 2000 16:29:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471633#M775595</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-12-07T16:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Speaking to an Oracle base</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471634#M775596</link>
      <description>Paul,&lt;BR /&gt;&lt;BR /&gt;Are you wanting to run this script at a UNIX level?  IF so, hen you can do an if statement to check for pmon.  If pmon is running, then oracle exists and is running on this server.  &lt;BR /&gt;&lt;BR /&gt;Hope this is helpful, but needed more information to offer more&lt;BR /&gt;&lt;BR /&gt;Rhonda&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Dec 2000 17:06:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471634#M775596</guid>
      <dc:creator>Rhonda Thorne</dc:creator>
      <dc:date>2000-12-07T17:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Speaking to an Oracle base</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471635#M775597</link>
      <description>If the scenario is that you want to connect to the&lt;BR /&gt;Oracle Host and execute a script that resides on the Oracle host to modify the database, you can do that a couple of ways.  If you are running from a unix machine, you can use remsh to login and run a script that will connect to the instance and call sqlplus with the name of the script on the command line, or you can use the &lt;BR /&gt;ftp "quote SITE EXEC program" feature to invoke a script&lt;BR /&gt;that will call sqlplus with the name of the sql script on&lt;BR /&gt;the command line.  &lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Thu, 07 Dec 2000 18:24:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471635#M775597</guid>
      <dc:creator>Carl Stehman</dc:creator>
      <dc:date>2000-12-07T18:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Speaking to an Oracle base</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471636#M775598</link>
      <description>Hello Paul,&lt;BR /&gt;&lt;BR /&gt;you have to install and configure "Oracle SQL*Net V2"&lt;BR /&gt;on the *other* machine. Installation is relatively simple&lt;BR /&gt;(except for mount the CD-Rom - check pfs_mount), and&lt;BR /&gt;the configuration on the client machine consists of just&lt;BR /&gt;one file: "$ORACLE_HOME/network/admin/tnsnames.ora"&lt;BR /&gt;or - if it exists there - "/etc/tnsnames.ora".&lt;BR /&gt;&lt;BR /&gt;The content would be something like:&lt;BR /&gt;name = (DESCRIPTION=(&lt;BR /&gt; ADDRESS_LIST=(&lt;BR /&gt;  ADDRESS=(PROTOCOL=TCP)(HOST=host)(PORT=1521)&lt;BR /&gt;  )&lt;BR /&gt; )&lt;BR /&gt; (CONNECT_DATA=(SID=instance))&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;You havw to exchange the lower case words with your&lt;BR /&gt;own values: "name" is the name you will have to use as&lt;BR /&gt;"connect string" or "host string" in your command line&lt;BR /&gt;for "sqlplus" (see below), "hosts" is the name of your&lt;BR /&gt;Oracle-server machine, and "instance" must be the name&lt;BR /&gt;of the instance running on the server (usually in upper&lt;BR /&gt;case).&lt;BR /&gt;&lt;BR /&gt;Be logged in as user "oracle" for the following commands.&lt;BR /&gt;&lt;BR /&gt;Test it with "tnsping":&lt;BR /&gt;    tnsping name&lt;BR /&gt;where "name" is the "name" of the paragraph in your&lt;BR /&gt;"tnsnames.ora". You must have started the "listener"&lt;BR /&gt;on the server machine before "pinging" it.&lt;BR /&gt;&lt;BR /&gt;Use it with "sqplus":&lt;BR /&gt;   sqplus user/password@name&lt;BR /&gt;where "name" is as before, "user" is the oracle-user&lt;BR /&gt;and "password" is his/her password. If you omit it,&lt;BR /&gt;you will be asked interactively. But you still need the&lt;BR /&gt;"@" character in front of "name" - and *NO* spaces&lt;BR /&gt;in between!&lt;BR /&gt;&lt;BR /&gt;On your server machine you must have installed the&lt;BR /&gt;server part of "SQL*net V2" and it is only one config&lt;BR /&gt;file, again: "listener.ora" - same directories as for the&lt;BR /&gt;client.&lt;BR /&gt;&lt;BR /&gt;The file would look like:&lt;BR /&gt;&lt;BR /&gt;STARTUP_WAIT_TIME_LISTENER = 0&lt;BR /&gt;CONNECT_TIMEOUT_LISTENER = 10&lt;BR /&gt;TRACE_LEVEL_LISTENER = OFF&lt;BR /&gt;USE_CKPFILE_LISTENER = false&lt;BR /&gt;USE_PLUG_AND_PLAY_LISTENER = true&lt;BR /&gt;&lt;BR /&gt;LISTENER = (&lt;BR /&gt; ADDRESS_LIST =&lt;BR /&gt;  (ADDRESS=(PROTOCOL=IPC)(KEY=instance))&lt;BR /&gt;  (ADDRESS=(PROTOCOL=TCP)(HOST=host)(PORT=1521))&lt;BR /&gt; )&lt;BR /&gt; SID_LIST_LISTENER= (&lt;BR /&gt;  SID_LIST=&lt;BR /&gt; (SID_DESC=(SID_NAME=instance)(ORACLE_HOME=/opt/oracle))&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Of course, you have to put in your own values...&lt;BR /&gt;And you have to start the listener, after that:&lt;BR /&gt;   lsnrctl start&lt;BR /&gt;&lt;BR /&gt;Check for the running "tnslsnr" process:&lt;BR /&gt;   ps -ef | grep tns&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch&lt;BR /&gt;</description>
      <pubDate>Sun, 10 Dec 2000 01:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/speaking-to-an-oracle-base/m-p/2471636#M775598</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2000-12-10T01:38:34Z</dc:date>
    </item>
  </channel>
</rss>

