EBS Technical Notes

1. Configuration file definition
fnd_profile.value('CUX_BARCODE_PATH')


2. Test the request method:
dbms_lock.sleep(seconds => );


3. Related usage
1)greatest
2)%ROWTYPE
3)add_months
4)call fnd_global.APPS_INITIALIZE( 1318 , 50583 , 401 )
5)fnd_profile.VALUE( 'ORG_ID' )
6)nvl2 NVL2(expression, not null set value , set to empty).
7) fnd_date.canonical_to_date
is to convert a string variable in a standard date format into a standard PL/SQL date format.
8)Select * from table(dbms_xplan.display_awr('&sqlid',null))
9) Compare the size function sign
function syntax: sign(n)
function description: take the sign of the number n, if it is greater than 0, it will return 1, and if it is less than 0, it will return -1 , equal to 0, return 0
10) Exception information
v_backtrace := dbms_utility.format_error_backtrace; The
sqlcode function is used to return the pl/sql execution internal exception code.
The sqlerrm function returns an error message with the specified error code.
11) ceil
12) EBS version view
select RELEASE_NAME from apps.fnd_product_groups

4. Find database object references
SELECT *
  FROM dba_source ds
 WHERE UPPER (ds.text) LIKE '%CUX_WZC_ACCOUNT_RENT%';
Select * From Dba_Dependencies t Where t.referenced_name='CUX_ITEM_TAG_MES'
select dm.owner,dm.mview_name,dm.master_link from dba_mviews dm where dm.owner='HMCS'
select * from dba_db_links;

sys:
select status from all_objects where
dbms_java.longname(object_name)='oracle/jpub/runtime/dbws/DbwsProxy'


5. PG/RN compilation
cd $OA_HTML/WEB-INF/classes
java oracle.jrad.tools.xml.importer.XMLImporter $OA_HTML/WEB-INF/classes/test/oracle/apps/cux/pos/fd/webui/PurchaseOrdersPG.xml -jdk13 -mmddir $OA_HTML/jrad -username apps -password apps -rootdir $OA_HTML/WEB-INF/classes -validate -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.16.18.158)(PORT=1522))(CONNECT_DATA=(SERVICE_NAME=ERP)(INSTANCE_NAME=ERP1)))"


6.form compilation
Execute the following shell command to compile and publish fmb, please note that the Apps password information has been replaced
cd $AU_TOP/forms/ZHS
frmcmp_batch $CUX_TOP/forms/ZHS/fmb/CUXRUNOAF userid=apps/password output_file=$CUX_TOP/forms/ US/CUXRUNOAF

7. Fragment
1) FOR UPDATE OFheader_id NOWAIT;
2) fnd_conc_date.string_to_date
3) select * from v$parameter where name like '%dump%'

8. Report trace
log in as sysadmin, responsibility system administrator -> Concurrent -> Program -> Define -> F11 ->
Enter the report name in the Program field such as HW AR Accounts Receivable Balance Report -> CTRL+F11 -> After the query is out, click the check box at the bottom left: Enable Trace -> Click the save icon under the menu -> After exiting, select the appropriate responsibility to submit a request, select the above modified report for the report name, and check the database user_dump_dest[SELECT VALUE FROM V$PARAMETER WHERE NAME = 'user_dump_dest';] corresponding to the directory containing this request_id after running. trc file and convert it using the following formatting commands:
tkprof xxx.trc xxx.txt explain=apps/apps_passwd sort='(prsela,exeela,fchela)'

9. Check sql by sql_id
select nvl(sql_text, to_clob('** SQL Text Not Available **')) as sql_text
  from dba_hist_sqltext a, dba_hist_sqlstat b
 where a.sql_id = b.sql_id
   and b.sql_id = '&sql_id';
select module,sql_id from dba_hist_sqlstat where sql_id='9jhxjr42pr3su';
--See SQL execution parameters
select sql_exec_id from dba_hist_active_sess_history where sql_id='&sql_id'
SELECT dbms_sqltune.report_sql_monitor(sql_id => '&sql_id', sql_exec_id => '&sql_exec_id') FROM dual;
select * from gv$sqlarea t where t.SQL_ID = '8avjyjr38uzxz';
select * from gv$sql t where t.SQL_ID='8avjyjr38uzxz'
select * from gv$sqlarea t where t.SQL_ID = '2sp4b6r61wccw';


10. Check sql_id according to the machine name
select s.PREV_SQL_ID,s.SQL_ID from gv$session s where s.MACHINE like '%ZHANG%' and s.STATUS='ACTIVE';


11. Find the number of valid sessions
select count(*) from gv$session t where t.status='ACTIVE'

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325959231&siteId=291194637