Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DYNAMIC USER CREATION -DIMA & MUSTAFA PLS HELP 1

Status
Not open for further replies.

NITIN27

Programmer
Dec 11, 2003
24
IN
HI.
I WANT TO CREATE A USER THROUGH FORMS(FORMS DEVELOPER 6I)
IN A FORM I HAVE TWO FIELDS

USER-IN THIS FIELD USERNAME WILL BE ENTERED
PASS -IN THIS FIELD USER'S PASSWORD WILL BE ENTERED

ON A BUTTON I HAVE WRITTEN A TRIGGER "WHEN-BUTTON-PRESSED"

FORMS_DDL('CREATE USER'||:USER||'IDENTIFIED BY '||:pASS);

IF NOT Form_Success THEN
Message ('USER Creation Failed');
ELSE
Message ('USER Created');
END IF;

FORMS_DDL('GRANT CONNECT,RESOURCE TO'||:USER);

PLS. HELP

THANKS IN ADVANCE


 
You need a space after USER and before IDENTIFIED in [tt]FORMS_DDL('CREATE USER '||:USER||' IDENTIFIED BY '||:pASS);[/tt], and after TO in [tt]FORMS_DDL('GRANT CONNECT,RESOURCE TO '||:USER);[/tt]

P.s. Please turn off your caps lock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top