الانتقال إلى المحتوى
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

بتاريخ:

السلام عليكم 

انا كنت محتاج اكتب كود الinsert برمجيا فلقيت كود وحاولت اجربة بس المشكلة اللي بتواجهني في الurl بيقولي انه غير موجود فياريت اصحاب الخبرة يدلوني علي الجواب الصحيح

        UserInfo user=(UserInfo)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("userKey");
        String username="hr";
        String password="hr";
        String thisurl="jdbc:oralce:this:@localhost:1521:orcl";
        
        String sql= "INSERT INTO APP_USERS (USER_ID,USER_NAME,PASSWORD,FIRST_NAME,LAST_NAME,USER_TYPE)"+" VALUES('"+getUserId()+"','"+getUserName()+"','"+getPassword()+"','"+getFirstName()+"','"+getLastName()+"','"+getUserType()+"')";
            try{
              DriverManager.registerDriver((new OracleDriver()));   
                Connection con=DriverManager.getConnection(thisurl, username, password);
                Statement stat=con.createStatement();
                stat.executeUpdate(sql);
               setInsertMeg("تم إضافة المستخدم بنجاح");
                con.close();
                stat.close();                                         
                     } catch (SQLException e) {
            setInsertMeg("غير قادر على تسجيل المستخدم "+e.getMessage());
                
        }
 
        
        
        
        return null;
بتاريخ:

الخطا بهذا السطر 

 String thisurl="jdbc:oralce:this:@localhost:1521:orcl";

الصحيح هو 

"jdbc:oracle:thin:@localhost:1521:orcl" ;

oracle بدل من oralce

thin  بدل من this

وإن شاء الله تحل المشكلة 

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

استاذة ميسم والله مش عارف اشكر حضرتك اذاي  جزاكي الله كل خير الكود اشتغل معايا الحمدلله

بتاريخ:

الحمد لله .بالتوفيق

  • بعد 7 شهور...
بتاريخ:

مشكورة ربي يوفقك

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

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

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

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

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.