Posted by: Edi Yanto on: January 7, 2009
You also can view and download My SlideShare presentation here.
SKPL – AcaDocFlow
DPPL – AcaDocFlow
Screenshot AcaDocFlow
Posted by: Edi Yanto on: January 7, 2009
You also can view and download My SlideShare here.
Posted by: Edi Yanto on: January 7, 2009
After entering the address details in Create Customer Form, get error when saving:
“APP-AR-96282:Error The following SQL error occured
ORA-00001 : unique constraint (AR.HZ_CUST_ACCT_SITES_U2) violated”
The current value of sequence hz_cust_acct_sites_s is smaller than the existing data in hz_cust_acct_sites_all.orig_system_reference.
select hz_cust_acct_sites_s.currval from dual;
returns
3188
SQL> select column_name from dba_ind_columns where index_name=’HZ_CUST_ACCT_SITES_U2′;
COLUMN_NAME
ORIG_SYSTEM_REFERENCE
ORG_ID
But client has records in hz_cust_acct_sites_all table with value greater than 901000 for orig_system_reference column.
1. DROP sequence ar.hz_cust_acct_sites_s;
2. CREATE SEQUENCE AR.HZ_CUST_ACCT_SITES_S
START WITH 10001
MAXVALUE 900999
MINVALUE 10001
NOCYCLE
NOCACHE;
Note: the start value, minimum/maximum value depends on your needs and the sequence must be set higher than the largest value stored in HZ_CUST_ACCT_SITES_All.orig_system_reference.
Reference: Doc ID 388728.1
Posted by: Edi Yanto on: January 7, 2009
When attempting to apply Patch 6502082 – 11i.AD.I.6, the following error occurs
AutoPatch error:
Error while executing statementAutoPatch error:
ORA-06550: line 3, column 10:
PLS-00302: component ‘IS_PATCH_APPLIED2′ must be declared
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored
The issue is caused by the following setup:
Following package versions for package APPS.AD_PATCH are not created.
$AD_TOP/patch/115/sql adphpchb.pls 115.16
$AD_TOP/patch/115/sql adphpchs.pls 115.11
To implement the solution, please execute the following steps:
1. Go to $AD_TOP/patch/115/sql
2. Check the version of adphpchs.pls and adphpchb.pls
adident Header $AD_TOP/patch/115/sql/adphpch*.pls
It should be -
$AD_TOP/patch/115/sql/adphpchs.pls (version 115.11)
$AD_TOP/patch/115/sql/adphpchb.pls (version 115.16)
3. If it is not there, run them from <patch-top-directory>/ad/patch/115/sql
4. Once the proper versions are available, run them from sqlplus as APPS user
SQL> @adphpchs.pls
SQL> @adphpchb.pls
5. Check the version and status once again
SQL> select status, object_type, owner from dba_objects where object_name = ‘AD_PATCH’;
SQL> select text from dba_source where line = 2 and name = ‘AD_PATCH’;
6. Retest adpatch from beginning
7. Migrate the solution to appropriate environment
Reference: Doc ID 556785.1
Posted by: Edi Yanto on: January 7, 2009
Operations such as upgrades, patches and DDL changes can invalidate schema objects. For this reason it makes sense to recompile invalid objects in advance of user calls. It also allows you to identify if any changes have broken your code base.
In order to compile a program, you must own that program (in other words, the schema you specify is the owner of the program for which you request compilation) or your schema must have been granted the ALTER ANY PROCEDURE privilege to compile another schema’s programs.
GRANT ALTER ANY PROCEDURE TO name_of_user;
DBMS_DDL.ALTER_COMPILE
CREATE OR REPLACE PROCEDURE recompile_objects
(status_in IN VARCHAR2 := ‘INVALID’,
name_in IN VARCHAR2 := ‘%’,
type_in IN VARCHAR2 := ‘%’,
schema_in IN VARCHAR2 := USER)
IS
v_objtype VARCHAR2(100);CURSOR obj_cur IS
SELECT owner, object_name, object_type
FROM ALL_OBJECTS
WHERE status LIKE UPPER (status_in)
AND object_name LIKE UPPER (name_in)
AND object_type LIKE UPPER (type_in)
AND owner LIKE UPPER (schema_in)
ORDER BY
DECODE (object_type,
‘PACKAGE’, 1,
‘FUNCTION’, 2,
‘PROCEDURE’, 3,
‘PACKAGE BODY’, 4);
BEGIN
FOR rec IN obj_cur
LOOP
IF rec.object_type = ‘PACKAGE’
THEN
v_objtype := ‘PACKAGE SPECIFICATION’;
ELSE
v_objtype := rec.object_type;
END IF;DBMS_DDL.ALTER_COMPILE (v_objtype, rec.owner, rec.object_name);
DBMS_OUTPUT.PUT_LINE
(‘Compiled ‘ || v_objtype || ‘ of ‘ ||
rec.owner || ‘.’ || rec.object_name);
END LOOP;
END recompile_objects;
/
The ALTER_COMPILE procedure may raise any of the following exceptions:
Insufficient privileges or object does not exist. You must either own the specified object or be granted the CREATE ANY PROCEDURE privilege.
Remote object, cannot compile. You can only recompile objects on the local database instance.
Bad value for object type. You need to provide one of the values listed in the previous section.
Notice that these exceptions are not defined in the specification of the package. Instead, ALTER_COMPILE simply calls RAISE_APPLICATION_ERROR with one of the above error numbers. These error numbers may therefore conflict with your own -20NNN error number usages. If you embed calls to ALTER_COMPILE inside your application or utility, watch out for the confusion such conflicts can cause.
Custom Script Using EXECUTE IMMEDIATE
CREATE OR REPLACE PROCEDURE recompile_object
AS
CURSOR my_cur
IS
SELECT *
FROM dba_objects
WHERE status = ‘INVALID’
ORDER BY owner, object_type, object_name;
BEGIN
FOR cur IN my_cur
LOOP
BEGIN
IF cur.object_type = ‘PACKAGE BODY’
THEN
EXECUTE IMMEDIATE ‘ALTER PACKAGE ‘
|| cur.owner
|| ‘.’
|| cur.object_name
|| ‘ COMPILE BODY’;
ELSE
EXECUTE IMMEDIATE ‘ALTER ‘
|| cur.object_type
|| ‘ ‘
|| cur.owner
|| ‘.’
|| cur.object_name
|| ‘ COMPILE’;
END IF;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line (SQLERRM);
DBMS_OUTPUT.put_line ( cur.object_type
|| ‘ : ‘
|| cur.owner
|| ‘ : ‘
|| cur.object_name
);
END;
END LOOP;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line (SQLERRM);
END recompile_object;
/
Posted by: Edi Yanto on: January 3, 2009
CARA OTAK BEKERJA…

Petunjuk “melihat” gambar :
- Kalau pandangan mata Anda mengikuti gerakan putaran bulatan warna PINK, maka hanya akan terlihat bulatan satu warna yaitu PINK.
- Tapi kalau pandangan mata Anda terpusat ke tanda “+” hitam di tengah, maka bulatan yang berputar akan berubah warnanya menjadi HIJAU.
- Kemudian jika pandangan mata Anda konsentrasi penuh ke tanda “+” hitam di tengah-tengah gambar, maka perlahan-lahan bulatan warna PINK akan menghilang, dan hanya akan terlihat satu saja bulatan yang berputar yaitu warna HIJAU. .
Sangat mengagumkan cara otak kita bekerja. Sebenarnya tidak ada bulatan warna hijau, dan bulatan warna pink juga tidak menghilang. Rasanya cukup membuktikan bahwa kita tidak selalu melihat apa yang kita pikir, dengan kata lain kita melihat sesuatu “bukan apa adanya” tapi “sebagaimana kita melihatnya”
Kadang kita menghadapi suatu masalah merasa “sangat sulit” atau “sangat berat” (baik di tempat kerja, di keluarga, di lingkungan masyarakat maupun masalah pribadi diri sendiri), bahkan kadang terlintas pertanyaan di benak kita, kenapa demikian berat beban masalah/cobaan yang kita terima ? (padahal kalau kita menerima anugrah/hadiah/ kenikmatan yang demikian besar, kita tidak pernah mempertanyakan nya, kenapa kok saya yang menerima). Dan kadang kita lupa dengan doa : berilah beban yang aku sanggup memikul nya….Dan begitu sebaliknya …..
Berat/ringan, kecil/besar, masalah/bukan masalah, sedih/gembira, hukuman/pahala, derita/bahagia. ..dst…..hanyalah “cara pandang” kita terhadap sesuatu ?
Suatu peristiwa/kejadian yang sama, namun jika melihatnya dengan sudut pandang yang berbeda serta me-makna-inya dengan berbeda kemudian menyikapinya dengan cara yang berbeda pula, maka hasil-nya juga akan berbeda. Semua hanya ada di benak kita sendiri ! Karena otak kita lah yang membuatnya berbeda ! Jika suatu peristiwa yang negatif namun kalau kita memandang/memaknai nya sebagai hal yang positif dan kita menyikapi dengan cara yang positif maka hasilnya pun akan positif pula.
~Have a wonderfull life~
” Everyone thinks of changing the world, but no one thinks of changing himself “
dr. Lukas Hermawan
Posted by: Edi Yanto on: January 2, 2009
BI Publisher provides the FNDLOAD and XDOLoader utilities to move component across eBusiness Suite instances.
The FNDLOAD utility is used to upload and download the concurrent program, data definition and data template created via created via System Administrator and XML Publisher Administrator responsibility.
The XDOLoader utility is used to upload and download the physical files (Template files, XSD Schema, Sample XML Data , Bursting Control File)
FNDLOAD : Download Concurrent Programs
*) Download all the concurrent programs in a specific product.
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct file_name.ldt PROGRAM APPLICATION_SHORT_NAME=MPI
*) Download concurrent program for a specified concurrent program name.
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct file_name.ldt PROGRAM APPLICATION_SHORT_NAME=MPI CONCURRENT_PROGRAM_NAME=MPISHIPPED
FNDLOAD : Upload Concurrent Programs
*) Upload the concurrent programs to an instance.
FNDLOAD apps/apps 0 Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct file_name.ldt – CUSTOM_MODE=FORCE
FNDLOAD : Download Data Definition and Data Template
*) Download all the data definitions and the corresponding Templates in a specific product.
FNDLOAD apps/apps 0 Y DOWNLOAD $XDO_TOP/patch/115/import/xdotmpl.lct file_name.ldt XDO_DS_DEFINITIONS APPLICATION_SHORT_NAME=MPI Read the rest of this entry »
Posted by: Edi Yanto on: December 29, 2008
Posted by: Edi Yanto on: December 17, 2008
While running XML Publisher report for EXCEL output, the Concurrent Program has the error message :
“ORA-1403: no data found”
The cause of this problem has been identified in Bug 4396843 by Metalink.
The output of the report can be viewed from menu Request > Monitor through System Administration Responsibility or you can solve this problem by 2 way :
Posted by: Edi Yanto on: November 22, 2008
Interesting enhancement on EBS Homepage, we can expand/collapse the menu we want or expand/collapse all menu on EBS 11i/12 homepage.
Thanks Gareth for your posting and effort to create the script for this expand/collapse utility.
For using this utility, just install Greasemonkey Add-ons and the script that provided by Gareth on firefox, just click this link and then click install button. when you access your oracle application, you will see the effect like below.
Recent Comments