SP2-0027: Input is too long (> 2499 characters)
When we tried to execute long SQL queries on the SQLPLUS prompt then we will get the bellow error:
SP2-0027: Input is too long (> 2499 characters)
Error occurred due to SQL queries is not break in different lines it is present in one line which will reached the upper limit of the single line input 2499.
Solution:
To resolve this issue, we will need to break the Single line SQL queries into different line.
In Notepad or Notepad++, we will see the single line SQL queries with wordwrap feature enabled in different line. So we donot know it is in single line or multiple line. Check with disable the wordwrap feature.
We will tried to break it in different line by pressing enter button in between query and break the Single line SQL query into multiple line. So that one line will not reached the upper limit of 2499 character. Then you simply copy paste the SQL queries and execute it directly on SQLPLUS prompt.