The following library of Oracle errors may be of some use:
http://download-west.oracl
Main Topics
Browse All TopicsHi,
Following is the procedure I am talking abt.
It ran suceefully before 2 weeks.I wonder what happened?
******************PROCEDUR
CREATE OR REPLACE procedure create_user2(v_username varchar2, password varchar2)
IS
username varchar2(200):=decrypt2(v_
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
EXECUTE IMMEDIATE 'create user '||username||' identified by '||password||'
default tablespace users temporary tablespace temp';
execute immediate 'grant connect,resource to '||username||'';
END;
I am running the above procedure from another user's schema as below:
exec prasanna.create_user2('two
two is the parameter passed to the procedure create_user2.
The procedure has already been sucessfully created.
I am getting a error as:
exec prasanna.create_user2('two
*
ERROR at line 1:
ORA-00900: invalid SQL statement
Please help me out to solve this
Regards
Prasanna
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The following library of Oracle errors may be of some use:
http://download-west.oracl
Hey
sorry for the typo error. I am passing 2 parameters. But it still gives me error. It ran well for me couple of weeks ago. I used sql*plus and am using sql*plus.(same oracle 8i enterprise edition version).What can I do?
How to check the procedure status?
I dropped the prcedure and crated them again.
regards
Prasanna
Hello werner,
The following is the mesage I got from the page you asked me to refer. But
1)HOw should I install the procedural option.
2)HOw should I chenck the status of the PL/SQL banner?
ORA-00900 invalid SQL statement
Cause: The statement is not recognized as a valid SQL statement. This error can occur if the Procedural Option is not installed and a SQL statement is issued that requires this option (for example, a CREATE PROCEDURE statement). You can determine if the Procedural Option is installed by starting SQL*Plus. If the PL/SQL banner is not displayed, then the option is not installed.
Action: Correct the syntax or install the Procedural Option.
I appreciate your help.
Regards
Prasanna
HI
Thank you so much for your response.Finally God helped me out
to solve it.It is:
sql>
begin
create_user2('parameter1',
end;
/
sql>pl/sql procedure created sucessfully!
Thank God.
I have another question can you give me an idea how I can develop a interface or front end
to access the oracle 8i. I want the front end to make me to do anything like creating user,
granting privileges etc..,(like everything I can do in sql*plus)
I appreciate your help!
Regards
Prasanna
Business Accounts
Answer for Membership
by: angelIIIPosted on 2002-09-30 at 07:05:27ID: 7310094
Hi,
')
Your create the procedure with 2 parameters:
... (v_username varchar2, password varchar2) ...
but pass only 1 in your line:
exec prasanna.create_user2('two
Now, ORA-00900 would be some other issue, but I would start with this. Then, check if the procedure's state is still valid. Finally, what is the tool you use to execute the statement?
CHeers