Physical Layer
Handson01: Physical Layer
- What is connection pool
- Connection
pool is a physical layer object ,is useful to store data base
credentials like database name, username, password..etc.
- OBIEE oracle BI Server contacts data base using connection pool
- How to import views/materialized views?
- While importing we need to enable views option
- What is the isolation level in a connection pool
- It
applies only For ODBC and DB2 gateways only. The value sets the
transaction isolation level on each connection to the back-end database.
The isolation level setting controls the default transaction locking
behavior for all statements issued by a connection. Only one option can
be set at a time. It remains set for that connection until it is
explicitly changed.
- The following options are available:
- Dirty read. Implements
dirty read (isolation level 0 locking). This is the least restrictive
isolation level. When this option is set, it is possible to read
uncommitted or dirty data, change values in the data, and have rows
appear or disappear in the data set before the end of the transaction. Dirty data is
data that needs to be cleaned before being queried to obtain correct
results (for example, duplicate records, records with inconsistent
naming conventions, or records with incompatible data types).
- Committed read. Specifies
that shared locks are held while the data is read to avoid dirty reads.
However, the data can be changed before the end of the transaction,
resulting in non repeatable reads or phantom data.
- Repeatable read. Places
locks on all data that is used in a query, preventing other users from
updating the data. However, new phantom rows can be inserted into the
data set by another user and are included in later reads in the current
transaction.
- Serializable. Places
a range lock on the data set, preventing other users from updating or
inserting rows into the data set until the transaction is complete. This
is the most restrictive of the four isolation levels. Because
concurrency is lower, use this option only if necessary.
- How many connection Pools you used in your project
- It is a general question ,there is no fixed answer, however in each project we will have minimum three connection pools
- One for importing tables and execute reports
- One for execute session initialization block sql queries
- One for usage tracking purpose
- Recommended number is between 2 to 10.but justification is important.
- To get data of another schema ,then what we need to enable in connection pool
- Required fully qualified names
- DB permissions
- Can we create multiple connection pools under one database object
- Yes, we can
- What is the difference between Duplicate and Alias in physical layer
- We will use Alias in physical layer to resolve below problems
- Self Join
- To maintain naming Standards in physical layer
- Resolve loops or closed paths
- Duplicate
normally used in Physical layer to create a duplicate copy of existing
Select table (Opaque View) /stored Procedure object
- How many types of Joins are there in Physical layer?
- Two types
- Foreign Key join
- Equivalent to Equi join
- Accepts only = operator
- Most used join in physical layer
- Complex Join
- Equivalent to Non Equi join
- Accepts all operators like (=,<>,=>,,=…….etc)
- Less used join in Physical layer
- Can we create self join
- By using Alias table , we can create self join.
- Can we create outer join in physical layer.
- In Physical Layer Outer join not possible ,however we can create outer join in BMM layer .
- How to remove unused objects from physical layer
- It will remove objects, which we did not use in BMM layer
- Tools menu | Utilities | Remove unused objects from physical layer
- How to synchronize physical layer objects
- It is useful to synchronize RPD metadata with DB metadata
- Tools | Utilities | Update Physical Layer
- What is complex join, in which scenario we use it.
- If foreign key is not possible then we will go for complex join. For example between emp and salgrade we will use complex join
- In place of non equi join ,complex join is used
- In foreign key join can we use other than equal to operator
- No
- What is Opaque view
- A SQL query or select statement is called as opaque view.
- If we need a new table then go for physical table (or) materialized view. In worst situation go for opaque view.
- Opaque views are not supported by non relational db.(example MS Excel ,XML ,ESSBASE …etc)
- If we need to call data base function then we have to go for Opaque View .
- Is deploying opaque is mandatory?
- No. but it is recommended due to below reason
- Without deploying view into database, if we use opaque view in reports then oracle BI server needs to create complex queries. To avoid complex queries oracle recommended to deploy each and every opaque view into database.
- When automatic joins will be created in physical layer.
- If we have primary key and foreign Key relation ship in database level and while importing if we enable foreign key options then automatic joins will be created .
- What is Alias
- A virtual physical table (or) reference of physical table is called as alias.
- On one physical table we can create ‘n’ no. of aliases.
- Whatever changes occurred in physical table that will immediately reflect in alias (except Key definitions)
- It is mainly useful to resolve loops
- Can we create or delete a column from Alias.
- No
- How to eliminate Circular Join or loop or closed path.
- By Using Alias
What is the difference between Alias and Duplicate in Physical Layer
ReplyDeleteAlias:
Delete1. Alias is useful to get one more copy of table when the table type is physical table
2. Alias is useful to rename physical layer objects.
3. Creating self joins
4. Avoiding closed paths.
Alias is useful
Duplicate:
Duplicate is useful to get one more copy of table when the table type is select/stored proc
How to decide The Maximum Number of connections in connection Pool ?
ReplyDeleteThis value should be determined by the database make and model and the configuration of the hardware for the computer on which the database runs, as well as the number of concurrent users who require access.
DeleteThe default is 10.
This comment has been removed by the author.
ReplyDeleteWhat is level based metrics?
ReplyDeleteWhat is single LTS and multiple LTS?
ReplyDeleteHow to call user defined functions into OBIEE
ReplyDelete