Monday, August 18, 2008

Views, Oracle

What is View?
A view is a logical table based on a table or another view. A view contains no data of its own but is like a window through which data from tables can be viewed or changed. The tables on which a view is based are called base tables. The view is stored as a SELECT statement in the DD.

Advantages of views;

->View restrict access to data bcz the view can display selective columns from the table.
->View can be used to make simple queries to retrieve the results of complicated queries.For example, view can used to query information from multiple tables without the user knowing how to write a join statement.
-> Views can be used to retrieve data from several tables.

There are two types:
simple views
Complex views

A simple view is

- You can retrieve the data one table;
- don't contains functions
- you can perform DML operations through the view

A complex view

- Retrieve the data many tables
- it can be contains functions
- Doesn't allow the DML operations through the view.

syntax for view

CREATE [OR REPLACE] [FORCE|NOFORCE] VIEW view
[(alias[,alias]...)]
as subquery
[WITH CHECK OPTION [CONSTRAINT constraint]]
[WITH READ ONLY [CONSTRAINT constraint]];

in this syntax

REPLACE - re create the view if it already exists
FORCE - create the view regardless of whether or not the base table exist
NOFORCE - create the view only if the base table exist(this automatically default)
alias - you can use alias in your subquery
check - condition
with READ only - it is ensures that no DML operation can be performed on this view.

e.g CREATE VIEW EMP10 AS SELECT EMPNO,ENAME,SAL FROM EMP WHERE DEPTNO =10;

Using ALIAS names in subquery

CREATE VIEW EMP10 AS SELECT EMPNO EMP_ID, ENAME EMPLOYEE, SAL*12 A_SAL FORM EMP WHERE DEPTNO=10;

Creating Complex View;

CREATE VIEW DEP_SUM (DNAME,MINSAL,MAXSAL) AS SELECT D.DNAME,MIN(E.SAL),MAX(SAL),AVG(SAL) FROM EMP E,DEPT D WHERE
E.DEPTNO=D.DEPTNO GROUP BY D.DNAME;


We can't remove a row if the view contains the Group functons,Group by clause, DISTINCT keyword, pseudocolumn keyword.

Removing view

Drop VIEW view;

Read more »

Views, Oracle

What is View?
A view is a logical table based on a table or another view. A view contains no data of its own but is like a window through which data from tables can be viewed or changed. The tables on which a view is based are called base tables. The view is stored as a SELECT statement in the DD.

Advantages of views;

->View restrict access to data bcz the view can display selective columns from the table.
->View can be used to make simple queries to retrieve the results of complicated queries.For example, view can used to query information from multiple tables without the user knowing how to write a join statement.
-> Views can be used to retrieve data from several tables.

There are two types:
simple views
Complex views

A simple view is

- You can retrieve the data one table;
- don't contains functions
- you can perform DML operations through the view

A complex view

- Retrieve the data many tables
- it can be contains functions
- Doesn't allow the DML operations through the view.

syntax for view

CREATE [OR REPLACE] [FORCE|NOFORCE] VIEW view
[(alias[,alias]...)]
as subquery
[WITH CHECK OPTION [CONSTRAINT constraint]]
[WITH READ ONLY [CONSTRAINT constraint]];

in this syntax

REPLACE - re create the view if it already exists
FORCE - create the view regardless of whether or not the base table exist
NOFORCE - create the view only if the base table exist(this automatically default)
alias - you can use alias in your subquery
check - condition
with READ only - it is ensures that no DML operation can be performed on this view.

e.g CREATE VIEW EMP10 AS SELECT EMPNO,ENAME,SAL FROM EMP WHERE DEPTNO =10;

Using ALIAS names in subquery

CREATE VIEW EMP10 AS SELECT EMPNO EMP_ID, ENAME EMPLOYEE, SAL*12 A_SAL FORM EMP WHERE DEPTNO=10;

Creating Complex View;

CREATE VIEW DEP_SUM (DNAME,MINSAL,MAXSAL) AS SELECT D.DNAME,MIN(E.SAL),MAX(SAL),AVG(SAL) FROM EMP E,DEPT D WHERE
E.DEPTNO=D.DEPTNO GROUP BY D.DNAME;


We can't remove a row if the view contains the Group functons,Group by clause, DISTINCT keyword, pseudocolumn keyword.

Removing view

Drop VIEW view;

Read more »

Sunday, August 3, 2008

Business Objects Architecture diagram

Business Objects XI Architecture diagram




Read more »

Business Objects Architecture diagram

Business Objects XI Architecture diagram




Read more »

Business Objects XI Server Architecture overview

Business Objects XI Server Architecture overview

Business Objects XI Server Architecture

Reference: The Complete Reference, BO XIR2 Administrator’s Guide


Actually we are used the relational database repository contained information such as universe definitions, security profiles, and corporate documents.

The use of a relational database allowed for a central source of metadata that geographically dispersed users could easily access.

Backups were easy, as DBAs could readily back up the database.

However, the relational repository also could be a bottleneck when binary files needed to be exported to or imported from the repository.

If your company had a large universe, downloading changes to that universe, while automatic for users, could take several minutes. The same is true of publishing corporate documents.

When a user published a report to Corporate Documents, the .rep file was stored as a BLOB in relational database. When another user accessed that corporate documents, the .rep file had to be extracted from the relational database and in a sense reconstructed on the system.

For large documents, this could take several minutes. .. this main drawback old versions…. This can covered advance technology with saving system.

In advance version continues to use relational repository but use the file system more extensively.

In XI, the relational repository is significantly small, relation database is used more as a method of maintaining pointers and relationships between Universe, reports, and Users. All of the universe definitions and reports are physically stored on the file system.

The best thing about this approach is the performance improvement. For Designers , exporting universe is pretty much instantaneous. For users, publishing and accessing corporate documents is as fast as saving the to disk.

In BO 6 multiple domains comes to separate folders with the XI repository and maintained via one CMS.

The CMS is the key component with XI, handling security and the routing of requests to other services.

If the CMS is not running, then users will not be able to log in to BO.

The Input File Repository Server (FRS) handles the process of writing the results of Report servers to the repository. The Input FRS processes the request.

The Output File Repository server handles the process of serving requests for users accessing the results of a scheduled report, called an instance. When users schedule a report, a Job server will send the results of report to the Output FRS, which stores the report in a compressed format.

The Connection server provides connectivity to the data sources such as oracle, SQl server and Teradata.

A Job servers processes reports that have been scheduled to run. It will retrieve the definitions of the report from the Input FRS, connect to data source, execute the query, format the results, and save an instance of the report to the Output file Repository Server.

Job servers replace the functionality previously provided by the BCA scheduler.

There is a Web Intelligence Job server, a Desktop Intelligence Job server, and Crystal Reports Job server.

There is also a List of values Job server for Crystal Reports lists of values, not for list of values defined in Universe.

Report Servers process reports that are executed on demand or built ad hoc. There is a Web Intelligence Report Server, a Desktop Intelligence Report Server, and a Crystal Reports report server.

Cache Servers cache individual pages of reports for Desktop Intelligence and Crystal Reports users.When a User views a large report, the Cache server sends a single page to the User’s browser.

The Web Intelligence Report server has caching abilities as part of that process, so you will not see a separate Web Intelligence Cache server.

The List of values Job server processes lists of values only for Crystal Reports documents.

It does not process list of values for Web Intelligence or Desktop Intelligence documents.

Instead, the Web Intelligence report server and Desktop Intelligence Report server handle the processing for those lists of values.

Read more »

Business Objects XI Server Architecture overview

Business Objects XI Server Architecture overview

Business Objects XI Server Architecture

Reference: The Complete Reference, BO XIR2 Administrator’s Guide


Actually we are used the relational database repository contained information such as universe definitions, security profiles, and corporate documents.

The use of a relational database allowed for a central source of metadata that geographically dispersed users could easily access.

Backups were easy, as DBAs could readily back up the database.

However, the relational repository also could be a bottleneck when binary files needed to be exported to or imported from the repository.

If your company had a large universe, downloading changes to that universe, while automatic for users, could take several minutes. The same is true of publishing corporate documents.

When a user published a report to Corporate Documents, the .rep file was stored as a BLOB in relational database. When another user accessed that corporate documents, the .rep file had to be extracted from the relational database and in a sense reconstructed on the system.

For large documents, this could take several minutes. .. this main drawback old versions…. This can covered advance technology with saving system.

In advance version continues to use relational repository but use the file system more extensively.

In XI, the relational repository is significantly small, relation database is used more as a method of maintaining pointers and relationships between Universe, reports, and Users. All of the universe definitions and reports are physically stored on the file system.

The best thing about this approach is the performance improvement. For Designers , exporting universe is pretty much instantaneous. For users, publishing and accessing corporate documents is as fast as saving the to disk.

In BO 6 multiple domains comes to separate folders with the XI repository and maintained via one CMS.

The CMS is the key component with XI, handling security and the routing of requests to other services.

If the CMS is not running, then users will not be able to log in to BO.

The Input File Repository Server (FRS) handles the process of writing the results of Report servers to the repository. The Input FRS processes the request.

The Output File Repository server handles the process of serving requests for users accessing the results of a scheduled report, called an instance. When users schedule a report, a Job server will send the results of report to the Output FRS, which stores the report in a compressed format.

The Connection server provides connectivity to the data sources such as oracle, SQl server and Teradata.

A Job servers processes reports that have been scheduled to run. It will retrieve the definitions of the report from the Input FRS, connect to data source, execute the query, format the results, and save an instance of the report to the Output file Repository Server.

Job servers replace the functionality previously provided by the BCA scheduler.

There is a Web Intelligence Job server, a Desktop Intelligence Job server, and Crystal Reports Job server.

There is also a List of values Job server for Crystal Reports lists of values, not for list of values defined in Universe.

Report Servers process reports that are executed on demand or built ad hoc. There is a Web Intelligence Report Server, a Desktop Intelligence Report Server, and a Crystal Reports report server.

Cache Servers cache individual pages of reports for Desktop Intelligence and Crystal Reports users.When a User views a large report, the Cache server sends a single page to the User’s browser.

The Web Intelligence Report server has caching abilities as part of that process, so you will not see a separate Web Intelligence Cache server.

The List of values Job server processes lists of values only for Crystal Reports documents.

It does not process list of values for Web Intelligence or Desktop Intelligence documents.

Instead, the Web Intelligence report server and Desktop Intelligence Report server handle the processing for those lists of values.

Read more »