How to run FNDMLSUB - multilingual - PL/SQL
HelloI want to introduce a program FNDMLSUB (ask for the submission of Multi-Language) to PL/SQL (need to print several programs of Bill at once, there is no support from the MLS for the games of the application).
What is the procedure of pl/sql for submission? I submit, but I don't know how to link with the actual demand (settings ect).
l_request_id: = fnd_request.submit_request ("FND", "FNDMLSUB," ", null, FALSE, 20003, 191349, 'Y');
Thank you
Kind regards
Kris
An API to run simultaneous queries using MLS does not exist for the moment!
Must find Metalink carefully at the beginning:
How to apply MLS using API FND_REQUEST [ID 372572.1]
Tags: Oracle Applications
Similar Questions
-
How to run DBMS_SQLTUNE.report_sql_monitor of SQL Developer 4.0
Hello-
We have new SQL Developer 4.0 as a single stop for all reports of performance tuning.
(So far, we know how to generate the AWR and ASH ADDM directly from SQL DEV 4.0 and we can do as a NON-privileged user)
Now, the question is how to run DBMS_SQLTUNE.report_sql_monitor API SQL DEV 4.0?
I tried this way:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SELECT DBMS_SQLTUNE.report_sql_monitor)
sql_id = >: SQL_ID
Type = > 'TEXT ',.
report_level = > 'ALL') AS myreport
DOUBLE;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
and then right button click of the mouse on the line "myreport" and the EXPORT of 'text' in the menu drop down and save in the. FichierTSV on the local file system.
It works this way, as expected, but seems to be a lot of hassle: too many steps.
Then I tried the HTML format:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SELECT DBMS_SQLTUNE.report_sql_monitor)
sql_id = >: SQL_ID
Type = > 'HTML. "
report_level = > 'ALL') AS myreport
DOUBLE;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
and it didn't work well at all SQL dev 4.0
Any help will be greatly appreciated.
(once again, the idea here is to set up our development and QA groups with full access to performance all reports without having them call DBA for help in the production of any SQL tuning report).
Thank you
VR
There is certainly a 'room' to improve the interface, just tell me what you would like to be like him. For example, you want an overview of the SGS of all SQLIDs running on the nodes you could then select this option to run a report for? Don't say it is what we would do, but I was wondering what it is that you ask for.
-
How to run a procedure of SQL commands
I tried in many ways, for example:
RUN POPULATE_HIERARCHY (121121);
but I get the error: ORA-00900: invalid SQL statement.BEGIN POPULATE_HIERARCHY(121121); END;
-
How to run wfstatus.sql for i-expenses
How to run wfstatus.sql i-expenses in EBS 11i.Select this check box, hope it helps.
How to find and solve the reports on Internet expenditures within workflow [ID 185004.1]
How wfstatus.sql to run on a statement of expenses Internet [134895.1 ID]
-
How to run a procedure with parameters in pl/sql collections?
I created a procedure with parameter from the collection. Can somone help me how to run a procedure in passing the parameters in the collection.
Package and how to create is successful. But I get the error message when executing the procedure.
ORA-06550: line 3, column 19:
PLS-00222: no function with name 'T_TAB' does exist in this scope
I gave the example of code here. Can someone please help me solve this problem.
-Spec package
create or replace package pkg_dist is
TABLE index IS THE NUMBER of t_tab_num TYPE of PLS_INTEGER;
procedure prc_test (a t_tab_num IN,
b IN t_tab_num,
c IN OUT t_tab_num);
end pkg_dist;
-Package body
create or replace package body is pkg_dist
procedure prc_test (a t_tab_num IN,
b IN t_tab_num,
c IN OUT t_tab_num) is
Start
IF (a (16) = 0) then
(16) c: = 0;
c (17): = 0;
c (18): = 0;
end if;
c (15): = (14)-(15)-a (16);
(16) c: = b (16) /b (17);
c (17): = 50;
(18) c: = a (16) * 2;
end prc_test;
end pkg_dist;
-executeing procedure
declare
TABLE index IS THE NUMBER of t_tab TYPE of PLS_INTEGER;
x t_tab: = t_tab (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16);
y t_tab: = t_tab (0,10,15,20,25,30,35,40,45,50,60,75,100,125,150,200,250,500);
z t_tab;
BEGIN
pkg_dist.prc_test (x, y, z);
dbms_output.put_line (z (18));
END;
Error:
--------------------------------------------------------------------------------
ORA-06550: line 3, column 19:
PLS-00222: no function with name 'T_TAB' does exist in this scopeMy suggestion would be:
CREATE OR REPLACE PACKAGE pkg_dist IS PROCEDURE prc_test (a IN SYS.odcinumberlist, b IN SYS.odcinumberlist, c IN OUT SYS.odcinumberlist); END pkg_dist; CREATE OR REPLACE PACKAGE BODY pkg_dist IS PROCEDURE prc_test (a IN SYS.odcinumberlist, b IN SYS.odcinumberlist, c IN OUT SYS.odcinumberlist) IS BEGIN IF (a (16) = 0) THEN c (16) := 0; c (17) := 0; c (18) := 0; END IF; c (15) := a (14) + a (15) + a (16); c (16) := b (16) / b (17); c (17) := 50; c (18) := a (16) * 2; END prc_test; END pkg_dist; / DECLARE x SYS.odcinumberlist; y SYS.odcinumberlist; z SYS.odcinumberlist; BEGIN x := sys.odcinumberlist (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); y := sys.odcinumberlist (0,10,15,20,25,30,35,40,45,50,60,75,100,125,150,200,250,500); z := sys.odcinumberlist (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); pkg_dist.prc_test (x, y, z); DBMS_OUTPUT.put_line (z (18)); END; /
See you soon,.
Manik. -
How can I run beginddl in PL/SQL Developer
Here is my script:
Start
execute dbms_wm.beginddl ('MyTable');
ALTER TABLE MyTable ADD NewColumn1 VARCHAR2 (200)
execute dbms_wm.commitddl ('MyTable');
end;
I got the following error:
ORA-06550: line 2, column 11:
PLS-00103: encountered the symbol "DBMS_WM" during the expected in the following way:
:= . (@ %; immediate)
The symbol ': = ' was replaced by "DBMS_WM" continue.
ORA-06550: line 3, column 3:
PLS-00103: encountered the symbol "ALTER" when expecting one of the following conditions:
(begin case declare exit end exception for goto if loop mod)
pragma raise return null select update while with
< an ID > < a limit between double quotes
What should I do next?
Thank you.in the PL/SQL scripts, you simply omit the 'run '. and for the SQL code, you must put a run before.
so your script:begin dbms_wm.beginddl('MyTable'); execute immediate 'ALTER TABLE MyTable ADD NewColumn1 VARCHAR2(200)'; dbms_wm.commitddl('MyTable'); end;
Apart from that, you should edit MyTable_LTS in your session DDL.
Kind regards
Andreas
-
How to run the type of object...
HI team,
Please let me know how to run pl/SQL object type.
create or replace TYPE T_PARTY_ID_LIST AS TABLE OF T_PARTY_ID; create or replace TYPE T_PARTY_ID AS OBJECT (SEQ NUMBER(10,0) ,COUNTRY_ID CHAR(2) ,ID VARCHAR2(50) ,ID_TYPE VARCHAR(3) ,DATE_FROM DATE ,DATE_TO DATE ); create or replace PROCEDURE P_UPDATE_RICA_COUNT_ID (A_PARTY_IDS IN T_PARTY_ID_LIST ,A_ICAP_ID IN number ) as v_id sa_id_registration_counts.id%TYPE; -- BEGIN FOR C IN (SELECT X.id_type, X.ID FROM TABLE (CAST(A_party_ids AS T_PARTY_ID_LIST)) X WHERE X.ID_Type IN ('N','P','B') ORDER BY X.ID_Type) LOOP -- BEGIN -- UPDATE sa_id_registration_counts SET no_of_registrations = no_of_registrations-1 WHERE id = V_ID AND id_type = C.ID_Type; -- IF SQL%ROWCOUNT < 1 THEN RAISE NO_DATA_FOUND; END IF; -- EXCEPTION WHEN NO_DATA_FOUND THEN BEGIN -- INSERT INTO sa_id_registration_counts (id ,id_type,exclude_yn,no_of_registrations) SELECT V_ID,C.ID_Type,'N',1 FROM dual; -- EXCEPTION WHEN OTHERS THEN RAISE_APPLICATION_ERROR(-20000,'Error updating RICA ID count ['||SQLERRM||']'); END; END; -- END LOOP; -- END; --
I'm trying, but receive an error message
DECLARE A_PARTY_IDS SCOTT.T_PARTY_ID_LIST; A_ICAP_ID NUMBER :=12323; BEGIN A_PARTY_IDS.extend(1); SELECT T_PARTY_ID(1,'1','1','1',null,null) INTO A_PARTY_IDS(1) FROM DUAL; P_UPDATE_RICA_COUNT_ID( A_PARTY_IDS => A_PARTY_IDS, A_ICAP_ID => A_ICAP_ID ); END; Error report - ORA-06531: Reference to uninitialized collection
I do not know why you do what you do that is row-by-row (aka slow-by-slow), when you could do all this in a single merge - something like statement:
create or replace PROCEDURE P_UPDATE_RICA_COUNT_ID (A_PARTY_IDS IN T_PARTY_ID_LIST, A_ICAP_ID IN number) as begin merge into sa_id_registration_counts tgt using (select x.id_type, x.id, count(*) cnt from table(cast(a_party_ids as t_party_id_list)) x where x.id_type in ('N', 'P', 'B') group by x.id_type, x.id) src on (tgt.id_type = src.id_type and tgt.id = src.id) when matched then update set no_of_registrations = no_of_registrations - src.cnt when not matched then insert (tgt.id, tgt.id_type, tgt.exclude_yn, tgt.no_of_registrations) values (src.id, src.id_type, 'N', 1); end; /
You v_id in your procedure, but you never defined anywhere, for as far as I could tell, so I made a few assumptions about the join condition. You will need to change if necessary.
Meanwhile, for your procedure, you should do something like:
DECLARE A_PARTY_IDS T_PARTY_ID_LIST := t_party_id_list(); -- initialised the collection here A_ICAP_ID NUMBER :=12323; BEGIN A_PARTY_IDS.extend(1); A_PARTY_IDS(1) := T_PARTY_ID(1,'1','1','1',null,null); P_UPDATE_RICA_COUNT_ID( A_PARTY_IDS => A_PARTY_IDS, A_ICAP_ID => A_ICAP_ID ); end; /
Another thing - you seem to like selection of the many double - if you're in PL/SQL, then you can just assign variables directly (overall; there are a few exceptions, depending on your version of the database).
-
How to run execute immediate with variables
Hi friends,
How to run execute immediate with variables in v_stmt below?
I don't know how to declare value I have here.
Regds,Set serveroutput on; DECLARE i VARCHAR (20); v_stmt VARCHAR2 (100); CURSOR c IS SELECT sqlid FROM temp1; BEGIN OPEN c; LOOP FETCH c INTO i; EXIT WHEN c%NOTFOUND; DBMS_OUTPUT.put_line (i); v_stmt := 'select * from table(dbms_xplan.display_cursor('&i',null))' execute immediate v_stmt; END LOOP; CLOSE c; END; /
Kunwar.You must first use a variable binding (named ': v' in the SQL statement in my example):
set serveroutput on; DECLARE i VARCHAR (20); v_stmt VARCHAR2 (100); CURSOR c IS -- modified for a quick test SELECT sql_id FROM v$sql where child_number > 2; BEGIN OPEN c; LOOP FETCH c INTO i; EXIT WHEN c%NOTFOUND; DBMS_OUTPUT.put_line (i); v_stmt := 'select * from table(dbms_xplan.display_cursor(:v,null))'; execute immediate v_stmt using i; END LOOP; CLOSE c; END; /
However because your SELECT statement returns multiple lines, you need to adapt your code to process all rows returned (as already suggested in first response to your message).
Instead of using the PL/SQL, I recommend you to generate a SQL file using only SQL, and then run the generated SQL file.
For example:spool edx.sql set serveroutput on declare v_stmt varchar2(100); v_q char(1):=''''; begin dbms_output.put_line('spool edx.log'); for s in (select sql_id from v$sql where child_number >2) loop dbms_output.put_line('select * from table(dbms_xplan.display_cursor(' || v_q || s.sql_id || v_q || ',null));'); end loop; dbms_output.put_line('exit'); end; / spool of
This generates a file similar to:
spool edx.log select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null)); select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null)); select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null)); select * from table(dbms_xplan.display_cursor('fsbqktj5vw6n9',null)); select * from table(dbms_xplan.display_cursor('6q42j0018w7t8',null)); select * from table(dbms_xplan.display_cursor('a5mmhrrnpwjsc',null)); select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null)); select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null)); select * from table(dbms_xplan.display_cursor('9gkq7rruycsjp',null)); select * from table(dbms_xplan.display_cursor('f0wj261bm8snd',null)); select * from table(dbms_xplan.display_cursor('ab3swhv5g138y',null)); select * from table(dbms_xplan.display_cursor('6vgvyh4xw9c5g',null)); select * from table(dbms_xplan.display_cursor('ak5crjygnpk60',null)); select * from table(dbms_xplan.display_cursor('9p6bq1v54k13j',null)); select * from table(dbms_xplan.display_cursor('19x1189chq3xd',null)); select * from table(dbms_xplan.display_cursor('7sx5p1ug5ag12',null)); select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null)); select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null)); select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null)); select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null)); select * from table(dbms_xplan.display_cursor('a1zv6wju3ftgv',null)); select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null)); select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null)); select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null)); select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null)); select * from table(dbms_xplan.display_cursor('g4gp07gt2z920',null)); select * from table(dbms_xplan.display_cursor('1gu8t96d0bdmu',null)); select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null)); select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null)); select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null)); select * from table(dbms_xplan.display_cursor('bn4b3vjw2mj3u',null)); select * from table(dbms_xplan.display_cursor('38243c4tqrkxm',null)); select * from table(dbms_xplan.display_cursor('2abjfnvy5rkyg',null)); select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null)); select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null)); select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null)); select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null)); select * from table(dbms_xplan.display_cursor('1tgukkrqj3zhw',null)); exit PL/SQL procedure successfully completed.
Edited by: P. Forstmann March 20, 2013 19:06
Edited by: P. Forstmann March 20, 2013 19:33
-
How to run a procedure with refcursor to more
an entry is User_id = CMSH_USER; p_Ot-num =-9999; p_ppst_flag = 'P' and I want to take the trace by running this procedure, and any1 help me, how to run this procedure below and how to use these 5 on refcursor...
procedure Pr_get_mny(p_ot_Num IN NUMBER, p_User_Id IN VARCHAR2, p_Ppst_Flag IN VARCHAR2, Ref_Cur OUT Ref_Cursor, CUR_OPT OUT Ref_Cursor, CUR_TAXRATE OUT Ref_Cursor, CUR_TAXHOLD OUT Ref_Cursor, CUR_PENDGAACNT OUT Ref_Cursor ) IS
If the goal is to Test, the best tool is SQL
var ref_cur refcursor var cur_opt refcursor var cur_taxrate refcursor var cur_taxhold refcursor var cur_pendgaacnt refcursor exec pr_get_mny(-9999,'CMSH_USER','P',:ref_cur,:cur_opt,:cur_taxrate,:cur_taxhold,:cur_pendgaacnt) print ref_cur print cur_opt print cur_taxrate print cur_taxhold print cur_pendgaacnt
-
I am a student of plsql, how to run package? give some examples of how to self-test code and package programs
You cannot run the package
you run the procedure/function in packagePlease see
http://docs.Oracle.com/CD/B10501_01/AppDev.920/a96624/09_packs.htm>
A package is a schema object which includes subroutines, the elements and the logically related PL/SQL types. -
How to run a test from Unix script
Hello
Can someone guide me how to run a test case of (created in SQL Developer) unit from unix.
Thank you
LifexisxnotxsoxbeautifulYou should be able to run your tests using the command line interface:
http://docs.Oracle.com/CD/E25259_01/AppDev.31/e24285/unit_testing.htm#BCGFBIDD
-
How to pass arguments to the SQL Script in command prompt
I don't know about the ' & nom_de_variable "to request a value in the command line.
But, how can I pass arguments from the command line for the following script to the command - prompt
Example:
ex_proc. SQL
CREATE OR REPLACE PROCEDURE ex_proc (employee_id NUMBE IN)
IS
v_emp_id Number (38);
BEGIN
v_emp_id: = employe_id;
UPDATE emp_employee SET sal = 2000 WHERE emp_id = v_emp_id;
END;
/
call_ex_proc. SQL
Appellant for procedure above:
BEGIN
ex_proc (100); -The employee id is 100.
END;
/
Here are the General controls that we use to run the scripts above-
SQL > @ex_proc.sql
SQL > @call_ex_proc.sql
But my requirement is to pass the employee id as an argument in the command line as.
SQL > @call_ex_proc.sql 100
Is it possible to pass command line arguments?Usually this question start with reading documentation, wouldn't it?
Solomon Yakobson showed you the method gross and unreadable.
You will use best
set
= '& 1' '. -use &
in the rest of the code ----------
Sybrand Bakker
Senior Oracle DBA -
How to specify the instance in SQL * more command line?
Hello
I'm learning to Oracle. I currently have 2 instances of database running. I wanted to connect to one of the bodies and used the following command from the command line:
When I run the command above, SQL * more ask me the password. I do not understand why he asks me the password because I provided on the command line.sqlplus system as sysdba/abc123@ocp11gsid where 1234 is the password for the system user in the ocp11gsys instance.
What is the correct command line, so he asks me the password? (without defining the variable ORACLE_SID of environment - basically, I want to know how to specify the user, his password and sid, all in the sqlplus command line, without being prompted to enter the password that I mentioned.)
Thank you for your help,
John.John,
This is how it works.
E:\Documents and Settings\aristadba>sqlplus system/oracle as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 2 22:49:25 2010 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL>
And now it ask the password,
E:\Documents and Settings\aristadba>sqlplus system as sysdba/oracle SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 2 22:50:42 2010 Copyright (c) 1982, 2010, Oracle. All rights reserved. Enter password: Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL>
Spot the difference?
The user name and password must unite. What you are to provide the password with the role where it will not be considered.
Update
I missed that part,What is the correct command line, so he asks me the password? (without defining the variable ORACLE_SID of environment - basically, I want to know how to specify the user, his password and sid, all in the sqlplus command line, without being prompted to enter the password that I mentioned.)
The only thing that you can specify is the user name and password. The SID must be defined by you, either explicitly using the export or oraenv command if you are on the local system and do not use the TNS to connect to the instance. If you use the TNS, then an appropriate entry should be there which would connect to the required database.
HTH
Aman...Published by: Aman... on August 2, 2010 22:54
-
How to run a script in environment unix and how to run this program into a toad
Hello guys
Please help me!
How to run a script in the unix environment (Group of programs (cursor, programs...) stored in a file file.sql).
file.sql luks like this
WHENEVER OSERROR EXIT FAILURE
WHENEVER SQLERROR EXIT SQL. SQLCODE
SET the position
SET serveroutput size 1000000
coil ins2aais_jobs;
SELECT "FILE IS: ins2aais_jobs' FROM dual;"
SELECT "STARTED:' began, to_char (sysdate," YY/MM/DD HH24:MI:SS) TIME FROM dual; "
DECLARE
lv_upd_ct number: = 0;
lv_ins_ct number: = 0;
lv_exp_ct number: = 0;
---------------------
date of lv_FROM_date;
date of lv_to_date;
lv_mon_or_week varchar2 (20);
date of lv_week_end_date;
lv_month_indicator varchar2 (8);
-------------------------------------------------
Aais CURSOR IS
SELECT the ID substr (ID, 1, 7), SSN, FNAME, LNAME
, SUCCESS, COMPENSATE, INSTALLATION
, MODU, DRIVE, REVERSE, SUCC_RATE
TRANS_TOTAL, FILE_NAME, WEEK_END_DATE
RUN_DATE
OF weekly_aais;
-------------------------
I aais % rowtype;
-------------------------
PROCEDURE p_ins (r1 aais % ROWTYPE) IS
BEGIN
BEGIN
INSERT INTO AAIS_JOBS
(ID, SSN, SUCCESS, COMPENSATE, INSTALL, MODU
, DRIVE, REVERSE, SUCC_RATE, TRANS_TOTAL
FILE_NAME, WEEK_END_DATE, RUN_DATE
AAIS_FNAME, AAIS_LNAME
)
VALUES
(r1.ID, r1. SSN, r1. SUCCESS, r1. COMPENSATE, r1. INSTALLATION, r1. MODU
r1. DISK, r1. CONVERSELY, r1. SUCC_RATE, r1. TRANS_TOTAL
r1. File_name, r1. WEEK_END_DATE, r1. RUN_DATE
r1. FNAME, r1. LNAME
);
lv_ins_ct: = lv_ins_ct + 1;
EXCEPTION
WHILE OTHERS then
DBMS_OUTPUT. PUT_LINE ('ERROR IN THE INSERT STATEMENT');
DBMS_OUTPUT. Put_line (SQLERRM);
lv_exp_ct: = lv_exp_ct + 1;
END;
END;
------------------------------
PROCEDURE p_disp_msg IS
BEGIN
DBMS_OUTPUT. Put_line (' number of insertion: ' | to_char (lv_ins_ct));
DBMS_OUTPUT. Put_line (' number of Exceptions: ' | to_char (lv_exp_ct));
lv_ins_ct: = 0;
lv_exp_ct: = 0;
END;
---------------------------
BEGIN
lv_FROM_date: = to_date ('& 1', 'DD-MON-RR');
lv_to_date: = to_date ('& 2', 'DD-MON-RR');
lv_mon_or_week: = 'and 3';
lv_month_indicator: = di.get_month_ind (lv_mon_or_week, lv_FROM_date, lv_to_date);
------------------------------------
REMOVE FROM AAIS_JOBS
WHERE WEEK_END_DATE = lv_to_date;
-------------------------------------
COMMIT;
Aais OPEN;
LOOP
EXTRACT the aais IN i;
OUTPUT WHEN aais % NOTFOUND;
BEGIN
p_ins (i);
END;
END LOOP;
Aais CLOSE;
commit;
DBMS_OUTPUT. PUT_LINE ('INSERT INTO TABLE JOBS AAIS');
p_disp_msg;
-----------------------------------
END;
/
SELECT "FINISHED: ' | '. TO_CHAR (sysdate, "MM/DD/YY HH24:MI:SS'") FROM dual
/
spool off
"exit";
and also how we organize this into a toad?
Thank you.Hello
You vous connecter connect to oracle through unix and SQL prompt, run these commands in a .sql file.
Toad, you can run the instructions individually by selecting the sql statements or in a set with the F5 key.
Kind regards
AJR -
How to run a procedure with the object as OUTPUT parameter
Hello
I have a procedure and it composed of 2 parameters, there is an input parameter and it's some ID (NUMBER datatype) and 2nd parameter is an output parameter and it an object type. I want to run this procedure, but not able to do the same thing. Can someone please suggest me how to run a procedure that got the object as output parameter.
Thank you very much in advance for your support.Example:
SQL> create or replace type t_obj as object (ename varchar2(10), deptno number); 2 / Type created. SQL> ed Wrote file afiedt.buf 1 create or replace procedure myproc (p_empno in number, obj out t_obj) is 2 begin 3 select t_obj(ename, deptno) 4 into obj 5 from emp 6 where empno = p_empno; 7* end; SQL> / Procedure created. SQL> set serverout on SQL> declare 2 v_obj t_obj; 3 begin 4 myproc(7788, v_obj); 5 dbms_output.put_line(v_obj.ename||','||v_obj.deptno); 6 end; 7 / SCOTT,20 PL/SQL procedure successfully completed.
Maybe you are looking for
-
Airport Extreme is adjustable upward in client mode?
I've set up the Express in client mode before, but I'll have set up extreme. During setting up he sees that I am on an existing network, but he doesn't know that and wonder if I would create a new. When I try to connect to an existing network, it ind
-
How to put android firefox add ons? Where I can launch my app using this add ons. This add-ons - display a button like on the page launch my app android if clicked.
-
Cover of the screen closes to easy
My laptop is now 4 years old. When I use my laptop and I have my touchscreen, he immediately falls. Who knows how to fix this? Thanks in advance.
-
Programmatically update nested arrays of Clusters? (What is the best way?)
I have an array of configuration files that is loaded at startup. Then, I need to update the values in this table of configuration values. The attached VI works, but I was wondering if this is the best way. It seems not scalable I added elements that
-
I can't answer or send e-mails.
After that a virus has left my computer does not work, I had to have my hard drive erased professionally. By creating a new Windows Mail account (I used Outlook Express). I can receive emails, but cannot send or reply to emails. I called my interne