Currently browsing category

Oracle

Password Complexity in Oracle 11g

The default password verification function provided by the Oracle which is kept in location $ORACLE_HOME/rdbms/admin/utlpwdmg.sql. If we have a newly upgraded 11g database, this script is not loaded automatically. Therefore, we have run this script manually for it to take effect. Till then the verify function of the previous version would be in …

Default Profile In Oracle 11g

Most of our Oracle applications are being upgraded to 11g version nowadays. At this time it is important to discuss some features in the Oracle 11g Default Profile: We know that any user created in a database needs to be assigned to a profile. If not, the user will be assigned …

Index Range Scan And Fast Full Index Scan

INDEX RANGE SCAN An index range scan is used to access a selected range of data. In this case not only the index but also the data from actual table is also fetched. Here, Oracle traverses through the branches of the index tree to reach the leaf block where it …

How To Export Oracle Tables Specifying Conditions?

The Query parameter of exp/expdp utility allows to export the subset of a table based on any condition. The value for the parameter should be specified as a string with a WHERE clause. Consider that we have to export data from employee table where salary > 5000. exp scott/tiger TABLES=employee …

How To Rename A User/Schema In Oracle?

We don’t have a single command in Oracle by which we can alter the name of a user. But,  there is a workaround which serve the purpose. Say, we have to rename user A to B. Take an export of user A. Create the user B. Import the dump file taken in step …

Useful UNIX Commands For Oracle DBAs

Basic knowledge in UNIX is very essential for any DBA. Given below are some few useful UNIX commands for Oracle DBAs in their daily work. 1.  To Cleanup trace files more than n days old $ find $DBA/$ORACLE_SID/bdump/*.trc -mtime +n -exec rm {} \; 2. To get the value of all environment variables. …

How To Resolve Database Blocking In Oracle ?

Database blocking is a situation where the statement run by one user locks a record or set of records and another statement run by the same user or different user requires a conflicting lock type on the record or records, locked by the first user. Database blocking issue is a …

Why V$PARAMETER And V$SPPARAMETER Gives Different Parameter Values?

We may sometimes face a situation where we get two different values for the same initialization  parameter from the views v$PARAMETER and V$SPPARAMETER. Lets see an example here: The parameter processes gives two different values 150 and 200 when queried from v$PARAMETER and V$SPPARAMETER respectively. SQL> show parameter processes NAME                    …

What Is Row Migration And Row Chaining?

Row migration and row chaining are two known problems in Oracle that can degrade the database performance. Row migration refers to the scenario where an entire row moves from one block to another, as it becomes unfit to the present block. Usually UPDATE statements results in row migration. Let’s see …

How To Compare Two AWR Reports?

Often we generate AWR reports for performance tuning our system. Mostly we have a baseline AWR when the system was performing fine and an AWR when the system was showing degraded performance. Comparing these two reports would give us an idea of where the problem could be and we can …

What Is DUAL Table In Oracle?

Most of us might have at least once queried the DUAL table of our Oracle database. But, what is this DUAL table? Who owns it? What privilege is required to select from dual table?  Well . This article explains the concept of dual table. Dual is a one row table …

How To Enable Automatic Memory Management (AMM) in Oracle 11g?

Oracle has taken a step ahead in making the memory management simple by introducing Automatic Memory Management (AMM) in 11g , by which Oracle dynamically manages both SGA and PGA. MEMORY_TARGET and MEMORY_MAX_TARGET are the two initialization parameters related to AMM. MEMORY_TARGET refers to the shared memory available to Oracle …

Not Able To Truncate Table – Why? What to do then?

It is a strange fact that Oracle will not permit a user to truncate a table even after having “ Delete any table “ privilege. The privilege required to truncate a table is Drop any table or Drop on that particular table . With respect to the security perspective it …