Posts

How to enable Piwik by editing the WordPress theme

1. Log in to your Piwik account as the administrator:       • On the top right of the page, click your administrator username.       • Under Manage, click Tracking Code.       • Under JavaScript Tracking Code, copy the entire text in the tracking code box, including the starting         <!—Piwik—> tag and the ending <!—End Piwik Code—> tag. 2. Log in to WordPress as the administrator. 3. Under Dashboard, click Appearance, and then click Editor. The Edit Themes page appears. 4. Under Templates, click Footer (footer.php). 5. Locate the ending </body> tag. Just above the </body> tag, paste the tracking code snippet that you obtained in step 1. 6. Click Update File. Piwik is now enabled for all pages on your WordPress site. To view site statistics, log in to your Piwik account.

Oracle Startup Issues ORA-16038

Image
ORA-16038: log 1 sequence# 244 cannot be archived  ORA-19809: limit exceeded for recovery files  ORA-00312: online log 1 thread 1  There is a possibility to encounter this issue in oracle database and when this happens you wont be able to open the database. you will be getting this once the  db_recovery_file_dest_size   value  gets exceeded.  However you can fix this one by increasing the  db_recovery_file_dest_size   or by clearing the  obsolete files. To increase the  db_recovery_file_dest_size   size use the following steps. 

How to add a zone in Solaris

With the introduction of the new Solaris OS 9/10 a hot new feature was the Virtualization. And the Solaris virtualization use a concept called zones. In this post I'm about to describe how to configure a zone in Solaris OS. In order to configure, it is needed to be installed Solaris OS on the server so called Global zone. creating a zone * gather = zonename and zonepath * dedicate cpu resource or capped cpu resource 1.) To create the role and assign the role to a user "solaris Management tools with RBAC" in Basic administration guide 2.) Setup a zone configuration with a zone name (eg: my-zone) #zonecfg -z my-zone will get an error if the first time and ask to create. 3.) create new zone configuration zonecfg:my-zone> create 4.) set the zone path, /export/home/my-zone zonecfg:my-zone> set zonepath=/export/home/my-zone 5.) set the autoboot value( set true to autoboot the zone) make sure svc:/system/zones:default is enabled zonecfg:my-zone...

Extract .pfx to gernerate private key and certificate

This Guide provides how to extract .pfx and generate private key and certificate to import in to the server like Apache  Export the private key file from the pfx file shell>> openssl pkcs12 -in filename.pfx -nocerts -out key.pem Export the certificate file from the pfx file shell>> openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem Remove the passphrase from the private key shell>> openssl rsa -in key.pem -out server.key Now you have generated the certificate ( cert.pem ) and the private key ( server.key ) from the .pfx file. Note : It is better if you are familier with these file formats. .csr   This is a Certificate Signing Request. Some applications can generate these for submission to certificate-authorities. It includes some/all of the key details of the requested certificate such as subject, organization, state, whatnot. These get signed by the CA and a certificate is returned. The returned certificate is the public cert...

How to Chage the archive destination in Oracle Database

If you are an Oracle DBA you will have to come across this topic or might not. However if we have to Chage the archive destination in Oracle Database then this article provides more details on how to proceed. If you are using a spfile then create a pfile as fail safe practice. connect to the database SQL> CREATE PFILE='$ORACLE_HOME/dbs/initORA.ora' FROM SPFILE='SPFILEORA.ORA'; Change the log_archive_dest parameter using SQL> alter system set log_archive_dest='/vol2/oradata/archives' scope=spfile; Shutdown the database SQL> Shutdown immediate start the database; SQL> startup trigger the log change; SQL> alter system switch logfile; Then move to new archive destination directory and check weather archive logs are creating. If creating then the change is successfull otherwise you may need to check the permission for the new log destination and configuration. ===========================================================...

Installation and Configuration of Cisco VPN Client on Linux

Installation of Cisco VPN client on Linux is something quiet easy. You just need to download the installation file. Extract it using shell>> tar zxvf vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz Move inside the vpnclient folder created after extracting the tarball using shell>> cd vpnclient Run the executable file vpn_install using shell>> ./vpn_install Provide necessary locations or confirm the defaults. Start the service using shell>> /etc/init.d/vpnclient_init start Copy the configuration file ( *.pcf ) or edit the existing sample.pcf file accordingly in the path of the profile folder. E.g : mine is /etc/CiscoSystemsVPNClient/profiles/sample.pcf After changing the or placing the new configuration file restart the vpn client using shell>> /etc/init.d/vpnclient_init restart And connect to the vpn using shell>> vpnclient connect sample ( if you have provide another name instead of sample to the .pcf file use that name...

Installation of MySQL Enterprise Monitor Agent on Linux

If you are new reader, kindly note that this post contains it's first part on post   "Installation of MySQL Enterprise Server Manager" . As the second step as mySQL monitor installation we need to install the monitoring agent for each instance. So in order to accomplish that we first need to create a user and grant relevent permission to that user. Create agent user on mySQL mysql> CREATE USER 'mysqlagnt'@'localhost' IDENTIFIED BY 'agentpass';   mysql> GRANT SELECT, REPLICATION CLIENT, SHOW DATABASES, SUPER, PROCESS  ON *.* TO 'mysqlagnt'@'localhost' IDENTIFIED BY 'agentpass';  mysql> GRANT CREATE, INSERT ON mysql.* TO 'mysqlagnt'@'localhost' IDENTIFIED BY 'agentpass';     mysql> GRANT SELECT ON mysql.inventory TO 'replicationuser'@'%' IDENTIFIED BY 'replication_password'; NOTE : SET SQL_LOG_BIN=0 to stop replicating the below ...