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

Column Not Allowed Here

Featured Replies

بتاريخ:

يا جماعة عندي مشكلة في إدخال البيانات في الجدول وده الجدول ونوع الداتا بتاعته
PNAME NOT NULL VARCHAR2(20)
DOB NOT NULL DATE
DOJ NOT NULL DATE
SEX NOT NULL CHAR(1)
PROF1 NOT NULL VARCHAR2(15)
PROF2 NOT NULL VARCHAR2(15)
SALARY NOT NULL NUMBER(10,2)


ودي البيانات اللى انا عايز أدخلها

anand 21-apr-1966 12-apr-1995 M pascal basic 3200


وده الكود اللي دخلت بيه القيم

insert into programmer (pname , dob , doj , sex , prof1 , prof2 , salary) values ('anand ' , 21-apr-1966 , 12-apr-1995 , 'm' ,'pascal','basic',3200);



بيجيني خطأ بيقول




ORA-00984: column not allowed here




ياريت يا جماعة حد يقولي الخطأ ده إيه ومعناه إيه وأخلص منه إزاي


وشكرا ليكم كتييييييييييييييييييييييييييييييير جدا

بتاريخ:

السلام عليكم..
المشكلة في قيمة التاريخ يجب أن تحاط بـ(' ')
'21-apr-1966 '

بتاريخ:

السلام عليكم
اخي يبدو ان الخطاء هو في التاريخ والذي يجب تحويله الي تاريخ بدل ما يكون "كراكتر" والذي يجب ان يكون عملية الادخال كالاتي

insert into programmer 
(pname 	  , dob , doj , sex , prof1 , prof2 , salary) 
values  	
('anand ' , to_Date('21-04-1966','dd-mm-yyyy') , to_date('12-04-1995','dd-mm-yyyy') , 'm' ,'pascal','basic',3200);

بتاريخ:

السلام عليكم...
أخي bahraini_78 .. عندما نقوم بإدخال قيمة تاريخ حسب الفورمات القياسي المعرف لدينا , فلا داعي لتحويله إلى تاريخ , أما إذا أردنا إدخاله بغير فورمات فيجب تحويله إلى تاريخ كما فعلت في مثالك وجزاك الله كل الخير للتوضيح .. ولمعرفة الفورمات القياسي نستخدم:

SQL> select SYS_CONTEXT('USERENV','NLS_DATE_FORMAT') Date_Format 
 2  from dual; DATE_FORMAT
-----------------------------------------------------------------
DD-MON-RR
بتاريخ:

السلام عليكم ورحمة الله وبركاته
شكرا للاخوة الذين ردوا على الاخ amirsaad
واتمني ان يكون وجد بين سطور ردودكم حل مشكلته
وفقه الله ووفقكم الى ماتحبون ويرضي

بتاريخ:

insert into emp (EMPNO,HIREDATE)values(113,'21/07/1966' )


dear write date as '21/07/1966'

بتاريخ:

السلام عليكم ورحمة الله وبركاته




الاخ troyman ممكن بعد اذنك تشرحلنا الكود الي انت كتابته بتاعت التالايخ بس بالتفصيل شويه بعد اذنك لان انا شايف ان كلها اوامر جاهزه وانا اول مره اشوفها بصراحه فممكن التوضيح مع شرح ليه وضعت كل كلمه في المكان بتاعها وجزاك الله خير ياخي

بتاريخ:

SYS_CONTEXT function in Oracle



SYS_CONTEXT is the function which returns information of the current session. It replaces the traditional USERENV function which is kept only for backward compatibility in Oracle 10g. Essentially it returns all the parameter values which were available through USERENV function.

SYS_CONTEXT take two arguments: namespace and the associated parameter. Oracle provides built-in namespace USERENV which returns information about the current session. Most common examples are getting osuser or getting session user, NLS values, IP Address etc. for the current session. Here is an example for few of the parameter values.


SQL> SELECT SYS_CONTEXT(’USERENV’,'SESSION_USER’) Session_User,
2         SYS_CONTEXT(’USERENV’,'LANGUAGE’) Language,
3         SYS_CONTEXT(’USERENV’,'NLS_DATE_FORMAT’) Date_Format,
4         SYS_CONTEXT(’USERENV’,'Module’) Module,
5         SYS_CONTEXT(’USERENV’,'Action’) Action
6    FROM DUAL; SESSION_USER LANGUAGE                       DATE_FORMAT MODULE     ACTION
———— —————————— ———– ———- ———-
SCOTT     AMERICAN_AMERICA.WE8MSWIN1252  DD-MON-RR   SQL*Plus




As mentioned earlier, these are few of the parameters. For complete list of parameters refer to Oracle manual. Value for parameters ‘Module’ and ‘Action’ can be set using dbms_application_info package to track the activity more precisely in the session. We will cover it in detail in another blog entry.

One can create user defined context using CREATE CONTEXT syntax. Specific attributes can also be assigned to the user defined context using DBMS_SESSION.set_context procedure. You can refer to Oracle SQL Reference manual for detailed explantion of how to create context and assign attribute to it. The session information can be useful for auditing purpose or for determining certain action based on certain parameter value. It also helps in determining the language specific parameters for current session.
.
.
.
for more details Click here

تم تعديل بواسطة TROYMAN

بتاريخ:
<_<

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

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

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

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

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

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.