<?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: sqlplus string to connect with out showing in ps command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574370#M831397</link>
    <description>hi again,&lt;BR /&gt;&lt;BR /&gt;at the sqlplus level, you can also use the SQLPLUS commands like "set heading off" etc.&lt;BR /&gt;to remove any other unimportant info which of course you can also do at script level.&lt;BR /&gt;&lt;BR /&gt;good luck&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
    <pubDate>Thu, 30 Jun 2005 23:45:45 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2005-06-30T23:45:45Z</dc:date>
    <item>
      <title>sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574361#M831388</link>
      <description>I am trying to reconfigure our scripts to prevent the showing of user name and password in the ps command.&lt;BR /&gt;But when I try I get an error:&lt;BR /&gt;Original:&lt;BR /&gt;sqlplus -s user1/userpw &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;        SELECT tn from TN_TABLE WHERE TN = '$i';&lt;BR /&gt; yada yada...&lt;BR /&gt;&lt;BR /&gt;What I am trying to do:&lt;BR /&gt;sqlplus -s &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;        connect user1/userpw&lt;BR /&gt;        yada, yada&lt;BR /&gt;&lt;BR /&gt;ERROR:&lt;BR /&gt;SP2-0306: Invalid option.&lt;BR /&gt;Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]&lt;BR /&gt;where &lt;LOGON&gt;  ::= &lt;USERNAME&gt;[/&lt;PASSWORD&gt;][@&lt;CONNECT_STRING&gt;] | /&lt;BR /&gt;&lt;/CONNECT_STRING&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/LOGON&gt;</description>
      <pubDate>Thu, 30 Jun 2005 12:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574361#M831388</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-06-30T12:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574362#M831389</link>
      <description>sqplus /nolog &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect user1/userpw&lt;BR /&gt; SELECT tn from TN_TABLE WHERE TN = '$i';&lt;BR /&gt;yada yada...&lt;BR /&gt;exit&lt;BR /&gt;EOF</description>
      <pubDate>Thu, 30 Jun 2005 12:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574362#M831389</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-06-30T12:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574363#M831390</link>
      <description>Great works!&lt;BR /&gt;Is there a way to get rid of the extra fluff on feed back. I am piping to a file:&lt;BR /&gt;&lt;BR /&gt;Extra fluff:&lt;BR /&gt;SQL*Plus: Release 8.1.7.0.0 - Production on Thu Jun 30 13:00:25 2005&lt;BR /&gt;&lt;BR /&gt;(c) Copyright 2000 Oracle Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; Connected.&lt;BR /&gt;SQL&amp;gt;&lt;BR /&gt;no rows selected&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production&lt;BR /&gt;With the Partitioning option&lt;BR /&gt;JServer Release 8.1.7.4.0 - Production&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jun 2005 13:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574363#M831390</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-06-30T13:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574364#M831391</link>
      <description>You already had that part...&lt;BR /&gt;&lt;BR /&gt;sqplus -s /nolog &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect user1/userpw&lt;BR /&gt;SELECT tn from TN_TABLE WHERE TN = '$i';&lt;BR /&gt;yada yada...&lt;BR /&gt;exit&lt;BR /&gt;EOF</description>
      <pubDate>Thu, 30 Jun 2005 13:24:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574364#M831391</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-06-30T13:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574365#M831392</link>
      <description>yes but it still returns information on every disconnect, if I have 7000 records to check...&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production&lt;BR /&gt;With the Partitioning option&lt;BR /&gt;JServer Release 8.1.7.4.0 - Production&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jun 2005 13:43:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574365#M831392</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-06-30T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574366#M831393</link>
      <description>Wow, I'm on 9i, and when I use the "-s" flag, it doesn't show what you're showing.  But, while we're at it, why would disconnect and rec onnect 7000 times?  Wouldn't just one connection with 7000 subsequent commands and then a single exit do it for you?</description>
      <pubDate>Thu, 30 Jun 2005 13:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574366#M831393</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-06-30T13:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574367#M831394</link>
      <description>But I am running a while loop to a huge file.&lt;BR /&gt;&lt;BR /&gt; cat file |while read i&lt;BR /&gt;        do&lt;BR /&gt;        echo $i&lt;BR /&gt;        sqlplus /nolog &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;        CONNECT $LOGONID&lt;BR /&gt;        SELECT tn from tn_table WHERE TN = '$i';&lt;BR /&gt;EOF&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jun 2005 14:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574367#M831394</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-06-30T14:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574368#M831395</link>
      <description>This is on 8.1.4 if there is a better way to check this OI am all open to suggestions.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jun 2005 14:15:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574368#M831395</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-06-30T14:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574369#M831396</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;one work around would be to spool to a file in the sqlplus then use another file which you would stuff all the outputs from sqlplus, i.e. something like&lt;BR /&gt;&lt;BR /&gt;cat /dev/null &amp;gt; myresults.lis&lt;BR /&gt;cat file |while read i&lt;BR /&gt;do&lt;BR /&gt;echo $i&lt;BR /&gt;sqlplus /nolog &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;CONNECT $LOGONID&lt;BR /&gt;spool tmpfile.lis&lt;BR /&gt;SELECT tn from tn_table WHERE TN = '$i';&lt;BR /&gt;spool off&lt;BR /&gt;EOF&lt;BR /&gt;cat tmpfile.lis &amp;gt;&amp;gt; myresults.lis&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Thu, 30 Jun 2005 23:41:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574369#M831396</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-06-30T23:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574370#M831397</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;at the sqlplus level, you can also use the SQLPLUS commands like "set heading off" etc.&lt;BR /&gt;to remove any other unimportant info which of course you can also do at script level.&lt;BR /&gt;&lt;BR /&gt;good luck&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Thu, 30 Jun 2005 23:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574370#M831397</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-06-30T23:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574371#M831398</link>
      <description>The best way to prevent ps from showing your password is to user externally authenticated users in the database. Basically, the OS authenticates you not the database. Take a look at &lt;A href="http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/users.htm#17308." target="_blank"&gt;http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/users.htm#17308.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Then you do&lt;BR /&gt;&lt;BR /&gt;acary@srv&amp;gt; sqlplus /&lt;BR /&gt;&lt;BR /&gt;SQL*Plus: Release 9.2.0.6.0 - Production on Fri Jul 1 10:22:44 2005&lt;BR /&gt;&lt;BR /&gt;Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Connected to:&lt;BR /&gt;Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production&lt;BR /&gt;With the Partitioning, OLAP and Oracle Data Mining options&lt;BR /&gt;JServer Release 9.2.0.6.0 - Production&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; sho user&lt;BR /&gt;USER is "OPS$ACARY"&lt;BR /&gt;SQL&amp;gt; &lt;BR /&gt;&lt;BR /&gt;It also works on 8i.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;ARC</description>
      <pubDate>Fri, 01 Jul 2005 09:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574371#M831398</guid>
      <dc:creator>Ariel Cary</dc:creator>
      <dc:date>2005-07-01T09:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus string to connect with out showing in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574372#M831399</link>
      <description>be sure to set remote_os_authent=false (which is the default in 8i, 9i) to prevent undesired access from remote clients.&lt;BR /&gt;&lt;BR /&gt;ARC</description>
      <pubDate>Fri, 01 Jul 2005 09:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-string-to-connect-with-out-showing-in-ps-command/m-p/3574372#M831399</guid>
      <dc:creator>Ariel Cary</dc:creator>
      <dc:date>2005-07-01T09:39:10Z</dc:date>
    </item>
  </channel>
</rss>

