Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This promise is immense; every day and every night, we are trying our best to fulfill it by helping others, leaving something worthwhile behind us, and living for a purpose that is "Enrich & Spread knowledge everywhere".
How to restore database with until time ?
Hello ,You can run this command in the shell session:export NLS_DATE_FORMAT="YYYY-MM-DD:HH24:MI:SS"Thenconnect with RMAN rman target /RUN{ ALLOCATE CHANNEL prmy1 TYPE disk ; set until time= "to_date('14/07/2015 10:34:36','dd/mm/yyyy hh24:mi:ss')"; RESTORE DATABASE; RECOVER DATABASE; RELEASE CHANNELRead more
Hello ,
You can run this command in the shell session:
export NLS_DATE_FORMAT=”YYYY-MM-DD:HH24:MI:SS”
Then
connect with RMAN
rman target /
RUN
See less{
ALLOCATE CHANNEL prmy1 TYPE disk ;
set until time= “to_date(’14/07/2015 10:34:36′,’dd/mm/yyyy hh24:mi:ss’)”;
RESTORE DATABASE;
RECOVER DATABASE;
RELEASE CHANNEL prmy1;
}
API to create and update Inventory Items in Oracle Apps R12
Hello @Jone, you can create or update inventory item by using API (ego_item_pub.process_item) and this an example : Note : before using both API's be aware that we are not committing the changes. You have to perform explicit commit manually from IDE or set parameter (p_commit = 'T') to commit yoRead more
Hello Jone, you can create or update inventory item by using API (ego_item_pub.process_item) and this an example :
Note : before using both API’s be aware that we are not committing the changes. You have to perform explicit commit manually from IDE or set parameter (p_commit = ‘T’) to commit your changes.
DECLARE l_inventory_item_id NUMBER; l_organization_id NUMBER; l_return_status VARCHAR2 (4000); l_msg_data VARCHAR2 (4000); l_msg_count NUMBER; x_message_list error_handler.error_tbl_type; BEGIN fnd_global.apps_initialize (user_id => 1318, --> OPERATIONS resp_id => 50583, --> Inventory, Vision Operations (USA) resp_appl_id => 401); --> Inventory ego_item_pub.process_item (p_api_version => 1.0 ,p_init_msg_list => 'T' -- (F:- False), (T:- True) ,p_commit => 'F' -- (F:- False), (T:- True) ,p_transaction_type => 'CREATE' -- UPDATE FOR Updating item ,p_segment1 => 'Oraask_Item01' -- ITEM CODE ,p_description => 'Oraask Test Item Description' -- ITEM DESCRIPTION ,p_long_description => 'Oraask Test Long Item Description' -- ITEM LONG DESCRIPTION ,p_organization_id => 204 -- Vision Operations ,p_apply_template => 'ALL' ,p_template_id => 2 -- Purchased Item — select * from mtl_item_templates_vl -- P_TEMPLATE_NAME => '@Purchased Item', -- P_ITEM_TYPE => 'P', ,p_inventory_item_status_code => 'Active' ,p_approval_status => 'A' ,x_inventory_item_id => l_inventory_item_id ,x_organization_id => l_organization_id ,x_return_status => l_return_status ,x_msg_count => l_msg_count ,x_msg_data => l_msg_data); IF l_return_status = fnd_api.g_ret_sts_success THEN dbms_output.put_line ('Item is Created Successfully, Inventory Item ID : ' || l_inventory_item_id); ELSE dbms_output.put_line ('Item Creation is Failed'); error_handler.get_message_list (x_message_list => x_message_list); FOR i IN 1 .. x_message_list.count LOOP dbms_output.put_line (x_message_list (i).message_text); END LOOP; ROLLBACK; END IF; --> EXCEPTIONS HANDLING PART EXCEPTION WHEN OTHERS THEN FOR i IN 1 .. l_msg_count LOOP dbms_output.put_line (substr (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255)); dbms_output.put_line ('message is: ' || l_msg_data); END LOOP; END;DECLARE l_inventory_item_id NUMBER; l_organization_id NUMBER; l_return_status VARCHAR2 (4000); l_msg_data VARCHAR2 (4000); l_msg_count NUMBER; x_message_list error_handler.error_tbl_type; BEGIN fnd_global.apps_initialize (user_id => 1318, --> OPERATIONS resp_id => 50583, --> Inventory, Vision Operations (USA) resp_appl_id => 401); --> Inventory ego_item_pub.process_item (p_api_version => 1.0 ,p_init_msg_list => 'T' -- (F:- False), (T:- True) ,p_commit => 'F' -- (F:- False), (T:- True) ,p_transaction_type => 'UPDATE' -- UPDATE FOR Updating item ,p_Inventory_Item_Id => 53899 ,p_description => 'Oraask test description' -- ITEM DESCRIPTION ,p_organization_id => 204 -- Vision Operations ,x_inventory_item_id => l_inventory_item_id ,x_organization_id => l_organization_id ,x_return_status => l_return_status ,x_msg_count => l_msg_count ,x_msg_data => l_msg_data); IF l_return_status = fnd_api.g_ret_sts_success THEN dbms_output.put_line ('Inventory Item has been updated Successfully, Inventory Item ID : ' || l_inventory_item_id); ELSE dbms_output.put_line ('Update inventory item is Failed'); error_handler.get_message_list (x_message_list => x_message_list); FOR i IN 1 .. x_message_list.count LOOP dbms_output.put_line (x_message_list (i).message_text); END LOOP; ROLLBACK; END IF; --> EXCEPTIONS HANDLING PART EXCEPTION WHEN OTHERS THEN FOR i IN 1 .. l_msg_count LOOP dbms_output.put_line (substr (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255)); dbms_output.put_line ('message is: ' || l_msg_data); END LOOP; END;— By executing above code we have updated item description to be “Oraask test description” for inventory item id “53899”
See lessWhat is FNDLOAD command to move Value Sets from one instance to another ?
Hello Matheo, You can use this command to download and upload value sets : FNDLOAD to Download Valueset: $FND_TOP/bin/FNDLOAD username/password 0 Y DOWNLOAD $FND_TOP/patch/115/import/afffload.lct XX_CUSTOM_VS.ldt VALUE_SET FLEX_VALUE_SET_NAME="XX Value Set Name" FNDLOAD to Upload Valueset: $FND_TOP/Read more
Hello Matheo,
You can use this command to download and upload value sets :
FNDLOAD to Download Valueset:
FNDLOAD to Upload Valueset:
Repeat same previous record or item in oracle forms ?
You can use DUPLICATE_RECORD built-in
You can use DUPLICATE_RECORD built-in
See lessHow to find all DB objects that has particular column name ?
Hi,[code] SELECT table_name, column_name FROM user_tab_columns WHERE upper(column_name) LIKE upper('%Last_Name%'); [/code]this in Oracle
Hi,
[code]
SELECT table_name, column_name
FROM user_tab_columns
WHERE upper(column_name) LIKE upper(‘%Last_Name%’);
[/code]
this in Oracle
See lessneed query to display ‘job’ & their counts & then display the no. of distinct ‘dept no’ under each ‘job’ & their counts ?
Hi,[code]SQL> select job, count(*) from scott.emp group by job order by 1;[/code]JOBCOUNT(*)ANALYST2CLERK4MANAGER3PRESIDENT1SALESMAN4 5 rows selected.[code]SQL>select job, count(distinct deptno), count(*)from scott.empgroup by joborder by 1;[/code]JOBCOUNT(DISTINCTDEPTNO)COUNT(*)ANALYST12CLERKRead more
Hi,
[code]
SQL> select job, count(*)
from scott.emp
group by job
order by 1;
[/code]
[code]
SQL>select job, count(distinct deptno), count(*)
from scott.emp
group by job
order by 1;
[/code]
[code]
select job, deptno, count(*)
from scott.emp
group by job,deptno
order by 1,2;
[/code]
In order to put that in a PLSQL procedure, for each SQL you can do
set serverout on
[code]
begin
for i in ( “yoursql” )
loop
dbms_output.put_line( “attributes” );
end loop;
end;
[/code]
hope this help.
See lessWhat is the major differences between ADF and JSF ?
Hi, i found this answer, hope will help you ADF Faces can be used as your JSF implementation or as a component library. If used as your JSF implementation there are differences from the JSF spec such as a longer lifecycle (ADFFaces adds two steps to the original JSF lifecycle) and an additional scopRead more
Hi,
i found this answer, hope will help you
ADF Faces can be used as your JSF implementation or as a component library. If used as your JSF implementation there are differences from the JSF spec such as a longer lifecycle (ADFFaces adds two steps to the original JSF lifecycle) and an additional scope for storing variables longer than request but shorter than session (i.e. in “process scope”).
If you end up using ADF Faces as your JSF implementation, you need to be aware that you are doing things the Oracle JSF implementation way (so you often can only find answers for what you are trying to do in the Oracle documentation, which can be lacking).
See lessHow to show a message in a report at runtime?
hi Albert, You can display a message in Oracle report builder by using the standard built-in srw.message. The basic syntax for using this package is: srw.message(error_no,'YOUR MESSAGE'); the error no will appear along with the message text. and here is the sample to do this in a particular functionRead more
hi Albert,
You can display a message in Oracle report builder by using the standard built-in srw.message.
The basic syntax for using this package is:
the error no will appear along with the message text. and here is the sample to do this in a particular function
See lessConvert number of seconds to Hours:Minutes:Seconds format
Hi, SELECT TO_CHAR(SYSDATE,'SSSSS') FROM DUAL; -- will return like 54071SELECT TO_CHAR(TO_DATE(54071,'SSSSS'),'HH24:MI:SS') FROM DUAL;-- will RETURN like 15:01:11 It will help
Hi,
SELECT TO_CHAR(SYSDATE,’SSSSS’) FROM DUAL; — will return like 54071
SELECT TO_CHAR(TO_DATE(54071,’SSSSS’),’HH24:MI:SS’) FROM DUAL;– will RETURN like 15:01:11
It will help
See lessHow to add “Auto Refresh” feature in EBS submit request form like version 12.2.6?
Hello Beter,here you will find how to implement this functionality inside 12.1.3 + versions:Click Here : Implement Auto Refresh functionality in EBS 12.1.3+
Hello Beter,
here you will find how to implement this functionality inside 12.1.3 + versions:
Click Here : Implement Auto Refresh functionality in EBS 12.1.3+
See less