- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SQLPlus ORA-00922: missing or invalid option
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 09:18 AM
тАО08-08-2008 09:18 AM
SQLPlus ORA-00922: missing or invalid option
REM * test
SET HEADING OFF
SET LINESIZE 1600
SET WRAP OFF
SET PAGESIZE 0
SET TRIMSPOOL ON
SPOOL ________.txt
SELECT
SUBSTR ( rpad ( nvl ( xx1_policy_reference,' '),030,' '),001,030)||
SUBSTR ( rpad ( nvl ( xx1_policy_quote_indicator,' '),001,' '),001,001)||
'--xx1'
FROM xx2_policies
WHERE xx1_policy_reference LIKE 'P%'
SPOOL OFF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 09:48 AM
тАО08-08-2008 09:48 AM
Re: SQLPlus ORA-00922: missing or invalid option
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 09:49 AM
тАО08-08-2008 09:49 AM
Re: SQLPlus ORA-00922: missing or invalid option
start file.sql
or
@file.sql
It will run.
If you paste those same statements into the buffer the set commands will fail.
SQL> ed
Wrote file afiedt.buf
1 SET HEADING OFF
2 SET LINESIZE 1600
3 SET WRAP OFF
4* select * from dual
5 /
SET HEADING OFF
*
ERROR at line 1:
ORA-00922: missing or invalid option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 09:50 AM
тАО08-08-2008 09:50 AM
Re: SQLPlus ORA-00922: missing or invalid option
can you copy and paste the exact error message as displayed in your SQLPLUS.
Also, try to add ';' to the end of this line and retry:
WHERE xx1_policy_reference LIKE 'P%;
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2008 10:41 AM
тАО08-08-2008 10:41 AM
Re: SQLPlus ORA-00922: missing or invalid option
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.