1

I have an oracle stored procedure that works inside oracle however when I try to run it from sqlplus it does not work because the input value it takes in requires two spaces between the words. SQLPLUS automatically truncates this to a single space, for example.

 sqlplus username/password @setup_run.sql 'Word1__Word2'

 old   5:   inparam1 := '&1';
 new   5:   inparam1 := 'Word1_Word2';

 PL/SQL procedure successfully completed.

How do I stop this from happening? I do not want to manually parse the string and add a space because for other inputs that do not have the space this would cause issues.

Thanks,

1 Answer 1

1

It's not sqlplus that does that, it's probably the system|shell. Windows XP does it for example, you can fix it by using double-quotes.

sqlplus username/password @setup_run.sql "Word1  Word2"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.