Posts

Showing posts from June, 2012

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 ...

Installation of MySQL Enterprise Server Manager

Today I had to install mysql enterprise monitor with zero knowledge. So after hours of reading and testing found another great day at workplace. for this solution we need to follow the below steps. 1) Download and install a Service Manager. 2) Open the Enterprise Dashboard in your browser and go through the first-time setup screen that    appears. 3) Download and install an Agent on each machine to be monitor. 4) Configuration of the Agent to connect to the server monitor and to the database. Task 1 ===== So I started installation of the enterprise monitor system management server. Unzip to get the installation files. ======================== [root@test1 intallation]# unzip V32221-01.zip Archive:  V32221-01.zip   inflating: mysqlmonitor-2.3.10.2153-linux-x86_64-installer.bin    inflating: mysqlmonitor-2.3.10.2153-linux-x86_64-update-installer.bin    inflating: AdvisorScript-Platinum-2.3.10.2153.jar    infla...

Install mysql enterprise database on Enterprise Linux

Installed the mysql using oracle e-delivery package shell> unzip -t V33087-01.zip Archive:  V33087-01.zip     testing: MySQL-devel-advanced-5.5.25-1.rhel5.x86_64.rpm   OK     testing: MySQL-test-advanced-5.5.25-1.rhel5.x86_64.rpm   OK     testing: MySQL-embedded-advanced-5.5.25-1.rhel5.x86_64.rpm   OK     testing: MySQL-client-advanced-5.5.25-1.rhel5.x86_64.rpm   OK     testing: MySQL-shared-compat-advanced-5.5.25-1.rhel5.x86_64.rpm   OK     testing: MySQL-shared-advanced-5.5.25-1.rhel5.x86_64.rpm   OK     testing: MySQL-server-advanced-5.5.25-1.rhel5.x86_64.rpm   OK     testing: README.txt               OK No errors detected in compressed data of V33087-01.zip. shell> rpm -ivh MySQL-server-advanced-5.5.25-1.rhel5.x8...