الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

مشكلة في الكود

Featured Replies

بتاريخ:

السلام عليكم و رحمة الله و بركاته
اخواني و اخواتي
كتبت جملة SQL STATMENT في تريكير WHEN BUTTON PRESED
وهولانشاء مستخدم جديد
فكتبت الاتي
cretae user :user_name identified by :pass_word
حيث user_name and pass_word هما تكست ايتم في الحقل و طبعا لم يعمل الكود ارجو الايضاح
ورحم الله والديكم دنيا و اخرة

بتاريخ:

السلام عليكم
جرب دى
forms_ddl('create user '|| :u||' identified by '|| :)) ;

معلش الشكل اللى طلع مع الكود طلع غلط من غير قصد

forms_ddl('create user '|| :u||' identified by '|| :P) ;

بتاريخ:

أخي لا يجوز عمل جمل 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);

بتاريخ:

يجوز يا سيدى الفاضل تاكد بنفسك
هذا من داخل ال help
للفورمز

Description


Issues 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.

Syntax

FUNCTION FORMS_DDL
(statement VARCHAR2);
Built-in Type unrestricted function
Enter Query Mode yes

Parameters

statement 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 Notes

Commit (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.

بتاريخ:
  • كاتب الموضوع

رحم الله والديكم على الرد السريع
لكن في استفسار اضافي
هو يمكن اكمل بالطريقة التالية من اجل اعطاء الprivilage
forms_ddl('create user '||:user_name||' identified by '||:pass_word ) ;
forms_ddl('grant connect;resource to '||:user_name);

بتاريخ:

جرب بنفسك وشوف النتيجه

بتاريخ:

انا مع baseeta
بجرب الشئ الاول و نحاول مرة و اتنين و تلاتة و بعدها نسال لان المعلومة هتثبت معاك

بتاريخ:
  • كاتب الموضوع

رحم الله والديكم
و اشكركم عى جهودكم ووفقكم الله دنيا و اخرة

بتاريخ:

أخ mom7800 جزاك الله خيراً على المعلومة الجديدة

بتاريخ:

شكرا جزيلا لكم على المعلومات

بتاريخ:
  • كاتب الموضوع

اذا اردت ان احدد TABLE_SPACE
فكيف يمكنني ذلك
بلا زحمة عليكم

بتاريخ:
  • كاتب الموضوع

السلام عليكم و رحمة الله و بركاته
اخواني و اخواتي لدي هذا الكود


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
و رحم الله والديكم دنيا و اخرة
بتاريخ:
  • كاتب الموضوع

يا اخوان ما في حد يعرف كيفية تغير التيبل سبيس و جعله test instead of users

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

Account

Navigation

البحث

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.