Q

Creating new user and password in Forms 6i

In Forms 6i (d2k) I created the userid and password. How to create a new user and password programatically?

In Forms 6i (d2k) I created the userid and password. How to create a new user and password programatically?
One of the best ways to accomplish this is to create a stored procedure which will accept the username and password and then create the new user. Such a procedure might look like the following:
CREATE OR REPLACE PROCEDURE create_new_user 
  (usernm IN VARCHAR2, passwd IN VARCHAR2)
AS
   sql_stmt VARCHAR2(100);
BEGIN
   sql_stmt := 'CREATE USER '||usernm||' IDENTIFIED BY '||passwd
   EXECUTE IMMEDIATE sql_stmt;
END;
/
Now that you have the procedure defined, you can call it in your application, passing the username and passwords as parameters.
This was first published in November 2006
This Content Component encountered an error

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close