<?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: remsh problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237040#M568779</link>
    <description>It would help if you posted the contents of /home/batch/devbin/test.ora after executing the compiled and linked program.&lt;BR /&gt;</description>
    <pubDate>Thu, 01 Apr 2004 13:30:19 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2004-04-01T13:30:19Z</dc:date>
    <item>
      <title>remsh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237035#M568774</link>
      <description>We are running 11.0/sept 2003 patch level. on L2000 box.  &lt;BR /&gt;&lt;BR /&gt;remsh is having problem to connect to the ORACLE database when we use remsh in "c" program.  &lt;BR /&gt;&lt;BR /&gt;remsh works fine if we use shall script to connect to the database. Command line also works fine.  &lt;BR /&gt;&lt;BR /&gt;ORACLE and HP passing bucks onto each other.&lt;BR /&gt;&lt;BR /&gt;Can anyone has any tips or hint?&lt;BR /&gt;&lt;BR /&gt;C program is using oracle "C" libraries.  &lt;BR /&gt;&lt;BR /&gt;We have applied latest remsh patch.  Is it remsh problem?&lt;BR /&gt;&lt;BR /&gt;We are testing ORACLE 9i upgrade.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 11:39:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237035#M568774</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2004-04-01T11:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: remsh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237036#M568775</link>
      <description>If you can't define the problem better, I'm afraid no one can help you. Are you using remsh inside a system() function? Is it inside a popen()? I suspect all of your problems arise from the fact that stdin, stdout, and/or stderr are not associated with a tty device.&lt;BR /&gt;&lt;BR /&gt;I can't imagine why you would be using remsh for this when Pro/C is made to do exactly this with much greater power and flexibility.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 11:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237036#M568775</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-01T11:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: remsh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237037#M568776</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;The reason I cannot define the problem properly is I am not a "C" programmer.  Anyway we are using the PRO/C program to connect to the database which is failing.  Oracle sent us a sample program for the test purpose it does not work.  This PRO/C program usese the "remsh" to connect to the remote host.  Here is the sample program oracle sent to connect to the database remotely which does not work.&lt;BR /&gt;---------------------------------------&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/* Declare variables. No declare section is&lt;BR /&gt;needed if MODE=ORACLE. */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include &lt;SQLCA.H&gt;&lt;BR /&gt;#define     UNAME_LEN      20&lt;BR /&gt;#define     PWD_LEN        40&lt;BR /&gt;&lt;BR /&gt;VARCHAR     username[UNAME_LEN];  /* VARCHAR is an Oracle-supplied struct */&lt;BR /&gt;varchar     password[PWD_LEN];    /* varchar can be in lower case also. */&lt;BR /&gt;/* Declare error handling function. */&lt;BR /&gt;void sql_error(msg)&lt;BR /&gt;char *msg;&lt;BR /&gt;{&lt;BR /&gt;char err_msg[128];&lt;BR /&gt;size_t buf_len, msg_len;&lt;BR /&gt;&lt;BR /&gt;EXEC SQL WHENEVER SQLERROR CONTINUE;&lt;BR /&gt;&lt;BR /&gt;printf("\n%s\n", msg);&lt;BR /&gt;buf_len = sizeof (err_msg);&lt;BR /&gt;sqlglm(err_msg, &amp;amp;buf_len, &amp;amp;msg_len);&lt;BR /&gt;printf("%.*s\n", msg_len, err_msg);&lt;BR /&gt;&lt;BR /&gt;EXEC SQL ROLLBACK RELEASE;&lt;BR /&gt;exit(EXIT_FAILURE);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;    char db_user[32] , db_passwd[32] , ic_server[32] ;&lt;BR /&gt;char temp_char[32];&lt;BR /&gt;int v_emp;&lt;BR /&gt;    char           *user = argv[2] ;&lt;BR /&gt;    char           *passwd = argv[3] ;&lt;BR /&gt;    char           *server = argv[1];&lt;BR /&gt;    FILE *fp;&lt;BR /&gt;    strcpy(db_user , user );&lt;BR /&gt;    strcpy(db_passwd , passwd );&lt;BR /&gt;    strcpy(ic_server , "DEVL" );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    if ((fp=fopen("/home/batch/devbin/test.ora", "w"))==NULL)&lt;BR /&gt;    {&lt;BR /&gt;        printf("Exiting program. Log file open failure\n");&lt;BR /&gt;        exit(-1);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    fb_setenv(ic_server, fp);&lt;BR /&gt;&lt;BR /&gt;    /* Connect to ORACLE--&lt;BR /&gt;     * Copy the username into the VARCHAR.&lt;BR /&gt;     */&lt;BR /&gt;    strncpy((char *) username.arr, "PRODDBO", UNAME_LEN);&lt;BR /&gt;&lt;BR /&gt;    /* Set the length component of the VARCHAR. */&lt;BR /&gt;    username.len =&lt;BR /&gt;    (unsigned short) strlen((char *) username.arr);&lt;BR /&gt;&lt;BR /&gt;    /* Copy the password. */&lt;BR /&gt;    strncpy((char *) password.arr, "devldbo" , PWD_LEN);&lt;BR /&gt;    password.len =&lt;BR /&gt;     (unsigned short) strlen((char *) password.arr);&lt;BR /&gt;/* Register sql_error() as the error handler. */&lt;BR /&gt;EXEC SQL WHENEVER SQLERROR DO fb_sql_error("ORACLE error--\n", fp);&lt;BR /&gt;&lt;BR /&gt;/* Connect to ORACLE. Program will call sql_error()&lt;BR /&gt;* if an error occurs when connecting to the default database.&lt;BR /&gt;*/&lt;BR /&gt;fprintf(fp, "Connected to Oracle using -%s-%s-%s-\n", db_user, db_passwd, ic_server);&lt;BR /&gt;fprintf(fp, "Before Connect ...\n");&lt;BR /&gt;fprintf(fp, "EXEC SQL CONNECT %s IDENTIFIED BY %s USING %s\n", username.arr, password.arr, ic_server) ;&lt;BR /&gt;fflush(fp);&lt;BR /&gt;&lt;BR /&gt;EXEC SQL CONNECT :username IDENTIFIED BY :password USING :ic_server;&lt;BR /&gt;&lt;BR /&gt;fprintf(fp, "Connected to Oracle using %s %s %s\n", db_user, db_passwd, ic_server);&lt;BR /&gt;/* Disconnect from ORACLE. */&lt;BR /&gt;EXEC SQL COMMIT WORK RELEASE;&lt;BR /&gt;&lt;BR /&gt;fclose(fp);&lt;BR /&gt;exit(EXIT_FAILURE);&lt;BR /&gt;}&lt;/SQLCA.H&gt;&lt;/STDLIB.H&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 01 Apr 2004 12:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237037#M568776</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2004-04-01T12:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: remsh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237038#M568777</link>
      <description>There is no remsh in this thing! This is ProC. I assume that you have run the code through the ProC compiler and linked it. The first thing that I would check is the constants you have defined for the connection. &lt;BR /&gt;&lt;BR /&gt;In any event, this is not a "remsh" problem.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 12:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237038#M568777</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-01T12:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: remsh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237039#M568778</link>
      <description>I did not find any remsh worh in that program. I am not into C, but there was no remsh word in program.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 01 Apr 2004 13:06:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237039#M568778</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-04-01T13:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: remsh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237040#M568779</link>
      <description>It would help if you posted the contents of /home/batch/devbin/test.ora after executing the compiled and linked program.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 13:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237040#M568779</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-01T13:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: remsh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237041#M568780</link>
      <description>Hi&lt;BR /&gt;       Please post the error message while you run this program then we can suggest solutions . Also pls check if you have installed Oralce 9i pathc number 3065127 .Pls see the atached file for the details of the patch . Check your trace file of the oracle if it had reported ORA-7445 error message . These all things are related HP- compiler problem for any compiler invoked oracle activities .&lt;BR /&gt;&lt;BR /&gt;Thanx&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 02:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237041#M568780</guid>
      <dc:creator>Sathish C</dc:creator>
      <dc:date>2004-04-02T02:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: remsh problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237042#M568781</link>
      <description>&lt;BR /&gt;This what HP found after running "tusc" utility on the sample PRO/C program.&lt;BR /&gt;----------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As shown by the information below, when the program is executed through remsh, the program is receiving a fb_sql_err.  &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;22765] write(1, "i n       f b _ s e t e n v   \n".., 141) = 141&lt;BR /&gt;[22765] write(4, "  f b _ s q l _ e r r o r   :   ".., 79) = 79&lt;BR /&gt;[22765] exit(1) .......................................... WIFEXITED(1)&lt;BR /&gt;[22764] waitpid(-1, WIFEXITED(1), WUNTRACED) ............. = 22765&lt;BR /&gt;[22764] sigvec(SIGCLD, 0x77ff0b90, 0x77ff0ba0) ........... = 0&lt;BR /&gt;[22764] sigprocmask(SIG_SETMASK, 0x77ff0b98, 0x77ff0bb8) . = 0&lt;BR /&gt;[22764] sigprocmask(SIG_SETMASK, 0x77ff0bb8, 0x77ff0b98) . = 0&lt;BR /&gt;[22764] exit(1) .......................................... WIFEXITED(1)&lt;BR /&gt;[22763] select(8, 0x781e45ac, NULL, NULL, NULL) .......... = 1&lt;BR /&gt;[22763]   Received signal 18, SIGCLD, in read(), [caught], no siginfo&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Per our conversation, this is about the time that the program /users/batch/work/nsk1 is trying to connect to local host through remsh.  According to meta-link(Oracle) the tnslistner needs to be configured to support local loop back.  As shown by the &lt;BR /&gt;data below, it appears that you need to have local host configured in the TNS listener.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;SNST      UKIM02.UK.ORACLE.COM &lt;BR /&gt;UKIM02    138.3.33.102 &lt;BR /&gt;UKMVS1    138.3.33.102 &lt;BR /&gt;LOOPBACK  127.0.0.1 &lt;BR /&gt;lOCALHOST 127.0.0.1 &lt;BR /&gt;We don't seem to be using a host file at all. &lt;BR /&gt;In DNRSLCxx we have: &lt;BR /&gt;UK.ORACLE.COM. &lt;BR /&gt;ORACLE.COM &lt;BR /&gt;. &lt;BR /&gt; &lt;BR /&gt;You should contact Oracle to help setup the TNS Listener.&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 12:53:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-problem/m-p/3237042#M568781</guid>
      <dc:creator>sheevm</dc:creator>
      <dc:date>2004-04-02T12:53:59Z</dc:date>
    </item>
  </channel>
</rss>

