Wednesday, November 11, 2009

When datafile bytes size greater than maxbytes

From dba_data_files we can check the size of the datafile, the maximum size of the datafile it can grows if AUTOEXTENSIBLE option is set and their status with many other fields.

Describing the dba_data_files yield following result.
SQL> desc dba_data_files;
Name Null? Type
----------------------------------------- -------- ----------------------------
FILE_NAME VARCHAR2(513)
FILE_ID NUMBER
TABLESPACE_NAME VARCHAR2(30)
BYTES NUMBER
BLOCKS NUMBER
STATUS VARCHAR2(9)
RELATIVE_FNO NUMBER
AUTOEXTENSIBLE VARCHAR2(3)
MAXBYTES NUMBER
MAXBLOCKS NUMBER
INCREMENT_BY NUMBER
USER_BYTES NUMBER
USER_BLOCKS NUMBER
ONLINE_STATUS VARCHAR2(7)

Where,
Bytes represent the size of the data file in bytes.

Status can be AVAILABLE or INVALID (INVALID means that the file number is not in use, for example, a file in a tablespace was dropped)

Maxbytes represent maximum file size in bytes.

User_Bytes represent the actual size of the datafile that can be usable to store user data. In fact,
USER_BYTES= Actual size of the datafile - Size used to store file related metadata.

Online_status can have following values,
Online status of the file:
- SYSOFF
- SYSTEM
- OFFLINE
- ONLINE
- RECOVER

From the column description we see MAXBYTES should be greater than BYTES.

But let's have a look at the following query.
SQL> select bytes/1024/1024, maxbytes/1024/1024, user_bytes/1024/1024 from dba_data_files where tablespace_name='DATA';

BYTES/1024/1024 MAXBYTES/1024/1024 USER_BYTES/1024/1024
--------------- ------------------ --------------------
400 300 399.9375

We see in the query it shows BYTES size is greater then USER_BYTES which is acceptable. Because 400-399.9375 = 0.0625 Megabytes size is used to store metadata information. But why the MAXBYTES is greater than the size BYTES?

Well, this happens if after creating tablespace and datafile later we resize the datafile to a bigger size than the maxsize.
Following example will make you clear.

1)Create a tablespace whose datafile size is less than maxsize
SQL> create tablespace data datafile 'data01.dbf' size 40M autoextend on maxsize 300M;
Tablespace created.

2)Let's have a query to see bytes and maxbytes size from dba_data_files.
SQL> select bytes/1024/1024, maxbytes/1024/1024 from dba_data_files where tablespace_name='DATA';
BYTES/1024/1024 MAXBYTES/1024/1024
--------------- ------------------
40 300

3)Resize the datafile to a bigger size than MAXBYTES.
SQL> alter database datafile 'data01.dbf' resize 400M;

Database altered.

4)Let's have a query to see BYTES and MAXBYTES information.
SQL> select bytes/1024/1024, maxbytes/1024/1024 from dba_data_files where tablespace_name='DATA';

BYTES/1024/1024 MAXBYTES/1024/1024
--------------- ------------------
400 300


Related Documents
http://arjudba.blogspot.com/2008/04/maximum-oracle-database-size.html
http://arjudba.blogspot.com/2008/07/how-to-determine-os-block-size-for.html
http://arjudba.blogspot.com/2009/02/estimate-dumpfile-size-before-taking.html
http://arjudba.blogspot.com/2008/05/what-is-overall-database-size.html
http://arjudba.blogspot.com/2008/06/choose-optimal-data-block-size-in.html
http://arjudba.blogspot.com/2008/05/settting-maximum-size-of-backup-set-or.html
http://arjudba.blogspot.com/2008/06/playing-with-oracle-data-block-size.html

Saturday, November 7, 2009

How to check technorati ranking

If you ask me about the Technorati website I will say that Technorati is one of the buggiest websites I have ever seen. Lots of problems there and lots of things are non-functional. I don't understand why most review sites consider technorati rank. It is something like very funny. Almost half part of every page in technorati sites is filled by ads and I strongly criticise their look and feel. Their old site was buggy one and new site also seems more than bad.

I also don't understand how they show their authority or ranking system. I see my blog's authority is 1 but in the old site it had a good number. So, I guess in new site they have lost some data and hence displays incorrect information. From my observation I see most non-technical persons join in this buggy site and try to check technorati ranking in order to rank higher their site in the blog review site.

I also noticed that from their site there is no simple way to see the ranking and authority of your site as you can simply check from alexa. If you come across to this post of my site across google search then I also guess you are eager to check your technorati ranking. Because proceed it is good to know about their ranking and authority system.

From their site summary is,
What is Technorati Authority?
Technorati Authority measures a site's standing & influence in the blogosphere. With the October 2009 redesign of technorati.com, they have changed the Technorati Authority calculations to better reflect the continually changing attention of the blogosphere.

They have also added a new measure of Technorati Authority, which is topical by content category, i.e., technology, movies, automotive, etc.

How is Technorati Authority calculated?
Authority is calculated based on a site’s linking behavior, categorization and other associated data over a short, finite period of time. A site’s authority may rapidly rise and fall depending on what the blogosphere is discussing at the moment, and how often a site produces content being referenced by other sites.

The new Authority calculation differs from the past version, which measured linking behavior over a longer 6 month timeframe. Please note that links in blogrolls don’t count towards Authority, as they are not indicative of interest in relevant content; we stopped including blogroll links in August 2008.

Authority is on a scale of 0-1000. 1000 is the highest possible authority.

How does topical Technorati Authority work?
Topical Authority measures a blog’s influence within its subject category.
Blogs will appear ranked by topical authority within Technorati’s blog directory.
Factors include linking behavior from blogs and posts in the same category, how well a blog's overall content matches the category in question, and other associated data.
It’s possible for a blog to have authority in several different categories. The authority in each category may be different.

What is Technorati Rank?
Technorati Rank is a site's rank among the Technorati Authority of all sites. 1 is the highest rank.

They also determine topical ranks within categories, based on the topical Technorati Authority. As sites' Technorati Authority changes over time, ranks will also change.

How to check Technorati Ranking and authority
You can check technorati authority by their site urls. For example in case of blog arjudba.blogspot.com you can check their authority and ranking by following ways.

1)http://technorati.com/blogs/arjudba.blogspot.com to check their authority

2)You can also check technorati authority from their directory Open http://technorati.com/blogs/directory/ select blogs tab and then search for a blog. After typing my blog it will go you to the url
http://technorati.com/search?q=arjudba.blogspot.com&return=sites

3)You can check the top 100 blog by visting url
http://technorati.com/blogs/top100/
In the http://technorati.com/blogs/directory/ all blogs ranking there and also based on individual section ranking are shown. 1 means highest rank.

Related Documents
http://arjudba.blogspot.com/2009/08/how-to-increase-your-technorati.html

Friday, November 6, 2009

ORA-01012: not logged on

Problem Description
No other user can connect to database. Whenever user with sysdba privilege try to login to database it shows connected but it does not allow to happen any query to database instead it fails with ORA-01012: not logged on as below.
oracle:/home/oracle CIDMP> $sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Wed Oct 28 00:12:16 2009

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

Connected.

SQL> select open_mode from v$database;
select open_mode from v$database
*
ERROR at line 1:
ORA-01012: not logged on

Sometimes connecting as sysdba shows database is in idle instance but whenever you issue startup it says ORA-01081: cannot start already-running ORACLE - shut it down first.

SQL> conn / as sysdba
Connected to an idle instance.

SQL> desc v$instance
ERROR:
ORA-01012: not logged on

SQL> conn / as sysdba
Connected to an idle instance.

SQL> startup
ORA-01081: cannot start already-running ORACLE - shut it down first

Cause of the Problem
Note that this problem is not same as SP2-0640: Not connected which is sql*plus message and it raised whenever you try to run query without log in to database. Just like below.
SQL> conn arju/a
Connected.
SQL> conn arju/e
ERROR:
ORA-01017: invalid username/password; logon denied


Warning: You are no longer connected to ORACLE.
SQL> select instance from v$thread;
SP2-0640: Not connected

"The ORA-01012: not logged on" error occurred due to heavy load in the database. If there is maximum number of sessions connected to the database(Which is in turn defined by PROCESSES parameter) and database is flooded with concurrent load then database does not allow sysdba privileged user as well as other users to be connected to the database. If sysdba privileged user try to connect to database then above error ORA-01012 comes.

Solution of the problem
The solution is free up the sessions. You can do it in whatever ways you want. Like,
1)Shut down application server sessions: You can shut down application server and thus will release the sessions.

2)Shut down database server: Shuttting down database server will shutdown database and all sessions will be release.

3)Kill oracle process: You can kill oracle process and then you need to start the oracle database again which will also work.

Related Documents
http://arjudba.blogspot.com/2008/07/ora-00018-ora-00020-maximum-number-of.html
http://arjudba.blogspot.com/2009/01/ora-00054-resource-busy-and-acquire.html
http://arjudba.blogspot.com/2008/07/process-and-runtime-limits.html
http://arjudba.blogspot.com/2008/04/user-resource-limits-in-oracle.html

Monday, November 2, 2009

How to Change Explorer, Netscape, Mozilla, Opera or chrome as default browser

Computer default browser is one which will automatically use to access Web pages if you click a link from a source outside browser. Or in other word default browser is used to describe the URL and file associations that determine which web browser is launched when you open an Internet shortcut or HTML file or when you click a link in a mail application like Thunderbird or Outlook Express. That is from Microsoft Word, Thunderbird, Outlook Express, acrobat reader software you click a link and then the webpage will be loaded into computer's default browser.

Be aware that MSN Messenger and many other applications may be "hard-coded" to open Internet Explorer, no matter which browser is set as the default. Also, many Internet service providers softwares' may automatically launches Internet Explorer.

So to test the default browser on your windows environment go to

- Type regedit in the run window and enter.
- For .htm file, Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\FileExts\.htm\OpenWithProgids
- For .htm file, Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\FileExts\.htm\OpenWithProgids
and check the default browser key.

In the following sections it is described how we can make a specific browser as default browser.

Change Internet Explorer to Default browser
Step 01: Open Microsoft Internet Explorer.

Step 02: Pull down the Tools menu and select Internet Options.

Step 03: Select the Programs tab.

Step 04: Click the box next to "Internet Explorer should check to see whether it is the default browser" and click OK.

Step 05: Close Internet Explorer.

Step 06: Reopen Internet Explorer. A window will appear asking whether you'd like Internet Explorer to be your default browser.

Step 07: Click "Yes" to change your default browser from Netscape to Internet Explorer.

Change Netscape to default browser
Step 01: Search for the file "prefs.js" in the directory in which Netscape Communicator is installed on your computer.

Step 02: Open prefs.js in Notepad or another text editor.

Step 03: Look for a line in the document that says "user_pref("browser.wfe.ignore_def_check", true)".

Step 04: Delete the word "true" and type "false" in its place.

Step 05: Save the changes to the document and close it.

Step 06: Start Netscape. A window will appear asking whether you'd like Communicator to be your default browser.

Step 07: Click "Yes" to change your default browser from Internet Explorer to Netscape.

Setting default browser from Control Panel:
You can set the default browser in Windows 2000 (SP3+) Windows XP (SP1+) and Windows Vista using the "Set Program Access and Defaults" feature (renamed "Set Program Access and Computer Defaults" in Windows Vista).

Based on the operating system you can get the Set Program Access and Defaults option in the following way.

On Windows 2000: "Start -> Control Panel -> Add or Remove Programs -> Set Program Access and Defaults"

On Windows XP: "Start -> Control Panel -> Add or Remove Programs -> Set Program Access and Defaults -> Custom"

On Windows Vista: "Start -> Default Programs -> Set Program Access and Computer Defaults -> Custom"

Expand the section and under "Choose a default Web browser" select the radio button as you want as default browser and then select ok.

You are done!

Related Documents
http://arjudba.blogspot.com/2009/07/google-chrome-problems-checkbox-and.html

Sunday, November 1, 2009

How to check nofollow or dofollow links on blog or website

So many web masters around Internet arena want to increase their pagerank and for that they want to links back from related higher page rank sites to their site. Here comes two terms nofollow tags and dofollow tags. If a link comes with rel="nofollow" attribute then that link will be treated as nofollow link. And if a link comes without any rel attribute then that link will be treated as dofollow link.

These dofollow and nofollow are important measure for google pagerank because google pagerank algorithm checks whether a backlink to a site is dofollow or nofollow. If the backlink is dofollow links and it is related site then that backlink is counted otherwise in case of nofollow links google does not count the links to determine the site's pagerank.

Following is the example of a dofollow and nofollow links.
1)Nofollow Example:
<a href="http://arjudba.blogspot.com" rel="nofollow">http://arjudba.blogspot.com is nofollow here</a>
which will look like below.
http://arjudba.blogspot.com is nofollow here

2)Dofollow Example:
<a href="http://arjudba.blogspot.com">http://arjudba.blogspot.com is dofollow here</a>
which will look like below.
http://arjudba.blogspot.com is dofollow here

At the very first after seeing both examples you can't say which one is dofollow link and which one is nofollow link. But still many ones want to determine whether a link is dofollow or nofollow. I have tried to present a list of ways by which you can check whether a link is dofollow or nofollow.

Way 01: Through Blog Compose option.
This way sometimes give me a quicker way to determine whether a link is dofollow or not. As I frequenly access blogger account, so I just copy the hyperlink, and just paste that hyperlink to my new post blog or to an existing blog in "Compose" mode. Then if you click "Edit Html" you can see whether the link is dofollow or nofollow.

Way 02: Right click on the page and view the source.
Almost in every browser has this facility. Right click on the page to which you want to check dofollow/nofollow links. Then select view page source. You will find the HTML of the page in which you can determine whether the link is dofollow/nofollow. In case of firefox browser you can highlight code and then you can select "view selection source" after right clicking in order to determine link attribute.

Way 03: Using SeoQuake plugin
If you are a firefox user then you can use thrid party plugin tool to determine nofollow or dofollow attributes. SeoQuake plugin is a good plugin I ever seen. So you can use SeoQuake to determine the list of links in a page and the attributes of those links. To do that,
- Install SeoQuake plugin. Just google search and install it.
- Restart firefox browser in order to effect plugin installation.
- Enable the SeoQuake plugin tool.
- Open the website/webpage on which you want to analysis nofollow or dofollow links.
- You will see "Links" on top bar of the plugin tool. There you can see both Internal and External links. Click those. You will find nofollow column and can check the attributes of the links in same page.

Way 04: Using firefox Properties
This is very easy way if you are a firefox user.
- Open the page in firefox to which you want to check link.
- Right click on the link.
- Select properties from the menu.
- You will see the link properties in a pop up window. If the relation field shows "nofollow" then the link is "nofollow". And if there is no relation field then the link is "dofollow". The following image will explain it,

dofollow nofollow firefox

Way 05: Any firefox Add-ons:
With any firefox add-ons tool you can use all links in a page whether no follow or not. For example you can use http://www.quirk.biz/searchstatus/ or https://addons.mozilla.org/en-US/firefox/addon/5687 mozilla firefox plugin tool.
The procedure is like below.
- Download and install the plugin.
- Restart firefox after installation.
- Enable add ons.
- Open the page.
- From Tools menu select NoDoFollow or as the name there for your toolbar.

Related Documents
http://arjudba.blogspot.com/2009/10/seo-link-building-directory-article.html
http://arjudba.blogspot.com/2009/06/how-to-get-targeted-backlinks-to-your.html

Saturday, October 31, 2009

Tablet pc, laptop tablet pc, touch screen tablet pc

Tablet pc is like a small sized laptop computer that is equipped with a slate shaped touch screen. Instead of using traditional mouse or keyboard, tablet pc is usually operated with a stylus or digital pen, or a fingertip.

Tablet pc also called laptop tablet PC, touch screen tablet PC, tablet laptop etc.
They come with various forms like,
- booklets (fold open like a book),
- slates(come without any dedicated keyboard),
- convertibles (look like laptops and are heavier and larger than other tablet PCs),
- hybrid laptop pc(it shares the features of the slate and convertible by using a detachable keyboard).

Many systems software, including Microsoft, Linux, and modified MAC OS can be used for Tablet pcs. But among them the most common operating system for Tablet pcs is Windows XP Tablet PC Edition which is a superset of Windows XP Professional OS. And, more recently, Windows 7, which has been designed with touch screen technology as a design parameter.

The advantages of Tablet PCs are,
- Light weight and hence you can use Tablet PCs while you are lying in bed.
- Consumes less power and so you can use it for more hours without plug in to power.
- Touch screen makes easier navigation.
- Records non-character based information such as diagrams, mathematical notation, symbols etc.

Though Tablet pcs have several disadvantages include followings,
- Higher cost than normal PCs and laptops.
- Writing with hand and touch screen is slower than keyboard inputs.
- More likely to damage the screen as they are handled more than standard laptops. Yet, conventional laptops and Tablet PCs are built with same equipments.
- Have to move hand constantly to work with Tablet PCs.

Following is the some images of Tablet PCs so that you can have an idea how they look like.


fujitsu table pc

fujitsu tablet pc

fujitsu laptop tablet pc

tablet pc

tablet laptop pc

tablet pc review



You can buy tablet pc online. There are many sites that are selling Tablet PCs. Among them I can send you to: http://handiicomputers.com.au/. Basically, in the site there are only two pages to the computer section, the main page, with a 7-section menu, which content loads, upon click, in the page apron without page refresh.

And the Products page, with a ditto menu, accessories and cart update.

From there, after clicking on Payments (same menu bar again) where you enter your contact details for shipping, choose either Paypal or Google for credit card or bank transfer, and you are off the site and in the secure hands or Google or Paypal for your sensitive transaction.

Handii™ never sees your payment details.

Dell and HP take note, this is the friendly way to treat your customers.

Overall, the Handii™ site is the easiest website in the online computer industry.

Related Documents
http://arjudba.blogspot.com/2009/06/usb-flash-drive-reviews.html

Monday, October 26, 2009

List of Operators in Linux Shell Script

There are many operators available in linux shell script programming. In the following section it is discussed about the available operators in linux shell script.

A)Assignment Operator:
1)=: The assignment operator (=) is used to change the value of a variable or to assign value to a variable.
Example:
var=1
name=arju # Note that spaces are not allowed after or before the "=".

Note that "=" sign can be used as a test operator too.
Example:
if [ "$a" = "$b" ] #if value of variable a is equal to value of variable b.

B)Arithmetic operators:
Following is the list of arithmatic operators which is discussed in topic http://arjudba.blogspot.com/2009/04/arithmatic-operation-and-expression-in.html
1) + (plus)

2)- (minus)

3)* (multiplication)

4)/ (division)

5)** (exponentiation)

6)% (modulo, or mod (returns the remainder of an integer division operation))

7)+= (plus-equal (increment variable by a constant))

let "var += 7" results in var being incremented by 7.

8)-= (minus-equal (decrement variable by a constant))

9)*= (times-equal (multiply variable by a constant))

let "var *= 7" results in var being multiplied by 7.

10)/= (slash-equal (divide variable by a constant))

11)%= (mod-equal (remainder of dividing variable by a constant))

Note that arithmetic operators often occur in an expr or let expression.

C)bitwise operators
Bitwise operators too are discussed inside topic http://arjudba.blogspot.com/2009/04/arithmatic-operation-and-expression-in.html

1)<< (bitwise left shift (multiplies by 2 for each shift position)) 2)<<= (left-shift-equal) let "var <<= 2" results in var left-shifted 2 bits (multiplied by 4) 3)>> (bitwise right shift (divides by 2 for each shift position))

4)>>= (right-shift-equal (inverse of <<=)) 5)& (bitwise AND) 6)&= (bitwise AND-equal) 7)| (bitwise OR) 8)|= (bitwise OR-equal) 9)~ (bitwise NOT) 10)^ (bitwise XOR) 11)^= (bitwise XOR-equal)

D)Logical (boolean) operators

1)! (NOT)

2)&& (AND)

3)|| (OR)

E)Miscellaneous Operators:

About comma operator it is discussed in http://arjudba.blogspot.com/2009/10/single-quote-double-quote-and-comma-in.html
1), (Comma operator).

Related Documents