Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. SQL> select * from v$version;
  2.  
  3. BANNER
  4. --------------------------------------------------------------------------------
  5. Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
  6. PL/SQL Release 11.2.0.4.0 - Production
  7. CORE 11.2.0.4.0 Production
  8. TNS for Linux: Version 11.2.0.4.0 - Production
  9. NLSRTL Version 11.2.0.4.0 - Production
  10.  
  11. SQL> show parameter target
  12.  
  13. NAME TYPE VALUE
  14. ------------------------------------ ----------- ------------------------------
  15. archive_lag_target integer 0
  16. db_flashback_retention_target integer 1440
  17. fast_start_io_target integer 0
  18. fast_start_mttr_target integer 0
  19. memory_max_target big integer 512M
  20. memory_target big integer 512M
  21. parallel_servers_target integer 32
  22. pga_aggregate_target big integer 0
  23. sga_target big integer 0
  24. SQL> select pga_alloc_mem/1024/1024 as pga_alloc_mb, pga_max_mem/1024/1024 as pga_max_mb from v$process where addr = (select paddr from v$session where sid = sys_context('userenv', 'sid'));
  25.  
  26. PGA_ALLOC_MB PGA_MAX_MB
  27. ------------ ----------
  28. 2.11863518 2.61863518
  29.  
  30. SQL> !cat pga.sql
  31. declare
  32. type t_dummy is table of char(4000);
  33. l_dummy t_dummy := t_dummy();
  34. begin
  35. for i in 1..500000
  36. loop
  37. l_dummy.extend;
  38. l_dummy(l_dummy.count) := 'A';
  39. end loop;
  40. end;
  41. /
  42.  
  43. SQL> @pga
  44.  
  45. PL/SQL procedure successfully completed.
  46.  
  47. SQL> select pga_alloc_mem/1024/1024 as pga_alloc_mb, pga_max_mem/1024/1024 as pga_max_mb from v$process where addr = (select paddr from v$session where sid = sys_context('userenv', 'sid'));
  48.  
  49. PGA_ALLOC_MB PGA_MAX_MB
  50. ------------ ----------
  51. 1.99363518 2605.30614
  52.  
  53. SQL>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement