PtG SQL-Adapter using PLSQL Package
Hi,
I'm using a PLSQL Package instead of a single procedure to build a service.
If I call my personal error procedure after a no_data_found Exception, I get an Errormsg in the Webbrowser: oracle.panama.PanamaException: Expected 'EOF'.
Does anybody has some ideas?
Thanks.
Kind regards
Claus
Problem was that the exception occured in a subblock and the rest of the procedure was worked of after the exception handling. So I resolved two <SimpleResult> Blocks in one XML Page.
Sorry for stealing your time this time.
Thx.
Similar Messages
-
Archiving files generated by PL/SQL program using UTL_FILE package
Dear All,
We have on PL/SQL package that is generating some data files using UTL_FILE package in one specific directory.
I am working on concurrent program of type host(unix script) to move generated file to some archive folder.
Now the problem is owner of the files generated by PL/SQL is oracle and file permissions of the generated files are 644(Only read permission for group and others).
Concurrent program is using an another os user applmgr to execute the script attached with concurrent program.
Because applmgr is not having write permission on the files, hence mv command is failing.
Please suggest me how to resolve this issue.
Regards
Devender YadavHi;
I just think that, you can create one sh which is chancing permission of related path owner for applmgr user and put it on crontab and it can run every 1 min.
Regard
Helios -
Mail Adapter Use Mail Package, Mail Body and Attachment
Hello
Have some body a idea, how I can configure the mail adapter with use mail package, that I have in the mail a attachment with content from the messages and a mail body with also text from the message.
Thanks for your reply.
Regards Tom
The different Weblog , I have check:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-addressHi Thomas,
If you are configuring your Mail adapter as reciever then refer
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
your sender (say file) should have some message like this
<i>
<ml:Mail xmlns:ml=http://sap.com/xi/XI/Mail/30>
<Subject>Important</Subject>
<From>[email protected]</From>
<To>[email protected]</To>
<X_Mailer>Outlook Express </X_Mailer>
<Content>
This is the content.
</Content>
</ml:Mail></i>
And for Sender Mail Adpater
http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
Hope this will be helpful
Regards
Suraj -
To automate the SQL scripts using PLSQL Code
Hi All,
I have 20 database server (11.2.0.3) hosted on unix and Windows platforms.
Every day I have to kill inactive sessions from all the these 20 database servers. So I have made a below script::
connect sys/&&sys_password@&&tns_database_name as sysdba
SPOOL E:\DELETE_INACTIVE_SESSIONS.SQL
set PAGESIZE 1000
set LIN 5000
SET ECHO OFF;
SET FEEDBACK OFF;
SET HEADING OFF;
select 'alter system kill session '||'`'||SID||','||SERIAL#||'`'||' immediate;' from v$session where status='INACTIVE' and username in ('OSS_DICTIONARY','ADMINISTRATOR');
SPOOL OFF;
@@E:\DELETE_INACTIVE_SESSIONS.SQL
Is there any way so that this execution of script can be automated in PLSQL code for 20 servers so and that code could be put in batch file for execution(i.e. can be execute through batch file from my windows laptop).
ThanksShrma wrote:
Is there no way to handle the sql scripts in PLSQL code?
Well, remember that PL/SQL is executed on a specific server by a certain user so you are already connected when executing a PL/SQL code.
You could actually use a SQL Plus script to connect to different servers using connect and run your script.
i.e.:
SQL> connect sys/pwd_server1@db_server1
SQL> @killinactive.sql
SQL> connect sys/pwd_server2@db_server2
SQL> @killinactive.sql
But it does not make so much difference with my previous solution.
Please explain exactly what you would like to do.
Regards.
Al -
Attaching documents using plsql package FND_WEBATTACH
I'm trying to attach a file from standard package FND_WEBATTCH to the Customer screen,
can any one help me how to attach a file using plsql procedure??
I could able to do the same from application but when I'm trying to attach a file using Add_Attachment procedure in FND_WEBATTCH package it displays my record in applications but when I click on view document button . I'm getting error
Its very urgent
I'll appreciate if someone will get back to me as soon as possible
Thanks in advanceHi
Please verify with the BASIS Person in your team to Verify whether the authorization object is correctly defined in the system.
<b>The authorization object to check here is ->
S_SRMGS_DC</b> This refers to Records Management: Authorization for Documents.
Here is the documentation of the this authorization object.
Definition
This authorization object refers to documents (as collections of versions and variants). The term document covers documents, records, record models, file plans, and notes.
Defined fields
ACTVT
Entries in this field restrict the authorization to particular activities. Enter the activity numbers of the activities that are to be allowed.
Notes:
Authorization for the activity Create is only effective if you assign the same authorization for versions, variants, and attribute values.
Authorization for the activity Delete is only effective if you assign the same authorization for versions and variants (do not assign delete authorization for attribute values).
Authorizations for the activities Search and Transport refer to the document with all its associated versions and variants.
Authorizations for the activities Close Consolid. Unit Processing and Open Consolid. Grp Processing refer to the document with all its associated versions and variants.
SPS_ID
Entries in this field restrict authorization to a particular element type. Enter an element type ID.
SRM_MODEL
Entries in this field restrict the authorization to records of a particular record model. Enter the unique ID of a record model.
DOCUMENTID
Entries in this field restrict the authorization to a particular element. Enter the unique document ID.
Hope this will help.
Please reward suitable points.
Regards
- Atul -
Attaching documents using plsql package FND_WEBATTCH
I'm trying to attach a file from standard package FND_WEBATTCH to the Customer screen,
can any one help me how to attach a file using plsql procedure??
I could able to do the same from application but when I'm trying to attach a file using Add_Attachment procedure in FND_WEBATTCH package it displays my record in applications but when I click on view document button . I'm getting error
Its very urgent
I'll appreciate if someone will get back to me as soon as possible
Thanks in advancePl post details of OS, database and EBS versions. Pl enable trace before running the FND_WEBATTACH process to determine why it takes so long
HTH
Srini -
I want to use Plsql packages for insert/update/delete in Jdeveloper Jsp forms . Can anyone help me regarding this . Thanks in Advance
Thanks
N.NagarajanOr you could create an EntityObject based on a view, and have your Pl/SQL package called by "instead of" triggers on this view. This way, you keep a consistent interface between various applications (for instance, a BC4J application and something built with PHP).
-
Error while invoking webservice using UTL_HTTP package
Hi All,
I am invoking a webservice (SOAP Request) from a PL/SQL block using UTL_HTTP package.
I am able to send the complete request and am getting the required instance on the BPEL Console, but the process is errorring out while getting response back.
and the PL/SQL Block is ending in error mentioned below:
ERROR at line 1:
ORA-29266: end-of-body reached
ORA-06512: at "SYS.UTL_HTTP", line 1321
ORA-06512: at "APPS.CSM_BPEL_TEST_PKG", line 34
ORA-06512: at line 1
Can anyone let me know what is the cause of this.
Thanks in advanceMy guess would be that your request is not properly constructed,
29266, 00000, "end-of-body reached"
// *Cause: The end of the HTTP response body was reached.
// *Action: If the end of the HTTP response is reached prematurely, check if
// the HTTP response terminates prematurely. Otherwise, end the
// HTTP response.John -
Hi All,
I am getting the below mentioned error in the SQL adapter used in ALL.EXCEPTIONS send port in Microsoft.Practices.ESB application.
The adapter "SQL" raised an error message. Details "[DBNETLIB][ConnectionRead (WrapperRead()).]General network error. Check your network documentation."
I am unable to comprehend as what this error implies. Please provide your inputs and help in solving this issue.
Thank You.
Regards,
Mandar DharmadhikariI found this KB article.
http://support2.microsoft.com/default.aspx?scid=kb;en-us;229564&Product=sql2k
I hope it helps.
Rachit -
SQL types over PLSQL types while using Oracle Applications adapter in BPEL
Use SQL types over PL/SQL types while using Oracle Applications adapter
in BPEL/ ESB
This document will be focusing on Oracle Applications adapter. However Database adapter is much like OA adapter (even OA adapter uses DB Adapter), so the readers who are interested to explore DB adapters, can relate things with this document and go further as well.
Some Guidelines for writing PL/SQL APIs for OA Adapter
As we know when we create a partner link from the OA adapter wizard it sometimes writes some wrapper script supportive to the OA Adapter WSDL which contains below
* Object type for PL/SQL RECORD
* Nested table of the given type for PL/SQL TABLE. For example, the nested table of NUMBER.
* INTEGER substituted for PL/SQL BOOLEAN
* Wrapper Script for converting above three set of data types . (PLSQL to SQL and SQL to PLSQL conversion functions)
In runtime this wrapper script for converting PL/SQL to SQL and SQL to PL/SQL is an extra overhead.
So the first advice would be to avoid the use of the below as parameters of PLSQL API being called by OA Adapter.
* PL/SQL RECORD
* PL/SQL TABLE. For example, the nested table of NUMBER.
* PL/SQL BOOLEAN
In other way we can say we should try to use only SQL data types in arguments if we are planning to call any PL/SQL API from the OA Adapter.
If the requirement is to use a table or record uses the Object type. In place of BOOLEAN better to use VARCHAR or INTEGER what ever fulfills your requirement. Following this guideline we can reduce a huge number of Line of codes to be run each time the adapter being called.
Generally, Oracle E-Biz standard APIs use PL/SQL record types and table types so when there is a requirement to call these API’s from OA Adapter (this is a common requirement in development), and if we directly browse the API in OA Adapter Configuration Wizard and create the partner link, again a huge number of code is written by the wizard in the wrapper script (a number of extra mapping of fields which are not being used in the interface).
In this case better would be to create an Object type with only the required fields which are being used in that call and use them as parameters for the PLSQL API.Find the complete document
http://www.4shared.com/file/167171882/29525116/Use_SQL_types_over_PLSQL_types.html -
Publish PLSQL Package as webservice using Jdeveloper
Hi All,
I have developed an PLSQL package that select records based on search criteria. I want to publish this as an web service. I have published another PLSQL package that inserts to a table as a web service, which is working fine(Using Jdeveloper and SOA Suite(Application Server)). I am getting error as "cannot create target" when i published as a web service for select.
Procedure has 4 IN Parameters and 4 OUT Parameters in which one of the OUT Parameter is of table type. When i click invoke button the error details are as follows
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>env:Server</faultcode>
<faultstring>Error creating target: hr.Select_Employee_Records_V1User</faultstring>
<faultactor/>
</env:Fault>
</env:Body>
</env:Envelope>
Please suggest me how to proceed further
Thanks and Regards,
Mahesh
Edited by: MAH on Nov 2, 2008 10:33 PMHave you tried using the DB adapter for stored procedures? Is your "record" type a PL/SQL record type? Or is it a SQL object type? If it's the former then the adapter will automatically generate corresponding object types. A package is also generated that contains a wrapper API for your original procedure. The package also includes conversions to convert between the record and the object types. If it's the latter, then the adapter does nothing special as it can handle object types. Once deployed, your API will be executed with an included instance XML for the inbound parameters. XML will be generated containing values of outbound parameters. In your case, if the data type is a PL/SQL record, the problem may be that record is not a supported data type.
-
Help Required :Excel Upload Into Oracle Table Using PLSQL Procedure/Package
Please Help , Urgent Help Needed.
Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package.
Case's are :
1. Excel File is On Users/ Client PC.
2. Application is on Remote Server(Oracle Forms D2k).
3. User Is Using Application Using Terminal Server LogIn.
4. So If User Will Use to GET_FILE_NAME() function of D2K to Get Excel File , D2k Will Try to pick File from That Remote Server(Bcs User Logind from Terminal Server Option).
5. Cannot Use Util_File Package Or Oracle Directory to Place That File on Server.
6. we are Using Oracle 8.7
So Need Some PL/SQL Package or Fuction/ Procedure to Upload Excel file on User's Pc to Oracle Table.
Please Guide me wd some Code. or with Some Pl/SQL Package, or With SOme Hint. Or any Link ....
Jus help to Sort This Issue ........
you can also write me on :
[email protected], [email protected]I also Tried to Use This
But How can i Use SQLLDR Command In Stored Procedure.
Well IN SQL*PlUS it is successfull but in Stored Procedure /Package ,PL/SQL does not recognise the OS commands.
So now my Question How can I recognise the SQLLDR Commnad in Stored Procedure. -
Jdbc-odbc java error using SQL adapter in o9iASWireless
I've used the SQL adapter in the previous releases of wireless without any problem. Most of the time I would use it for all the wireless PLSQL applications in the Oracle database and it works very OK.
I have also used it to connect with a SQLserver database to try out some queries. In this case I would use the standard JDBC/ODBC bridge driver from SUN.
In release 2.0 I can't connect with this SQL Server database anymore.
I've added a system DSN to the ODBC configuration of the Windows 2000 server. This will give access to a internal SQL server database via TCP. A password username is required.
When I try to add a SQLservice in the service designer using the SQL adapter I will use the following parameters:
JDBC connect string: JDBC:ODBC:<DSNNAME>
JDBC driver: sun.jdbc.odbc.JdbcOdbcDriver
un: <username>
pw: password>
Query (without ';'): select count(*) from <tablename>
Minimum number of Database connections in the pool 5
Maximum number of Database connections in the pool 100
Increment size for the connection pool 1
Idle Timeout (in minutes) 30
Now I get the following error:
2/8/03 2:27:59 PM ERROR : [ApplicationServerThread] webtool.common.PtgErrorLog.outputError(PtgErrorLog.java:28)
oracle.cabo.servlet.event.PageEventException: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection,page=Page[name=designer/MasterServiceInitCreate],event=PageEvent[name=goto,source=wizardNav,fromPage=designer/MasterServiceInitCreate,JDBC_DRIVER=sun.jdbc.odbc.JdbcOdbcDriver,JDBC_CONNECT_STRING=jdbc:odbc:<DSNNAME>,CONNPOOL_INC=1,CONNPOOL_MIN=5,CONNPOOL_IDLETIMEOUT=30,USERNAME=<USERNAME>,value=4,SQLTYPE=QUERY,CONNPOOL_MAX=100,STATEMENT=select count(*) from bedrijven,PASSWORD=<PASSWORD>],rootCause=oracle.panama.adapter.AdapterException: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection
at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source)
at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
at oracle.panama.webtool.common.PtgPageBroker.handleRequest(PtgPageBroker.java:152)
at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
at oracle.cabo.servlet.BajaServlet.doGet(Unknown Source)
at oracle.cabo.servlet.BajaServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:633)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:235)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:695)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:248)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
I got the error 'java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection' in my log and tried to find out the meaning of this error at java.sun.com. It's stil not clear what exactly causes the error but it looks like a data formatting error.
java.lang.ClassCastException
(Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. For example, the following code generates a ClassCastException:
Object x = new Integer(0);
System.out.println((String)x); )
Is it just a data formatting problem or has it something to do with the JDBC/ODBC driver version of the JDK from the appliction server release 2.0.
I remember that I was always able to connect to the SQL server database with previous releases also with a count query. I've also used JDK 1.3.1 with o9iAS release 1.0.2.1.
Any suggestions for a solution?
Thanks in advance for your help.try this link:
http://community.eapps.com/showthread.php?p=8 -
Using XML Publisher with plsql package data source?
Hi,
I have a html gantt chart which i create using a plsql package and the use of the htp.p procedure for output to a webpage.
I want to be able to print this to PDF and was hoping the XML Publisher may be an option for doing this. The datasource for this however seems to be a sql query or XML feed.
Can anyone provide any suggestions on this??With a Pipelined Table Function you can use a function in your FROM-clause (so you'll have a normal SELECT, but in the background the data comes from a PL/SQL-function):
SELECT * FROM TABLE( <function_name> )
Look here:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:30404463030437
http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2335 -
Dynamic attachment name with receiver mail adapter and use mail package
We need to send mapped XML payload as attachment (with dynamic name) to a recepient (recepient email id is part of input xml payload, but not part of the mapped XML payload).
I could probably do this using the adapter module (as per the following link),
http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
I would like to explore if this would be feasible using Mail package and XI payload.I already have a Java mapping that is converting the input XML to required Output format. If I am using Mail package (XI Payload), how do I go about sending this Output XML from java mapping as attachment to email id available in the input payload?Hi,
1) XML payload as attachment (with dynamic name)
2) recipient (recipient email id is part of input xml payload, but not part of the mapped XML payload)
These two is possible by using Mail Package. You have a standard xsd for mail package which you can download from the SAP Note 748024.
The xml created in you java mapping which will be your attachment should be put into the <content> tag of the mail package xml structure. and the file name can be set in the <Content_Type> tag.
<?xml version="1.0"; encoding="UTF-8"?>
<p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
<Subject>My Invoice</Subject>
<From>from email address<;/From>
<To>to email address</To>
<Content_Type>text/plain;name="MyFile.csv";</Content_Type> --> file name here
<Content>123;A49;aaa</Content> -> attachment xml here
</p2:Mail>
And you have to select MailPackage in the receiver mail adapter.
Regards,
Aravind
Maybe you are looking for
-
HP Envy m6 Keyboard & TrackPad multitasking issues
I'm running on an HP Envy m6 Laptop, with 64 Bit Windows 8 Standard edition, straight out of Best Buy. I've had this computer for nearly a year now. I honestly love everything about it, from the backlit keyboard to the i5 processor. But there's one t
-
I have updated my Laptop, iPhone 5 and iPadto the new ios 7, however since this was installed on all these devices, when i Purchase mucic on my laptop and create a playlist, the Itunes match is not showing the new music purchases or new playlists on
-
Find and Replace simple action crashes Illustrator CC
I am now trying Creative Cloud and I came with this bug. When I use a simple action to find and replace a text string in my file it will crash the Illustrator. My actions is pretty simple: Find > "aa" (I do have to check all the options to work) Find
-
Recommendation for color laser printer
What is a decent color laser printer to use with Airport Express? I don't print a lot (perhaps a couple of hundred pages per month), so having separate toner cartridge for each CMYK color isn't necessary.
-
Uploading multiple EXCEL Worksheets to SAP
hello everyone. i am new to SAP, and i wanted to create a program that would read multiple excel worksheets and appened the values of the file to an internal table. can somebody help me with this? here's what i wanted to do exactly: excel tab: worksh