Select from v$sql_plan in a procedure
Hi
I''m attempting to save plans (from V$SQL_PLAN) into a table using a procedure in schema APPS, but keep getting missing table error,
PL/SQL: ORA-00942: table or view does not existI then granted an explicit SELECT to APPS on the V$SQL_PLAN table from a schema with
a DBA role, but still get the same error when compiling the procedure.
SQL> create table gl_imp_post_plans as ( select * from v$sql_plan where rownum < 1);
Table created.
SQL> select count(*) from v$sql_plan;
COUNT(*)
13506
SQL> create or replace procedure Ins_Plan_from_Dictionary as
2
3 begin
4 insert into GL_Imp_Post_Plans
5 select sqo.*
6 from v$sql_plan sqo
7 where (sqo.sql_id) not in (select distinct gipi.SQL_ID
8 from GL_Imp_Post_Plans gipi)
9 and (sqo.sql_id) in (select distinct
10 sqi.sql_id
11 from v$sql_plan sqi
12 where sqi.object_owner = 'APPS'
13 and sqi.object_name in ('GL_BALANCES','GL_DAILY_BALANCES','GL_JE_LINES') );
14 commit;
15
16
17 exception
18 when others then
19 rollback;
20 -- sysao_util.Message ('O', 'Error ' || sqlerrm);
21
22 end Ins_Plan_from_Dictionary;
23 /
Warning: Procedure created with compilation errors.
SQL> show err
Errors for PROCEDURE INS_PLAN_FROM_DICTIONARY:
LINE/COL ERROR
4/5 PL/SQL: SQL Statement ignored
11/40 PL/SQL: ORA-00942: table or view does not exist
SQL>
SQL> l 11
11* from v$sql_plan sqiThe same error occurs when I attempt to select from GV$SQL_PLAN or DBA_HIST_SQL_PLAN.
Could anybody suggest how I can persist the rows into a table using a procedure?
thanks
thanks, yes this works:
create or replace procedure Ins_Plan_from_Dictionary as
begin
execute immediate 'begin
insert into GL_Imp_Post_Plans
select sqo.*
from v$sql_plan sqo
where (sqo.sql_id) not in (select distinct gipi.SQL_ID
from GL_Imp_Post_Plans gipi)
and (sqo.sql_id) in (select distinct
sqi.sql_id
from v$sql_plan sqi
where sqi.object_owner = ''APPS''
and sqi.object_name in (''GL_BALANCES'',''GL_DAILY_BALANCES'',''GL_JE_LINES'') );
commit;
end;';
exception
when others then
rollback;
-- sysao_util.Message ('O', 'Error ' || sqlerrm);
end Ins_Plan_from_Dictionary;
/
Similar Messages
-
Select from sys table in package procedure
Is it possible to use a table in the SYS schema in a procedure defined in a package?
Right now, these errors are raised:
SQL> SHOW ERRORS PACKAGE BODY App_security_context;
Errors for PACKAGE BODY APP_SECURITY_CONTEXT:
LINE/COL ERROR
17/3 PL/SQL: SQL Statement ignored
18/8 PLS-00201: identifier 'SYS.DBA_ROLE_PRIVS' must be declared
eg)
CREATE OR REPLACE PACKAGE App_security_context IS
PROCEDURE Set_restrictions;
END App_security_context;
CREATE OR REPLACE PACKAGE BODY App_security_context IS
PROCEDURE Set_restrictions
IS
data_code VARCHAR2(16);
BEGIN
SELECT MD_SYS_USER_DATA_CODE.code_id INTO data_code
FROM
MD_SYS_USER_DATA_CODE
, SYS.DBA_ROLE_PRIVS
WHERE SYS.DBA_ROLE_PRIVS.grantee = SYS_CONTEXT('USERENV', 'SESSION_USER')
AND SYS.DBA_ROLE_PRIVS.granted_role = MD_SYS_USER_DATA_CODE.role_id;
DBMS_SESSION.SET_CONTEXT('app_entry', 'data_code', data_code);
END Set_restrictions;
END App_security_context;You need the select grant on the SYS view granted directly to you - not through a role. See here for more details:
http://osi.oracle.com/~tkyte/Misc/RolesAndProcedures.html -
How to select from a stored procedure?
Lets say I have a simple stored procedures
Create Procedure stp_test
As
Begin
Select * from tbl1
End
Go
I would like to be able to do this in SSMS (actually, I want to do this from ADODB)
Select top 10 * from ...stp_test... Order By rowID
It looks like I want to use OpenQuery on the stored Procedure, but I have not been able to do it correctly. How can I query my stored procedure?
Rich PIt looks like I want to use OpenQuery on the stored Procedure, but I have not been able to do it correctly. How can I query my stored procedure?
If you want to use the OPENQUERY method , use the following.. follow this link...
http://stackoverflow.com/questions/209383/select-columns-from-result-set-of-stored-procedure
Please mark as answer, if this has helped you solve the issue.
Good Luck :) visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles. -
Different Selections from same logical procedure (Mac OS 10.6.8)
Hello!
I encountered something that really made me think, but it feels wrong.
Example:
Create or open a document.
Create a horizontal guide by dragging it from the ruler.
Snap to guides must now be enabled.
Now use the marquee tool to select the upper half of the picture, with the bottom of the selection snapping to the guide.
Result:
Some times it happens that the resulting selection is different than the (logically) same selection made from the lower half of the picture to the guide and then inverted.
Effectively this means sometimes when I use a snapping guide as the limit of a selection from one direction it is not border-to-border with one drawn from the other side. Then a line of one pixel height 'behind' the guide is not selected by either one of these procedures.
Expected Result:
When the guide (which should have no width or height at all) forms the border of a selection from one side, it should be the inverse of a selection touching the guide from the other side.
Sorry this is hard to explain, do you understand what I mean?
Best regards
Sebastian
System Information
Adobe Photoshop Version: 13.0 (13.0 20120315.r.428 2012/03/15:21:00:00) x64
Operating System: Mac OS 10.6.8
System architecture: Intel CPU Family:6, Model:30, Stepping:5 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
Physical processor count: 4
Processor speed: 2660 MHz
Built-in memory: 16384 MB
Free memory: 6665 MB
Memory available to Photoshop: 15438 MB
Memory used by Photoshop: 78 %
Image tile size: 1024K
Image cache levels: 4
OpenGL Drawing: Enabled.
OpenGL Drawing Mode: Advanced
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: True.
OpenGL Allow Old GPUs: Not Detected.
OpenGL Version: 2.1 ATI-1.6.36
OpenCL Version:
Video Card Vendor: ATI Technologies Inc.
Video Card Renderer: ATI Radeon HD 4850 OpenGL Engine
Display: 1
Main Display
Display Depth:= 32
Display Bounds:= top: 0, left: 0, bottom: 1440, right: 2560
Video Renderer ID: 16914951
Video Card Memory: 494 MB
Video Rect Texture Size: 8192
Serial number: 92279708757474433360
Application folder: Macintosh HD:Applications:Adobe CS6:Adobe Photoshop CS6:
Photoshop scratch has async I/O enabled
Scratch volume(s):
Hotel, 510,2G, 251,0G free
Macintosh HD, 722,0G, 664,3G free
Required Plug-ins folder: Macintosh HD:Applications:Adobe CS6:Adobe Photoshop CS6:Adobe Photoshop CS6.app:Contents:Required:
Primary Plug-ins folder: Macintosh HD:Applications:Adobe CS6:Adobe Photoshop CS6:Plug-ins:
Additional Plug-ins folder: not set
Installed components:
adbeape.framework adbeape 3.3.8.19346 66.1025012
AdbeScriptUIFlex.framework AdbeScriptUIFlex 6.2.29.18602 66.490082
adobe_caps.framework adobe_caps 6.0.29.0 1.276181
AdobeACE.framework AdobeACE 2.19.18.19243 66.492997
AdobeAGM.framework AdobeAGM 4.26.17.19243 66.492997
AdobeAXE8SharedExpat.framework AdobeAXE8SharedExpat 3.7.101.18636 66.26830
AdobeAXEDOMCore.framework AdobeAXEDOMCore 3.7.101.18636 66.26830
AdobeBIB.framework AdobeBIB 1.2.02.19243 66.492997
AdobeBIBUtils.framework AdobeBIBUtils 1.1.01 66.492997
AdobeCoolType.framework AdobeCoolType 5.10.31.19243 66.492997
AdobeCrashReporter.framework AdobeCrashReporter 6.0.20120201
AdobeExtendScript.framework AdobeExtendScript 4.2.12.18602 66.490082
AdobeJP2K.framework AdobeJP2K 2.0.0.18562 66.236923
AdobeLinguistic.framework 17206
AdobeMPS.framework AdobeMPS 5.8.0.19463 66.495174
AdobeOwl.framework AdobeOwl 4.0.93 66.496052
AdobePDFL.framework AdobePDFL 10.0.1.18562 66.419471
AdobePDFSettings.framework AdobePDFSettings 1.4
AdobePIP.framework AdobePIP 6.0.0.1654
AdobeScCore.framework AdobeScCore 4.2.12.18602 66.490082
AdobeUpdater.framework AdobeUpdater 6.0.0.1452 "52.338651"
AdobeXMP.framework AdobeXMPCore 66.145661 66.145661
AdobeXMPFiles.framework AdobeXMPFiles 66.145661 66.145661
AdobeXMPScript.framework AdobeXMPScript 66.145661 66.145661
ahclient.framework ahclient 1.7.0.56
aif_core.framework AdobeAIF 3.0.00 62.490293
aif_ocl.framework AdobeAIF 3.0.00 62.490293
aif_ogl.framework AdobeAIF 3.0.00 62.490293
AlignmentLib.framework xcode 1.0.0.1
amtlib.framework amtlib 6.0.0.75
boost_date_time.framework boost_date_time 6.0.0.0
boost_signals.framework boost_signals 6.0.0.0
boost_system.framework boost_system 6.0.0.0
boost_threads.framework boost_threads 6.0.0.0
Cg.framework NVIDIA Cg
CIT.framework CIT 2.0.5.19287 145486
data_flow.framework AdobeAIF 3.0.00 62.490293
dvaaudiodevice.framework dvaaudiodevice 6.0.0.0
dvacore.framework dvacore 6.0.0.0
dvamarshal.framework dvamarshal 6.0.0.0
dvamediatypes.framework dvamediatypes 6.0.0.0
dvaplayer.framework dvaplayer 6.0.0.0
dvatransport.framework dvatransport 6.0.0.0
dvaunittesting.framework dvaunittesting 6.0.0.0
dynamiclink.framework dynamiclink 6.0.0.0
FileInfo.framework FileInfo 66.145433 66.145433
filter_graph.framework AdobeAIF 3.0.00 62.490293
hydra_filters.framework AdobeAIF 3.0.00 62.490293
ICUConverter.framework ICUConverter 3.61 "gtlib_3.0" "." "16615"
ICUData.framework ICUData 3.61 "gtlib_3.0" "." "16615"
image_compiler.framework AdobeAIF 3.0.00 62.490293
image_flow.framework AdobeAIF 3.0.00 62.490293
image_runtime.framework AdobeAIF 3.0.00 62.490293
LogSession.framework LogSession 2.1.2.1652
mediacoreif.framework mediacoreif 6.0.0.0
PlugPlug.framework PlugPlug 3.0.0.383
UpdaterNotifications.framework UpdaterNotifications 6.0.0.24 "6.0.0.24"
wrservices.framework
Required plug-ins:
3D Studio 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Accented Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Adaptive Wide Angle 13.0, Copyright © 2012 Adobe Systems Incorporated - from the file “Adaptive Wide Angle.plugin”
ADM 3.10x16, Copyright © 1987-2008 Adobe Systems Inc. All rights reserved. - from the file “AdobeADM.bundle”
Angled Strokes 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Average 13.0 20120315.r.428 2012/03/15:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “Average.plugin”
Bas Relief 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
BMP 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Camera Raw 7.1 (354), Copyright © 2012 Adobe Systems Incorporated - from the file “Camera Raw.plugin”
Chalk & Charcoal 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Charcoal 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Chrome 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Cineon 13.0 20120315.r.428 2012/03/15:21:00:00 ©2002-2012 Adobe Systems Incorporated - from the file “Cineon.plugin”
Clouds 13.0 20120315.r.428 2012/03/15:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “Clouds.plugin”
Collada DAE 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Color Halftone 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Colored Pencil 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
CompuServe GIF 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Conté Crayon 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Craquelure 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Crop and Straighten Photos 13.0 20120315.r.428 2012/03/15:21:00:00 ©2003-2012 Adobe Systems Incorporated - from the file “CropPhotosAuto.plugin”
Crop and Straighten Photos Filter 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Crosshatch 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Crystallize 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Cutout 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Dark Strokes 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
De-Interlace 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Dicom 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “dicom.plugin”
Difference Clouds 13.0 20120315.r.428 2012/03/15:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “Clouds.plugin”
Diffuse Glow 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Displace 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Dry Brush 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Eazel Acquire 13.0 20120315.r.428 2012/03/15:21:00:00 ©1997-2012 Adobe Systems Incorporated - from the file “EazelAcquire.plugin”
Embed Watermark NO VERSION - from the file “DigiSign.plugin”
Enable Async I/O 13.0 20120315.r.428 2012/03/15:21:00:00 © 2004-2012 Adobe Systems Incorporated - from the file “Enable Async IO.plugin”
Entropy 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Extrude 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
FastCore Routines 13.0 20120315.r.428 2012/03/15:21:00:00 ©1990-2012 Adobe Systems Incorporated - from the file “FastCore.plugin”
Fibers 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Film Grain 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Filter Gallery 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Flash 3D 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Fresco 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Glass 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Glowing Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Google Earth 4 KMZ 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Grain 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Graphic Pen 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Halftone Pattern 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
HDRMergeUI 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “HDRMergeUI.plugin”
IFF Format 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Ink Outlines 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
JPEG 2000 13.0 20120315.r.428 2012/03/15:21:00:00 ©2001-2012 Adobe Systems Incorporated - from the file “JPEG2000.plugin”
Kurtosis 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Lens Blur 13.0, Copyright © 2002-2012 Adobe Systems Incorporated - from the file “Lens Blur.plugin”
Lens Correction 13.0, Copyright © 2002-2012 Adobe Systems Incorporated - from the file “Lens Correct.plugin”
Lens Flare 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Liquify 13.0, Copyright © 2001-2012 Adobe Systems Incorporated - from the file “Liquify.plugin”
Matlab Operation 13.0 20120315.r.428 2012/03/15:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “ChannelPort.plugin”
Maximum 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Mean 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Measurement Core 13.0 20120315.r.428 2012/03/15:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “MeasurementCore.plugin”
Median 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Mezzotint 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Minimum 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
MMXCore Routines 13.0 20120315.r.428 2012/03/15:21:00:00 ©1990-2012 Adobe Systems Incorporated - from the file “MMXCore.plugin”
Mosaic Tiles 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Multiprocessor Support 13.0 20120315.r.428 2012/03/15:21:00:00 ©1990-2012 Adobe Systems Incorporated - from the file “MultiProcessor Support.plugin”
Neon Glow 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Note Paper 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
NTSC Colors 13.0 20120315.r.428 2012/03/15:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “NTSC Colors.plugin”
Ocean Ripple 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Oil Paint 13.0, Copyright © 2011 Adobe Systems Incorporated - from the file “Oil Paint.plugin”
OpenEXR 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Paint Daubs 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Palette Knife 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Patchwork 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Paths to Illustrator 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
PCX 13.0 20120315.r.428 2012/03/15:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “PCX.plugin”
Photocopy 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Photoshop 3D Engine 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “Photoshop3DEngine.plugin”
Picture Package Filter 13.0 20120315.r.428 2012/03/15:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “ChannelPort.plugin”
Pinch 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Pixar 13.0 20120315.r.428 2012/03/15:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “Pixar.plugin”
Plaster 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Plastic Wrap 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
PNG 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Pointillize 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Polar Coordinates 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Portable Bit Map 13.0 20120315.r.428 2012/03/15:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “PBM.plugin”
Poster Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Radial Blur 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Radiance 13.0 20120315.r.428 2012/03/15:21:00:00 ©2003-2012 Adobe Systems Incorporated - from the file “Radiance.plugin”
Range 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Read Watermark NO VERSION - from the file “DigiRead.plugin”
Reticulation 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Ripple 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Rough Pastels 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Save for Web 13.0, Copyright © 1999-2012 Adobe Systems Incorporated - from the file “Save for Web.plugin”
ScriptingSupport 13.0, Copyright © 2012 Adobe Systems Incorporated - from the file “ScriptingSupport.plugin”
Shear 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Skewness 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Smart Blur 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Smudge Stick 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Solarize 13.0 20120315.r.428 2012/03/15:21:00:00 ©1993-2012 Adobe Systems Incorporated - from the file “Solarize.plugin”
Spatter 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Spherize 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Sponge 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Sprayed Strokes 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Stained Glass 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Stamp 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Standard Deviation 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Sumi-e 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Summation 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Targa 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Texturizer 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Tiles 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Torn Edges 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Twirl 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
U3D 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Underpainting 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Vanishing Point 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “VanishingPoint.plugin”
Variance 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “statistics.plugin”
Water Paper 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Watercolor 13.0, Copyright © 1991-2012 Adobe Systems Incorporated - from the file “Filter Gallery.plugin”
Wave 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Wavefront|OBJ 13.0 20120315.r.428 2012/03/15:21:00:00 ©2006-2012 Adobe Systems Incorporated - from the file “U3D.plugin”
Wind 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Wireless Bitmap 13.0 20120315.r.428 2012/03/15:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “WBMP.plugin”
ZigZag 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Standard Multiplugin.plugin”
Optional and third party plug-ins:
Alias PIX 13.0 20120315.r.428 2012/03/15:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “Alias.plugin”
Disable OpenGL Drawing 13.0 20120315.r.428 2012/03/15:21:00:00 © 2004-2012 Adobe Systems Incorporated - from the file “DisableDragBoundingBox.plugin”
ElectricImage 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Optional Multiplugin.plugin”
HSB/HSL 13.0, Copyright © 2003-2012 Adobe Systems Incorporated - from the file “Optional Multiplugin.plugin”
Overscroll Always 13.0 20120315.r.428 2012/03/15:21:00:00 © 2004-2012 Adobe Systems Incorporated - from the file “Overscroll Always.plugin”
SGI RGB 13.0 20120315.r.428 2012/03/15:21:00:00 ©2001-2012 Adobe Systems Incorporated - from the file “SGIRGB.plugin”
SoftImage 13.0 20120315.r.428 2012/03/15:21:00:00 ©2000-2012 Adobe Systems Incorporated - from the file “SoftImage.plugin”
Twain Acquire 13.0 20120315.r.428 2012/03/15:21:00:00 ©1992-2012 Adobe Systems Incorporated - from the file “TWAIN.plugin”
Wavefront RLA 13.0 20120315.r.428 2012/03/15:21:00:00 ©1989-2012 Adobe Systems Incorporated - from the file “RLA.plugin”
Plug-ins that failed to load: NONE
Flash:
Mini Bridge
Kuler
Installed TWAIN devices: NONE800 by 800 pixel file @ 300 DPI:
Guide @ random position:
800 by 800 pixel file @ 300 DPI:
Guide @ 40,341 mm
One selection drawn from the left, one from the right.
The border of the selection should be on the same left-right-position, but differs about one pixel (these are all zoomed in). -
Procedure with select from mysql db link problem
Hi,
first of all Oracle is new to me so if there are better ways to do this every suggestion would help.
My problem is simple i cant use select from dblink inside a procedure.
In Oralce SQL Developer 1.5.5:
Im using oracle 11g and mysql 5.5.13 with mysql odbc 5.1
in both db the user is root
CREATE PUBLIC DATABASE LINK "MYSQL"
CONNECT TO "root" IDENTIFIED BY "****"
AUTHENTICATED BY "root" IDENTIFIED BY "****"
USING 'mysql';
select * from t1@mysql;
run; -> result OK
select "MAXID" from t1@mysql where "TNAME"='first';
run; -> result OK
create or replace
PROCEDURE T1_IDS_PROC AS
maxi number;
BEGIN
select "MAXID" into maxi from t1@mysql where "TNAME"='first';
END T1_IDS_PROC;
compile -> not working:
Fehler(7,3): PL/SQL: SQL Statement ignored
Fehler(7,47): PL/SQL: ORA-00904: "TNAME": unknown identifier
How to solve this?Thanks for replay,
yes the owner of the procedure can acces the remote table.
I can use
select count(*) into i from t1@mysql
inside the procedure, but if i use specific columns inside the select i cant compile.
Why i need double quote?
I dont know if i need them but i read some tutorial for dblink to mysql and there was explanied
Oracle use upercase names and Mysql is case sensitive for odbc 5.1 so i have to double qoute mysql names.
But with or without double qoute it dont work inside procedures ;( -
Procedure containg select from Database link
Hi,
I have one database link xxx which is getting some data from one table from Sqlserver database.
Now I am writing one procedure which contain
if(c=1) --get from databaselink
select name,num from table1@xxx;
else --get from the Oracle table;
Now iam calling that procedure from .net application which is giving the following error :ORA-01002: fetch out of sequence
ORA-02063: preceding line from FSPDEV_TO_AVERY_ORGRPT
it is giving the above error if c=1 otherwise the else part is working fine.
What i need to do?
ThanksHi,
Thanks for your response.
my procedure is like this:
Cur_Out sysrefcursor
if(c=1) --get from databaselink
Open Cur_out for
select name,num from table1@xxx;
else --get from the Oracle table;
Open Cur_out for Select from Oracle table;
I will try to execute the procedure from SQLPLUS.
thanks -
Can not select from SAPTOOLS.DB6PMCF
We use third-party tool to monitor our SAP systems. We receive an error
Can not select from SAPTOOLS.DB6PMCF
when we monitor DB2 database.
Function DB6PMCF is registered in SAPSID schema. Can I register it also in SAPTOOLS schema? What is a correct procedure for this?Hi Milan,
I think you have to issue the following command for the affected user.
db2 "grant execute on function saptools.db6pmcf to <user>"
regards, Javier Rocha -
How to get multiple out parameters from a pl/sql stored procedure in ADF Jdeveloper 11g release2
I´m trying to call from AppModuleImpl a stored procedure from my oracle DB which receives one input parameter and returns 5 out parameters.
I´m using jdeveloper 11g release2 ADF and I have created a java bean "ProRecallPlatesBean " with the atributes and accesors and I serialize it. just like in this article http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvgen.htm#sm0297
This is my code so far:
public ProRecallPlatesBean getCallProRecallPlates(String numPlates) {
CallableStatement st = null;
try {
// 1. Define the PL/SQL block for the statement to invoke
String stmt = "begin CTS.Pk_PreIn.proRecallPlates(?,?,?,?,?,?); end;";
// 2. Create the CallableStatement for the PL/SQL block
st = getDBTransaction().createCallableStatement(stmt,0);
// 3. Register the positions and types of the OUT parameters
st.registerOutParameter(2,Types.VARCHAR);
st.registerOutParameter(3,Types.VARCHAR);
st.registerOutParameter(4,Types.VARCHAR);
st.registerOutParameter(5,Types.VARCHAR);
st.registerOutParameter(6,Types.VARCHAR);
// 4. Set the bind values of the IN parameters
st.setString(1,numPlates);
// 5. Execute the statement
st.executeUpdate();
// 6. Create a bean to hold the multiple return values
ProRecallPlatesBean result = new ProRecallPlatesBean();
// 7. Set values of properties using OUT params
result.setSpfVal(st.getString(2));
result.setTransportTypeVal(st.getString(3));
result.setTransportCompanyVal(st.getString(4));
result.setCompanyDescrVal(st.getString(5));
result.setDGAPrint(st.getString(6));
// 8. Return the result
return result;
} catch (SQLException e) {
throw new JboException(e);
} finally {
if (st != null) {
try {
// 9. Close the JDBC CallableStatement
st.close();
catch (SQLException e) {}
In Jdeveloper I went into AppModule.xml JAVA>Client Interface section and expose "getCallProRecallPlates" Then I can see "getCallProRecallPlates" in Data Controls, I drag and drop it to a JSF page, an input text component and a button are generated in order to put in there the procedure input parameter (numPlates).
I don't know if I'm on the right track.
When I click the button, the "result" variable is supposed to be filled with data from the stored procedure. I want each of those values to be displayed in Output text or input text adf components but I dont know how. Thank you very much in advance I´m a newbie and i'll appreciate your help!What version are you on?
Works fine for me on my 11g:
SQL> create or replace procedure testxml (clob_out out clob)
2 is
3 l_clob clob;
4 l_ctx dbms_xmlquery.ctxhandle;
5 begin
6 l_ctx := dbms_xmlquery.newcontext ('select * from dual');
7 l_clob := dbms_xmlquery.getxml (l_ctx);
8 clob_out := l_clob;
9 dbms_xmlquery.closecontext (l_ctx);
10 end testxml;
11 /
Procedure created.
SQL>
SQL> variable vout clob;
SQL>
SQL> exec testxml (:vout)
PL/SQL procedure successfully completed.
SQL>
SQL> print vout
VOUT
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<DUMMY>X</DUMMY>
</ROW>
</ROWSET>But definitely you can optimize your proc a bit: Try
create or replace procedure testxml (clob_out in out nocopy clob)
is
l_ctx dbms_xmlquery.ctxhandle;
begin
l_ctx := dbms_xmlquery.newcontext ('select * from dual');
clob_out := dbms_xmlquery.getxml (l_ctx);
dbms_xmlquery.closecontext (l_ctx);
end testxml;
/ -
How to pass the NEW row from a trigger to a procedure
I want to pass all NEW values from a trigger to a procedure.
I wish to use a %ROWTYPE or similar,
and I want neither to assigne them nor pass them one by one.
Any suggestion?
Thanks in advancehi vittorio
i have a solution but im very sure it is not exact answer to your question . it will definitely help you .
create table temp_type as select * from emp where 1 = 2;
create or replace procedure emp_ins(emp_row emp%rowtype) as
pragma autonomous_transaction;
begin
insert into temp_type(empno,ename) values(emp_row.empno,emp_row.ename);
commit;
end;
create or replace trigger emp_ins_trig before insert on emp for each row
declare
/* empr emp_types.emprowtype%type;*/
empr emp%rowtype;
begin
empr.empno := :new.empno;
empr.ename := :new.ename;
emp_ins(empr);
end;
/unfortunately , in oracle we dont have a facility to access the members of a record or recordset by their position
Such facility is very much there in Visual Basic , similar programming tools.
we can access the members of a recordset by the index position ( here index means the position of the field) -
Dynamic data select from table is giving dump
Hello Experts,
Below statement is giving Dump after it move all the data in my dynamic table.
When i see in debug. All my recored are avilable in <T_TAB> Table.
SELECT * FROM (pa_tab) INTO CORRESPONDING FIELDS OF TABLE <T_TAB>.
> IF SY-SUBRC = 0.
Information on where terminated
The termination occurred in the ABAP program "ZFIR_ZTABLE_UPLOAD" in
"F_DOWNLOAD".
The main program was "ZFIR_ZTABLE_UPLOAD ".
The termination occurred in line 403 of the source code of the (Include)
program "ZFIR_ZTABLE_UPLOAD"
of the source code of program "ZFIR_ZTABLE_UPLOAD" (when calling the editor
4030).
Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
the
procedure "F_DOWNLOAD" "(FORM)" but was not handled locally, not declared in
the
RAISING clause of the procedure.
The procedure is in the program "ZFIR_ZTABLE_UPLOAD ". Its source code starts
in line 399
of the (Include) program "ZFIR_ZTABLE_UPLOAD ".
please help me.
Regards,
Amit
Message was edited by:
Amit GuptaHi Amit,
Check if you are doing the following in your program
FIELD-SYMBOLS <T_TAB> TYPE STANDARD TABLE.
DATA: g_tabref type ref to data. "Reference to your table structure
CREATE DATA g_tabref type standard table of (pa_tab).
ASSIGN g_tabref->* to <T_TAB>.
SELECT * FROM (PA_TAB) INTO TABLE <T_TAB>.
Hope this solves your problem.
Let me know if you require any further info.
Enjoy SAP. Reward points of useful
Rajasekhar -
Hi,
Inside of a stored procedure I created:
- a record type:TYPE gr_rec IS RECORD (contact_id number)
- a table of records: TYPE gr_tb IS table of gr_rec INDEX BY BINARY_INTEGER
and then I populated the table in a loop: tb(i).contact_id := a.contact_id.
My question is:
Is it posible to perform a select statement on the table of records to get only distinct records?
If not, how can I filter these records, as I use the procedure as a block data source in a form and I need only distinct records.
Note: I can not obtain select rows from the query that populates the table.
Thank you, MonicaLook at this function:
create or replace type TYP_REC_EMP as object
EMPNO NUMBER(4),
ENAME VARCHAR2(10),
JOB VARCHAR2(10),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2)
create or replace type TYP_TAB_REC_EMP is table of TYP_REC_EMP
CREATE OR REPLACE FUNCTION Ret_Cur RETURN TYP_TAB_REC_EMP
IS
TAB TYP_TAB_REC_EMP := TYP_TAB_REC_EMP(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
CURSOR C_EMP IS
SELECT *
FROM EMP ;
i PLS_INTEGER := 0 ;
BEGIN
FOR CEMP IN C_EMP LOOP
TAB.extend ;
i := i + 1 ;
TAB(i) := TYP_REC_EMP
CEMP.EMPNO,
CEMP.ENAME,
CEMP.JOB,
CEMP.MGR,
CEMP.HIREDATE,
CEMP.SAL,
CEMP.COMM,
CEMP.DEPTNO
END LOOP ;
RETURN TAB ;
END;
/And the Sql*plus query :
SQL*Plus: Release 9.0.1.3.0 - Production on Ve Mar 24 09:18:37 2006
(c) Copyright 2001 Oracle Corporation. All rights reserved.
Connecté à :
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
SQL>
SQL> SELECT DISTINCT(empno),deptno FROM TABLE(ret_cur()) WHERE deptno=20
2 /
EMPNO DEPTNO
7369 20
7566 20
7788 20
7876 20
7902 20
SQL> Francois -
Select from table containing clob
If i try to select from table containing clob column in SQL PLus it gives error.
Tab1 contains 3 clob columns and 1 blob column
select * from tab 1;
SP2-0678: Column or attribute type can not be displayed by SQL*Plus
The same statement works in SQL Developer and I am able to see the result.
Actually i am writing the queries and they will be used by Java developers in their JSP page.
So what happens here? Can Java use these select statements or will it throw error like SQL Plus?BLOB column content can't be displayed in SQL*Plus:
SQL> create table t_blob (b blob);
Table created.
SQL> edit
Wrote file afiedt.buf
1* insert into t_blob values('01')
SQL> /
1 row created.
SQL> commit;
Commit complete.
SQL> select * from t_blob;
SP2-0678: Column or attribute type can not be displayed by SQL*PlusBlob and clob columns content can be processed using DBMS_LOB
package procedures and functions or using client's language (like Java)
methods. See JDBC specification.
Rgds. -
Applying an XSLT against results from XSU in Java Stored Procedure
Is there an easy way to have a Java Stored Procedure apply an XSLT against the results of an OracleXMLQuery? The only examples I can find are with regular Java code outside the database.
I'm running 9.2.0.2 on Windows 2000 Server.This is what I use:
(I have table called params where I have stored encodinf, XSL, and stuff like that)
DOMParser parser;
XMLDocument xml, xsldoc, outXML;
URL xslURL;
URL xmlURL;
Connection conn = getConnection();
Statement stmt = conn.createStatement();
ResultSet rset= stmt.executeQuery("select xsl_varchar2,encoding,version,host,port,host_path,usrnm,passwrd from params");
rset.next();
String strXSL=rset.getString(1); //This is XSL transformation
String strEncoding=rset.getString(2);
String strVersion=rset.getString(3);
rset.close();
stmt.close();
parser = new DOMParser();
parser.setPreserveWhitespace(true);
StringReader rXSL= new StringReader(strXSL);
xslURL=createURL("test");
parser.parse(rXSL);
xsldoc=parser.getDocument();
OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from somewhere");
xml=(XMLDocument) qry.getXMLDOM();
// instantiate a stylesheet
XSLStylesheet xsl = new XSLStylesheet(xsldoc, xslURL);
XSLProcessor processor = new XSLProcessor();
// display any warnings that may occur
processor.showWarnings(true);
processor.setErrorStream(System.err);
// Process XSL
DocumentFragment result = processor.processXSL(xsl, xml);
// create an output document to hold the result
outXML = new XMLDocument();
outXML.setVersion(strVersion);
outXML.setEncoding(strEncoding);
outXML.appendChild(result);
outXML is your XML. -
JDBC/select/async statement to JDBC/stored procedure/sync call
Hi
We have JDBC/select/async statement to JDBC/stored procedure/sync call i.e sender and receiver are JDBC.
PI has to pick all the the records of single internal order number at a time from sender system and upload to receiver JDBc,
gets the response and routes to sender/insert statement.
This should run only once per day.
We will have multiple Internal orders daily, each order consisting of 10 to 20 records but only one IO related records has
to upload to Receiver/JDBC
What are the options available ?
We have thought of following options
1. SQL query is already to pick, but we have to pick records at one time daily. example: morning,evening or midnight.
At that time it can pick multiple times but it should not pick through out day
2. Is there any option in BPM so that we can group IO's at a time and upload ? If so what are the steps need to use
Any additonal receive step need to be used to pick the records from the table.
Thankshi
as i can understando you, you will receive mani IO and you must execute one IO in the receiver SP? if so, you can solve this usssing a ccBPM where you will have to create a mapping(0.N) where the source and the target structure will be the same, the diferrence will be in the occurrance of the target structure which will have to be 0.N (Tab signature in Message Mapping). then back to the ccBPM define a block with the property ForEach. this will loop any times accord with the number of IO that you receive from the sender. as a result you will execute one SP for each IO.
so, you ccBPM will be
RS>TS>BLOCK(Multiline container and single container of source structure)>TS->SS
RS:Receive Step
TS:Trans. Step
SS:Send Step
Also the container will be:
source--> type Abs
source_multiline --> type Abs
target -->type Abs
Thanks
Rodrigo P.
Edited by: Rodrigo Alejandro Pertierra on Jun 24, 2010 4:54 PM -
Selecting from two tables and confirming from them despites they not relate
Please I need a query to select from two tables that are not related to each other.
I also want to confirm data's as in verify wether what the user has entered is in accordance with what is in the tables
Examples
the first table is named "Card" and the second table is named "Student_Details"
Card table contains a column named "Pin_Number".
The Student_Details table contains fields such as Exam_Number, Name, Age, Sex.
The user has to Enter the Pin_Number which has to be confirmed in the Card table and Exam_Number which has to be confirmed in the Student_Details table and verify that both data's are correct.
Please I need the SQL and PL/SQL queries for this problem.
ThanksHi,
I think you need two different queries
You can write a procedure like:
create or replace procedure p1 (p_pin_number number, p_exam_number)
is
r_card_row card%rowtype;
r_student_details student_details%rowtype;
cursor c1 is
select *
from card
where pin_number = p_pin_number;
cursor c2 is
select *
from student_details
where exam_number = p_exam_number;
begin
open c1;
loop
fetch c1 into r_card_row;
exit when c1%notfound;
.... do whatever you want..... and the samething you can do with other cursor
end loop;
close c1;
end p1;Hope this helps
Ghulam
Maybe you are looking for
-
How to get alias name of stored certificate from iKey token 2032
Hi All, Below is my code woks well to use the same keypair for both encrypt/decryprt-SunPKCS#11 in SDK1.5. In my code i hard coded alias name of certificate, kindly tell me how to read alias name of certificate from iKey token 2032?? import java.io.*
-
Am I able to connect my Airport Extreme direct to my Sky Broadband?
I have Sky Broadband which comes with it's very own router - but I connect my Airport Extreme to this router and use my Airport Extreme for my wireless network. Reason why I want to know is because I need to Forward Ports on my AE but it is conflicti
-
Why the parameter pane hidden , in drill through reports , SSRS?
Hi All, I just started working with a drill through report , where 2 reports are linked back and forth. In the designer each report shows the parameter pane even after linking to the other report. But in server, after deploying the report, the param
-
Need Help - Error Code : 0x800F0922 I cannot Activate my IIS InetPub
Hi All Windows Expert; Need your kind help. When I activate my webservice IIS, it prompt me an error 0x800F0922 and the Installation of the InetPub will not continue.Hoping for your kind help because I need to run my IIS webservice. I tried whatever
-
How to organize / group fonts in Photoshop
When I open fonts drop down menu inside of Photoshop, I have over 300 fonts listed in alphabetical order, most of which I don't use. I installed about 20 fonts that I like. But how do I group them together? After typing and selecting text in Photosh