ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
CREATE OR REPLACE PACKAGE Students2 AS
PROCEDURE proce(f_name varchar2, l_name varchar2);
END;
CREATE OR REPLACE PACKAGE BODY Students2 AS
PROCEDURE proce(f_name varchar2, l_name varchar2) IS
BEGIN
INSERT INTO Stu2(f_name, l_name) VALUES(f_name, l_name);
END;
END Students2;
BEGIN
Students2.proce('bat', 'man');
END;
this code runs accurately and batman gets embedded in the table which I made.
in any case, with regards to dropping the bundle
Code:
DROP PACKAGE Students2;
it gives this error;
SQL Error [933] [42000]: ORA-00933: SQL command not properly ended
What could I be missing? Can anybody suggest with a solution as I already tried researching on google and read many articles like on the [link moderated] etc.
Thanks in Advance!
Last edited by astrogeek; 10-19-2022 at 10:17 AM.
Reason: Spam links moderated
CREATE OR REPLACE PACKAGE Students2 AS
PROCEDURE proce(f_name varchar2, l_name varchar2);
END;
CREATE OR REPLACE PACKAGE BODY Students2 AS
PROCEDURE proce(f_name varchar2, l_name varchar2) IS
BEGIN
INSERT INTO Stu2(f_name, l_name) VALUES(f_name, l_name);
END;
END Students2;
BEGIN
Students2.proce('bat', 'man');
END;
this code runs accurately and batman gets embedded in the table which I made. in any case, with regards to dropping the bundle
Code:
DROP PACKAGE Students2;
it gives this error; SQL Error [933] [42000]: ORA-00933: SQL command not properly ended
What could I be missing? Can anybody suggest with a solution as I already tried researching on google and read many articles like on the [link moderated] etc.
Your profile says that you're a computer-science and engineering graduate...but this is very obviously a homework question. And you are posting no details at all, such as what database (assuming Oracle), on what platform, and the context of what you're doing. Is this a stored procedure/function?? Where does the drop package statement come into play, since it's not in the 'code' you posted initially??
Ask a clear question and explain what you're trying to do, because all we can tell you now is exactly what you can look up for that error message; and I would suggest you look at what you posted, and think about it.
In some contexts, simple SQL statements aren't terminated with ';'semicolon, but PL/SQL blocks are.
In other contexts (e.g. Sql*Plus) ';'semicolon is always used, but PL/SQL blocks are to be terminated with a '/'slash e.g.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.