PL/SQL

Oracle R12 GL To AR Transaction Details

SELECT DISTINCT –gcck.concatenated_segments, gcck.segment1 company, gcck.segment2 location, gcck.segment3 product, gcck.segment4 function, gcck.segment5 account, gcck.segment6 intercompany, gcck.segment7 subaccount, gcck.segment8 future1, gcck.segment9 future2, rctld.gl_date, gjb.name batch_name, gjh.name journal_name, ( SELECT user_je_category_name FROM…

Read More

Oracle R12 AR Lockbox Query

SELECT hou.name operating_unit, xep.name legal_entity, ala.lockbox_number “NUMBER”, absa.name batch_source, cebb.bank_name, –cebb.bank_number, –cebb.bank_branch_name, –cebb.bank_branch_number, –cebb.bank_branch_type, — Branch type indicates which list the bank routing number is on. Valid types are ABA,…

Read More

Oracle SQL Query To Find Square Root For A Number

Syntax: SQRT(number); Query: select SQRT(25) from dual; Output: 5

Read More

Oracle SQL Query To Find Power Of A Number

Syntax: POWER(<base number>, <exponent number>) Query: select POWER(3,3) from dual; Output: This function return base number raised to the exponent’s power. 27

Read More

Oracle SQL Query To Return Negative Numbers Within Bracket

Syntax: to_char(-123456,’99G99G99G999PR’) Query: select to_char(-123456,’99G99G99G999PR’) from dual; Output: <1,23,456>

Read More

ORA-20000

ORA-20000 Programs that rely on PL/SQL can often be hit with run-time errors that occur due to faults in design, problems with coding, and a number of other issues. However,…

Read More

Sending Email Using Oracle Apex and PL/SQL With Examples

  Objective: Using Oracle Apex Package Apex mail, How we can frame mails and send with the help of oracle PL/SQL  Program.   Definition: We have 3 Procedures inside Apex_mail,…

Read More

Create a New PL/SQL Library

The steps in this section will show you how to create a new PL/SQL library, then create a function that will live in this library. To create the library: Launch…

Read More

How to fix INVALID status for RAC component in dba_registry

Before upgrade or after upgrade, database may show INVALID status for component Real Application Clusters in dba_registry as below .   SQL> select comp_name,version,status from dba_registry; … Oracle Real Application…

Read More

Generate DDL By comparing 2 Schema.

Table of Contents Overview Technologies and Tools Used Use Case Architecture Screen Shot 1. Overview This document will be helpful to compares Prod and Dev schema and generates scripts for missing…

Read More