TAILIEUCHUNG - Oracle SQL Plus The Definitive Guide- P32

Oracle SQL Plus The Definitive Guide- P32:Every day, computer professionals the world over wake up, travel to the office, sit down in front of a computer, and begin another day working with that database called Oracle. Programmers write queries and stored procedures. Database administrators monitor performance, make database changes, and perform other maintenance tasks. Operations people may need to back up or recover a database. | previous page page_279 next page Page 279 SQL SELECT view_name 2 FROM dba_views 3 WHERE view_name DBA_TABLES VIEWNAME DBA_TABLES real 110 Notice that the timing display is rather inelegant. Why a heading of real is used instead of something more descriptive like elapsed time I don t know. When timing is on SQL Plus will also report the time it takes to execute a PL SQL block. Here s an example SQL BEGIN 2 How long does this take 3 END 4 How long does this take PL SQL procedure successfully completed. real 270 To turn timing off simply issue the SET TIMING OFF command as follows SQL SET TIMING OFF When you have timing turned on SQL Plus displays elapsed time only for commands executed by the database server. This includes SQL statements and PL SQL blocks. Elapsed time for SQL Plus commands such as ACCEPT and DEFINE is not reported. The TIMING Command The SQL Plus TIMING command gives you complete control over when timing starts and stops and over what is measured. With it you can turn on a timer at any point in your script. You can display the elapsed time at any point after a timer is turned on and you can nest timers. Nesting timers gives you a way to time a set of operations maybe an entire script while still allowing you to time each individual operation separately. The TIMING command is really useful only in scripts. You can use it interactively but then the elapsed time will include your think time and the time it take you to type in commands. previous page page_279 next page previous page page_280 next page Page 280 The syntax for the TIMING command looks like this TIMI NG START timer_name SHOW STOP where TIMI NG Is the command which may be abbreviated to TIMI. START timer name Starts a new timer and optionally gives it the name you provide. SHOW Shows the current value of the most recently started timer. STOP Stops the most recently started timer shows its current value then deletes it. Think of timers as being implemented on a stack. .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.