بتاريخ: 24 أكتوبر 200719 سنة comment_113972 السلام عليكم و رحمة الله و بركاتهاخواني و اخواتي كتبت جملة SQL STATMENT في تريكير WHEN BUTTON PRESEDوهولانشاء مستخدم جديدفكتبت الاتيcretae user :user_name identified by :pass_wordحيث user_name and pass_word هما تكست ايتم في الحقل و طبعا لم يعمل الكود ارجو الايضاحورحم الله والديكم دنيا و اخرة تقديم بلاغ
بتاريخ: 24 أكتوبر 200719 سنة comment_113977 السلام عليكمجرب دىforms_ddl('create user '|| :u||' identified by '|| ) ;معلش الشكل اللى طلع مع الكود طلع غلط من غير قصدforms_ddl('create user '|| :u||' identified by '|| ) ; تقديم بلاغ
بتاريخ: 24 أكتوبر 200719 سنة comment_113982 أخي لا يجوز عمل جمل ddl داخل ال pl/sql في الفورمولكن يمكنك عمل procedure وتخزينه في الداتابيز ومناداته من الفورمكالتالي: create or replace procedure create_user(user_name varchar2 , pass varchar2) is begin execute immediate 'create user '||user_name||' identified by '||pass; end; وفي الbutton فقط نادي البروسيجر create_user(:user_name , :pass_word); تقديم بلاغ
بتاريخ: 24 أكتوبر 200719 سنة comment_113987 يجوز يا سيدى الفاضل تاكد بنفسكهذا من داخل ال helpللفورمزDescriptionIssues dynamic SQL statements at runtime, including server-side PL/SQL and DDL. Note: All DDL operations issue an implicit COMMIT and will end the current transaction without allowing Form Builder to process any pending changes. SyntaxFUNCTION FORMS_DDL (statement VARCHAR2); Built-in Type unrestricted function Enter Query Mode yes Parametersstatement Any string expression up to 32K: n a literal n an expression or a variable representing the text of a block of dynamically created PL/SQL code n a DML statement or n a DDL statement Usage NotesCommit (or roll back) all pending changes before you issue the FORMS_DDL command. All DDL operations issue an implicit COMMIT and will end the current transaction without allowing Form Builder to process any pending changes, as well as losing any locks Form Builder may have acquired. Some supplied stored procedures issue COMMIT or ROLLBACK commands as part of their logic. Make sure all pending changes in the form are committed or rolled back before you call those built-ins. Use the SYSTEM.FORM_STATUS variable to check whether there are pending changes in the current form before you issue the FORMS_DDL command. (See Example 4.) If you use FORMS_DDL to execute a valid PL/SQL block: n Use semicolons where appropriate. n Enclose the PL/SQL block in a valid BEGIN/END block structure. n Do not end the PL/SQL block with a slash. n Line breaks, while permitted, are not required. If you use FORMS_DDL to execute a single DML or DDL statement: n Omit the trailing semicolon to avoid an invalid character error. To check whether the statement issued using FORMS_DDL executed correctly, use the FORM_SUCCESS or FORM_FAILURE Boolean functions. If the statement did not execute correctly, check the error code and error text using DBMS_ERROR_CODE and DBMS_ERROR_TEXT. Note that the values of DBMS_ERROR_CODE and DBMS_ERROR_TEXT are not automatically reset following successful execution, so their values should only be examined after an error has been detected by a call to FORM_SUCCESS or FORM_FAILURE. تقديم بلاغ
بتاريخ: 24 أكتوبر 200719 سنة كاتب الموضوع comment_113990 رحم الله والديكم على الرد السريعلكن في استفسار اضافيهو يمكن اكمل بالطريقة التالية من اجل اعطاء الprivilageforms_ddl('create user '||:user_name||' identified by '||:pass_word ) ;forms_ddl('grant connect;resource to '||:user_name); تقديم بلاغ
بتاريخ: 24 أكتوبر 200719 سنة comment_113996 انا مع baseetaبجرب الشئ الاول و نحاول مرة و اتنين و تلاتة و بعدها نسال لان المعلومة هتثبت معاك تقديم بلاغ
بتاريخ: 24 أكتوبر 200719 سنة كاتب الموضوع comment_113997 رحم الله والديكم و اشكركم عى جهودكم ووفقكم الله دنيا و اخرة تقديم بلاغ
بتاريخ: 24 أكتوبر 200719 سنة comment_114021 أخ mom7800 جزاك الله خيراً على المعلومة الجديدة تقديم بلاغ
بتاريخ: 25 أكتوبر 200719 سنة كاتب الموضوع comment_114191 اذا اردت ان احدد TABLE_SPACEفكيف يمكنني ذلكبلا زحمة عليكم تقديم بلاغ
بتاريخ: 27 أكتوبر 200719 سنة كاتب الموضوع comment_114301 السلام عليكم و رحمة الله و بركاتهاخواني و اخواتي لدي هذا الكود forms_ddl('create user '||:user_name||' identified by '||:pass_word|| 'default tablespace'||'test' ) ;forms_ddl('grant connect,resource to '||:user_name);حيث المشكلة في تحديد التايبل سبيساذ انه لا يعمل لكن اذا حذفت 'default tablespace '||'test' سيكون شغال و يعمل على انشاء يوسر جديد لكن التيبل سبيس له هو USERS فكيف يمكنني جعل التيبل سبيس هو TESTو رحم الله والديكم دنيا و اخرة تقديم بلاغ
بتاريخ: 28 أكتوبر 200719 سنة كاتب الموضوع comment_114397 يا اخوان ما في حد يعرف كيفية تغير التيبل سبيس و جعله test instead of users تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.