How do you enable a JDBC trace for a Java Stored Procedure or Java UDF?

http://www-01.ibm.com/support/docview.wss?uid=swg21884054&myns=swgimgmt&mynp=OCSSEPGG&mync=E&cm_sp=swgimgmt-_-OCSSEPGG-_-E

How do you enable a JDBC trace for a Java Stored Procedure or Java UDF?

Question

How do you enable a JDBC trace for a Java Stored Procedure or Java UDF?
Answer

Issue the following command on the database server:

db2set DB2_JVM_STARTARGS=”-Ddb2.jcc.override.traceLevel=-1 -Ddb2.jcc.override.traceFile=/tmp/jdbc_trace -Ddb2.jcc.override.traceFileAppend=true”

… where /tmp/jdbc_trace can be any path/file name that has write privilege by the DB2 fenced user id.

If the database manager configuration parameter KEEPFENCED is set to YES, then this command will require the DB2 instance to be recycled:

db2stop
db2start

To remove this parameter issue the command:

db2set DB2_JVM_STARTARGS=

… and then restart the DB2 instance again (assuming KEEPFENCED=YES is used).

Advertisement

Huge Pages for Informix on SPARC Solaris

To get hugh pages for Informix on Solaris

1. Set RESIDENT to a value other than 0, >0 means the first N shared memory segments will be pinned in memory.

https://informixdba.wordpress.com/2013/03/08/huge-pages/

2. Make sure IFX_LARGE_PAGES is not set to 0.

http://www-01.ibm.com/support/knowledgecenter/SSGU8G_12.1.0/com.ibm.sqlr.doc/ids_sqr_404.htm

3. To get pages >4MB in size the hardware must have support for 2GB pages, run pagesize -a to check what the hardware supports

https://blogs.oracle.com/mandalika/entry/enabling_2_gb_large_pages

4,  Either use ppgsz or mpss.so.1

The three ways to change the default page size for an application are:

  • Use the Oracle Solaris OS command ppgsz(1).
  • Compile the application with the -xpagesize, -xpagesize_heap, and -xpagesize_stack options. See the compiler man pages for details.
  • Use MPSS specific environment variables. See the mpss.so.1(1) man page for details.

http://docs.oracle.com/cd/E24457_01/html/E21996/aewda.html

ppgsz is documented at

https://docs.oracle.com/cd/E19683-01/816-0210/6m6nb7mht/index.html

mpss.so.1 is documented at

http://docs.oracle.com/cd/E19253-01/816-5165/6mbb0m9lf/index.html

5. Note

Solaris has had large parges for many years. Initially, a large page on SPARC was 4MB. Then, much later, Solaris 9 added new APIs for Multiple Page Size Support. At that time, the maximum supported by hardware was 256MB. Today, the T4 processor supports page sizes up to 2GB.

https://www.linkedin.com/groups/Solaris-Huge-pages-60651.S.78812448

6. UltraSPARC II/III/III+/IV/IV+ and UltraSPARC T1 (aka Niagara) only support large pages of 4MB

http://www.solarisinternals.com/wiki/index.php/Multiple_Page_Size_Support#Default_page_sizes.2C_and_tunables_on_different_platforms

7. Check none of these to disable large pages are being used

https://blogs.oracle.com/mandalika/entry/solaris_disabling_out_of_the

  • set exec_lpg_disable = 1This parameter prevents large pages from being used when the kernel is allocating memory for processes being executed. These constitute the memory needed for a processes’ text/data/bss.
  • set use_brk_lpg = 0This parameter prevents large pages from being used for heap. To enable large pages for heap, set the value of this parameter to 1 or remove this parameter from /etc/system completely.

    Note:
    brk() is the kernel routine that is called whenever a user level application invokes malloc().

  • set use_stk_lpg = 0This parameter disables the large pages for stack. Set it to 1 to retain the default functionality.
  • set use_zmap_lpg = 0This variable controls the size of anonymous (anon) pages.
  • set use_text_pgsz4m = 0This tunable disables the default use of 4M text pages on UltraSPARC-III/III+/IV/IV+/T1 platforms.
  • set use_text_pgsz64k = 0This tunable disables the default use of 64K text pages on UltraSPARC-T1 (Niagara) platform.
  • set use_initdata_pgsz64k = 0This tunable disables the default use of 64K data pages on UltraSPARC-T1 (Niagara) platform.

8.The T4 processor was the first to add “Support for a much larger Memory Management Unit page size (2GB)”

Click to access o11-090-sparc-t4-arch-496245.pdf

https://blogs.oracle.com/mandalika/entry/enabling_2_gb_large_pages

“Prerequisites:

OS: Solaris 10 8/11 (Update 10) or later
Hardware: SPARC T4. eg., SPARC T4-1, T4-2 or T4-4”


ORA-14696: MAX_STRING_SIZE migration is incomplete for pluggable database

http://www.liberidu.com/blog/2013/12/24/ora-14696-max_string_size-migration-is-incomplete-for-pluggable-database/

ORA-14696: MAX_STRING_SIZE migration is incomplete for pluggable database


Tweak your SQL Server Management Studio! Tip #1

http://dbagooner.com/?p=319&utm_content=buffer9d896&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer

Tweak your SQL Server Management Studio! Tip #1


Basic VMware and Hyper-V Terminology for the SQL Server DBA

http://www.brentozar.com/archive/2015/04/vmware-and-hyper-v-terminology-for-the-sql-server-dba/?utm_content=bufferc5e08&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer

Basic VMware and Hyper-V Terminology for the SQL Server DBA


When DBCC DROPCLEANBUFFERS doesn’t work…

http://www.sqlskills.com/blogs/paul/when-dbcc-dropcleanbuffers-doesnt-work/

When DBCC DROPCLEANBUFFERS doesn’t work…


Binding DB2 Base Packages for Various Versions

http://db2commerce.com/2015/04/28/binding-db2-base-packages-for-various-versions/?fb_action_ids=10206595788952587&fb_action_types=news.publishes&fb_ref=pub-standard&fb_source=other_multiline&action_object_map=%5B860575064014523%5D&action_type_map=%5B%22news.publishes%22%5D&action_ref_map=%5B%22pub-standard%22%5D

Binding DB2 Base Packages for Various Versions


Microsoft SQL Server stats

http://blogs.sqlsentry.com/loriedwards/statistics-1/

http://sqlblog.com/blogs/kalen_delaney/archive/2013/01/18/accessing-distribution-statistics.aspx

Microsoft SQL Server stats


Microsoft SQL Server Licensing Simplified into 7 Rules

http://www.brentozar.com/archive/2015/04/microsoft-sql-server-licensing-simplified-into-7-rules/?utm_content=buffer5387c&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer

Microsoft SQL Server Licensing Simplified into 7 Rules


Brent Ozar starting a company

http://ozar.me/2015/04/company-startup-thing-worked-year-3/?utm_content=buffer979de&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer