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

كيف تغير التاريخ في الاوراكل How To Change Sysdate Of Oracle Database

Featured Replies

بتاريخ:

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



بأطرح عليكم الموضوع بالعربية والأنجليزية علشان الكل يلقى الهدف من الموضوع


Iam going to write the subject in Arabic and English language to let all to be get the aim



الموضوع يتعلق بالتاريخ الهجري والميلادي وكيف نتعامل مع المتغيرات

Is about Hijri and Gregorian date and how to deal with variables


طرح المشكلة:
معروف ان اوركل DB تأخذ دائما تاريخ نظام التشغيل عند التنصيب ولكــــن
ماذا سيحصل إذا تغير التاريخ مثلا قمت بتعديل تاريخ نظام التشغيل من 1-1-2010 الى 3-1-2010 او كما حصل معي من 30-12-1431 الى 1-1-1432 تفاجأت أن التاريخ في اوراكل لم يتغير مع نظام التشغيل أي التاريخ الموجود في الأوراكل ما زارل 30-12-1431 لم يتغير.

:

The problem


We are known that Oracle reads sysdate from OS date because internally it doesnt care what's OS date, it has his own internal clock.change your O.S date and then go to SQLPLUS


select to_char(sysdate, 'YYYY-MM-DD HH24:MI:SS') from dual;

!date

and posted

.you will find that nothing will happed



حاولت ان اجرب الطريقة التالية:

I try the following method:


alter system set fixed_date= ..."


But you have to write that every time so that is not solution
بس با تضطر تكتب هذا الكود كل مرة اذا ليس حلا

انا الآن ابحث عن طريقة تعمل على ان يتم اخذ التاريخ والوقت للاوراكل من نظام التشغيل وارجوا منكم المساعدة لمن لدية طريقة

Now I am looking for a way to let Oracle DB taking O.S date and time as it is & I asking you to help out



واذا اتوصلت انا لأي حل لهذي المشكلة بأوافيكم بها

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

بتاريخ:

عزيزي سين
من الغريب ان تكون هناك ساعه داخليه لاوراكل حيث يتم تسجيل جميع البينات في اوراكل اعتمادا علي التاريخ والساعه الموجوده بالجهاز او نظام التشغيل
من المؤكد انك تحاول ان تستخدم الداتا بيس ريموتلي ويتم التغير ليس علي السيرفر الرئيسي الذي يحتوي الداتا بيس

Dear Sin
It's Strange that oracle has its own clock inside as we know that any recorded date field depend on DB OS clock regional date
For sure you are trying to connect to DB remotly through another PC and all changes on date and time done not on DB server side.

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

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

شكرا على التعقيب

thank you for your comment



لأ انا شغال من على السيرفر بس مثل ما قلتلك من قبل وجرب تعرف

Iam working on server but as i sade you can't fix that & you can try by your self

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

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

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

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

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

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

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.