How to check the existence of a storeProcedure
Hello everyone,
today I discovered how to call an oracle store procedure with jdbc classes, and it's been easy with tutorials and reading posts on this forum.
The problem I have is the following:
if i try to execute a store procedure which does not exist on the oracle schema with this code:
try{
con = DriverManager.getConnection(databaseurl,username,password);
cstmt = con.prepareCall"{call procedure_that_not_exist(?,?,?)}";
cstmt.setString(1, "try");
cstmt.registerOutParameter( 2, Types.VARCHAR );
cstmt.registerOutParameter( 3, Types.VARCHAR );
cstmt.executeUpdate();
catch(Exception e)
e.printStackTrace();
System.out.println(e.getMessage());
I get the following error:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'PROCEDURE_THAT_NOT_EXIST' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
how is it possible to check before getting this "not specific error" wheter the procedure exist on the database schema?
Thank you!
Gianni
I mean the error PLS-00201 is not only related to the
fact that the procedure does not exist, but more
generally to "identifiers". (what are identifiers?)The 'name' of something. So, using your example code the following is an identifier....
procedure_that_not_exist
Other identifiers are variables in procs, table names, field names, constraint names, etc.
Similar Messages
-
How to check the existence of DB400 library from java
Hi all,
I actunally need to validate a DB400 library via java. so is there any way to check the existence of DB400 library from java side.
Thanks in advance.Hi Sarvan,
You might not even need a function to tell you if a record exists or not.
Here in below example i do a check with exists .you will find couple of other ways too..
create table t as select * from emp where deptno=10now i set salary of every person present in table 'T' to 1111 in emp table.
update emp e
set sal=1111
where exists
(select 1
from t
where t.empno=e.empno) Remember that plain SQL will always outperform PLSQL.
Hope it helps
CKLP
Edited by: CKLP on Sep 26, 2011 3:41 AM -
How to check the existence of file without any error dialog?
Hi everybody,
I am trying update some labview programs from LV6.1 to LV7.1, I used the
function "File/Dictionary Info" to check if the file
exists or not (if the size=0 then file does not exist), and it ran well with
LV6.1, but now it shows every time a labview error dialog
about "LabView: file not found..." with 7.1, if this file dosn't exist.
Sometimes I feel that it is really stupid to show the dialog, because I
can write handling by myself, if the error should be handled, and
I don't want all the process is interrupted because of such dialogs. Is
there any way to shut the dialog down or check the existence of
file smoothly?
Thanks a lot!
L.WangHello,
The dialog is probably appearing because you have Auto Error Handling turned on. This feature is turned on by default in LabVIEW 7.0. You should go to VI Properties (Ctrl-I) > Execution and deselect "Enable automatic error handling". Also you should go to Tools > Options > New and Changed in LabVIEW 7.x and deselect "Enable automatic error handling in new VIs". If you never want to see one of those dialogs again, you can also deselect "Enaeble automatic error handling dialogs"...I wouldn't recommend this, however, as you would never know if one of your VIs had this setting enabled...you would only find out once somebody else tried to use your VI on another LabVIEW install.
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
How to check the existence of a file?
Hi,
I want to know how to use FileNotFoundException to check whether a text file exists in local directory.
How should I do the code?
Thanks
gogoLike this:
private File f = new File ("c:\\projects\\sutil\\err\\temp_err.txt");
if (f.exists()) {
f.delete();
} -
How to find the existence of a tag in XML file through XSLT Mapping?
Hello Friends,
Working on an SAP XI interface ,I have come across a situation where I need to map the values only when a particular tag exists in the inbound XML file.I need to use the XSLT mapping for the same.
Requesting your advice on as to how may I validate the existence of a tag through XSLT mapping?
Thanks.Hello Friends
After research , I could also find another way to check the existence of a node .We can even use CHOOSE to check the existence.
<xsl:choose>
<xsl:when test="(/mynode)">
your action if the mynode is found
</xsl:when>
<xsl:otherwise>
action if mynode is not found
</xsl:otherwise>
</xsl:choose>
Thanks.
Wishes
Richa -
Procedure to check the existence of Indexes
I have a procedure whcih drops all the indexes, when the same procedure is executed again, it gives error "object does not exists" (obviously)
I want to avoid this error, how can I check the existence of index inside the procedure, so that the procedure will check if the index exists before deleting the index?
Is there a ready-made procedure available for such scenario?
Thanks in advanceThe other approach is to catch the exception in your script, i.e.
BEGIN
EXECUTE IMMEDIATE 'DROP INDEX <<index name>>';
EXCEPTION
WHEN OTHERS THEN
-- Drop failed. Do something to record the failure.
NULL;
END;Now, most of the time, you'll want to catch a few specific exceptions and you'll want to do something when you catch them (i.e. generate a log entry).
Justin -
Programmatically check the existence of objects in the system
Hi,
Is there a way to programmatically check the existence of objects? The idea is I'll accept a list of names of objects and their object types and then programmatically check their existence in the system?
Can you point me to a resource on how to do it?
Thanks in advance.
--CarlHi.
All custom objects (z, y) being referred to a program. May it be z or y table, data element, domain, sapscript form, function module/group.
The goal is actually to be able to transport a program from a source machine to a target machine. The objects being referred to from the program must also be transported, of course, for it to run properly. Thus, the need to check the objects' existence.
Thanks.
--Carl -
CIN: How to check the material document posted without excise invoice
Hi Guru,
Please advise how to check the material document posted without excise invoice.
I have tried tcode J1I7 but it seems start to collect the excise invoice first and then material document.
But my case is to find the material document WITHOUT excise invoice for internal tracking purpose.
At the moment we start from tcode MB51 to get the list of material document and check in J_1IEXCHDR / J_1IEXCDTL
Best regards,
PakornHi,
Try creating a Query in Tcode SQVI by combining tables MKPF and J_1IEXCHDR/J_1IEXCDTL for your requirement.
Check these threads how to create Query.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6018c1ae-8c44-2d10-6ea9-c3fad2c82880?QuickLink=index&…
http://ptgmedia.pearsoncmg.com/images/9780672329029/samplechapter/0672329026_CH03.pdf
Regards
Binoy -
How to check the messages in solution manager?
hai experts !
how to check the messages in solution manager?
in which transaction do we see them?Hi Kiran,
From what I gather from your brief question, you are perhaps looking for CRM_DNO_MONITOR that would display all queries created from Satellite/SolMan system itself, as support messages.
If you are looking for Notifications underlying those messages, please look for DNOTIFWL.
For more specific answers, please provide more description of what you are looking for.
Trust this helps.
Regards,
Srini -
How to check the verity version in our PeopleSoft Installation?
How to check the verity version in our PeopleSoft Installation? I am not sure if the verity is installed or not and also if installed what is the version?
yes. it says the version is 5.0.1
Is there any difference in installation or configuration when the app and web server are in same machine and when the app and web server are installed in different servers?
============================================
D:\fs840\webserv\peoplesoft>mkvdk
mkvdk - Verity, Inc. Version 5.0.1 (_nti40, Jul 23 2004)
Usage: mkvdk [<option>...] <filespec>...
Where <option> can be a VDK switch, or any of:
-about Show the collection's about resources
-autodel Delete bulk insert file when no longer needed
-backup <dir> Specify collection backup location
-bulk Submit bulk insert file(s)
-charmap <name> Specify the character map to VDK
-collection <path> Specify the collection (required)
-create Create the collection
-credentials <user> Specify user[:passwd][:domain][:mailbox]
-datapath <path> Specify VDK datapath
-datefmt <fmt> Specify date format to VDK
-debug Enable debugging output
-delete Delete documents
-description <desc> Set the collection's description
-diskcache <num> Set VDK's disk cache size (kbytes)
-extract Extract field values from text
-help Print this usage information
-insert Insert documents (default)
-locale <locale> Specify the locale to VDK
-logfile <file> Save output in a log file
-loglevel <num> Set the VDK output level for the log
-mailboxes This option is depracated. Use the credentials option inste
ad
-maxfiles <num> Set VDK's maximum number of open files
-maxmemory <num> Set VDK's maximum memory usage (kbytes)
-mode <mode> Set the indexing mode
-modify Modify fields using field/value pairs from a bulkfile
-nohousekeep Disable housekeeping
-noindex Disable indexing
-nolock Turns off locking (dangerous)
-nooptimize Disable optimizations
-nosave Don't save collection work list
-noservice Prevents servicing of submitted work
-nosubmit Don't submit work to VDK
-numdocs <num> Number of documents to insert from bulk insert file(s)
-numpages <num> Synonym for diskcache for backward compatibility
-offset <num> Specify offset into bulk insert file(s)
-online Flag for online Bulk Modify
-optimize <spec> Optimize the collection
-outlevel <num> Set the VDK output level
-persist Service the collection forever
-purge Remove all documents from collection
-purgeback Purge in the background
-purgewait <secs> Specify delay before purge
-quiet Suppress all non-error messages
-repair Repair the collection
-servlev <spec> Advanced option for overriding service level
-sleeptime <secs> Interval between service calls for persist
-style <dir> Specify style directory for create
-submit Synonym for noservice for backward compatibility
-synch Perform work synchronously
-topicset <path> Specify VDK topic set
-update Update documents
-vdkhome <path> Specify VDK home
-verbose Output more information
-words Build word assist list
-wordindex Build word assist index
The <spec> for -optimize is a hyphenated string of:
maxmerge Perform maximal merging of partitions
squeeze Recover space from deleted documents
vdbopt Build optimized VDB's
spanword Create word list spanning all partitions
ngramindex Create ngram index into spanning word list
maxclean Really clean (not for read-write)
readonly Make the collection read-only
tuneup Fully optimize for read-write use
publish Fully optimize for read-only use
The <spec> for -servlev is a hyphenated string of:
search Enable search and retrieval
insert Enable adding and updating documents
optimize Enable opportunistic collection optimization
assist Enable building of word list
housekeep Enable housekeeping of unneeded files
delete Enable document deletion
backup Enable backup
purge Enable background purging
repair Enable collection repair
dataprep Same as search-index-optimize-assist-housekeep
index Same as insert-delete
Error: must specify collection
mkvdk done
D:\fs840\webserv\peoplesoft> -
Can anyone tell me how to check the balance on an iTunes gift card that is not yet scratched?
Can anyone tell me how to check the balance on an iTunes gift card that is not yet scratched or activated?
If it's not printed on the card, then you'll need to check the receipt from the purchase of the card. There's no way to check the value from the card itself without redeeming it.
Regards. -
How will check the space taken by a single table in a tablespace ?
How will check the space taken by a single table in a tablespace ?
dba_segments is giving the same values even if I truncate the table?
Pls replyI need to know how can we find out the size of the table in the tablespace.use user_segments (bytes) column.
How much bytes it has taken ?value from user_segments, bytes column
If u delete records will the space be used for another table in same tablespace?No, it keep the space in the same table for future usage.
How can we free that space ?truncate or drop the table and reduce the size from tablespace, if you want to reclaim the space from the tablespace, OS level.
Jaffar -
How to check the resolution of a pdf file using Acrobat 9 pro?
How to check the resolution of a pdf file using Acrobat 9 pro?
PDF files don't have one resolution, but may have none or many different resolutions, one per image. You can check the maximum/minimum resoluion with preflight in Acrobat Pro, but not in Adobe Reader.
-
How to check the current EHP stack level? in SAP
Dear All,
How to check the current EHP stack level? in SAP . i have checked forum before i am posting but still comfused .
same one said SAP_APPL , EA_Appl and SAP _HR is 60n if n=1.2.3.4. if n =1 is enhanced package 1 similarly 2,3,4 .
some one said SAP_BASIS 701,702,703,704 . according ehp1,2,3,4.
Pls check the details and confirm either is ehp1 or ehp4 .
Component version is simply shows SAP ECC 6.0 in system -> status.
Software Component - Release - SP level
SAP_ABA 701 0007
SAP_BASIS 701 0007
PI_BASIS 701 0007
ST-PI 2008_1_700 0003
SAP_BS_FND 701 0008
SAP_BW 701 0007
SAP_AP 700 0021
WEBCUIF 700 0008
SAP_APPL 604 0008
SAP_HR 604 0029
SAP_HRCAR 604 0029
SAP_HRCAT 604 0029
SAP_HRCAU 604 0029
SAP_HRCBE 604 0029
SAP_HRCBR 604 0029
SAP_HRCCA 604 0029
SAP_HRCCH 604 0029
SAP_HRCCL 604 0029
SAP_HRCCN 604 0029
SAP_HRCDE 604 0029
SAP_HRCDK 604 0029
SAP_HRCES 604 0029
SAP_HRCFI 604 0029
SAP_HRCFR 604 0029
SAP_HRCGB 604 0031
SAP_HRCHK 604 0029
SAP_HRCID 604 0029
SAP_HRCIE 604 0029
SAP_HRCIN 604 0029
SAP_HRCIT 604 0029
SAP_HRCJP 604 0029
SAP_HRCKR 604 0029
SAP_HRCMX 604 0029
SAP_HRCMY 604 0029
SAP_HRCNL 604 0029
SAP_HRCNO 604 0029
SAP_HRCNZ 604 0029
SAP_HRCPH 604 0029
SAP_HRCPT 604 0029
SAP_HRCRU 604 0029
SAP_HRCSE 604 0029
SAP_HRCSG 604 0029
SAP_HRCTH 604 0029
SAP_HRCTW 604 0029
SAP_HRCUN 604 0029
SAP_HRCUS 604 0029
SAP_HRCVE 604 0029
SAP_HRCZA 604 0029
SAP_HRGXX 604 0029
SAP_HRRXX 604 0029
EA-IPPE 400 0018
EA-APPL 604 0008
EA-DFPS 600 0018
EA-FINSERV 604 0007
EA-GLTRADE 604 0008
EA-HR 604 0029
EA-HRCAR 604 0029
EA-HRCAT 604 0029
EA-HRCAU 604 0029
EA-HRCBE 604 0029
EA-HRCBR 604 0029
EA-HRCCA 604 0029
EA-HRCCH 604 0029
EA-HRCCN 604 0029
EA-HRCDE 604 0029
EA-HRCDK 604 0029
EA-HRCES 604 0029
EA-HRCFI 604 0029
EA-HRCFR 604 0029
EA-HRCGB 604 0029
EA-HRCHK 604 0029
EA-HRCID 604 0029
EA-HRCIE 604 0029
EA-HRCIN 604 0029
EA-HRCIT 604 0029
EA-HRCJP 604 0029
EA-HRCKR 604 0029
EA-HRCMX 604 0029
EA-HRCMY 604 0029
EA-HRCNL 604 0029
EA-HRCNO 604 0029
EA-HRCNZ 604 0029
EA-HRCPH 604 0029
EA-HRCPT 604 0029
EA-HRCRU 604 0029
EA-HRCSE 604 0029
EA-HRCSG 604 0029
EA-HRCTH 604 0029
EA-HRCTW 604 0029
EA-HRCUN 604 0029
EA-HRCUS 604 0029
EA-HRCVE 604 0029
EA-HRCZA 604 0029
EA-HRGXX 604 0029
EA-HRRXX 604 0029
EA-PS 604 0007
EA-RETAIL 604 0007
FINBASIS 604 0008
ECC-DIMP 600 0018
ERECRUIT 604 0008
FI-CA 604 0008
FI-CAX 604 0007
INSURANCE 600 0018
IS-CWM 600 0018
IS-H 600 0024
IS-M 600 0018
IS-OIL 600 0018
IS-PS-CA 604 0007
IS-UT 600 0018
LSOFE 600 0018
SEM-BW 604 0008
ST-A/PI 01M_ECC600 0001
Regards
Edited by: satheesh0812 on Nov 17, 2011 7:57 AMHi Sateesh,
SAP_ABA 701 0007
SAP_BASIS 701 0007
PI_BASIS 701 0007
ST-PI 2008_1_700 0003
SAP_BS_FND 701 0008
SAP_BW 701 0007
SAP_AP 700 0021
WEBCUIF 700 0008
SAP_APPL 604 0008
Based on the component information provided by you, I can conclude that your system is ECC 6.0 EHP4.
EHP4 is derived from your component SAP_APPL 604.
In addition to this your EHP4 system has NW stack on NW 7.0 EHP1.
Hence your system is ECC 6.0 EHP4 with NW 7.0 EHP1.
Hope this answers your query.
Regards,
Deepak Kori -
How to check the format (PAL or NTSC) of a DVD?
I wonder if someone can tell me how to check the format (PAL or NTSC) of DVD’s that I receive from my friends around the world. Many of them have no marking as to the format... Is there some software that can do this?
Hello Peace Freak,
have a look at myDVDedit (http://www.mydvdedit.com). It's actually designed to do postproduction on a DVD, but will also display a lot of info, such as TV standard, 16:9 vs. 4:3, etc.
Insert your DVD, then launch myDVDedit and open the VIDEO_TS folder contained in your DVD. Click the IFO tab to find the information you're looking for.
hope this helps
mish
Maybe you are looking for
-
Safari 4.1 is crashing right after the start
Hey guys, i've been searching this forum for quite a while to find solutions for the problem. As far as I can say its not this toolbar problem and nothing else I had found via search. Maybe you can point me into a right direction. Greetings! Date/Tim
-
WLC 5508 with LAP-1142n - Several Errors
Hello all, I had installed a WLC 5508 with 7 LAP 1142n and 2 converted AP 1131abg. I am seeing some errors relating 2 issues. 1st- One particular AP 1142 is disassociating and reseting the radios. /* Style Definitions */ table.MsoNormalTable {mso-sty
-
Macbook Pro w/retina & Haswell Processor Upgrade
I would be stoked if this was available to save on batter life, Will the macbook pro (mid 2013) be upgradable to the new intel haswell processor, if at anytime?
-
Jes Deinterlacer: when to use it?
I saw a tutorial movie on YTube about slow motion in FCPX. In this movie JES interlacer is used before Retime - Optical flow. But I saw I can get same result (maybe not just the same?...) directly using Retime in FCPX. Any advice?
-
1. I have been using Premiere Elements 7.0 for a while and have just installed PE8. Since I am quite familiar with the basics of PE I do not need the "Welcome Screen". How can I get rid of it? 2. Where can I find a manual for PE8? (I stll have the on