1. Creation of USER:
NAVIGATION: SYSTEM ADMINISTRATOR à SECURITY à USER à DEFINE
CREATE A NEW USER:
Enter user name, password and Re-enter the password.
1. Creation of USER:
NAVIGATION: SYSTEM ADMINISTRATOR à SECURITY à USER à DEFINE
CREATE A NEW USER:
Enter user name, password and Re-enter the password.
----------Query For Sales order Details-----------
SELECT OOHA.HEADER_ID
,OOHA.ORDER_NUMBER
, OOLA.LINE_ID
, OOLA.ORDERED_ITEM
,OOLA.QUANTITY
,OOLA.UNIT_PRICE
, OOLA.ORG_ID
, MSIB.ORGANIZATION_ID
, MSIB.SEGMENT1
, MSIB.INVENTORY_ITEM_ID
FROM OE_ORDER_HEADERS_ALL OOHA
, OE_ORDER_LINES_ALL OOLA
, MTL_SYSTEM_ITEMS_B MSIB
, MTL_PARAMETERS MP
WHERE 1=1
AND OOHA.HEADER_ID = OOLA.HEADER_ID
AND OOLA.ORDERED_ITEM = MSIB.SEGMENT1
AND MSIB.ORGANIZATION_ID=MP.ORGANIZATION_ID;
XML REPORT
An
XML report definition typically refers to a structured document that outlines
the layout, structure, and content of a report using XML (extensible Markup
Language). XML is a popular format for defining such structures due to its
flexibility and ease of parsing.
The
specifics of an XML report definition can vary widely based on the reporting
system or tool being used. Different systems might have their own XML schemas
or structures to define reports.
In a
generic sense, an XML report definition might include elements to describe:
1. Report Metadata: Information about the report, such as its title, author, description, creation date, etc.
PO MASTER DETAILED REPORT
Registration steps for Oracle
Reports
1.
Once we get the Requirement from Business, develop a query in TOAD/SQL Developer.
2.
Once Query has been done, place the query in Data Model SQL
Block
3. After Adding
the Parameter in User Parameters tab and successfull compilation, save the report
XXRBCSAMPLE.rdf as extension
4.
Move the .rdf to Custom
Top /reports/US Folder with Executable Permissions by Using
WINSCP Tool
5. After Login to the Application,Switch to Application Developer--> Concurrent --> Executable, give name, Short Name, application would be Custom Top Application, type is Oracle Reports , Execution file name should be given .rdf name and Save the Changes
Block & Variables
Q : What is Block?
A : It is a unit of code that is to
declare a data operation and create a logical operation for database.
syntax:
Declare
Begin
End;
Declare: Declare section means, we can write the variables.
Here is a
general definition of triggers in PL/SQL:
INDEXES
What is an Index?
Note: When you
drop a table, corresponding indexes are also dropped.
What is
the Listagg?
The LISTAGG function is used to aggregate a set
of string values within a group into a single string by appending the
string-expression values based on the order that's specified in the 'WITHIN
GROUP' clause.
As a single-set aggregate function, LISTAGG operates
on all rows and returns a single output row.
Views
What is a View?
CLAUSES
Clauses:
• Group by Clause
• Having Clause
• Order by Clause
• Distinct Clause
• With Clause
Sub Queries
Using a Sub-query :
Main Query: Which employees have salaries greater than Abel’s salary?
Subquery: What is Abel’s salary?
Sub-query
syntax :
The subquery (inner query)
executes once before the main query.
The result of the subquery is
used by the main query (outer query).
Interfaces
What is Interface?
Interfaces are used in Oracle Applications to integrate external systems
and Data Conversion.
Interfaces in oracle apps r12 are ways to exchange data between Oracle Applications and external systems.
SQL Functions:
What is a function?
Functions are similar to operators in that they manipulate data items and return a result. Functions differ from operators in the format of their arguments. This format enables them to operate on zero, one, two, or more arguments:
Syntax: function (argument, argument, ...)
SQL
Loader
SQL*Loader allows you to load data from an external
file into a table in the database. It can parse many delimited file formats
such as CSV, tab-delimited, and pipe-delimited.
SQL*Loader provides the following methods to load
data:
•
Conventional path loads – construct
INSERT statements from the contents of the input data file based on the
predefined specification and execute the inserts.
•
Direct path loads – creates data
blocks in Oracle database block format from the data file and directly write the
data block to the database. This way is much faster than the conventional path
but subject to some restrictions.
•
External table loads – create
an external table for the data stored in the data file and execute INSERT statements
to insert the data from the data file into the target table. The external table
loads support parallel loading if data file is big enough.
Pseudo
Columns
•
ROWID is nothing but the physical
memory location on which that data/row is stored. ROWID basically returns
address of row.
•
ROWID uniquely identifies row in
database.
• ROWID is combination of data object number, data block in data file, position of row and datafile in which row resides.
Synonyms
Creating and Dropping Synonyms
•
Creating a synonym eliminates the
need to qualify the object name with the schema and provides you with an
alternative name for a table, view, sequence, procedure, or other objects.
Syntax:
CREATE [PUBLIC] SYNONYM synonymname
FOR object;
Step-1:
Give the Workspace name, Username, Password and click on sign in
Step-1:
Create table with blob.
CREATE TABLE "PRODUCT_INFORMATION" (
"PRODUCT_ID" NUMBER,
"PRODUCT_NAME" VARCHAR2(20),
"FILENAME" VARCHAR2(20),
"MIMETYPE" VARCHAR2(20),
"IMAGE_LAST_UPDATE" DATE,
"PRODUCT_IMAGE" BLOB,
"LIST_PRICE" NUMBER,
"PRODUCT_AVAILABILITY" NUMBER
);
Joins
What are Joins?
A join is a query that
combines rows from two or more tables, views, or materialized views.
Oracle Database
performs a join whenever multiple tables appear in the FROM clause of the
query.
The select list of the
query can select any columns from any of these tables.
If any two of these tables have a column name in common, then you must qualify all references to these columns throughout the query with table names to avoid ambiguity.
OPERATORS
Arithmetic Operators:
• Arithmetic Operators are used in number datatype column.
UNION:
Combines the results of two SELECT statements, removing duplicate rows.
Create Blank page
Create one page item -----my page item is P7_DEPT_ID
Create region - Type is interactive grid, table name is dept
Select the column primary key
Click on attributes edit is on
Multi Row Functions / Aggregate Functions
Multiple Row Functions in Oracle
SQL Functions:
What is a function?
Functions are similar to operators in that they manipulate data items and return a result. Functions differ from operators in the format of their arguments. This format enables them to operate on zero, one, two, or more arguments:
Syntax: function (argument, argument, ...)
Step-1:
Create Blank page.
Step-2:
Create region type Static content.
Step-3:
Create Page item and select the type is POPUP LOV
Create blank page:
WEB ADI
·
First,
we need to set profile option is set to Yes!
·
BNE
Allow No Security Rule – YES
·
Navigation
➔
System Administration ➔
Profile ➔
System
·
Give
Profile Name as BNE Allow No Security Rule and click on Find
· Change the Site level permission to YES
Oracle Application Express
• Data Definition Language (DDL)
• Data Manipulation Language (DML)
• Data Control Language (DCL)
• Transaction Control Language (TCL)
• Data Retrieval Language (DRL) / Data Query Language (DQL)
Data base
contains two static cursors
1. Implicit
Cursor.
2. Explicit
Cursor.
Implicit Cursor:
An exception is an error which disrupts the normal flow
of program instructions. PL/SQL provides us the exception block which raises
the exception thus helping the programmer to find out the fault and resolve it.
Exceptions are used to handle errors or exceptional
conditions that might occur during the execution of a program. They allow you
to gracefully manage errors and perform actions based on specific error
conditions.
There are three types of exceptions
1. Pre-defined exceptions
2. User defined exceptions
3. User named exceptions
SQLERRM: It is the return the error message.
SQLCODE: It is return the error code