How to test this package that has defined the user as input types
HelloI have this part of my package where I try to put insert/update / delete based on the value of the attribute "action":
I need to test this package of sql * more command line, could someone help me write a command run to test this package.
CREATE or REPLACE PACKAGE pkg_test_process BODY
AS
PROCEDURE iud_issue_col
(pv_issue_version IN issue_version_t
)
AS
BEGIN
DECLARE
lv_im issue_version_t;
BEGIN
lv_im: = pv_issue_version;
lv_level: = 'ISSUE_VERSION ';
DECLARE
lv_imv issue_maint_t;
BEGIN
lv_imv: = lv_im.issue_maint;
lv_level: = 'ISSUE_MAINT ';
Dbms_output.put_line ('for the many round table')
IF lv_imv.action = 'I '.
THEN
INSERT
IN
test_process
(im_key_id
sec_cusip
issr_key_id
issuer_id_nm
im_orig_usr_id
im_orig_cre_tmstp
org_ref_id
delete_ind
add_usr_id
add_tmstmp
lock_level_num
)
VALUES
(lv_imv.im_key_id
lv_imv.sec_cusip
lv_issr_key_id
lv_issuer_id_nm
LC_USR_ID
LC_TMSTMP
' 111 '
"N" - deletion indicator
LC_USR_ID
LC_TMSTMP
lv_imv.lock_level_num
) ;
END;
END;
COMMIT WORK;
RETURN;
EXCEPTION
WHILE OTHERS THEN
ROLLBACK WORK;
RAISE_APPLICATION_ERROR (-20000, impossible to insert in ' | lv_level, TRUE);
END iud_issue_col;
While the type 'issue_version_t' is:
CREATE OR REPLACE TYPE ISSUE_MAINT_T
AS AN OBJECT
(
Number IM_KEY_ID
, SEC_CUSIP varchar2 (12)
, DELETE_IND varchar2 (1)
, ADD_USR_ID varchar2 (20)
ADD_TMSTMP timestamp
, UPD_USR_ID varchar2 (20)
UPD_TMSTMP timestamp
Number LOCK_LEVEL_NUM
, ACTION VARCHAR2 (1)
ISSUE_MAINT_VERSION ISSUE_MAINT_VERSION_T
ISSUE_MAINT_COMMENT_COL ISSUE_MAINT_COMMENT_COL_T
);
Any help would be greatly appreciated.
Hi Solsam,
something like that,
Declare
pv_issue_version issue_version_t := issue_version_t(ISSUE_MAINT_T( 'value' --IM_KEY_ID
, 'value' --SEC_CUSIP
, 'value' --DELETE_IND
, 'value' --ADD_USR_ID
, 'value' --ADD_TMSTMP
, 'value' --UPD_USR_ID
, 'value' --UPD_TMSTMP
, 'value' --LOCK_LEVEL_NUM
, 'value' --ACTION
, ISSUE_MAINT_VERSION_T( 'value'
, 'value'
, ...
)
, ISSUE_MAINT_COMMENT_COL_T( 'value'
, 'value'
, ...
)
);
Begin
pkg_test_process.iud_issue_col( pv_issue_version );
End;
/
Kind regards
Christian Balz
Tags: Database
Similar Questions
-
How to display this window that lists all the devices of storage connected to my PC?
How to display this window that lists all the devices of storage connected to my PC? It lists each device, how much space is used and how much is free? I sometimes open it by accident, but I can never find it when I'm looking for it.
original title: storage devicesBeginning
Control Panel
If you the small icons view do the following:
Administration tools
Computer management
Storage
Disk Managment
If you have the category view do the following:
System and security
Administration tools
Computer management
Storage
Disk management
-
I am a member of Adobe and I only got a demo version of the indsign try earlier. Now, I want to buy creative 275 KR. per month. How to buy this package?
(I don't have a serial number that the Web site asking...)
you buy here, pricing and membership creative cloud plans | Adobe Creative Cloud
and install you your subscription programs by installing the application of cc, Download Adobe Creative Cloud apps desktop | CC free trial Adobe
and then install your programs through the application of cc desktop subscription.
-
We have a new computer and I can't get my watch running from garmin for synchronization with mozilla. The error message I get is "address not was heard.
Firefox doesn't know how to open this address, because one of the following protocols (connectagent) is not associated with any program or is not allowed in this context.
You might need to install other software to open this address."
Help please
Hi grranchgirl, if you have an "Always enable" and "never activate?
I don't know if the terms 'modern' and 'classic' mean anything to you, but there is a thread on the Garmin forums that might be useful - it is very long and I didn't read it all.
-
I have an IMAC of mid-2011. Can I connect a Mac mini to this iMac 2011 and use this monitor that has a built in processor?
You should be able to, given the Mac Mini has the correct connections (in this case, a Thunderbolt connection).
Use your iMac as a display with the target - Apple Support Display Mode
-
original title: OOPS! Remove Solitaire games by mistake
My husband used a cleaning program that has removed the solitaire games that come with the software package of vista. Is it possible to recover?
Hi L-959,
Try to reinstall the game Solitaire to turn on or off Windows features.
-
I used the snap, but went too far with the mouse that has placed the window out of view on the desktop. How I suddenly back
Try clicking on the Chrome icon & press f11 to maximize the screen.
Kind regards
Nicholas Lee Fagan
-
Hey, who knows how to remove a package that I bought?
Hey, who knows how to remove a package that I bought?
Cancel your membership Adobe Creative Cloud
To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...
Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache. If he continues to not try to use a different browser. -
Hi help me make sure is it you please how to make my header that I defined in a template to be top of my web pages when I parade
Please follow the steps:
-Go to the Master Page
-Open the layers panel
-Add a new layer
-Do drag the content (header) back layer
If ' make sure that the new layer is the top layer in the layer panel.
Thank you
Sanjit
-
How to export a form that has the Asian language in to CSV file? Currently the CSV file shows [...] for the characters of Asian languages
If you export as XML instead, it should work because it uses UTF - 8.
-
I want to uninstall a toolbar that has been the result of the search for something specific
Hello
I want to uninstall a toolbar that has been the result of the search for printable piano music.
I uninstalled the stuff accompanying this research but I can't get rid of the toolbar. Can I just download an another toolbar as C.NET or what?I have a Dell dimension 4700 desktop, XP and I have ' yet to learn through this forum help and everyone.
Thank you
Gina Davis
Original title: how to uninstall toolbat Inbox
(IE unknown version)
Hello
Tools are what bar you referring? That's a browser or another program?
Method 1:
Run this fixit to remove it completely.http://support.Microsoft.com/mats/Program_Install_and_Uninstall/Method 2:
You can uninstall the toolbar by following the steps below:
a. open your Internet browser.
b. click on 'Tools' then 'Add-ons' in IE; Click on "Tools" and "Manage Add-ons."
c. find the add-on "Toolbar" in the list of available modules.
d. remove the add-on toolbar in Internet Explorer, select the toolbar and click "disable".
If you want to remove the toolbar, you can do this by uninstalling it in Add or remove programs. -
Mr President.
My servlet code does two things
1 see the report in JasperViewer
2. it download it in pdf in chrome.
How to modify this code it gives only the view in JasperViewr?
My code is
package esh.view; import esh.model.AppModuleImpl; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.HashMap; import java.util.Locale; import java.util.Map; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperExportManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.design.JasperDesign; import net.sf.jasperreports.engine.xml.JRXmlLoader; import net.sf.jasperreports.view.JasperViewer; import oracle.jbo.client.Configuration; @WebServlet(name = "MultiReportServletJasper", urlPatterns = { "/multireportservletjasper" }) public class MultiReportServletJasper extends HttpServlet { private static final String CONTENT_TYPE = "text/html; charset=UTF-8"; public void init(ServletConfig config) throws ServletException { super.init(config); } protected Connection getConnection() { PreparedStatement st = null; String amDef = "esh.model.AppModule"; String config = "AppModuleLocal"; AppModuleImpl am = (AppModuleImpl ) Configuration.createRootApplicationModule(amDef, config); st = am.getDBTransaction().createPreparedStatement("select 1 from dual", 0); Connection conn = null; try { conn = st.getConnection(); return conn; } catch (SQLException e) { } return null; } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String var0 = ""; String reportName = ""; try { reportName = request.getParameter("reportName"); } catch (Exception e) { e.printStackTrace(); } response.setContentType(CONTENT_TYPE); Map parameters = new HashMap(); parameters.put("format", "pdf"); parameters.put("WEBDIR", getServletContext().getRealPath("/")); parameters.put("REPORT_LOCALE", new Locale("ar")); Connection conn = null; InputStream is = null; try { conn = getConnection(); is = getServletContext().getResourceAsStream("/WEB-INF/reports/"+reportName+".jrxml"); response.setContentType("application/pdf"); response.addHeader("Content-Disposition", "attachment; filename="+reportName+".pdf"); JasperDesign jasperDesign = JRXmlLoader.load(is); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn); JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream()); JasperViewer.viewReport(jasperPrint,false); conn.close(); } catch (Exception e) { e.printStackTrace(); } finally { closeConnection(conn); try { if(is !=null){ is.close(); } } catch (Exception localException1) { } } } protected static void closeConnection(Connection conn) { try { if(conn !=null){ conn.close(); } } catch (Exception ex) { // System.out.println("Developer Msg : Exception in printReport1Servlet.closeConnection()"); } } }
Concerning
Change: response.addHeader ("Content-Disposition", "attachment; filename = "reportName +".pdf");"
To: response.addHeader ("Content-Disposition", "inline; filename = "reportName +".pdf");"
Browser first tries to show the PDF, and if no pdf reader is available, you will get the download dialog box.
(and remove JasperViewer.viewReport (jasperPrint, false); )
Dario
-
Running OS 10.10.3, Photoshop CS4 do not open or import RAW files. Someone knows how to fix this? I've done the update of JAVA, but no luck.
This camera needs Adobe Camera Raw 5.2 to read these raws, and I'm not sure what has your CS4 installation.
Then go here Adobe - Photoshop: for Macintosh: Camera Raw 5.7 update download and install the update and let me know if it works.
-
I have no sound when playing my clips by adobe first 12 elements. How to fix this? I checked all the audio levels and there is no mute etc. I've updated to 12.1, but still no sound in clips. Not even on the old files that are used to work.
Bfun
What operating system is running your first items 12/12.1? Can we assume that this audio reads OK
on the same computer when you use a computer independent of Premiere Elements drive?
What are the properties of these clips that have worked before, but don't know regarding sound
For now, I will assume that you are working on Windows 7, 8 or 8.1 64bits.
Have you checked the settings change preferences/Menu/Audio ASIO hardware? You have all 3rd party audio devices integrated in your IT environment?
Please delete the Adobe Premiere elements Prefs file and, if it does not, then all 12.0 folder in which the Adobe Premiere elements Prefs file exists. Is the path to 64-bit Windows 7, 8 or 8.1
Local disk C
Users
Owner
AppData
Roaming
Adobe
First Elements
12.0
and in the 12.0 folder, is the file Adobe Premiere elements Prefs that you delete. If this does not work, then delete all 12.0 the folder in which the Adobe Premiere elements Prefs file exists. Make sure that you work with the Option "Show hidden files, folders and drives" of the current folder so that you can see the full quoted path.
You have the installation files or the installation disc with the serial number purchased in case we need to use to uninstall/reinstall?
We will follow your track to the top.
RTA
-
In the date picker, how can I default to select * dates if the user does not select a date.
Thank you
DougDoug,
Now lets say l want everything
Could you post some sample data and the output you want to get... ? It would be very easy to understand the requirements...
When you mean everything, I guess you need all possible dates between date1 and date2.
You can use... (to asktom.oracle.com).
1 select to_date('12-jan-2009','DD-MON-YYYY') + rownum -1 2 from ALL_OBJECTS 3 where rownum <= (to_date('20-jan-2009','dd-mon-yyyy') - 4* to_date('12-jan-2009','DD-MON-YYYY') +1 ) sql> / TO_DATE(' --------- 12-JAN-09 13-JAN-09 14-JAN-09 15-JAN-09 16-JAN-09 17-JAN-09 18-JAN-09 19-JAN-09 20-JAN-09 9 rows selected. For your case, since you have date1 and date2... select to_date(:p12_date1,'DD-MON-YYYY') + rownum -1 from ALL_OBJECTS where rownum <= (to_date(:p12_date2,'dd-mon-yyyy') - to_date(:p12_date1,'DD-MON-YYYY') +1 )
Should work... in my opinion... Have not tested the other by their Summit.
Is that what you're looking for... ?? If no, please give details...
Thank you
Rajesh.
Maybe you are looking for
-
Problem with cursor - will switch to a link
I was hoping that someone could help with this. My dad's Mac has a problem with the cursor. It uses the trackpad and when you try to click on a link, it will not work. The arrow does not change into a symbol of the 'hand' and it can not click on it.
-
USB ports not working not not on satellite L500-1Z9
The usb ports on my laptop don't work. Any idea what is the problem?
-
Help: Microsoft Windows vista update failure
My pc was on and it automatically updating to vista, but its stuck on 90% and he won't do anything his jelly on configuring updates step 3 3 90%. even if I start in safe mode it still brings up Configuration page of updates, but it used all go furthe
-
Could not ask for the keys to Blackberry
Code Signing page, couldn't ask the Blackberry keys order form because its automatically disconnect when I clicked on the option forBlackberry 10.1 above. I tried already several times. Please advise kindly. Thank you.
-
Where will my edited picture?
Well, so whenever I changed an image, the computer says that it is registered, but I can't find the changed image anywhere in any file! I get very mad, could someone please help me and tell me where the modified image is stored?