пятница, 10 июля 2015 г.

Shortnames for Oracle Applications products

Shortnames for Oracle Applications products


1)ABM - Activity Based Management
2)AD - Applications DBA
3)AHL - Oracle Advanced Service Online
4)AK - Oracle Common Modules-AK
5)ALR - Oracle Alert
6)AMF - Oracle Fulfillment Services
7)AMS - Oracle Marketing
8)AP - Oracle Payables
9)AR - Oracle Receivables
10)AS - Oracle Sales
11)ASG - Oracle CRM Gateway for Mobile Services
12)ASL - Oracle Mobile Field Sales Laptop
13)ASO - Oracle Order Capture
14)AST - TeleSales
15)AX - Global Accounting Engine
16)AZ - Application Implementation
17)BEN - Oracle Advanced Benefits
18)BIC - Customer Intelligence
19)BIL - Sales Intelligence
20)BIM - Marketing Intelligence
21)BIS - Oracle Applications BIS
22)BIX - Call Center Intelligence
23)BNE - Oracle Web ADI
24)BOM - Oracle Bills of Material
25)BSC - Balanced Scorecard
26)CCT - Oracle Call Center and Telephony
27)CE - Oracle Cash Management
28)CHV - Oracle Supplier Scheduling
29)CLN - Supply Chain Trading Connector for RosettaNet
30)CN - Oracle Sales Compensation
31)CS - Oracle Service
32)CSC - Customer Care
33)CSD - Depot Repair
34)CSE - Oracle Enterprise Install Base
35)CSF - Field Service
36)CSI - Install Base
37)CSM - Oracle Field Service Palm
38)CSP - Oracle Spares Management
39)CSR - Oracle Scheduler
40)CSS - Support
41)CUG-Oracle Citizen Interaction Center
42)CUN - Oracle Network Logistics NATS
43)CZ - Oracle Configurator
44)EAM - Oracle Enterprise Asset Management
45)EC - Oracle e-Commerce Gateway
46)ECX - Oracle XML Gateway
47)EDR - Oracle E Records
48)ENG - Oracle Engineering
49)FII - Financials Intelligence
50)FLM - Oracle Flow Manufacturing
51)FND - Application Object Library
52)FTE - Oracle Transportation Hub
53)FV - Oracle Federal Financials
54)GHR - Oracle Federal HR
55)GL - Oracle General Ledger
56)GMA - Oracle Process Manufacturing Systems
57)GMD - Oracle Process Manufacturing Product Development
58)GME - Oracle Process Manufacturing Process Execution
59)GMF - Oracle Process Manufacturing Financials
60)GMI - Oracle Process Manufacturing Inventory
61)GML - Oracle Process Manufacturing Logistics
62)GMP - Oracle Process Manufacturing Process Planning
63)GMS - Oracle Grants Accounting
64)GR - Oracle Process Regulatory Mgmt
65)HRI - Human Resources Intelligence
66)HXC - Oracle Time and Labor
67)HXT - Oracle Time and Labor Rules
68)IBA - iMarketing
69)IBC - Oracle iContent
70)IBE - iStore
71)IBU - iSupport
72)IBY - iPayment
73)ICX - Oracle Self-Service Web Applications
74)IEB - Oracle Interaction Blending
75)IEC - Oracle Campaign Plus
76)IEM - Oracle eMail Center
77)IEO - Call Center Technology
78)IES - Scripting
79)IEU - Oracle Universal Work Queue
80)IEX - Oracle Collections
81)IGC - Commitment Administration
82)IGF - Student Systems Fin Aid
83)IGI - Oracle International Public Sector Financials
84)IGS - Oracle Student Sytems
85)IGW - Oracle Grants Proposal
86)INV - Oracle Inventory
87)IPD - Oracle Product Development Exchange
88)ISC - Supply Chain Intelligence
89)JTF - CRM Foundation
90)JTM - Oracle CRM Mobile Foundation
91)JTS - Oracle CRM Self Service Administration
92)MRP - Oracle Master Scheduling/MRP
93)MSC - Oracle Advanced Supply Chain Planning
94)MSD - Oracle Demand Planning
95)OFA - Oracle Assets
96)OKC - Oracle Contracts Core
97)OKI - Oracle Contracts Intelligence
98)OKL - Oracle Lease Management
99)OKR - Oracle Contracts for Rights
100)OKS - Oracle Contracts Service Module
101)ONT - Oracle Order Management
102)OPI - Operations Intelligence
103)OTA - Oracle Training Administration
104)OZF - Funds & Budgets
105)PA - Oracle Projects
106)PAY - Oracle Payroll
107)PER - Oracle Human Resources
108)PJM - Oracle Project Manufacturing
109)PN - Oracle Property Manager
110)PO - Oracle Purchasing
111)POA - Purchasing Intelligence
112)POM - Oracle Exchange
113)PON - Oracle Sourcing
114)POS - Internet Supplier Portal
115)PQH - Oracle Public Sector HR
116)PSA - Public Sector Applications
117)PSB - Oracle Public Sector Budgeting
118)PSP - Oracle Labor Distribution
119)PV - Partner Relationship Management
120)QA - Oracle Quality
121)QP - Oracle Pricing
122)QRM - Oracle Risk Management
123)RG - Application Report Generator
124)RLM - Oracle Release Management
125)VEA - Oracle Automotive
126)WIP - Oracle Work in Process
127)WMS - Oracle Warehouse Management System
128)WSH - Oracle Shipping
129)WSM - Shop Floor Management
130)XDP - Oracle Provisioning
131)XNC - Oracle Sales for Communications
132)XNI - Oracle Install Base Intelligence
133)XNP - Oracle Number Portability
134)XNS - Oracle Service for Communications
135)XTR - Oracle Treasury

From http://applearn.blogspot.ru/2009/01/shortnames-for-oracle-applications.html

понедельник, 9 декабря 2013 г.

Recover Tablespace using TSPITR

Sometimes we we lost data in the tablespace due to HARDWARE problems, or just because of mad experiments. There Tablespace point in time recovery(TSPITR) came to help,
it's quite handy because DB will be online during restoration of tablespace.
======================================
Get rid of problematic tablespace:
=====================================
As we restoring default tablespace, we need to change default to another, SYSAUX is on duty today

SQL> alter database default tablespace SYSAUX;

Database altered.

SQL> drop tablespace USERS including contents and datafiles;

Tablespace dropped.

======================================
recover tablespace to the time before the problem:
======================================
RMAN> recover tablespace USERS until time "to_date('09-DEC-2013 11:44:00','DD-MON-YYYY HH24:MI:SS')" AUXILIARY DESTINATION='/u01/recover';

======================================
poststeps
======================================
SQL> alter database default tablespace USERS;
SQL> alter tablespace USERS online;

Backup database via RMAN once restore will be completed!

There can be following problems while using TSPITR:
=======================================
#ISSUE I
########################
During automatic import/export job faced with following:
>>>>>>>>>>>>
~
ORA-01555: snapshot too old: rollback segment number ORA-01555: snapshot too old: rollback segment number with name "" too small
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 8358
~
#SOLUTION I
#########################
Is not easy to detected such solution at all, There component XML DB (XDB) need to be installed to the oracle DB(if not installed before).
So accoiring to the oracle note performed the follwing steps:
============================
catqm.sql XDB_P SYSAUX TEMP
there can be lot of errors related to the object already exists, it can be safely ignored.

#ISSUE II
#########################
ORA-12919: Can not drop the default permanent tablespace

#SOLUTION II
#########################

As we restoring default tablespace need to change it to another, SYSAUX is on duty today
>>>>>>>>>>>>>>>>>>>>>>
alter database default tablespace SYSAUX;
<<<<<<<<<<<<<<<<<<<<<<

then drop tablespace USERS to make fun with TSPITR:
>>>>>>>>>>>>>>>>>>>>>>
drop tablespace USERS including contents and datafiles;
<<<<<<<<<<<<<<<<<<<<<<

пятница, 22 ноября 2013 г.

Recover datafile if corrupted during database open

Recover datafile if corrupted during database open
============
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/u02/oradata/TEST/system01.dbf'

Try to recover it via database
=============================
SQL> recover datafile '/u02/oradata/TEST/system01.dbf';
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 1: '/u02/oradata/TEST/system01.dbf'
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/u02/oradata/TEST/system01.dbf'

recover via RMAN
=======================
Of cause we taken backup several hours before the corryption happened.
======================

Take datafile offline
======================
SQL> ALTER DATABASE DATAFILE 1 OFFLINE;

Recover corrupted datafile:
===============
RMAN> RESTORE DATAFILE 5;
RMAN> RECOVER DATAFILE 5;

Make datafile online
==============
SQL> ALTER DATABASE DATAFILE 1 ONLINE;
SQL> ALTER DATABASE OPEN;

вторник, 19 ноября 2013 г.

Restore table changes back in time (as of timestamp)

restore table changes back in time
====================================
<><><><><><><><><><><><><><><><><><><><><><><><>
Let me introduce the table called PHONE_BOOK:
<><><><><><><><><><><><><><><><><><><><><><><><>
DESC PHONE_BOOK
Name       Null Type        
---------- ---- -------------
NUM             NUMBER      
NAME            VARCHAR2(100)
PROFESSION      VARCHAR2(100)
PHONE           VARCHAR2(100)
OTHER           VARCHAR2(100)

<><><><><><><><><><><><><><><><><><><><><><><><>
There are following values living
<><><><><><><><><><><><><><><><><><><><><><><><>
select name,other from PHONE_BOOK where  NAME like '%Evge%';
NAME   OTHER
================ ===========
Bashmak Evgeny  222-61-34
Botman Evgeny
Zelipuk Evgeny  299-46-14

<><><><><><><><><><><><><><><><><><><><><><><><>
Let's corrupt selected values
<><><><><><><><><><><><><><><><><><><><><><><><>
update phone_book
set    other = '77777777'
where  NAME like '%Evge%'
/

commit;
<><><><><><><><><><><><><><><><><><><><><><><><>
Haha, values become wrong:
<><><><><><><><><><><><><><><><><><><><><><><><>
select name,other from PHONE_BOOK where  NAME like '%Evge%';

NAME   OTHER
================ ===========
Bashmak Evgeny  77777777
Botman Evgeny  77777777
Zelipuk Evgeny  77777777

<><><><><><><><><><><><><><><><><><><><><><><><>
No worries, there is backup oportunity in the 11g
<><><><><><><><><><><><><><><><><><><><><><><><>
update phone_book
set    (other) =
          (select other
              from   phone_book as of timestamp systimestamp - 1/24 history
              where  history.NAME = phone_book.NAME
             )
/

commit;

<><><><><><><><><><><><><><><><><><><><><><><><>
Values back to the right values
<><><><><><><><><><><><><><><><><><><><><><><><>
select name,other from PHONE_BOOK where  NAME like '%Evge%';
NAME   OTHER
================ ===========
Bashmak Evgeny  222-61-34
Botman Evgeny
Zelipuk Evgeny  299-46-14

понедельник, 18 ноября 2013 г.

Script to start/stop oracle services

#!/bin/bash
echo "startall"
echo "start_db_ln"
echo "stopall"
echo "start_db"
echo "start_dbconsole"
echo "start_ln"
echo -n "Order please : "
read order
case $order in

startall)
echo starting all services           
. /home/oracle/test.env
lsnrctl start TEST
sqlplus "/as sysdba" <startup;
exit;
EOF
emctl start dbconsole
;;
   
stopall)
echo stop all services
. /home/oracle/test.env
sqlplus "/as sysdba" <shutdown immediate;
exit;
EOF
lsnrctl stop TEST
emctl stop dbconsole
;;

   
start_db)
echo startup database only 
. /home/oracle/test.env
sqlplus "/as sysdba" <startup;
exit;
EOF
;;


start_ln)
echo starting listener           
. /home/oracle/test.env
lsnrctl start TEST
;;

start_db_ln)
echo starting listener and database          
. /home/oracle/test.env
lsnrctl start TEST
sqlplus "/as sysdba" <startup;
exit;
EOF
;;

start_dbconsole)
echo starting dbconsole        
. /home/oracle/test.env
emctl start dbconsole
;;
   
*) echo  nothing ordered                   ;;

    esac

пятница, 15 ноября 2013 г.

Create simple table


To create simple table:
=====================
CREATE TABLE phone_book
(
    num                 number,
    Name             varchar2(100),
    Profession           varchar2(100),
    Phone        varchar2(100),
    Other                varchar2(100)
    )
    TABLESPACE USERS
    ;

Where varchar2(100) to keep 100 bytes for the each
and number to avoid any characters except numbers

понедельник, 11 ноября 2013 г.

Template RMAN backup script:
===================
CONFIGURE DEFAULT DEVICE TYPE TO disk;
CONFIGURE DEVICE TYPE disk PARALLELISM 2;
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/u02/RMAN/full_%U';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/u02/RMAN/full_%U';
run {
backup device type disk tag 'TEST_full' database;
backup device type disk tag 'TEST_full' archivelog all not backed up delete all input;
backup tag 'TEST_full' current controlfile;
}
allocate channel for maintenance type disk;
delete noprompt obsolete device type disk;
release channel;