Documente Academic
Documente Profesional
Documente Cultură
Madhusudhan Reddy N
DISCOVERER
1. Discoverer is used to generate reports from database table. 2. In reports6i we are using Data model and layout model for generation of reports. Like that in Discoverer we are using Discoverer admin edition for creation business areas and Discoverer desktop edition for work book creation. Discoverer Report6i Data Model = Admin Edition (Business Area) Layout model = Desktop edition (workbook) 3. In discoverer we need less effort...to design the report 4. It is also easy to modify the reports...After generation. 5. User can sort data in the output very easily. With Discoverer we can: Rapidly query a relational database, data warehouse or data mart. Intuitively drill down and analyze data by simply clicking and dragging. Produce high-impact reports, presentations, and Web pages from your results. Access non-Oracle databases using ODBC. Send reports to other users via MAPI-compliant e-mail. Schedule reports to be run at a later date and time using Discoverer's batch facility. Disadvantages: 1. Meta data needs to be created by Oracle technical consultants. 2. Cannot create multiple graphs in one sheet EUL: End User layer (this created by Database Administrator)
MADHUSUDHAN REDDY N
Page 2
Comparison between Oracle Discoverer and Oracle Reports Oracle Discoverer Oracle Reports
Reports Development Effort is less Maintenance is minimal Reports Development Effort is very high. Modification takes almost similar time as developing a new report. Pivot Analysis and Drill Down Option given to Option not Available. User. Layouts are Dynamic and Parameters Values can be Layouts are Static and Parameters Values can be changed any time specified before invoking the Report. Group Sorting can be changed any time Sorting can be changed before invoking the Report. Graph is Dynamic and can be designed by End User Graphs are Static and will be designed by itself. Developer. Data can be exported to MS Excel and other formats. Export to MS Excel is not possible. Can be Even Pivot Analysis of Data can be exported to MS exported to only not editable formats like PDF. Excel. Current V/s Previous Comparison can be done for For each single dimension, a separate report has to between any period dimension (Year, Quarter, be prepared. And effort is 1000 times what Month, week) and across any number for financial discoverer provides. years. And that too with zero efforts and end user driven. Even user can dynamically change the columns values during comparison. Analytical Functions like Rank, Running Totals, Option not Available Dynamically. Statistical Functions are available Out-of-the Box to be used by Users in a dynamic fashion
Flow Process:
EndUserLayer Business Area (Group of Folders or Queries) Folder (Query) Items Joins
MADHUSUDHAN REDDY N
Page 3
EndUserLayer: The End User Layer lies between the User Edition and the database. It shields users from the complexity of database tables, views, columns, joins, and SQL. In this EndUserLayer we are storing the Business areas. Business Area: A business area is a logical grouping of information from database tables or views. Within a business area, you create: Folders -- based on tables and views. Items -- based on columns.
Folder (Query): Folders are of three types 1. Simple folder- uses a simple query. 2. Complex Folder uses a complex joins between two folders. 3. Custom Folder uses a select Statement.
MADHUSUDHAN REDDY N Page 4
Creation of Simple Folder: 1. Open the oracle discoverer administration edition. 2. Login with apps/aaps@prod
3.click on create new Business Area for creating new business Area or click on open businessArea for existing one.
4. Next 5. Select the Database Schema in which you want to generate reports.(Ex:PO)
MADHUSUDHAN REDDY N
Page 5
6. CLICK ON NEXT 7. Select the Schema Objects (tables) from selected database schema
MADHUSUDHAN REDDY N
Page 6
MADHUSUDHAN REDDY N
Page 7
3. Click on next 4. Select the Business Area in which you want to create the workbook.
MADHUSUDHAN REDDY N
Page 8
Note: In simple folder we can select the columns only from one folder only. It wont allow selecting from second folder. 5. Click on next until finish. 6. See the output. Note: We can workbooks in database or in local system also. CREATION OF COMPLEX FOLDER: 1. Select the Business Area in which you want to create complex folder. 2. Select the primary key column (Ex: VENDOR_ID) of one folder. 3. Right Click on the column selects new Join.
MADHUSUDHAN REDDY N
Page 9
5. CLICK ON NEXT
If u wants to select the outer join then select it and click on finish.
MADHUSUDHAN REDDY N Page 10
Creation of workbook for complex folder: 1. Goto oracle discoverer Desktop edition 2. Click on new workbook creation.
5. Select the column from the two folders which are used while creation of joins.
Note: In this case it will allow selecting columns from two schema objects.
MADHUSUDHAN REDDY N Page 12
7. To get the vendor ids in proper format we have to select the vendor id column right click on it
Ex: in this case the date from 1 to 100 will display with this color Select column widthto provide width for columns. Select column autosizeto provide size to column automatically. Select group sortto sort the data by group. This will show data in proper format.
MADHUSUDHAN REDDY N
Page 14
Select sort high to low---it also works like above but it sorts data in descending order. CREATION OF CUSTOM FOLDER: 1. Open the oracle discoverer administration edition. 2. Select the business Area right click on it 3. Select create new custom folder
MADHUSUDHAN REDDY N
Page 15
6. By this we had created the custom folder. Custom folder should contain the name as SQL on the folder.
MADHUSUDHAN REDDY N
Page 16
By this we can latest data from server. 3. Click on create new workbook, select table type. 4. Select the businessArea, custom folder .and select the column which we want to display in report.
Name: provide column name Prompt: provide prompt as you like Desc: some Descriptions Check checkbox if you want to enter multiple values instead of one by specifying comma. Default Value: any value in the list
When you refresh and run the workbook it will prompt for vendor_id as shown in fig:
MADHUSUDHAN REDDY N
Page 18
CREATION OF LIST OF VALUES (LOVS): 1. Goto the discoverer admin Edition Select the Item classes tab select the business area right click Item classes. click on new
2.select next 3.select the item name from schema objects on which you want to create lovs
MADHUSUDHAN REDDY N
Page 19
5. Click on next until it will prompt for name foe item classes(lovs).
6. Click on finish. By this we have created a item class on our business area.
MADHUSUDHAN REDDY N Page 20
MADHUSUDHAN REDDY N
Page 21
2. Select the function and column name on which we have create the total. If you want select the total for each vendor then select subtotal at each and select column name on which you want subtotal. Like that we have to create another one for Grand total also.
MADHUSUDHAN REDDY N
Page 22
3. Provide the parameter Details as shown in the above fig: Like if you want provide another condition then click on advance.
MADHUSUDHAN REDDY N
Page 23
FORMULA COLUMNS: 1. We can add columns and format data with the help of formula column. 2. Go to tools calculations new Select the column name and paste it to calculation field and then select the function.
MADHUSUDHAN REDDY N
Page 24
If we want user define functions, then we have to register the function to at admin edition. 1. Go to admin Edition, 2. Tools menu register PL/SQL function ***********Create the pl/sql function in sqlprompt and save it.********
MADHUSUDHAN REDDY N
Page 25
3. Provide details as required and create the argument for the function. 4. Procedures are not allowed. Only functions are accepted. Because Procedures may or may not return values, but can return value. Graphs: If we want to print graphs on workbook then select the columns and click on graph in the menu bar
Select the columns and click graph . Select type of graph you want and provide required details
MADHUSUDHAN REDDY N Page 26
MADHUSUDHAN REDDY N
Page 27
MADHUSUDHAN REDDY N
Page 28
Registering Workbook in Apps: 1. Open the admin edition and login with user name and password. (Ex: apps). 2. Create the Business Area with required schema objects. 3. Save it. 4. Open the Discoverer desktop edition, connect to the database. 5. Select create new workbook from list of folders. select the business area select the column
6. Do the changes like..Providing parameters, formatting data...etc 7. Save the workbook in the Database with proper name. 8. Open the oracle applications. 9. Goto the Application developer responsibility
MADHUSUDHAN REDDY N
Page 29
2.Properties Tab:
MADHUSUDHAN REDDY N
Page 30
Form Tab:
Provide only parameter as Workbook=workbook name. Webhtml tab: Provide the HTML call as OracleOASIS.RunDiscoverer
MADHUSUDHAN REDDY N
Page 31
13. Add our function to that menu and compile it. 14. Then change to payable responsibility
MADHUSUDHAN REDDY N
Page 32
Because we had assigned our function to Payables menu. 15. Select our function to open
MADHUSUDHAN REDDY N
Page 33
If setups are perfect then it will open our workbook as report without giving errors. If error occurs, We have to do some setups to overcome this error. With this we can create business areas by viewer and workbook by using launcher. Setup steps: Open command prompt Go to directory path D:\oracle\prodora\8.0.6\discwb4>Util Then type 1. D:\oracle\prodora\8.0.6\discwb4>Util>checkdiscoverer.bat 2. D:\oracle\prodora\8.0.6\discwb4>Util>registersession.bat Then type the URL in address bar
MADHUSUDHAN REDDY N Page 34
Same as in discoverer 10g version we can register the workbooks in apps And we can call them in apps. To view the workbooks registered in apps (for viewer edition not 10g) Goto address bar, type the URL http://dev20.ets.com:8000/discoverer4i/viewer
MADHUSUDHAN REDDY N
Page 35
MADHUSUDHAN REDDY N
Page 36
MADHUSUDHAN REDDY N
Page 37