Looking for Sendmail PL/SQL Package
Hi All,
I am looking for a way to call Sendmail directly from a PL/SQL
Procedure. Can someone point me in a direction where I can find
some PL/SQL or Pro*C Code that could do this? Thanks,
Scott Walton
null
Scott Walton (guest) wrote:
: Hi All,
: I am looking for a way to call Sendmail directly from a PL/SQL
: Procedure. Can someone point me in a direction where I can
find
: some PL/SQL or Pro*C Code that could do this? Thanks,
: Scott Walton
PL/SQL does not have a package that allows a PL/SQL program to
make a System call to execute a command on the OS. It can be
done in Pro*C, however, and Oracle has a couple of app notes
that talk about this. You create a Pro*C program that runs -
sort of like a daemon - that waits for commands sent from a
PL/SQL program via DBMS_PIPES. One is a Bulletin called "How to
Generate E-Mail within PL/SQL Routines", ID= "<Note:66347.1>".
The other is from the Problem Repository called "DYNAMIC SQL AND
SYSTEM COMMANDS USING DBMS_PIPE", Problem ID= 1005666.6
Hope that helps.
null
Similar Messages
-
Looking for good pl/sql case studies/hands on exercises
Hi there,
I am new to plsql. Looking for some good pl/sql case studies/hands on exercises/small prototype project etc to learn the basic nitty-gritty.
Can anybody please help?
Many Thanks,
Avishekthis page http://itcareershift.com/blog1/2010/11/15/plsql-exercises/ contains different types of sql statements used inside pl/sql..when you say case studies do you mean examples for each and every concept of pl/sql starting from stored procedures , packages , functions, triggers , collections etc?
-
Look for histroy of sql statement executed in database
is there a way to look for histroy or list of sql statement executed in database.?
similar to history command in linux or bash shell.The newer <a href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2131.htm">v$sqlstats</a> (10g) is recommended over v$sql as (according to the documentation) it's "faster, more scalable, and has a greater data retention (the statistics may still appear in this view, even after the cursor has been aged out of the shared pool)", although it's missing a couple of the columns v$sql has.
The history version (if you are licenced for AWR, which is part of the extra-cost Diagnostics Pack - you may not be licenced to use it even if the dictionary views are installed) is DBA_HIST_SQLSTAT. -
Looking for some help with package design (box)
I'm pretty good with Photoshop, but Illustrator is fairly new to me. I'm helping a friend do his product packages and I already have all of the graphics, I'm just having trouble figuring out how to put it all together in Illustrator.
We already have the box dimensions and just need to get a vector file that the factory can use to print. My main question is how do I create the actual layout of the box to work on? In the pdf that was sent to us I can pull out the box, but it just sits on a white background.
My next question is how do I fill the layout with a pattern. I have a carbon fiber look pattern in Photoshop, but I'm having trouble figuring out how to use it to fill in Illustrator.
Thanks ahead of time for any help.Jem,
Pardon me if I sound rude by suggesting that before you launch into an expensive printing job (which could result in disastrous consequences if you don't do it right) that you actually learn how to use the program first. You may also want to learn something about the offset printing process and how to prepare print jobs.
Even many Illustrator novices know that there is no such thing as a background in Illustrator, in the sense that there is in Photoshop. You will need to PLACE your Photoshop background as a high resolution CMYK tiff in the provided template. That's the answer to your second question. I don't really understand your first question. Maybe someone else will. Are you simply asking, "where do I begin?" If so, then you REALLY REALLY need to read a book on how to use Illustrator. The Adobe Illustrator Classroom in a Book might be the place to start.
"I'm pretty good with CPR. I'm helping a friend do his vasectomy and I already have all the equipment (scalpels, thread, etc.) I'm just having trouble figuring out where to cut." -
What do I need to download to be able to install sql loader for 10G database? 10.2.0.4 to be exact. needed for Window server 2003
user597971 wrote:
What do I need to download to be able to install sql loader for 10G database? 10.2.0.4 to be exact. needed for Window server 2003Hi,
SQLLDR is already part of the Oracle Database 10g Release 2 Utilities
all you have to do is
run -----> cmd
cd ORACLE_HOME\bin\sqlldr help=y
see this link
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_control_file.htm#sthref815 -
Looking for a complete theme package
Hello
I use openbox standalone with gtk 3.0 applications most, only chromium who is in gtk 2.0.
I wonder if anyone has any tip for a complete package of matching, gtk 2.0 and 3.0 theme, icon theme, openbox theme, and wallpaper?
My wishlist(not a requirement):
-Simple theme, no glossy stuff.
-A very complete icon theme, which covers most icons that applications use.I don't know where you can find it, but hey, do you like this one too?
I made it with GIMP.
And maybe you like this one too, I made for Arch fans
Last edited by qinohe (2013-05-27 15:34:07) -
PL/SQL Package importing from Flat Data files
Looking for sample PL/SQL package in importing data from flat data files into Oracle. Possible using the UTL_FILE.FOPEN and UTL_FILE.GET_LINE functions ?
SQL Loader is tailor-made for importing data from flat-files.
There's way less code to write and it is usually faster than coded approach so this may be better solution for you, depending on details of your situation.
See docs: http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/server.817/a76955/ch03.htm#2436 -
How to generate WebServices for PL/SQL Packages
I have the following issue trying to generate WS for a selected set of operations within a PL/SQL package
If I use the option -sql PKG_TEST then I am getting all operations within a package.
I just want to expose a certain number of procedures ( e.g. PROC1 and PROC2 )
It works only if I specify
-sql PKG_TEST(PROC1)
when I use -sql PKG_TEST(PROC1, PROC2) it gives me errors.
I have Oracle JDeveloper (10.1.3.2) (Build 4066) .
I used wsa with an plsqlAssemble option
java -jar wsa.jar -plsqlAssemble
-appName myApp
-packageName myPckg
-sql PKG_TEST(PROC1)
-dataSource jdbc/ds
-dbConnection jdbc:oracle:thin:@zzzz:1521:mydb -dbUser user/passw
-style rpc
-use literal
Thanks,
Michael HitrikEric,
Thanks a lot for your help.
I was able to follow all of your recommendations
I was able to produce the single ear file for multiple PL/SQL packages .
Now I have the last step ( I hope :-) - WS-SECURITY
What is your recomendation for Security - specifically for WebServices for PL/SQL Packages ?
I would like to do the following:
CLIENT CODE:
* Create a XML element with user name, password, &
* datasource as child elements.
* Element will look like this:
* <credetials>
* <username>scott</username>
* <password>tiger</password>
* <datasource>jdbc/OracleCoreDS</datasource>
* </credentials>
Document doc = new XMLDocument();
Element elAdd = doc.createElement( "credentials");
Element elA = doc.createElement( "username");
Element elB = doc.createElement("password");
Element elC = doc.createElement("datasource");
elA.appendChild(doc.createTextNode("scott"));
elB.appendChild(doc.createTextNode("tiger"));
elC.appendChild(doc.createTextNode("jdbc/OracleCoreDS"));;
elAdd.appendChild(elA);
elAdd.appendChild(elB);
elAdd.appendChild(elC);
doc.appendChild(elAdd);
Element e = doc.getDocumentElement();
// Create an intance of the proxy
EmployeeProxy proxy = new EmployeeProxy();
// Create a Header objecy
Vector v = new Vector();
v.add (e);
Header hdr = new Header();
hdr.setHeaderEntries(v);
// Set the Header
proxy._setSOAPRequestHeaders(hdr);
SERVER CODE:
public void processHeaders(Header header)
throws java.io.IOException,
oracle.xml.parser.v2.XSLException
// Get all the Elements
Vector entries = header.getHeaderEntries();
Element e = (Element) entries.firstElement();
System.out.println("Element received from SOAP header is: " );
((XMLElement)e).print(System.out);
// Get independent nodes and retrieve node values.
Node userNode;
userNode = ((XMLNode)e).selectSingleNode("username");
userName = ((XMLElement)userNode).getText();
Node passwordNode;
passwordNode = ((XMLNode)e).selectSingleNode("password");
password = ((XMLElement)passwordNode).getText();
Node dsNode;
dsNode = ((XMLNode)e).selectSingleNode("datasource");
datasourceName = ((XMLElement)dsNode).getText();
System.out.println("User name is: " + userName);
System.out.println("Password is: " + password);
System.out.println("Datasource is: " + datasourceName);
How can this be done with the generated code using wsa tool ?
Any other suggestions ?
Thanks,
Michael -
Looking for SQL*Loader sample file
Hi all,
I'm looking for a sample SQL*Loader file that I could use to populate the Bank Statement Interface in Cash Management (Receivables Lockbox Receipts) - specifically CE_STATEMENT_HEADERS_INT_ALL and CE_STATEMENT_LINES_INTERFACE.
I'm trying to put together an interface from Bank of America's Lockbox into our Oracle Receivables system (11.0.3), and don't have access to anything from which to start from.
Thanks in Advance,
Camcheck it
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch10.htm#1656
kuljeet pal singh -
How to get changes of a custom PL/SQL package updated in ISG?
Hi All,
I need some help on how to change a custom PL/SQL package in ISG integration repository:
I already uploaded my custom PL/SQL package to the integration repositoy some time ago. Now I have made some changes to PL/SQL record/table types defined in the package (added some fields and removed some others). These changed record/table types are used by a procedure I already uploaded to the integration repository. When regenerating the WSDL for my PL/SQL package in integration repository I get an error that the wrapper for respective procedure can't be found. When checking up the SQL types that were automatically generated (by JPublisher) for corresponding PL/SQL types, these generated SQL types are invalid...
So it seems that in one case JPublisher generated an empty SQL type (with no attributes). In another case JPublisher generated the SQL type with old attribute list, so it didn't adopt the changes of corresponding PL/SQL type in the package...
Can anybody tell me how to get the changes of a cusotm PL/SQL package updated in ISG? Or is there any possibility to first remove a whole PL/SQL package from the ISG integration repository (and getting rid of all old automatically generated SQL types), so that I can newly upload my PL/SQL package afterwards?
Thanks
Konrad
Edited by: Konrad on 24.10.2011 10:51Thanks Daniel, for your reply...
(-> for info: I'm a colleague of Konrad...)
Yes, we used a higher version number - and the upload of iLDT file works fine...
But, the problem occured when generating the WSDL...
However, I think we have found an approach of how to get the changes of a custom PL/SQL package updated correctly in ISG:
1. Save a copy of PL/SQL package and then delete it in the database
2. Regenerate the WSDL for PL/SQL package in ISG (seems that all atutomatically generated JPub wrappers and SQL types are also deleted)
3. Restart all processes
4. Create the changed version of PL/SQL package in the database again
5. upload of iLDT
6. Regenerate the WSDL for PL/SQL package in ISG
Best Regards
Carolin -
Error in recompiling a PL/SQL package
Hi,
When I updated my function for the PL/SQL package, I get this error. Any help would be great. Thanks.
create or replace package packagename as
ERROR at line 1:
ORA-00955: name is already used by an existing objectHi,
You can't have a stand-alone function and a package with the same name.
"DROP" the function, then "CREATE OR REPLACE" the package.
CREATE OR REPLACE PACKAGE packagename ..." is equivalent to
DROP PACKAGE packagename, followed by
CREATE PACKAGE packagename.
The only difference is that
DROP PACKAGE packagename will give you an error message when a package called packagename doesn't already exist, and
CREATE OR REPLACE PACKAGE packagename won't.
Neither
DROP PACKAGE packagename nor
CREATE OR REPLACE PACKAGE packagename will drop any other kind of object that happens to be named packagename, such as a table, view, user, procedure, or, in your case, function. -
JS Validation for Drop down List is not working in Oracle PL/SQL Package
Hi All,
I am facing an issue with JavaScript validation done in Oracle PL SQL package.
System Requirement:
There is one screen which contains two fields viz. FLD 1 & FLD 2 and one 'Submit' button.
FLD 1 and FLD 2 fields are drop down list boxes.These are mandatory fields.
The screen is developed in Oracle Mod PL SQL package.
The html coding and java scripting are embedded in the respective Oracle PL SQL Package procedure which generates this screen,takes the input values provided by user,does the
field validations and submits the form.
Issue:
The javascript validation for FLD 2 dropdown is working successfully.
When the user leaves this field as blank,the embedded javascript pops up an error message 'Selection of FLD 2 is manadatory before submitting the form!'.
As FLD 1 is also a mandatory field,the javascripting validation should pop up the similar error message 'Selection of FLD 1 is manadatory before submitting the form!'.
But,this first field validation is not at all working.
The system allows to submit the form even if the 'FLD 1' is left blank.
The javascript code sysntax for validation of FLD 1 & FLD 2 drop down list boxes as follows:
function validate_form_fields()
if (document.forms[0].p_fld_1.selectedIndex == 0))) || (document.forms
[0].p_fld_1.selectedIndex < 1 )
alert("Selection of FLD 1 is manadatory before submitting the form!!!");
return false;
else if (document.forms[0].p_fld_2.selectedIndex == 0))) || (document.forms
[0].p_fld_2.selectedIndex < 1 )
alert("Selection of FLD 2 is manadatory before submitting the form!!!");
return false;
return true;
I am viewing the screen from the web browser IE version 8.0.
Your timely help will really be appreciated.
Regards & Thanking in advance,
AlkaHi,
1. Your problem is actually related to JavaScript, not SQL and PL/SQL. So, this is the wrong forum to post. The closest to JS is the Application Express forum {forum:id=137}. Clearly state that it is not an Apex issue and that you are looking for JS help.
2. Your JS code, the way you has posted it, is syntactically incorrect, so if you post on Apex forum put the correct code and in tags as described in the FAQ
{quote}
function validate_form_fields()
if (document.forms[0].p_fld_1.selectedIndex == 0))) || (document.forms
[0].p_fld_1.selectedIndex < 1 )
alert("Selection of FLD 1 is manadatory before submitting the form!!!");
return false;
else if (document.forms[0].p_fld_2.selectedIndex == 0))) || (document.forms
[0].p_fld_2.selectedIndex < 1 )
alert("Selection of FLD 2 is manadatory before submitting the form!!!");
return false;
return true;
{quote}
Regards, -
Incorrect wrapper package created for a PL/SQL web service
Hi there,
JDeveloper 11.1.1.3.0
Oracle DB Enterprise Edition Release 11.1.0.7.0
I created a web service based on a PL/SQL package. For some functions in that package (the ones with IN OUT parameters it seems) JDev created a wrapper package. However that wrapper package is wrong and it fails to compile and consequently the web service calls fail.
The generated wrapper package looks like this:
CREATE OR REPLACE PACKAGE BODY CustFeedbackWS_plsql_wrapper IS
FUNCTION "CFB_PKG"$FN_SET_CATEGORISATI (P_TAB IN OUT CFB_CATEGORISATION_TAB
) RETURN INTEGER IS
RETURN_ INTEGER;
BEGIN
RETURN_ := SYS.SQLJUTL.BOOL2INT("CFB_PKG".FN_SET_CATEGORISATIONS_IW(P_TAB
...As you can guess, CFB_PKG is the original package name. However, because of the double quotes added around it, this code fails to compile with the error:
PLS-00181: unsupported preprocessor directive '$FN_SET_CATEGORISATI'I have two questions regarding this:
1 - Why wrapper functions were created for some functions (8 out of more than 30) and not for others, is it because they have IN OUT parameters?
2 - Any suggestions on how to fix this problem?
Thanks!
LuisCurrently, PL/SQL webservice does not map SQL exceptions into webservice faults. You may be able to see the SQL error in the server fault message though.
-
Hi - I am looking for the Adobe Illustrator 2014 1.2 (or .0.2) bugfix update for Mac - and it is not visible in the Adobe Creative Cloud Packager (Mac version). The only update visible is Illustrator CC 2014.1 - which is what introduced the bugs.
The only thing that I can think of that might be causing the issues that I have a Mac Mini on Mavericks.
DaveHi
I have discovered that my question above is a non-question. A user triggered by looking at the below article about Illustrator 2014 cc 17.0.2
http://helpx.adobe.com/illustrator/release-note/illustrator-17-0-2-release-notes.html
He had recently upgraded from wht we now know is 18.0 to 18.1 which is the latest version. He read the above artic
le and supposed that it was a bug fix release for his version - because the v17 ov18 number is not often displayed. It is usually just 2014 CC.
I have asked him to post a bug report about Adobe Illustrator CC 2014.1
Dave -
How to look for a certain value in a database using sql
Hello everyone. How do you do this in SQL? Or, is there a way to look for a certain value in a database? What I'm trying to do is this:
I want to look for the exact value "abcdefg" in the database so that oracle will return me details on the following that contains the said value:
1. the name of the table(s)
2. the column/field name(s)
Note: "abcdefg" could exist in different tables with different column names with different data types.
Any help is much appreciated. Thanks.
UPDATE: What about if I just want to check those fields/columns with string data types?
Message was edited by:
dongzky
Message was edited by:
dongzkyJust a teeny tweek
DECLARE
l_dummy VARCHAR2 (4000);
BEGIN
FOR rec IN (SELECT table_name
FROM all_tables)
LOOP
FOR rec2 IN (SELECT column_name
FROM user_tab_cols
WHERE table_name = rec.table_name)
LOOP
BEGIN
EXECUTE IMMEDIATE 'select 1 from '
|| rec.table_name
|| ' where to_char('
|| rec2.column_name
|| ') = ''CAS'' and rownum = 1'
INTO l_dummy;
DBMS_OUTPUT.PUT_LINE (rec.table_name || ' ' || rec2.column_name);
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
END;
END LOOP;
END LOOP;
END;
Maybe you are looking for
-
FTP sender adapter archives empty files
Hi. I have a strange problem with the ftp sender adapter. I receive my file without problems, and the scenario works as it should. The problem is with the archiving of my processed file. It writes the file fine to the path specified, but it is empty
-
Is Mobi server needed for using SBO Explorer on iPhone/iPad
Hello,all. We started BOE XI R3.1, SBO explorer 3.2, SBO Mobile 3.1 all of it at win2003 server. SBO Explorer Works via browser at PC, but does't work at iPhone/iPad SBO Exporer app. SBO Mobile seems to be stated. Which server should set to get it? N
-
When I am running RHINTE00, 10,20 I am getting many error like below screenshot. Please suggest what to do Objects not in OM Organizational Unit - Organizational Unit Berlin - Organizational Unit Branch Humburg Could you please let me know about this
-
Can someone help me? For the last week i'm getting ''add virus'' everytime i open new window in safari. It looks like this on the bottom of the screen and it is very annoying How can i get rid of it? i can close it, but it's back when i refresh pag
-
I upgraded to 10.5.1 . When I try to play songs purchased from I tunes it says not authorized for this computer. I go thought the steps to authorize and it says the song is authorized for this computer. However when I try to play it it comes up not a