How to call the page url inside the procedure.
HelloI'm not exhibition in plsql.
I have some problem in utl_http link.
I create a procedure. The procedure has been compiled successfully. But the page url does not open...
I have attached the procedure,
create or replace procedure p (number of mob)
IS
long l_page;
l_url varchar2 (25000 char);
Start
null;
l_page: = utl_http.request ("http://www.yahoo.com");
end;
Please tell me the solution for this problem...
I await your response.
Thank you
Sasi.
This is a duplicate thread:
How to open the web page in pl/sql
the OP doesn't seem to understand the difference between a web browser and a programming language... I can't say I've ever had to explain the difference before...
Let's say that... the butterflies are not somehow similar to razors electric...
Tags: Database
Similar Questions
-
How to call the procedure type table
Hi I have the below requirement
Created in the sub table type
CREATE or REPLACE the TYPE char_type IS the TABLE OF VARCHAR2 (4000);
create or replace procedure test_proc_type (p_type char_type) is
Start
I'm looping 1.p_type.count
dbms_output.put_line (p_type (i));
end loop;
end;
How to call the procedure with parameter as a type!
SQL> create or replace type char_type as table of varchar2(4000) 2 / Type created. SQL> create or replace procedure test_proc_type (p_type char_type) 2 is 3 begin 4 for i in 1..p_type.count loop 5 dbms_output.put_line (p_type(i) ) ; 6 end loop; 7 end; 8 / Procedure created. SQL> set serveroutput on SQL> SQL> exec test_proc_type(char_type('A','B','C','D','E')) A B C D E PL/SQL procedure successfully completed. SQL>
-
How to call the procedure on the page of the ofa
Hi all
I have a button.when I click this button need to call the procedure and should return the values.i tried with below code.am is error.i am passing two parameters to the procedure.please suggest me where I made a mistake in the code.
code in am
-------------
public String calprorate (String laseid, String billingid)
{
OADBTransaction oadbtransaction = (OADBTransaction) getTransaction ();
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl) getTransaction ();
String retValues;
System.out.println ("number:" + laseid);
StringBuffer str = new StringBuffer();
Str.Append ("BEGIN");
Str.Append (LEASE_PRORATE_PKG ".") LEASE_PRORATE_PROC1 (»);
Str.Append ("p_lease_id = >: 1");
Str.Append ("p_billing_id = >: 2");
Str.Append ("P_PRORATE = >: 3");
System.out.println ("params");
Str.Append (»); «) ;
Str.Append ("END");
System.out.println ("End");
OracleCallableStatement oraclecallablestatement =
(OracleCallableStatement) oadbtransaction.createCallableStatement (str.toString (), 1);
System.out.println ("Oracle");
try {}
oraclecallablestatement.setString(1,laseid);
oraclecallablestatement.setString(2,billingid);
oraclecallablestatement.setInt (1, Integer.parseInt (laseid));
oraclecallablestatement.setInt (2, Integer.parseInt (billingid));
System.out.println ("param");
oraclecallablestatement.registerOutParameter (3, Types.VARCHAR);
System.out.println("3");
oraclecallablestatement. Execute();
System.out.println ("exe");
retValues = oraclecallablestatement.getString (3);
}
catch (System.Exception e)
{
System.out.println ("delivery");
throw OAException.wrapperException (e);
}
Return retValues;
System.out.println ("End");
}
code co:
-------------
If (pageContext.getParameter ("Calc")! = null) {}
Vo1 OAViewObject = (OAViewObject) am.findViewObject ("AddonBillingVO");
System.out.println ("VO");
{if(VO1!=null)}
CNT int = vo1.getRowCount ();
System.out.println ("count:" + cnt);
If (cnt > 0)
{
RowSetIterator rs = vo1.createRowSetIterator("empIterator");
System.out.println ("EMP");
If (rs! = null)
{
While (rs.hasNext ())
{
AddonBillingVORowImpl line = rs.next ((AddonBillingVORowImpl));
System.out.println ("impl");
If (line! = null)
{
String laseid = row.getAttribute("LeaseId").toString ();
System.out.println (laseid);
String billingid = row.getAttribute("AddonBillingId").toString ();
[Serializable] param = {}
laseid, billingid
};
String newupc = (String) am.invokeMethod ("calprorate", param);
}
}
Khalil.
You can paste your spec procedure here?
Also see: Oracle tips of Johny: OAF: sample code to call the PL/SQL of OA Framework procedure
-
How to call the procedure Oracle in ODI
Hello
I use ODI 10 g.
Before you run the interface in a package, I wanted to place my procedure.
I created the procedure in d/b (target)
CREATE OR REPLACE PROCEDURE TEST_MY_NEW_PROCE
AS
BEGIN
REMOVE FROM EMPLOYEE_TABLE
WHERE EMPLOPYEE_ID LIKE '% P ';
COMMIT;
END;
/
The procedure works well in the target database.
Now, before the execution of my interface, I want to run this procedure in my package. So can some please help me how to call this oracle (creation in target schema) ODI procedure and run it.
Thank you.Hi, GRK,.
You can create an ODI procedure, add one step, choose Oracle as technology and your target schema.
Then just call it through a pl/sql block:BEGIN TEST_MY_NEW_PROCE; END;
In your package, then drag this ODI procedure.
Kind regards
JeromeFr -
How to call the procedure in the process
Hello
I have create procedure abc.
How can I call procedure abc in the process in the processing of the Page.
I want to call this procedure when I press the "submit" button.
Thank youHello
Yes, that is correct
Kind regards
Jari -
How to call the procedure in the package
Hi all!
The situation!
I received a package with body priview 'Change_utility '.
In this package, I had procedure, changing the data when triger calls a package, it is all ok and working
Now, I need to call a procedure in a single package gave him.
I need to run the sta_death procedure in the 'Change_utility' package with no code 112233-4455
How do I run that?
Thanks for the help!
IDMaybe (guessing)
begin change_utility.sta_death('112233-4455'); end;
Concerning
Etbin
-
How to call the stored procedure when I press the button
Hello
I want to know how to call the procedure/SQL statement when I press the button using callable statement.
can someone give me it please link who knows the steps to do this.
Thanks in advance,
SANHello
read this good example http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html
~ Abhijit
-
How to call the variables of the scene inside movieClips
How to call the variables of the scene inside movieClips
One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;
-
How to call the program simultaneous form OPS page
hi ................
How to call a page ofa simultaneous program...
There is no package for the concurrentprogram package in jdeveloper 9.0...
That is to say... cp.concurrentprogram...
You can suggest a solution for this...Hello
Check this class 'RequestSubmissionException' exists in the path, and then import the vector class.
Kind regards
Out Sharma -
How to call the web service?
Hello
I want to know how to call the web service from my application HTML5 & javascript.
Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.
I just want that when you call a web service method, I will return the result.
Please try this out for a WebService call
var xmlhttp; xmlhttp = new XMLHttpRequest(); xmlhttp.open("get","your url",true); xmlhttp.setRequestHeader("Accept","application/json"); xmlhttp.setRequestHeader("Content-type", "application/json"); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { if (xmlhttp.status == 200) { console.log(xmlhttp.responseText); } } } xmlhttp.send();
This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.
-
How to call the javascript function in ADF
I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.
Kind regards
Surya
Published by: sgodavar on Sep 24, 2010 11:44Include JavaScript to the jsff/jspx as page:
Call it like:
Type = "dblClick" / >
Amit -
How to call the setting menu of the BIOS on HP DV4 1540us netbook?
Hi all
How to call the setting menu of the BIOS on HP DV4 1540us netbook?
F2 does NOT an on-screen BIOS setting.
Is there another trick? Or, perhaps, defining the procedure step by step to start the BIOS?
TIA
Power on the laptop and all logo HP being displayed, press F10.
-
How to call the java function with javascript setting in mobile adf?
How to call the java function with javascript setting in mobile adf?
The ADF Mobile utility container API can be used from JavaScript or Java.
-
Can we call the procedure inside the function?
Hello
Can we call the procedure inside the function?
Thank you
Brij845712 wrote:
Can we call the procedure inside the function?
Strange question to ask.
Yes. This is the standard behavior in most (if not all) procedural and object oriented languages.
A procedure, function or a method is a unit of code.
You can call one of the other units. Units can call themselves (recursion). Technically, this means simply by pushing the battery current (to save the stack of the current device memory), the call to the new unit and then popping up battery when control is returned to the unity of the appellant.
There are very few exceptions to this. The only one that comes to mind programming languages I've used through the years, is natural 1 - could not call a new unit of code to replace the existing one in memory. If no call-and-return was possible.
Exactly what did you ask this question? Some newcomers to confused Oracle SQL and PL/SQL - two different languages aside server. And then also mistaken for PL/SQL client command vocabulary of SQL * more.
You will need to make sure that understand the basics of programming (applies to most current programming languages) and Oracle concepts.
-
How to call the function (function Build-in user) in Pro * C program
We have developed the application Pro * C program.
TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.
We would like to develop Pro * C program you are using PL/SQL.
We have a few questions.
How to call the function (function Build-in user) in Pro * C program?
#########
TEST
#########
ttisql:
Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
> BACK NUMBER
> o_number NUMBER;
> START
> select i_str
> in o_number
> double;
>
> O_number RETURN;
>
> EXCEPTION
> Others THEN
> RETURN 0;
> END;
> /.
display errors
The function is created.
Order > show errors
No errors.
Command >
Command > set serveroutput on;
Command > declare
> number of num1;
> start
> num1: = F_SAMPLE ('A');
> DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
> end;
> /.
F_SAMPLE 0
PL/SQL procedure successfully completed.
Command >
Pro * C case:
EXEC SQL BEGIN DECLARE SECTION;
number of num1;
EXEC SQL END DECLARE SECTION;
EXEC SQL EXECUTE
Start
: num1: = F_SAMPLE ('A');
end;
END-EXEC;
Make sure to install:
Error on line 146, column 3, file plsqlPROC.pc:
Error on line 146, column 3 in file plsqlPROC.pc
number of num1;
.. 1
PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:
Thank you.
GooGyumThere are two problems with your variable declaration:
1. the name of the variable and type are thew misplacement autour.
2. you may not use a host variable type.
If you change this to:
EXEC SQL BEGIN DECLARE SECTION;
int num1;
EXEC SQL END DECLARE SECTION;Then it will work very well.
Chris
-
How to apply the procedure inside a procedure and the evils of the value in a variable?
Hi all
I'm usung oracle 11g.
Here is my package and procedure
I want to call get_email_details this procedure within the process_email_master and store the value in a variable in main proceedings
create or replace
PACKAGE ms_gen_process_email
as
type email_type is rendered (subject varchar2 (4000 tank),
email_body varchar2 (4000 tank),
to_receipent varchar2 (4000 tank),
cc_receipent varchar2 (4000 char));
type email_type_table is table of the email_type;
procedure process_email_master)
p_metric_name IN VARCHAR2,
p_current_stage in varchar2,
p_action in varchar2,
p_pid number,
P_OBJECT_ID in varchar2
-p_emai_master on p_email_type_table
);
PROCEDURE get_email_details)
p_metric_name IN VARCHAR2,
p_current_stage in varchar2,
P_ACTION in varchar2,
p_email_type_table1 on email_type_table
) ;
END ms_gen_process_email;
----
create or replace
PACKAGE ms_gen_process_email BODY
as
procedure process_email_master)
p_metric_name IN VARCHAR2,
p_current_stage in varchar2,
p_action in varchar2,
p_pid number,
p_object_id in varchar2
)
as
Start
null;
EXCEPTION
WHILE OTHERS
then
null;
end process_email_master;
PROCEDURE get_email_details)
p_metric_name IN VARCHAR2,
p_current_stage IN VARCHAR2,
P_ACTION in varchar2,
p_email_type_table on email_type_table
)
as
BEGIN
Select the object, email_body, to_receipent, cc_receipent
bulk collect into p_email_type_table
of ms_gen_email_config_detail
WHERE email_key =)
SELECT email_key
OF ms_gen_email_config
WHERE metric_name = p_metric_name
AND action p_action =
and current_stage = p_current_stage
);
for me in p_email_type_table.first... loop of p_email_type_table. Last
dbms_output.put_line (p_email_type_table (i) reserve .under | p_email_type_table (i) .email_body: p_email_type_table (i) .to_receipent: p_email_type_table (i) .cc_receipent);
end loop;
EXCEPTION
WHILE OTHERS
THEN
NULL;
END get_email_details;
END ms_gen_process_email;
but I get this error message
Error (15,31): PLS-00201: identifier 'P_EMAIL_TYPE_TABLE' must be declared
Concerning
Dale
See below the test case and change your code. You can call the procedure in detail within a main as procedure below
CREATE or REPLACE PACKAGE test_pkg AS
TYPE rec_val IS RECORD (empno, emp.empno%TYPE,
Ename emp.ename%TYPE
);
TYPE nt_tabtest IS TABLE OF THE rec_val;
PROCEDURE get_email_id (p_type to nt_tabtest);
PROCEDURE get_email_master;
END;
/
CREATE or REPLACE PACKAGE test_pkg BODY
AS
PROCEDURE get_email_id (p_type ON nt_tabtest)
AS
BEGIN
SELECT EmpNo, ename COLLECT in BULK in p_type FROM emp;
END;
PROCEDURE get_email_master
AS
v_type nt_tabtest;
BEGIN
get_email_id (v_type);
BECAUSE me IN v_type. FIRST... v_type. LAST
LOOP
DBMS_OUTPUT. Put_line (v_type (i) .empno: v_type (i) .ename);
END LOOP;
END;
END;
/
Post edited by: 000000
Maybe you are looking for
-
Can I watch European movies (Format DVD = zone 2) on my MacBook Air SuperDrive USB?
-
Tecra M4, unkow Windows 7 device intel 82801 LPC Interface Controller FBM
Hello and Hello, My problem:I installed Win 7 on my Tecra M4.All Vista drivers. Everything good, the M4 works correct.And now, the device manager tells me something on an unknown device.Propertys tells me it's the Controller Interface LPC Intel 82801
-
Update Driver WLAN on Satellite Pro L500 (PSLS4E-00C00HIT)
I just read boar newsletter for upgrade wlesslan - 20091112152016.html Data di ultima changes 05/07/10 Tipo driver Lan Wireless If please sugget update or not?I have nothing problem wit wirless connected to Vodafone Statio right now...Thank you
-
My photo files disappeared before my eyes.
Windows & mcafee scans don't tell me no problems found. After that they disappeared, I had added a few more photos. I ran a defrag, now these files cannot be found or the other...
-
Smartphone blackBerry OS 4.5 Documents to Go update OTA 1.0050 fails
Yesterday, I upgraded to OS 4.5 and everything seems fine. I'm trying to get the update for Documents to Go version 1,0050 which will allow the feature Excel spreadsheets. I went to Data Viz and asked the update and a link has been sent to my curve