1786
GB
What is the DBMS_OUTPUT package and what are its limitations in production systems?
IN
DBMS_OUTPUT पैकेज क्या है और उत्पादन प्रणालियों में इसकी सीमाएँ क्या हैं?
A
A production logging framework for Oracle databases
Oracle डेटाबेस के लिए एक उत्पादन लॉगिंग ढाँचा
B
A package for formatting database output
डेटाबेस आउटपुट को फ़ॉर्मेट करने के लिए एक पैकेज
C
A package for writing debug/informational messages to a server-side buffer that can be displayed by client tools like SQL Plus; limitations: buffer has a maximum size (default 20000 bytes max 1000000) messages only displayed AFTER the PL/SQL block completes (no streaming) not suitable for real-time monitoring and adds overhead
सर्वर-साइड बफ़र पर डिबग/सूचना संदेश लिखने के लिए एक पैकेज जिसे SQL प्लस जैसे क्लाइंट टूल द्वारा प्रदर्शित किया जा सकता है; सीमाएँ: बफ़र का अधिकतम आकार होता है (डिफ़ॉल्ट 20000 बाइट्स अधिकतम 1000000) संदेश केवल पीएल/एसक्यूएल ब्लॉक पूरा होने के बाद प्रदर्शित होते हैं (कोई स्ट्रीमिंग नहीं) वास्तविक समय की निगरानी के लिए उपयुक्त नहीं है और ओवरहेड जोड़ता है
D
A package for sending output to external files
बाहरी फ़ाइलों को आउटपुट भेजने के लिए एक पैकेज
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
DBMS_OUTPUT limitations: buffer size limit (SET SERVEROUTPUT ON SIZE 1000000). Output only visible after completion (useless for long-running batch monitoring). Overhead: extra memory. Alternative for production logging: UTL_FILE (write to OS files), application tables/log tables, Oracle Database Action tracking, autonomous transaction log inserts.
व्याख्या (हिन्दी)
DBMS_OUTPUT सीमाएँ: बफ़र आकार सीमा (आकार 1000000 पर सर्वरआउटपुट सेट करें)। आउटपुट केवल पूरा होने के बाद दिखाई देता है (लंबे समय तक चलने वाले बैच की निगरानी के लिए बेकार)। ओवरहेड: अतिरिक्त मेमोरी. उत्पादन लॉगिंग के लिए विकल्प: UTL_FILE (OS फ़ाइलों पर लिखें), एप्लिकेशन टेबल/लॉग टेबल, Oracle डेटाबेस एक्शन ट्रैकिंग, स्वायत्त लेनदेन लॉग इंसर्ट।