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

Triggered PL/SQL which captures any database err

Featured Replies

بتاريخ:

Creates a table to capture data from v$session whenever any


database error activity occurs.
Capture scope can be widened to include additional session information




rem -----------------------------------------------------------------------
rem Filename:   database_err.sql
rem Purpose:    Captures all database errors to a table
rem             Oracle8i and 9i 
rem Date:       May 25, 2003
rem Author:     Laurence Jennings ([email protected])
rem -----------------------------------------------------------------------

drop trigger catch_err_trigger;
drop table   save_err_audit;

create table save_err_audit (
error     varchar2(30),
timestamp date,
username  varchar2(30),
       osuser    varchar2(30),
       machine   varchar2(64),
process   varchar2(15),
program   varchar2(64));

create or replace trigger 
         catch_err_trigger 
  after servererror on database
declare
v_user     varchar2(30);
v_osuser   varchar2(30);
v_machine  varchar2(64);
v_process  varchar2(8);
v_program  varchar2(48);
begin select username, osuser, machine, process, program
into v_user, v_osuser, v_machine, v_process, v_program
from sys.v_$session where audsid = userenv('sessionid');

insert into save_err_audit values(dbms_standard.server_error(1),
                sysdate,v_user,
         v_osuser,
                v_machine,
                v_process,
                v_program);
end;
/

بتاريخ:

جميلة جدا اخى الفاضل

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

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

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

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

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

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.