Skip to main content

Posts

Showing posts from July, 2016

How to Delete Archive log in Oracle 12c

How to Delete Archive log in Oracle 12c Oracle Database lets you save filled groups of redo log files in offline , This process is only possible if the database is running in  ARCHIVELOG   mode .. [[email protected] / ] $ rman  target / ARCHIVE REDO LOG RMAN> crosscheck archivelog all; Use the  following command t o   delete all  archivelog   RMAN>delete archivelog; Use the  following command t o delete  expired   archivelog     RMAN >delete noprompt expired archivelog all; BACKUPSET RMAN>crosscheck backup; Use the  following command t o  delete all backupset RMAN>delete backup;

How to Change Time Zone in CentOs in Command Line

 How to Change Time Zone in CentOs in Command Line View the list of available time zones. timedatectl list-timezones Use the Up, Down, Page Up and Page Down   keys to navigate. Find the time zone which you want. Remember it, write it down or copy it as a mouse selection. Then press  q  to exit the list. timedatectl set-timezone 'TIME_ZONE NAME'

Generate htpasswd in Linux / UNIX Using Command Line / Terminal

Generate htpasswd in Linux / UNIX Using Command Line / Terminal  Introduction htpasswd is used to create and update the flat-files used to store usernames and password for basic authentication of HTTP users.  htpasswd encrypts passwords in different methods.It encrypts using either bcrypt, a version of MD5 modified for Apache, SHA1, or the system's crypt() routine. Files managed by htpasswd may contain a mixture of different encoding types of passwords; some user records may have bcrypt or MD5-encrypted passwords while others in the same file may have passwords encrypted with crypt(). Create a new password file Creates a new file and stores a record in it for user naveen. The user is prompted for the password.  sudo htpasswd -c /opt/.htpasswd naveen Change or update password To add or modifies the password for user naveen, enter: sudo htpasswd /opt/.htpasswd-users naveen Adds or modifies the password for user naveen. The user is prompted

How To Install Apache On CentOS

How To Install  Apache On CentOS Introduction The Apache web server is currently the most popular web server in the world, which makes it a great default choice for hosting a website.t is used to serve more than half of all active websites. Step One — Install Apache  We can install Apache easily in CentOS's ,Using yum . A yum package manager allows us to install most software pain-free from a repository maintained by CentOS.  sudo yum install httpd Since we are using a  sudo   command, these operations get executed with root privileges. It will ask you for your regular user's password to verify your intentions. Once it Installation has completed, you can start Apache using following command sudo systemctl start httpd.service You can do a spot check right away to verify that everything went as planned by visiting your System's IP address in your web browser http:// your_machine_IP_address / The last thing you will want to do is enable