Wednesday, October 21, 2020

tnsames.ora for pluggable database

something that I keep forgetting


 PDBSLM =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = pdbslm.companyname.com)

    )

  )


 select value from v$parameter where name='service_names';

select name, pdb from v$services;


where pdbslm.companyname.com is the global name of the pluggable database

Tuesday, August 15, 2017

java mail and TLS

article

check mail.smtp.ssl.socketFactory here


hMailServer
SSL certificates
public key is expected to be in PEM format
see here
private key must be with stripped out passphrase, i.e. without a passphrase
I used BIS to export PK without a passphrase


For Debug:
-Djava.security.debug=certpath

Wednesday, June 10, 2015

Friday, May 15, 2015

Thursday, May 14, 2015

Monday, April 20, 2015

Monday, July 14, 2014

eclipse Specified VM install not found: type Standard VM...

e.g.
Specified VM install not found: type Standard VM, name jdk1.7.0_60

When getting this error when starting ant build - usually when the used JDK is changed -
in eclipse workspace, go to
.metadata\.plugins\org.eclipse.debug.core\.launches
and delete .launch file for the project

Thursday, March 28, 2013

Wednesday, November 28, 2012

oracle - password life time


SQL> connect system/***
ERROR:
ORA-28002: the password will expire within 7 days

???
----------
SQL> select profile from dba_users where username='SYSTEM';

PROFILE
------------------------------
DEFAULT

SQL> select resource_name, limit from dba_profiles where profile = 'DEFAULT';

RESOURCE_NAME                    LIMIT
-------------------------------- ----------------------------------------
...
PASSWORD_LIFE_TIME               180
...

16 rows selected.

SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

Sunday, November 25, 2012

Dr Dobb's http://www.bullhornreach.com/sites/HireMinds/article/view/44691?referer=www.linkedin.com&shortlink=1490340

http://www.bullhornreach.com/sites/HireMinds/article/view/44691?referer=www.linkedin.com&shortlink=1490340

Friday, November 23, 2012

cloudflare

http://www.cloudflare.com/

Wednesday, November 14, 2012

JVM thread dump

creating a thread dump of JVM
when the application is running in the console:
Control + Break in the console

http://www.webnms.com/webnms/help/developer_guide/troubleshooting_tips/creating_threaddump.html