HERNK’S JOURNAL

Opening port 80 in oracle 10g

Posted by: hernk on: 5 September 2009

Its a simple way to opening port 80 in oracle 10g.

#STEP 01
Log in as Oracle
Edit the Apache configuration file:
1. $ORACLE_HOME/Apache/Apache/httpd.conf
port 7777
Listen 7777
Listen 80  <- new line

2. Save and close the file.

#Step 02
Log in as root.
1. Run the following commands :
cd ORACLE_HOME/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectl

2. Stop and start opmn :
# export DISPLAY=10.10.1.0.10:0.0
# opmnctl stopall
# opmnctl startall

What is the maximum length of an …

Posted by: hernk on: 14 August 2009

  • URL
  1. Internet explorer
    Microsoft states that the maximum length of a URL in Internet Explorer is 2,083 characters, with no more than 2,048 characters in the path portion of the URL. Test result, attempts to use URLs longer than this produced a clear error message in Internet Explorer.
  2. Firefox
    After 65,536 characters, the location bar no longer displays the URL in Windows Firefox 1.5.x. However, longer URLs will work. I stopped testing after 100,000 characters
  3. Opera
    At least 190,000 characters will work. I stopped testing after 190,000 characters. Opera 9 for Windows continued to display a fully editable, copyable and pasteable URL in the location bar even at 190,000 characters.
  4. Safari
    At least 80,000 characters will work. I stopped testing after 80,000 characters.
    (
    source : http://www.boutell.com/newfaq/misc/urllength.html)
  • E-Mail Address
    Every email address is composed of two parts. The local part comes before the ‘@’ sign, and the domain part follows it. In “user@example.com”, the local part is “user”, and the domain part is “example.com”. The

    1. Local part must not exceed 64 characters and
    2. The domain part cannot be longer than 255 characters.

    In sum, an email address can be 320 characters long at most. When you create an address, make sure your user name has less than 65 characters.
    (source : http://email.about.com/od/emailbehindthescenes/f/address_length.htm)

  • Pl/SQL Sequence
    Pl/SQL sequence has 28 digit number, it may represented by MAXVALUE : 999999999999999999999999999

The Secrets of Oracle Bitmap Indexes

Posted by: hernk on: 28 June 2009

Overview

Oracle’s two major index types are Bitmap indexes and B-Tree indexes. B-Tree indexes are the regular type that OLTP systems make much use of, and bitmap indexes are a highly compressed index type that tends to be used primarily for data warehouses.

Characteristic of Bitmap Indexes

* For columns with very few unique values (low cardinality)

Columns that have low cardinality are good candidates (if the cardinality of a column is <= 0.1 % that the column is ideal candidate, consider also 0.2% – 1%)

* Tables that have no or little insert/update are good candidates (static data in warehouse)

* Stream of bits: each bit relates to a column value in a single row of table


Advantage of Bitmap Indexes

The advantages of them are that they have a highly compressed structure, making them fast to read and their structure makes it possible for the system to combine multiple indexes together for fast access to the underlying table.

Compressed indexes, like bitmap indexes, represent a trade-off between CPU usage and disk space usage. A compressed structure is faster to read from disk but takes additional CPU cycles to decompress for access – an uncompressed structure imposes a lower CPU load but requires more bandwidth to read in a short time.

One belief concerning bitmap indexes is that they are only suitable for indexing low-cardinality data. This is not necessarily true, and bitmap indexes can be used very successfully for indexing columns with many thousands of different values.

Disadvantage of Bitmap Indexes

The reason for confining bitmap indexes to data warehouses is that the overhead on maintaining them is enormous. A modification to a bitmap index requires a great deal more work on behalf of the system than a modification to a b-tree index. In addition, the concurrency for modifications on bitmap indexes is dreadful.

http://www.akadia.com/services/ora_bitmapped_index.html

Summary

* With bitmap indexes, the optimizer can efficiently answer queries that include AND, OR, or XOR. (Oracle supports dynamic B-tree-to-bitmap conversion, but it can be inefficient.)
* With bitmaps, the optimizer can answer queries when searching or counting for nulls. Null values are also indexed in bitmap indexes (unlike B-tree indexes).
* Most important, bitmap indexes in DSS systems support ad hoc queries, whereas B-tree indexes do not. More specifically, if you have a table with 50 columns and users frequently query on 10 of them—either the combination of all 10 columns or sometimes a single column—creating a B-tree index will be very difficult. If you create 10 bitmap indexes on all these columns, all the queries can be answered by these indexes, whether they are queries on all 10 columns, on 4 or 6 columns out of the 10, or on a single column. The AND_EQUAL hint provides this functionality for B-tree indexes, but no more than five indexes can be used by a query. This limit is not imposed with bitmap indexes.

http://www.oracle.com/technology/pub/articles/sharma_indexes.html

Regression Test

Posted by: hernk on: 8 June 2009

Regression testing can be used not only for testing the correctness of a program, but often also for tracking the quality of its output. For instance, in the design of a compiler, regression testing should track the code size, simulation time and time of the test suite cases.

source : wikipedia.org

Thanks for citing me here

Posted by: hernk on: 8 April 2009

goldfish blog

 

I would like to thanks to Ben Bahrenburg for including my name and my blog in the web release notes for GoldFish which can be found here. Hopefully, I can help You more to improving the GoldFish.

Categories

Blog Stats

  • 43,510 hits

Archives

Flickr Photos

bicycle

just a boat

broken

bakau

More Photos

Web Stat

Blog Worth


My blog is worth $564.54.
How much is your blog worth?