Saturday, January 16, 2010

ORA-16014 ORA-00312 ORA-16038 ORA-19809: limit exceeded for recovery files

Problem Description:
From alert log, we find the following errors
Sat Jan 16 03:08:36 2010
ARCH: Archival stopped, error occurred. Will continue retrying
Sat Jan 16 03:08:36 2010
ORACLE Instance OMSRPS - Archival Error
Sat Jan 16 03:08:36 2010
ORA-16014: log 6 sequence# 11181 not archived, no available destinations
ORA-00312: online log 6 thread 1: '/SIDS1/oradata/OMSRPS/stdby_redo02.log'
ORA-00312: online log 6 thread 1: '/SIDS2/oradata/OMSRPS/stdby_redo02.log'
Sat Jan 16 03:08:36 2010
Errors in file /SIDS/app/oracle/admin/OMSRPS/bdump/omsrps_arc4_9885.trc:
ORA-16014: log 6 sequence# 11181 not archived, no available destinations
ORA-00312: online log 6 thread 1: '/SIDS1/oradata/OMSRPS/stdby_redo02.log'
ORA-00312: online log 6 thread 1: '/SIDS2/oradata/OMSRPS/stdby_redo02.log'
If we check the content of trace file /SIDS/app/oracle/admin/OMSRPS/bdump/omsrps_arc4_9885.trc we see,
ORA-19815: WARNING: db_recovery_file_dest_size of 99857989632 bytes is 70.10% used, and has 29852624896 remaining bytes available.
*** 2010-01-16 03:23:54.463
************************************************************************
You have following choices to free up space from flash recovery area:
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
   then consider changing RMAN ARCHIVELOG DELETION POLICY.
2. Back up files to tertiary device such as tape using RMAN
   BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to
   reflect the new space.
4. Delete unnecessary files using RMAN DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.
************************************************************************
*** 2010-01-16 03:23:54.464 62692 kcrr.c
ARC4: Error 19809 Creating archive log file to '/backup/flash_recovery_area/OMSRPS/archivelog/2010_01_16/o1_mf_1_11181_%u_.arc'
*** 2010-01-16 03:23:54.464 60970 kcrr.c
kcrrfail: dest:1 err:19809 force:0 blast:1
ARCH: Connecting to console port...
ARCH: Connecting to console port...
*** 2010-01-16 03:23:54.513 21373 kcrr.c
ORA-16038: log 6 sequence# 11181 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 6 thread 1: '/SIDS1/oradata/OMSRPS/stdby_redo02.log'
ORA-00312: online log 6 thread 1: '/SIDS2/oradata/OMSRPS/stdby_redo02.log'
Cause of the Problem
Flash recovery area is used for archival destination. ORA-16014 ORA-00312 ORA-16038 ORA-19809: limit exceeded for recovery files will be raised because there is no space to create additional archive log in the flash recovery area. Note that the error inside trace file "ORA-19815: WARNING: db_recovery_file_dest_size of 99857989632 bytes is 70.10% used, and has 29852624896 remaining bytes available." can be misleading. Though it says 70.10% used but actually it is 100% used. Ensure by issuing following query in the database,
SQL> set lines 120
SQL> col name format a50
SQL> select name
,floor(space_limit / 1024 / 1024) "Size MB"
,ceil(space_used / 1024 / 1024) "Used MB"
from v$recovery_file_dest
order by name
/

NAME                                            Size MB      Used MB
-------------------------------------------     ---------    ------------
/backup/flash_recovery_area                     95232        95152
We see in the flash recovery area space limit and space used are almost same and no more space for archival. Hence we get error.

Consequences of the Error
Due to ORA-16014, ORA-00312, ORA-16038 and ORA-19809 there might have following effects to database.
1) Database archive process stops and database hangs.
2) Users are not able to connect to database.
3) If you try to open database you are not able to open database bypass these errors.
4) In the Alert log/Trace file Flash Recovery Area reports ORA-19809: limit exceeded for recovery files.

Solution of the Problem
There may have several solutions to solve above problems.
Solution 00: Ensure that you have enough space in the underlying directory
This step is common and application for all solution methods.
In the underlying mount point of your archival destination ensure that you have enough space. That is ensure that your hard disk is not full. If you don't have sufficient space in your disk space free up the space by deleting unnecessary files.

On Linux/Solaris you can check disk space of all mount points by $df -h
On HP-UX issue $df -k

Solution 01: Increase the size of Flash recovery area
The size of flash recovery area is determine by the parameter db_recovery_file_dest_size. You can check the current size of flash recovery area in Sql*plus by issuing,
SYS@OMSRPS> show parameter db_recovery_file

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string /backup/flash_recovery_area
db_recovery_file_dest_size big integer 93G
or by issuing query,
SQL> select value from v$parameter where name='db_recovery_file_dest_size';

VALUE
-----------------------------------------------------------------------------
99857989632

In order to increase the size of the parameter issue following query.
SYS@OMSRPS> alter system set db_recovery_file_dest_size = 95G scope=both;

System altered.
Here, I have increased to 95G. Ensure by issuing,
SYS@OMSRPS> show parameter db_recovery_file

NAME                                    TYPE         VALUE
------------------------------------ -----------     --------------------------
db_recovery_file_dest                   string       /backup/flash_recovery_area
db_recovery_file_dest_size              big integer  95G
Now check your alert log file and you see Archiver process freed from errors.
Sat Jan 16 03:37:31 2010
ALTER SYSTEM SET db_recovery_file_dest_size='95G' SCOPE=BOTH;
Sat Jan 16 03:38:25 2010
Archiver process freed from errors. No longer stopped
Sat Jan 16 03:38:25 2010
Primary database is in MAXIMUM PERFORMANCE mode
RFS[9]: No standby redo logfiles of size 512000 blocks available
Sat Jan 16 03:38:27 2010
Media Recovery Waiting for thread 1 sequence 11186 (in transit)

Solution 02: Change the database archival location outside FRA
You can solve the problem if you stop using flash recovery area for your archival destination. You can disable using flash recovery area by issuing following query,

SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST='' SCOPE=BOTH SID='*';

System altered.
After disabling flash recovery area you will see your archival location is changed to database default archival location. If you have enough space in your default archive location (you can check it by issuing "archive log list" after connecting as sysdba) you should no longer get above errors.

Solution 03: Free up space in FRA
If you use RMAN to database backup and store backups to FRA then check space distribution in the FRA by following query,
SQL>select file_type, percent_space_used as used,percent_space_reclaimable as reclaimable,
number_of_files as "number" from v$flash_recovery_area_usage;

After issuing query if you see almost all the space are used by Archivelogs and backup pieces then there is no space to reclaim. So you need to free up some spaces with by of the following methods.

a) Take backup of archivelogs to some other locations and delete the archivelogs from flash recovery area.
You can delete older archivelogs say before 7 days ago by following RMAN command.
RMAN>Delete archivelog all completed before 'SYSDATE-7';

b) If flashback logs are enable then make sure you have enough space for all the flashback logs. If you don't need flashback logs you can disable it by command in mount stage.
SQL>Alter database FLASHBACK OFF;

c) Note that if you have guaranteed restore point then flashback logs will not be reclaimed by flash recovery area. Even due to some bugs Flashback logs are not reclaimed by flash recovery area when using guaranteed restore point (after dropping guaranteed restore point) or when changing db_flashback_retention_target to a lower value. If there is such guaranteed restore point and it is no longer needed you can delete by,

SQL> Drop restore point restore_point_name;

d) From your archival location using any operating system utility like rm or del or delete you can remove the backups/archive log files. After you remove the files the OS knows that you have deleted files but still you need to inform the database to be aware of the resulting free space.

To inform database about free space connect as RMAN and then issue following commands.
RMAN>CROSSCHECK BACKUP;
RMAN>CROSSCHECK ARCHIVELOG ALL;

RMAN>Delete expired backup;
RMAN>Delete expired archivelog all;
RMAN>Delete force obsolete;

Solution 4: Scenarios based on Database Backup Strategy
Follow the scenarios as demonstrated in topic Database Startup fails with error ORA-16038,ORA-19809, ORA-00312. In the post it is demonstrated what we will do if we don't (in Solution C:) have any backup and also the secnarios if we (Solution D:) have recent backup and only need archivelogs.

Related Documents
Set up Flash Recovery Area for RMAN
Database Startup fails with error ORA-16038,ORA-19809, ORA-00312

Interact with RMAN Client.

Friday, January 15, 2010

Introducing Wordpress Theme

In the post Wordpress Admin Panel I have introduced about wordpress admin panel. In this post I will discuss about wordpress theme. Wordpress theme is a collection of files that work together to produce the graphical interface with an underlying design for the website.

Wordpress theme uses combination of three things.
A)Template Files.
B)Template Tags.
C)CSS Style Sheets.

A)Template Files: Template files are the files (building blocks) which come together to create the site. The header, sidebar, content, footer are all individual template files.

The following are the template files typically included within a Theme.

i) 404 Template = 404.php
ii) Archive Template = archive.php
iii) Archive Index Page = archives.php
iv) Comments Template = comments.php
v) Footer Template = footer.php
vi) Header Template = header.php
vii) Links = links.php
viii) Main Template = index.php
ix) Page Template = page.php
x) Popup Comments Template = comments-popup.php
xi) Post Template = single.php
x) Search Form = searchform.php
xi) Search Template = search.php
xii) Sidebar Template = sidebar.php

B) Template Tags: Template Tags are small piece of code which provide instructions and requests for information stored within the WordPress database. It instructs WordPress to "do" or "get" something. For example after login to wordpress Dashboard if you open template file header.php ( from Appearance>Editor) you will notice template tags like below.

<?php language_attributes(); ?>
<?php bloginfo('html_type'); ?>
<?php bloginfo('charset'); ?>
<?php bloginfo('name'); ?>
<?php bloginfo('stylesheet_url'); ?>
<?php bloginfo('pingback_url'); ?>
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
<?php bloginfo('url'); ?>

Each of these template tags instructs wordpress to "do" or "get" something. Let's introduced with bloginfo temaplte tag with some parameters that it take.
1)Site Name <?php bloginfo('name'); ?> : The bloginfo template tag with name parameter is used to display the site name that is set by admin via Settings> General subpanel.

2)Site Description <?php bloginfo('description'); ?> : The bloginfo template tag with description parameter displays some descriptive sentence that says the blog/site about. Generally it is called tagline. This is set by admin via Settings> General subpanel.

3)Site url <?php bloginfo('url'); ?> : The bloginfo template tag with url parameter is used to display the URL or website address for your WordPress site. This is set by admin via Settings> General subpanel.

4) Admin Email <?php bloginfo('admin_email'); ?> : bloginfo template tag with admin_email parameter is used to display email of the administrator.

5) Wordpress Version : The bloginfo template tag with version parameter display the version of WordPress you are using.

C)CSS Style Sheets: CSS Style Sheets make the things all together. With your css you can move the building block structures around, make your header very long, float the sidebar left or right. The css stylesheet instruction are found under style.css file.

Wednesday, January 13, 2010

How to check whether it is binary or ascii file in Linux

With file command you can determine the file type in unix. Thus with file command you can check whether a file is binary file or ascii file. Before going into much about file command let us check some simple example.
# file .bash_history
.bash_history: ASCII text
# file .dns
.dns: ASCII text, with no line terminators
# file .cvsignore
.cvsignore: empty
# file .ftpquota
.ftpquota: character Computer Graphics Metafile
# file nextlevelrealty.nextlevelre.com
nextlevelrealty.nextlevelre.com: ASCII text, with very long lines
# file memd*
memd: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
# file pppd
pppd:            ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, stripped

Note that by invoking file command it is shown the file type.
File type can be come as,

1) Text: The file will be text file if they contain one of the words text (the file contains only printing characters and a few common control characters and is probably safe to read on an ASCII terminal)

2) Executable: After invoking file command if you get text executable then the file contains the result of compiling a program in a form understandable to some UNIX kernel or another, which means binary file.

3) Data: If after invoking file command there comes data keyword then it means data is in 'binary' or non-printable format.

So we see if after invoking file command there appears word "text" or "ascii" then it is text or ascii file otherwise it is binary.

Following shell script will tell you whether a file is binary file or text file. This script takes an argument and then prints its type.

file "$1" | grep executable
if [ $? -eq 0 ];then
   echo "File is binary"
else
    file "$1" |egrep "ascii|text"
    if [ $? -eq 0 ];then
        echo "File is ascii"   
    fi
fi

Related Documents
Dot (.) in linux and shell script
Semicolon (;) and double semicolon (;;) in shell script
Hash sign (#) in shell script
Single quote, double quote and comma in shell script
Forward slash and backslash in shell script and linux
http://arjudba.blogspot.com/2009/04/what-is-sharp-bang-appear-at-first.html
Colon (:) character in shell script and Linux
Exclamation mark in shell script and linux
Asterisk (*) in shell script and linux
Question mark (?) in linux and shell script
Dollar sign ($) in shell script
Paranthesis () in shell script
Brace {} in shell script
Control Characters in Linux and shell script
List of comparison made by test operator in shell script

How to add Google Translate Gadget to your blog

Though majority of peoples' main language in the Internet world are English (which is about 30%), there are good number of users who wants to see the website in other languages that they known better than english. If you look for number of Internet users by language you will see English users are around 27.6 %, Chinese 22.1 %, Spanish 7.9 %, Japanese 5.5 %, French 4.6 %, Portuguese 4.2 %, German 3.7 %, Arabic 2.9 %, Russian 2.6%, Korean 2.2 %, Italian 2.1 %.

So there is significant number of Internet users who wants to see the language of the website in their own language. If you have a website in english and your site is familiar you will see many ones of them using google translator tool to translate your website into their more familiar language and reading the content. In order to give more flexibility to your users you can add a translator gadget to your site by which users have the option to translate the language of your site into users preferred language automatically.

Step by steps of adding google translator gadget is described below.

Step 01: Sign in to your blogger account Blogger Dashboard. Check the image from the post How to add Recent Comments and Posts

Step 02: Click on Layout on the blog that you want to add Google Translator Gadget. After you click Layout then choose Page Elements. In the Add and Arrange Page Elements click Add a Gadget.
Check the example image from the step 2 and step 3 from the post How to add Recent Comments and Posts

Step 03: From the pop up window click HTML/JavaScript. See example image below.
javascript widget

Step 04: In the content box paste the following script if you want to convert language from english to other languages.
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en'
  }, 'google_translate_element');
}
</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>


Step 05: Save it and you are done.

However if your language is not English and you want to convert your non english site language into other languages or into specific languages please have a look at Google Translate Tools. From step 01 you can Select the language of your webpage and from step 02 Choose optional settings. You have option to choose All languages or Specific languages. In section 3 you will get your generated code.
Related Documents
http://arjudba.blogspot.com/2009/06/different-types-of-web-hosting-services.html
http://arjudba.blogspot.com/2009/07/how-to-add-site-to-yahoo-directory.html
http://arjudba.blogspot.com/2009/07/how-to-add-site-to-google-directory.html
http://arjudba.blogspot.com/2009/12/how-to-know-when-googlebot-last-crawled.html
http://arjudba.blogspot.com/2009/12/how-to-add-different-meta-tags-to.html
http://arjudba.blogspot.com/2009/12/how-to-disable-or-remove-blogger.html

http://arjudba.blogspot.com/2009/12/scrolling-text-effect-html-code-with.html

http://arjudba.blogspot.com/2009/12/how-to-post-larger-images-in-blogger.html

http://arjudba.blogspot.com/2009/12/how-to-transfer-or-sell-blogger.html

http://arjudba.blogspot.com/2009/12/how-to-add-email-subscription-form-to.html
http://arjudba.blogspot.com/2009/12/how-to-add-favicon-to-blogger-blogspot.html

http://arjudba.blogspot.com/2009/12/how-to-add-tag-cloud-category-to.html
http://arjudba.blogspot.com/2009/12/how-to-add-auto-read-more-feature-with.html

http://arjudba.blogspot.com/2010/01/how-to-stop-comment-spam-on-your-blog.html

http://arjudba.blogspot.com/2010/01/url-not-allowed-this-url-is-not-allowed.html

Tuesday, January 12, 2010

ORA-00205: error in identifying control file

Problem Description
Whenever you try to start your oracle database instance or mount your database it fails with ORA-00205 error message as below.
SQL> startup
ORACLE instance started.

Total System Global Area 535662592 bytes
Fixed Size 1334380 bytes
Variable Size 306185108 bytes
Database Buffers 222298112 bytes
Redo Buffers 5844992 bytes
ORA-00205: error in identifying control file, check alert log for more info

Error Investigation
As error message "ORA-00205: error in identifying control file, check alert log for more info" suggests to look for alert log messages so immediately after getting this error message you should look for alert log message.

Based on this error message you might get various types of alert long entries which would really help you to solve your problem. Following is the several versions of error messages.

Error Message Version 01:
ORA-00202: control file: '/oracle/controlfile/contro101.ctl'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Fri Jan 8 11:19:42 2010
ORA-205 signalled during: ALTER DATABASE MOUNT...
Fri Jan 8 11:19:50 2010
Shutting down instance (abort)

Error Message Version 02:
ORA-00202: controlfile: '/oracle/controlfile/CONTROL01.CTL'
ORA-27086: skgfglk: unable to lock file - already in use
OSD-04002: unable to open file
O/S-Error: (OS 5) Access is denied.

Error Message Version 03:
ORA-00202: control file: 'F:\ORACLE\CONTROL.CTL'
ORA-27047: unable to read the header block of file
OSD-04006: ReadFile() failure, unable to read from file
O/S-Error: (OS 38) Reached the end of the file.

Error Message Version 04:
Errors in file /oracle/9.2.0/admin/bdump/abc_ckpt_3117.trc:
ORA-00206: error in writing (block 3, # blocks 1) of controlfile
ORA-00202: controlfile: '/oracle/data/ctl03.dbf'
ORA-27072: skgfdisp: I/O error
Linux Error: 30: Read-only file system
Additional information: 2


General Cause And Solution of ORA-00205 Problem:
The ORA-00205 problem is reported because the system could not find a control file of the specified name and size. The name of control file is specified by the CONTROL_FILES initialization parameter within spfile/pfile. While mounting oracle database oracle finds that in the disk all those files are not there or size is unmatched as it is specified within spfile/pfile.

If you see ORA-00205 is reported while starting up/mount the oracle database then check that the proper control filename is referenced in the CONTROL_FILES initialization parameter in the initialization parameter. If not check your correct spfile/pfile or fix location of CONTROL_FILES parameter within spfile/pfile and try again to mount the database.

Whenever you are using mirrored control files, that is, more than one control file is referenced in the initialization parameter file, remove the control filename listed in the message from the initialization parameter file and restart the instance. If the message does not recur, remove the problem control file from the initialization parameter file and create another copy of the control file with a new filename in the initialization parameter file.

Step by step Solution
Step 01: After you see ORA-00205 immediately look for alert log files for further investigation.

Step 02: Check the control_files parameter in your initialization parameter. You can simply check by ,
SQL> show parameter control_files

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
control_files string D:\APP\ARJU\ORADATA\A\CONTROL0
1.CTL, D:\APP\ARJU\ORADATA\A\C
ONTROL02.CTL, D:\APP\ARJU\ORAD
ATA\A\CONTROL03.CTL

Now compare this location with the location of controlfile in your disk system.

From the alert log if you see error message like version 1 i.e you have noticed "ORA-00202: control file: '/oracle/controlfile/contro101.ctl'" then from your CONTROL_FILES initialization parameter remove the entry /oracle/controlfile/contro101.ctl if you have multiple version of controlfiles and start the database. If you fail then again check for alert logs. If it is same error message like points to another controlfile then try to remove that control file too if you have at least three versions of controlfiles. If you fail then possibly all of your controlfiles are lost. In that case you need to restore controlfile from previous backup or create a new one if you don't have any previous backup of controlfile. In the post Recover database after only lose of all controlfiles it is discussed how you can recover controlfile. In the post Restore the Controlfile from Backup using RMAN it is discussed how you can restore controlfile from previous RMAN backup using RMAN. In the post How to create controlfile it is discussed how to create a controlfile whenever you are lost all controlfile and you don't have any backups.

If you see other version of error versions then take necessary actions as alert log suggests. For example if you see error message like version 2 that is
"ORA-00202: controlfile: '/oracle/controlfile/CONTROL01.CTL'
ORA-27086: skgfglk: unable to lock file - already in use"
then ensure that oracle database is shutdown cleanly and no other process is holding lock of the control file. After you ensure that try starting database again.

If you see error message like version 3 that is
"ORA-27047: unable to read the header block of file
OSD-04006: ReadFile() failure, unable to read from file"
then possibly your control file got corrupted and follow the same steps as it is demonstrated in step 2 for error version 01.

If you see error message like version 4 that is
"ORA-00202: controlfile: '/oracle/data/ctl03.dbf'
ORA-27072: skgfdisp: I/O error
Linux Error: 30: Read-only file system"
then ensure that your control file has proper permission set from operating system. That means it must have read, write permission to oracle owner user.

Step 03:
After you identify and solve the problem ensure that you have multiple copies of your CONTROL_FILES parameter onwards. If you use spfile in your database startup then after your nomount state of database and physically copied controlfiles to all locations as you want, you can point multiple copies of controlfile by issuing "ALTER SYSTEM SET CONTROL_FILES=..., ..." command from database. A similar example is demonstrated in the topic ORA-00214: Controlfile Version Inconsistent on Startup or Shutdown
Related Documents:

How to Restore the Controlfile from Backup.

Speed Comparison of Land Animals

Now a days I often watch television and specially look for animal channels like Discovery, Animal Planet and National Geography. While I see a tiger/cheetah/lion attacks a deer I always wonder what is the highest speed of various types of land animals. After searching a bit in Internet and also from animal channels I have got ideas about the animals speed which I specify below along with their name. All the measurements of speed are given as mile per hour (mph).

1)Peregrine falcon: 200.00+
2)Cheetah: 70.00
3)Pronghorn antelope: 61.00
4)Lion: 50.00
5)Thomson's gazelle: 50.00
6)Wildebeest: 50.00
7)Quarter horse: 47.50
8)Cape hunting dog: 45.00
9)Elk: 45.00
10)Coyote: 43.00
11)Gray fox: 42.00
12)Hyena: 40.00
13)Ostrich: 40.00
14)Zebra: 40.00
15)Mongolian wild ass: 40.00
16)Greyhound : 39.35
17)Whippet: 35.50
18)Jackal: 35.00
19)Mule deer: 35.00
20)Rabbit (domestic): 35.00
21)Giraffe: 32.00
22)Reindeer: 32.00
23)Cat (domestic): 30.00
24)Kangaroo: 30.00
25)Grizzly bear: 30.00
26)Wart hog: 30.00
27)White-tailed deer: 30.00
28)Human: 27.89
29)Elephant: 25.00
30)Black mamba snake: 20.00
31)Six-lined race runner: 18.00
32)Squirrel: 12.00
33)Pig (domestic): 11.00
34)Chicken: 9.00
35)House mouse: 8.00
36)Spider (Tegenearia atrica): 1.17
37)Giant tortoise: 0.17
38)Three-toed sloth: 0.15
39)Garden snail: 0.03

Note that most of the above measurements are for maximum speeds over approximate quarter-mile distances.

Monday, January 11, 2010

Introducing Wordpress Admin Panel

After you install wordpress you will have an admin panel from where you have can manage wordpress. For example if your domain name is example.com and you install wordpress in the root directory then your wordpress admin panel url will be http://example.com/wp-admin/. After you login as admin you will have Dashboard.

In this post I will discuss several wordpress sections that will make you flexible to work with wordpress.

In my wordpress 2.8 version following is the image from wordpress dashboard i.e after logging to wordpress admin panel.
wordpress dashboard

We see, within wordpress-2.8 dashboard we have several sections of,
1) Posts
2) Media
3) Links
4) Pages
5) Comments
6) Appearance
7) Plugins
8) Users
9) Tools
10)Settings.

If we expand each of the sections it will look like following image.
wordpress admin panel

The rest part of screenshot,



Now let's briefly familiarize with the each section.
1) Posts: From Posts section you can add your new blog posts, edit posts, add post tags, add categories etc. In order to manage main contents of your website you have to deal with Posts section.

2) Media: Media indicates the images, video, recordings files etc. From Media section inside wordpress, you can these upload these documents inside your blog. Media is typically uploaded and inserted into the content when writing a Post or Page. The Media Library SubPanel allows you edit, delete or view Media previously uploaded to your blog.

3) Links: From the Links section of your wordpress you can add interesting links to your site so that people can navigate those links from your blog. The Links Edit SubPanel allows you to select the Links to edit or delete. The Links Add New SubPanel handles the creation of new links. The Links Link Categories SubPanel allows you to add, edit, and delete Link Categories, as well as organize your Link Categories hierarchically.

4) Pages: The Pages section in wordpress is for adding static content to wordpress site. This is like "About Us", "Contact Us", "Company Info" information that merely changes. The Pages Edit SubPanel provides the necessary tools to edit, delete, and view existing Pages. The "Add New" Page SubPanel allows you to create new Pages.

5) Comments: In a blog comments allow users to respond to a post. Through wordpress Comments section you edit, delete and mark comments as spam. Comments that are awaiting moderation can be marked as approved or previously approved comments can be unapproved.

6) Appearance: From Appearance section in wordpress you can control how the contents of your site will be displayed. You can change the style of your site by installing, editing, activating themes. A Theme is the overall design of a site and encompasses color, graphics, and text.
From Themes subpanel you can check your current theme and available theme installed in our wordpress.

From Add New Themes subpanel you can check for themes by keyword, author, or tag. Through Feature Filter you can filter and check variable themes. You can Install and Preview themes through this subpanel and then activate themes for your wordpress.

Widgets are gadgets which allow you to add various pieces of information to your Theme's sidebar content. Just like as I add various piece of information like Recent Post, Recent Comments, Add Categories, Archives, Blogroll, to my sidebar. Through Widgets just drag widgets from widgets left pane to a sidebar on the right to activate them. If you want to deactivate them just Drag widgets back to left side from the right side.

From the Editor subpanel of the Appearance section you can edit the various files that comprise your Themes. In the Appearance section Editor SubPanel allows you to designate which theme you want to edit then displays the files in that theme. Each file (Template and CSS) in the theme can be editted in the large text box.

7)Plugins: Plugins allow users add new features to the WordPress site that don't come with the default installation.
The Plugins Installed SubPanel allows you to manage plugins that is to view the plugins you've downloaded and choose which plugins you activated on your site.
The Plugins Add New SubPanel allows you to add new plugins.
The Plugins Editor SubPanel, you can modify the source code of all your plugins.

8)Users: Whenever you install wordpress you have by default admin user.
Via "Users and Authors" you can change a assign a user to the Roles: Administrator, Editor, Author, Contributor, or Subscriber.
Via Users Add New SubPanel you can manually create user and then assign them to various roles.
From Users Your profile SubPanel name, contact info and other information can be changed.

9)Tools: Tools sections in wordpress provide you the ability to speed up WordPress for your local machine, import content from other sources, backup your content, or to upgrade your WordPress software to a new release.
The Turbo ability, adds new features to your web browser and speeds up WordPress for the local computer user.
The Press This function allows quick posting and publishing through the use of a special web browser favourite.
With Tools Import posts, comments, pages, categories, tags, and users, can be imported.

With WordPress Tools "Export" SubTool you can create an XML file to your computer. The format, which is called a WordPress eXtended RSS or WXR file, will contain your posts, comments, custom fields, categories, and tags. This Export SubTool Take note that the Exporting is a useful method to backup your WordPress data.

The Tools Upgrade SubPanel give you a easy method to upgrade.

10) Settings: The Settings section determine how your site behaves, how you interact with your site, and how the rest of the world interacts with your site.
The Settings General SubPanel allow you to change Title, tagline, blog address, admin email address, who can register to site, date and time format etc.

With the Settings Writing SubPanel, you can control the interface with which you write new posts.

With the Settings Reading SubPanel, you can decide if you want posts, or a "static" Page, displayed as your blog's front (main) page. You can also adjust how many posts are displayed on that main page.

With the Settings Discussion SubPanel allows you to control settings concerning incoming and outgoing comments, pingbacks and trackbacks.

With the Settings Media SubPanel you can determine where images, documents, and other media files will be linked to when inserted into the body of a post, specify dimension of the image.

With the Settings Privacy SubPanel you can determine whether your blog to be visible to everyone, including search engines (Google, Technorati etc).

With the Settings Permalinks SubPanel controls how that custom URL structure is defined.

With the Settings Miscellaneous SubPanel you can control the location of file uploads, uploads into month and year based folders, link tracking.

Sunday, January 10, 2010

How to install wordpress

Step 01: Download the latest version of wordpress from http://wordpress.org/download/. You will find both .zip and .tar.gz as downloadable format. Choose one of them and then unzip wordpress.

Step 02: The next step is to create a database and a user for wordpress.

You can use cpanel mysql database to create a database and mysql user and then add permission the user to use the database.

Also you can use phpmyadmin user interface to create your WordPress username and database.

Mysql client can also be used if you are comfortable to use shell or command line tool. Using mysql client,
i) Login to mysql client.
$ mysql -u root -p

ii)Create a database named wordpress.
mysql> CREATE DATABASE wordpress;

iii)Create a user name wp_userand assign privilege to use wordpress database.
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO "wp_user"@"localhost" IDENTIFIED BY "password";

iv) Flush the privileges
mysql> FLUSH PRIVILEGES;
mysql> EXIT

Step 03: Set up wp-config file.
You can either create and edit the wp-config.php file yourself, or you can skip this step and let WordPress try to do this itself. If you let wordpress to create you still need to provide database name, database user and password to wordpress.

If you want to manually edit the wp-config file first rename the file wp-config-sample.php to wp-config.php and then change the value of DB_NAME, DB_USER, DB_PASSWORD and DB_HOST to adapt the changes.

Step 04: Upload these file to Server.
After extracting and doing changes upload/ftp the extracted changed Wordpress file to the server in the location where you want to install wordpress. You can install on root directory or in subdirectory.

If you have shell access in your unix server hosting then you can use "wget" command to download the zip or .tar.gz file from wordpress website and then using "unzip" or "tar" tool you can extract the files. Then using "vi" editor you can edit wp-config file in server or let wordpress to create one.

Step 05: Run the Install Script.
Open the WordPress installation script by accessing wp-admin/install.php in your web browser.
If you copied WordPress files in the root directory, open http://example.com/wp-admin/install.php in your browser.

If WordPress can't find the wp-config.php file, it will tell you and offer to try to create and edit the file itself. (You can do also do this directly by loading wp-admin/setup-config.php in your web browser.)

If you want to install WordPress in a subdirectory called wpblog, open link like http://example.com/wpblog/wp-admin/install.php

GUI window will appear and fill the form as it asked. Like your blog title, email.

That's all about wordpress installation. Open your site by visiting index.php