WELCOME!

What is Pinoy? It's a slang for Filipino, a person who comes from the Republic of the Philippines, or commonly known as the Philippine Islands (PI). I am a Filipino and works as an Oracle DBA in the United States. Whenever an issue arises or just for experiments, I usually forget what I did to solve/conduct them. There must be a central location where I can put everything. Thus, this blog was born. It's a collection of ideas, tips and tricks, scripts, or anything interesting that happened to me on an Oracle database or any other stuff.

The simpler, the better! has always been my motto. You don't have to complicate things. Simple things, for me, is always easier, just like my site.

FYI, anything that is written here is based on my personal experiences and is not endorsed by any other party. Also, I will not be held liable for issues that can arise by following whatever I did. Just like any other good DBA would say... ALWAYS TEST!

Hope you can find this site helpful in whatever you need and remember, I am not a guru.

Dec 13, 2011

Linux: Generating SSH Keys

One of my colleagues asked if there's a way to log into a remote machine using SSH without a prompting for a password. A script was being written to check the load remotely. I told him to generate SSH keys for the user that will be running the command and copy that key to the other machine. For example, I have to machines and I want them to be cross checking each other (for some reason). Let's call them Server01 and Server 02.

Dec 5, 2011

MySQL: Duplicate Entry Error on Slave

While doing a normal routine check on the MySQL databases, one of the slave was reporting an error:

Duplicate entry '999' for key 'PRIMARY' on query. Default database...

To resolve this problem, we can set the parameter sql_slave_skip_counter to 1:

mysql> stop slave;
mysql> set global sql_slave_skip_counter=1;
mysql> start slave;


This will ignore the error that was encountered and just continue replicating.

Oct 11, 2011

MySQL: Relocating Slave Logs

On a master-slave configuration, MySQL creates binary logs on the master and events recorded in these files are read by the slave and stores them in relay logs. These log files are stored in the data directory by default. However, they can be relocated to another location for optimization purposes. 

Aug 19, 2011

Oracle: ORA-24247: network access denied by access control list (ACL)

I created a SOLR utility package in Oracle but was getting an HTTP request failed error during run time.

Aug 1, 2011

Oracle: Determine OS Process Id based on Oracle Process Id

To get the OS process Id of an Oracle process, join the v$session and v$process views:

select vp.spid "OS Id", vs.sid "Oracle Id", vs.username, vs.osuser
from v$process vp, v$session vs
where vp.addr = vs.paddr;