Relative Content

Tag Archive for oracle

Real world analogy for a clustered index

A db index is analogous to a table of contents. This helps me understand db index in an easy way. My question is are tehre any real world analogies for a clustered index?

How does Oracle EM retrieve and display execution plan data?

I’m trying to query the execution plan information that I see in Oracle Enterprise Manager (EM) using SQL. I have been pulling data from the V$SQL_PLAN view, but I’m unsure which child cursor to select when there are multiple CHILD_ADDRESS entries. Should I be selecting the one with the latest TIMESTAMP?

The instance to which the redo log belongs in Oracle RAC cluster

I have a cluster of Oracle RAC with 4 primary nodes
master 1, master2, master3, master 4
I want to know which master node generates an online redo log or archived redo log.
For example, if there is an online redo log with a sequence of 120, can I be sure that it was generated by a master node?
If the redo log sequence for an archive is 100, is it also certain that it was generated by a primary node?

Oracle SQL exclude combination of column values

I want to exclude combination of column values from the sql results.
sample table
The value of column1+column2+column3+column4 will be same as column3+column4+column1+column2 in any of the rows. I just want only one row value. Can someone help with the sql query.

oracle create table from existing table with primary key of existing table

In oracle I would like to create table from existing table with the primary key of the existing table. I know I can create people1 then alter people1 to have the primary key. Is there a way to modify create table people1 as (select * from people); to have id int primary key as the primary key?