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

سؤال: معرفة كل requetes من v$session and v$sqlarea

Featured Replies

بتاريخ:

بسم الله الرحمن الرحيم
السلام عليكم سؤال:معرفت كل requetes
كامل اليوم في database
من , متى , كيف ....
شكرا

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

بتاريخ:
  • كاتب الموضوع
هل تقصد Queries ?
ارجو توضيح السؤال وشكرا


I try to create a "select" I would find all transactions (select, insert ,.....)
"SQL" executed in one session in particular!!
I tried with objects "v $ sqlarea, v $ session ,.........", but I can not.


And to this list and "Tunner" transactions in a session of a user.
In fact, it's just the link between a session and its operations that I can not do.

I can see a list of sessions (in v $ sessions and $ process v)
select sid SID, spid ORA_PID, process PGM_PID, s.USERNAME username,
substr (to_char (LOGON_TIME, 'DD / MM / YYYY HH24: MI: SS'), 1.22) connection_date
from v $ session s, v $ process where paddr p = addr order by connection_date
/

I can see a list of operations (in $ v v sqlarea or $ sqltext)
SQL_TEXT select from v $ sqlarea
/

there may be a table intermediary that would allow me to make this link?
or another technique?

وشكرا
بتاريخ:

حاول تجرب الكويري دى وقوللى على النتيجه

SELECT ٍT.SQL_TEXT FROM V$SQLTEXT T, V$SESSION S WHERE S.SID = 100 AND S.SQL_ADDRESS=T.ADDRESS ORDER BY T.PIECE



اتمنى اكون افدتك

بتاريخ:
  • كاتب الموضوع
حاول تجرب الكويري دى وقوللى على النتيجه

SELECT ٍT.SQL_TEXT FROM V$SQLTEXT T, V$SESSION S WHERE S.SID = 100 AND S.SQL_ADDRESS=T.ADDRESS ORDER BY T.PIECE



اتمنى اكون افدتك


No,it'not good
why you have put sid=100
بتاريخ:

هى دى اللى مزعلاك اوى اننا عملتها 100 ...ياسيدى خلليها انت Bind variable ...او بلاش خالص ..ممكن تحذف خالص اوبشن ال SID وتحط بداله USERNAME واكتب فيه zarzis و نفذها وشوف كميه الكود اللى عايز يتراجع اد ايه ؟ ..وعموما انا حبيت اساعدك

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

شكرا للمساعد ايها اخ..
هذا هو بيت القصيد !!!
لا ني اريد كامل يوزرنيم username ،لكامل اليوم ...

with this request I have all the lines that connect users with the same user oracle
and you can test
مع الشكر

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

ها هو الجواب

In v$session you have a link to the currently executed statement (SQL_ID), and the previously executed statements (PREV_SQL_ID) and you can link that to v$sql.

But you cannot have more because
- one session executes a lot of statements
- one statement is executed by a lot of sessions

So if you want the history, you need to activate tracing (sql_trace)

شكرا

بتاريخ:
:D

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

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

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

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

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

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.