<?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 ORA-00922: missing or invalid option in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248937#M677718</link>
    <description>If you put all you commands in a file and run the file with &lt;BR /&gt;start file.sql&lt;BR /&gt;or&lt;BR /&gt;@file.sql&lt;BR /&gt;&lt;BR /&gt;It will run.&lt;BR /&gt;&lt;BR /&gt;If you paste those same statements into the buffer the set commands will fail.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; ed&lt;BR /&gt;Wrote file afiedt.buf&lt;BR /&gt;  1  SET HEADING OFF&lt;BR /&gt;  2  SET LINESIZE 1600&lt;BR /&gt;  3  SET WRAP OFF&lt;BR /&gt;  4* select * from dual&lt;BR /&gt;  5  /&lt;BR /&gt;SET HEADING OFF&lt;BR /&gt;    *&lt;BR /&gt;ERROR at line 1:&lt;BR /&gt;ORA-00922: missing or invalid option&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 08 Aug 2008 16:49:26 GMT</pubDate>
    <dc:creator>Patti Johnson</dc:creator>
    <dc:date>2008-08-08T16:49:26Z</dc:date>
    <item>
      <title>SQLPlus ORA-00922: missing or invalid option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248935#M677716</link>
      <description>I am trying to execute the following sql but keep getting ORA-00922 and it's pointing to the REM statement.  Then when I change the REM to -- then it gets the same error on SET HEADING OFF.  I am loading the statements to the buffer and then running them with the RUN command.  Why doesn't it like either the REM or SET command?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;REM *   test&lt;BR /&gt;SET HEADING OFF&lt;BR /&gt;SET LINESIZE 1600&lt;BR /&gt;SET WRAP OFF&lt;BR /&gt;SET PAGESIZE 0&lt;BR /&gt;SET TRIMSPOOL ON&lt;BR /&gt;SPOOL ________.txt&lt;BR /&gt;SELECT &lt;BR /&gt;SUBSTR ( rpad ( nvl ( xx1_policy_reference,' '),030,' '),001,030)||&lt;BR /&gt;SUBSTR ( rpad ( nvl ( xx1_policy_quote_indicator,' '),001,' '),001,001)||&lt;BR /&gt;'--xx1'&lt;BR /&gt;FROM xx2_policies&lt;BR /&gt;WHERE xx1_policy_reference LIKE 'P%'&lt;BR /&gt;SPOOL OFF</description>
      <pubDate>Fri, 08 Aug 2008 16:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248935#M677716</guid>
      <dc:creator>Irma Fisher</dc:creator>
      <dc:date>2008-08-08T16:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQLPlus ORA-00922: missing or invalid option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248936#M677717</link>
      <description>You're missing the semi-colon at the end of your SELECT statement.</description>
      <pubDate>Fri, 08 Aug 2008 16:48:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248936#M677717</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2008-08-08T16:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQLPlus ORA-00922: missing or invalid option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248937#M677718</link>
      <description>If you put all you commands in a file and run the file with &lt;BR /&gt;start file.sql&lt;BR /&gt;or&lt;BR /&gt;@file.sql&lt;BR /&gt;&lt;BR /&gt;It will run.&lt;BR /&gt;&lt;BR /&gt;If you paste those same statements into the buffer the set commands will fail.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; ed&lt;BR /&gt;Wrote file afiedt.buf&lt;BR /&gt;  1  SET HEADING OFF&lt;BR /&gt;  2  SET LINESIZE 1600&lt;BR /&gt;  3  SET WRAP OFF&lt;BR /&gt;  4* select * from dual&lt;BR /&gt;  5  /&lt;BR /&gt;SET HEADING OFF&lt;BR /&gt;    *&lt;BR /&gt;ERROR at line 1:&lt;BR /&gt;ORA-00922: missing or invalid option&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Aug 2008 16:49:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248937#M677718</guid>
      <dc:creator>Patti Johnson</dc:creator>
      <dc:date>2008-08-08T16:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQLPlus ORA-00922: missing or invalid option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248938#M677719</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;can you copy and paste the exact error message as displayed in your SQLPLUS.&lt;BR /&gt;&lt;BR /&gt;Also, try to add ';' to the end of this line and retry:&lt;BR /&gt;&lt;BR /&gt;WHERE xx1_policy_reference LIKE 'P%;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;revert!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 08 Aug 2008 16:50:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248938#M677719</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-08-08T16:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQLPlus ORA-00922: missing or invalid option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248939#M677720</link>
      <description>Thanks to all for your replys.&lt;BR /&gt;&lt;BR /&gt;I did find an article that helped me understand this.  It said that sql*plus commands are not stored in the buffer.  I could see this when I used the START or @ to run the statements.  When I LISTed the buffer contents, I noticed that the sql*plus commands were not loaded therefore, I get a good run.  But when I open the command file, it loads both the sql*plus and sql commands into the buffer so when I try to RUN them, I get the error on the sql*plus commands.</description>
      <pubDate>Fri, 08 Aug 2008 17:41:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sqlplus-ora-00922-missing-or-invalid-option/m-p/4248939#M677720</guid>
      <dc:creator>Irma Fisher</dc:creator>
      <dc:date>2008-08-08T17:41:41Z</dc:date>
    </item>
  </channel>
</rss>

