Friday, July 10, 2009

Parameter comparison between oracle export and data pump

We know Oracle data pump is latest utility than oracle original export/import tool and also data pump comes with greater flexibility and more advantages. Those who are good at original export/import tool and new to oracle data pump, this post will help them specially to compare the differences between two.



Parameter Comparion between Oracle export/Import and data pump






















































































































Orginal Export Parameter Comparable Data pump Parameter
BUFFER In datapump equivalent parameter
is not needed.
COMPRESS In datapump equivalent parameter
is not needed
CONSISTENT In datapump FLASHBACK_SCN and
FLASHBACK_TIME do the job.
CONSTRAINTS EXCLUDE=CONSTRAINT
DIRECT Data pump automatically choose
direct path or external tables mode.
FEEDBACK STATUS
FILE DUMPFILE
FILESIZE FILESIZE
FLASHBACK_SCN FLASHBACK_SCN
FLASHBACK_TIME FLASHBACK_TIME
FULL FULL
GRANTS EXLUDE=GRANT
HELP HELP
INDEXES EXCLUDE=INDEX
LOG LOGFILE
OBJECT_CONSISTENT Equivalent parameter is not needed.
OWNER SCHEMAS
PARFILE PARFILE
QUERY QUERY
RECORDLENGTH Equivalent parameter is not needed.
RESUMABLE This function is automatically enabled
for user who has been granted EXP_FULL_DATABASE role.
RESUMABLE_NAME This function is automatically enabled
for user who has been granted EXP_FULL_DATABASE role.
RESUMABLE_TIMEOUT This function is automatically enabled
for user who has been granted EXP_FULL_DATABASE role.
ROWS=N CONTENT=METADATA_ONLY
ROWS=Y CONTENT=ALL
STATISTICS Not needed. Statistics are always
saved for tables.
TABLES TABLES
TABLESPACES It has TABLESPACES parameter but
behave differently than original export.


Related Documents

Thursday, July 9, 2009

Components of a USB flash drive

Components of a USA flash drive can be divided into two types.
1)Essential Components: Must exist in flash drive.
2)Optional/Good to have Components: Not essential component but it makes good to look and feel.

1)Essential Components:
a)A USB Connector: The USB connector is covered a cap and after removing cap it is connected to host computer. It is male type port and acts as an interface to transfer data.

b)USB Mass storage controller: It contains a small microcontroller with a small amount of on-chip ROM and RAM. If you use transparent flash drive cover then you can see it as the smaller black coloured portion.

c)NAND flash memory chip: It is used to store data. If you use transparent flash drive cover then you can see it as a bigger black coloured chip.

d)Crystal oscillator: It produces the device's main 12 MHz clock signal and controls the device's data output.

2) Optional Components:
a)Jumpers and test pins: It is a component to test flash drive during manufacturing.

b)LEDs: We can see small light in the flash drive while it is performing read/write. That part is lighted because of LEDs.

c)Write-protect switches: A switch by which we can control whether data can be written to flash drive. Switch on or off controls write to the flash drive. Very effect whenever you need plug flash drive to a computer(to read contents from the flash drive) that have viruses. :)

d)USB connector cover or cap: A cap which is connected to the USB connector in no operation state which reduces the risk of damage and prevents the ingress of fluff or other contaminants, and improves overall device appearance.

e)Unpopulated space: A space to which we can add another memory chip.

f)Key Chain: Some usb flash drive can contain a key chain which helps to facilitate transport.

g)Some flash drive also offer expandable storage.

After all, you can have these many features with a customizable design. You can get a Personalized USB Drive from flashdealer.com and can design your usb flash drive whatever you want.

Wednesday, July 8, 2009

Default location of Dump, Log and SQL file

As data pump is server based, all dump files, log files and SQL files are generated and accessed from /to server-based directory paths.

In simple term, Data pump directory object is an alias of an operating system directory. There must physically exist OS directory in order to effect corresponding oracle directory. Changes permission to oracle directory does not affect any changes to OS directory and in the same way changes permission to OS directory does not affect any oracle directory. In order to read/write any oracle directory, there must explicitly have read/write permission from corresponding OS directory.

As this post is related tolocation of dump, log and sql file in the following section the order of precedence to determine a file's location is discussed in case of Data Pump Export and Import.

1)If we specify a directory name with the parameter of LOGFILE or DUMPFILE or SQLFILE then the location specified by that directory object is used. It is very good to know that the directory object must be separated from the filename by a colon(:).
An example is given below.

SQL> create table test(a number);

Table created.

SQL> create directory c_drive as 'c:';

Directory created.

SQL> create directory d_drive as 'd:';

Directory created.

SQL> host expdp dumpfile=c_drive:test.dmp logfile=d_drive:test.log tables=test

Export: Release 11.1.0.6.0 - Production on Wednesday, 08 July, 2009 19:11:06

Copyright (c) 2003, 2007, Oracle. All rights reserved.

Username: arju/a

Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "ARJU"."SYS_EXPORT_TABLE_01": arju/******** dumpfile=c_drive:test.dmp logfile=d_drive:test.log tables=test
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "ARJU"."TEST":"P1" 5.007 KB 1 rows
. . exported "ARJU"."TEST":"P2" 5.007 KB 1 rows
. . exported "ARJU"."TEST":"P3" 5.007 KB 1 rows
Master table "ARJU"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for ARJU.SYS_EXPORT_TABLE_01 is:
C:\TEST.DMP
Job "ARJU"."SYS_EXPORT_TABLE_01" successfully completed at 19:11:39

2)If the directory object is not specified for a file which means not included with DUMPFILE/LOGFILE/SQLFILE, then the directory object named by the DIRECTORY parameter is used.

So if your command is below then the dump file will represent c_drive directory which
indicates C: drive.

SQL> host expdp directory=c_drive tables=test

Export: Release 11.1.0.6.0 - Production on Wednesday, 08 July, 2009 22:04:09

Copyright (c) 2003, 2007, Oracle. All rights reserved.

Username: arju/a

Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "ARJU"."SYS_EXPORT_TABLE_01": arju/******** directory=c_drive tables=test
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "ARJU"."TEST":"P1" 5.007 KB 1 rows
. . exported "ARJU"."TEST":"P2" 5.007 KB 1 rows
. . exported "ARJU"."TEST":"P3" 5.007 KB 1 rows
Master table "ARJU"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for ARJU.SYS_EXPORT_TABLE_01 is:
C:\EXPDAT.DMP
Job "ARJU"."SYS_EXPORT_TABLE_01" successfully completed at 22:04:50

3)If you don't provide any directory object with filename, and if no directory object was named by the DIRECTORY parameter, then the value of the environment variable DATA_PUMP_DIR is used.

Always remember that this environment variable is defined using operating system
commands on the client system where the Data Pump Export and Import utilities
are run. But this value assigned to this client-based environment variable must be the name of a server-based directory object. So you first need to create a directory in the server as a DBA user and then you need to setup in client environment variable.

Below is an exact example of this scenario.
Though in this example DATA_PUMP_DIR directory points to OS directory D:\app\Arju\admin\arju\dpdump\ but because of client environmental variable setting of DATA_PUMP_DIR to TEST(which is E: drive) create the dumpfile inside E:\ drive.
Never confuse with the name DATA_PUMP_DIR. Here there can be any directory name that reside in the database.

E:\>sqlplus / as sysdba

SQL*Plus: Release 11.1.0.6.0 - Production on Wed Jul 8 15:54:04 2009

Copyright (c) 1982, 2007, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select directory_path from dba_directories where directory_name='DATA_PUMP_DIR';

DIRECTORY_PATH
--------------------------------------------------------------------------------
D:\app\Arju\admin\arju\dpdump\

SQL> create directory test as 'E:';

Directory created.

SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

E:\>set DATA_PUMP_DIR=TEST


E:\>expdp schemas=arju
Export: Release 11.1.0.6.0 - Production on Wednesday, 08 July, 2009 15:54:54

Copyright (c) 2003, 2007, Oracle. All rights reserved.

Username: / as sysdba

Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYS"."SYS_EXPORT_SCHEMA_01": /******** AS SYSDBA schemas=arju
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 576 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/VIEW/VIEW
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/POST_TABLE_ACTION
Processing object type SCHEMA_EXPORT/MATERIALIZED_VIEW
Processing object type SCHEMA_EXPORT/TABLE/MATERIALIZED_VIEW_LOG
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
. . exported "ARJU"."C1" 5.007 KB 1 rows
. . exported "ARJU"."P3" 5.007 KB 1 rows
. . exported "ARJU"."T" 5.023 KB 2 rows
. . exported "ARJU"."TEST":"P1" 5.007 KB 1 rows
. . exported "ARJU"."TEST":"P2" 5.007 KB 1 rows
. . exported "ARJU"."TEST":"P3" 5.007 KB 1 rows
. . exported "ARJU"."TEST2" 5.406 KB 1 rows
. . exported "ARJU"."TEST3" 5.414 KB 2 rows
. . exported "ARJU"."T_LARGEST" 5.046 KB 5 rows
. . exported "ARJU"."MASTER_TEMP" 0 KB 0 rows
. . exported "ARJU"."MASTER_TEMP2" 0 KB 0 rows
. . exported "ARJU"."MLOG$_MASTER_TEMP" 0 KB 0 rows
. . exported "ARJU"."MV_MASTER" 0 KB 0 rows
. . exported "ARJU"."T1" 0 KB 0 rows
Master table "SYS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.SYS_EXPORT_SCHEMA_01 is:
E:\EXPDAT.DMP
Job "SYS"."SYS_EXPORT_SCHEMA_01" successfully completed at 15:56:37


4)If none of the above three conditions yields a directory object, but you invoke data pump and you have permission on DATA_PUMP_DIR, then Data Pump attempts to use the value of the default server-based directory object, DATA_PUMP_DIR.

This DATA_PUMP_DIR directory is automatically created at database creation or when the database dictionary is upgraded.

If you don't have access to the DATA_PUMP_DIR directory object then you will get insufficient privilege error.

Related Documents

Different types of eye glasses.

A man or a woman usually use eye glasses for vision correction or to protect eyes from ultra-violate rays. I used to use eye glasses since I am 18. I use it for the vision correction. I could not see an object at a distant clearly since 18. The object at a distant seemed blurred to me, then I contacted an eye doctor, he suggested an eyeglass of power -1.5D. Eyeglasses also named as glasses or spectacles.

I used a normal styled eyeglasses at first. Generally a eye glass consists of two parts, one is eyeglass frames and another is lenses. Eye glass frames usually made of plastic or metal. Lenses are made of plastic or glass. At the age of 18 I used glass as lenses. But now I use plastic as eye lenses. Plastic has many advantages over glasses because of plastic have less weight, reduce the danger of breakage, better transmission of visible light, greater absorption of ultraviolet light etc. Because of these advantages of plastic over glasses I started to use plastic lenses.

Now a days wearing glasses become a fashion and glasses come with greater design. Based on the design of glasses we can categorize it into various types.

1)Full-Frame Glasses: It is fully rimmed style which means frames are fully encircled the lenses.

2)Three-piece rimless: Three-piece rimless glasses have no frame around the lenses, and the bridge and temples are mounted directly onto the lenses. Frames does not encircle the lenses unlike full-frame glasses. It is also called rimless glasses. As there is three pieces (two by side and one in middle that connect the lenses) of frames, so it is called three-pieces rimless glass.

3)Semi-rimless glasses: In case of semi-rimless glasses frames partially encircles the lenses (commonly the top portion and the bottom position becomes open).

4)Fashion glasses: Plastic frames with designs.

5)Wood like: The frames are made of advanced plastic materials which look like wooden materials. It is more durable.

There are many companies that offer Wide Selection of Eyeglasses like glassesshop.com. They can offer any customized styles, frames, lenses, in fact whatever you want your glasses to look like.

Related Documents
http://arjudba.blogspot.com/2009/06/typhoid-fever-symptoms-diagnosis.html

Tuesday, July 7, 2009

How to know a row of a table belong to which tablespace

If someone ask you a question about "how you will determine a table belong to which tablespace." The answer is easy, query from dba_segments/user_segments/all_segments. Like I want to know table T belongs to which tablespace. Then query like below.
SQL> select tablespace_name from dba_segments where segment_name='T';

TABLESPACE_NAME
------------------------------
USERS

So table T belong to USERS tablespace.

If we want to know a table belongs to which datafile we can also determine it by querying from dba_data_files and dba_extents as below.
SQL> select file_name from dba_data_files where file_id in
2 (select file_id from dba_extents where segment_name='T');

FILE_NAME
-----------------------------------------------------------------------
D:\APP\ARJU\ORADATA\ARJU\USERS01.DBF

But if someone asked you to determine about a row of a table resides on which tablespace then you might think once how to do it. Following is an example of how to do it.

1)Create a partition table named test.
SQL> create table test (col1 number)
2 partition by range (col1)
3 (
4 partition p1 values less than (100) tablespace users,
5 partition p2 values less than (200) tablespace users02,
6 partition p3 values less than (maxvalue) tablespace users03
7 )
8 /

Table created.

2)Insert some rows so that they span into multiple tablespaces.
SQL> insert into test values (1);

1 row created.

SQL> insert into test values (111);

1 row created.

SQL> insert into test values (1000);

1 row created.

3)Query to select row and corresponding tablespace.
SQL> select col1, tablespace_name
2 from test, dba_data_files
3 where dbms_rowid.rowid_to_absolute_fno(test.rowid,user,'TEST') = file_id
4 /

COL1 TABLESPACE_NAME
---------- ------------------------------
1 USERS
111 USERS02
1000 USERS03

4)If you were asked to determine the tablespace name which holds the value 1 and determine it's tablespace_name, file_name then query as,
SQL> set lines 100
SQL> col file_name for a50
SQL> select col1, tablespace_name, file_name
2 from test, dba_data_files
3 where dbms_rowid.rowid_to_absolute_fno(test.rowid,user,'TEST') = file_id
4 and col1=1;

COL1 TABLESPACE_NAME FILE_NAME
---------- ------------------------------ -------------------------------------------
1 USERS D:\APP\ARJU\ORADATA\ARJU\USERS01.DBF

Related Documents
Related Documents
http://arjudba.blogspot.com/2009/12/oracle-object-type-exercises-varray.html
http://arjudba.blogspot.com/2009/12/practice-oracle-joins-examples.html
http://arjudba.blogspot.com/2009/12/oracle-security-practices.html
http://arjudba.blogspot.com/2009/12/exercises-with-oracle-create-table-add.html
http://arjudba.blogspot.com/2009/12/oracle-database-creation-exercises.html
http://arjudba.blogspot.com/2009/12/basic-oracle-sql-exercise.html
http://arjudba.blogspot.com/2009/08/format-model-modifiers-fx-and-fm.html
http://arjudba.blogspot.com/2009/08/number-format-models-in-oracle.html
http://arjudba.blogspot.com/2009/08/format-models-in-oracle.html
http://arjudba.blogspot.com/2009/07/sql-decode.html
http://arjudba.blogspot.com/2009/07/how-to-know-row-of-table-belong-to.html
http://arjudba.blogspot.com/2009/06/how-to-know-which-objects-are-being.html
http://arjudba.blogspot.com/2009/06/ddl-with-wait-option-in-11g.html
http://arjudba.blogspot.com/2009/06/ora-00939-too-many-arguments-when-case.html
http://arjudba.blogspot.com/2009/03/oracle-datatype-internal-code.html
http://arjudba.blogspot.com/2009/03/how-to-know-list-of-constraints-and.html
http://arjudba.blogspot.com/2009/02/how-to-know-dependent-objectswhich.html
http://arjudba.blogspot.com/2009/02/how-to-search-stringkey-value-from.html
http://arjudba.blogspot.com/2009/02/how-to-know-when-tableobjects-ddlcode.html
http://arjudba.blogspot.com/2009/02/ora-00920-invalid-relational-operator.html
http://arjudba.blogspot.com/2009/01/adding-default-value-to-column-on-table.html
http://arjudba.blogspot.com/2009/01/ora-12838-cannot-readmodify-object.html
http://arjudba.blogspot.com/2009/01/ora-01779-cannot-modify-column-which.html
http://arjudba.blogspot.com/2009/01/updating-table-based-on-another-table.html
http://arjudba.blogspot.com/2009/01/ora-00054-resource-busy-and-acquire.html
http://arjudba.blogspot.com/2008/12/troubleshoot-ora-02292-ora-02449-and.html

Sunday, July 5, 2009

How to add a site to google directory

Unlike yahoo directory, there is no hassle to submit your site to google directory. It is straigtforward and easy job to submit your site in google directory and of course it is free to do that.

Google directory contents are based on dmoz.org but it's contents are enhanced using it's own technology. So if you already have an entry in dmoz.org you don't need to look for further to add you site into google directory. You can check your site entry inside dmoz.org by opening dmoz.org and and type your site name then press submit button.

You can check whether your site is listed inside google directory by opening http://directory.google.com/ and then type your site name. For example I can check whether my site is listed inside google directory by following url. Check Arjudba.blogspot.com google directory. If row is returned with your site name then be sure that your site is listed inside google directory. But if the result looks like "Your search - "%s" - did not match any documents" then your site is not listed inside google directory and you may like to add you.

Go to http://directory.google.com/ and click Submit a Site at the bottom of the page and then follow the directions as it asked.

Related Documents

How to add a site to yahoo directory

How to add a site to yahoo directory

At first, let me know you why people add a site to a directory? It is because of increasing your site traffic. Web directories consists a list of category to which you can submit your site. The reason people submit a link for a web directory is simple. People want to search for links for their business requirements. Then instead of searching site they may go inside specific website categories/directories where you find those directories that are similar to your line of work. For example, if you are looking for computer and technology resources, then look for those website directories named with Computer/Technology. These also may have sub-directory/sub category. So you now have control to your specific needs. With aid of web directory you can narrow down your search so that you can get more accurate results.

There are many web directories in Internet world like, Google Web directory,Yahoo Web directory, Open directory etc.

Before entering into real thing, let me know you my feelings about adding a site to yahoo directory. I personally think that adding a site to yahoo directory does not help a site except that he had to pay some $$$. I don't believe that adding a site to a yahoo directory will bring traffic much and help for SEO. It is nothing but a name like "Hay, my site is listed in yahoo directory". Certainly that does not refer to quality of the site.

Anyway, still many one wants to add their site to yahoo directory and want to spend some time as well as money for it. This post will help you how to add a site to yahoo directory. Step by step it is discussed.

Step 01- Check whether your site is already listed in yahoo directory:
From the link http://help.yahoo.com/l/us/yahoo/directory/basics/steps/basics-22.html check if your site is already listed in yahoo directory. Inside the box type your site name and click Yahoo directory search. I believe that if your site is listed in search results then it is useless to add it to directory because crawler already identified your site. If you are very new in your site then your site may not display in search result. In that case you can think about it.

Step 02- Find an appropriate category in yahoo directory for you site:
If you committed to add your site to yahoo directory then it is important to find a category that mostly matches your site contents. Go to http://dir.yahoo.com/ and find an appropriate category that matches your site contents. For example you may browse to "Computers_and_Internet/News_and_Media/Computers_and_Technology_Blogs/" if you own a blog like my own.

Steo 03- Suggest a site:
On the top right hand corner you will see a link "Suggest a site". Click that link. You will see you have two options to select. One is 1)Yahoo Directory Submit and another is 2)Standard.

If you choose Yahoo Directory submit then there is a guaranteed and expedited consideration from Yahoo! that you site will be included in their Directory list within 7 business days. Also you need to pay $299 per year to Yahoo!.

If you choose Standard then there is no time when yahoo will list your site in their directory but it is free to submit your site to yahoo through standard way.

Related Documents