The initialization of sqlca.sqlerrm.sqlerrmc in proc code
In a proc code, after a EXEC SQL block, the value of sqlca.sqlcode and sqlca.sqlerrm.sqlerrmc will be set to certain value.
If I use two SQL continuously, the value of sqlca.sqlerrm.sqlerrmc will be reset after the second SQL. However, if the value of sqlca.sqlerrm.sqlerrmc is "ABCD" in the first SQL and the value returned by the second SQL is "EFG", whether the value of sqlca.sqlerrm.sqlerrmc after the second SQL will be set to "EFG" correctly? Or whether I need to use "memset(sqlca.sqlerrm.sqlerrmc, 0, sizeof(sqlca.sqlerrm.sqlerrmc));" before the second SQL in order to ensure the correct value of sqlca.sqlerrm.sqlerrmc? How about sqlca.sqlcode?
Thx in advance.
I assume you are referring to the PRO*C language?
You're in the wrong forum, this is for SQL and PL/SQL languages. Please find the correct forum and post there instead.
Similar Messages
-
The to_date() error in where clause of proc code
In a proc code, firstly I use "SELECT to_char(f_date_1, 'DDMONYY') into :char_date FROM TBL_1;" to get the value of f_date_1.
Then I use "SELECT ID FROM TBL_2 WHERE f_date_2 = :char_date;" to get the value of ID according char_date.
In table, the type of f_date_1 and f_date_2 is DATE.
char_date is "char char_date[10]".
My question is:
1. If I use WHERE f_date_2 = to_date(:char_date, 'DDMONYY'), it will prompt: "-1861, ORA-01861: literal does not match format string".
2. If I use WHERE f_date_2 = :char_date, it will work well.
Since the type of f_date_2 is DATE and the type of char_date is CHAR, why does to_date(:char_date, 'DDMONYY') have problems?
Thanks.I was not able to duplicate the error you got, but I did spot something that may be affecting your results:
*Set up test table using HR.EMPLOYEES*
create table TEST_DATE as
select employee_id, last_name, hire_date
from employees
var char_date char(10)
begin
select to_char(hire_date,'DDMONYY') into :char_date
from test_date
where rownum = 1;
end;
*case 1*
select *
from test_date
where hire_date = to_date(:char_date,'DDMONYY')
*case 2*
select *
from test_date
where hire_date = :char_date --> this assumes a implicit char to date conversionWhile I got case 2 to work, it assumes that the database is configured to recognize the character mask as a valid string format. If you tried running that query on a different database, this query may fail as well.
To verify why case 1 may not have worked, do a quick check:
select :char_date from dualIt is possible that you may have applied a different character mask between your first query:
>
SELECT to_char(f_date_1, 'DDMONYY') into :char_date FROM TBL_1;
>
and the WHERE clause of your second query:
>
WHERE f_date_2 = to_date(:char_date, 'DDMONYY')
>
RP -
ProC code- error ORA-1002 fetch out of sequence
Hi,
we have an application currntly running on an HP UX system that uses Oracle 9i database.
the pro*C codes work fine with Oracle 9i, on the older system. however now we are migrating it to LINUX system (ORACLE 10g). in the new system we are facing issues with fetch statement
here is how we have the code:
the cursor statement:
EXEC SQL DECLARE diff_cns_list CURSOR FOR
select PREV.CNS_CODE,
PREV.CNS_DESCRIPTION,
PREV.CGP_CODE,
CURR.CNS_DESCRIPTION,
CURR.CGP_CODE
from NCIP_CNS_LIST PREV, NCIP_CNS_LIST CURR
where CURR.SAMPLE_DATE =
to_date('01' || :currdate || ' 00:00','ddyymm hh24:mi')
and PREV.SAMPLE_DATE =
to_date('01' || :prevdate || ' 00:00','ddyymm hh24:mi')
and PREV.CNS_CODE = CURR.CNS_CODE
and (PREV.CGP_CODE != CURR.CGP_CODE or
PREV.CNS_DESCRIPTION != CURR.CNS_DESCRIPTION);
======================
currdate=1106 (i.e. june 2011)
prevdate=1105 (i.e. may 2011)
======================
cursor is opened and then following fetch statement is run:
while( 1 )
exec sql FETCH diff_cns_list INTO :prev_vcns,
:prev_vdesc,
:prev_vcgp,
:curr_vdesc,
:curr_vcgp;
/* If no data found then exit from loop */
if( sqlca.sqlcode == 1403 )
break;
else if( sqlca.sqlcode != 0 )
vLOG_Msg(LOG_MSG_ERROR,"fniCmpNcipCnsList",
"ORACLE error on fetching diff_cns_list %s", sqlca.sqlerrm.sqlerrmc);
return( ERROR );
oravarterm( prev_vcns );
oravarterm( prev_vdesc );
oravarterm( prev_vcgp );
oravarterm( curr_vdesc );
oravarterm( curr_vcgp );
fprintf( output_fp,"'%s','%s','%s','%s','%s'\r\n",prev_vcns.arr,
prev_vdesc.arr,
prev_vcgp.arr,
curr_vdesc.arr,
curr_vcgp.arr);
the code runs fine in the old operating system (HP UX) where oracle 9i was used.
but fails in Oracle 10g(OS-LINUX).
the probable reason that we found out is that:
the fetch statement returns zero rows, that is the reason why this error is being displayed.
but Oracle 9i seemed to work out well with this.
we tried reducing the cursor conditions, where it fetches 3 rows. this is when is the fetch statement works fine.
the functionality of the code is that it should work fine even with no rows selected. Is there a way we can modfy the code to work with zero rows as well.
the error we are getting is : ORA-01002: fetch out of sequence
==========================
as per what is given in Oracle sites:
1) Fetching from a cursor after the last row has been retrieved and the ORA-1403 error returned. 2) If the cursor has been opened with the FOR UPDATE clause, fetching after a COMMIT has been issued will return the error. 3) Rebinding any placeholders in the SQL statement, then issuing a fetch before reexecuting the statement.
========================
we have checked:
1>this is not the case and ORA-1403 not returned
2>No update statements involved , there is a insert statement which inserts data in this table
3>i am not clear with this one.
Could anyone please guide us through this, please?Note the name of this forum is SQL Developer (Not for general SQL/PLSQL questions) - so for issues with the SQL Developer tool. Please post these questions under the dedicated OCCI forum (you've posted there before).
Regards,
K. -
The return value of sqlcode when select an empty table in a proc code
Table: test
there is an empty table. But when I use "select * from test" in a proc code, I found the return value of sqlca.sqlcode is 0, not 1403 (NO MORE DATA). Why ?EXEC SQL DECLARE individual_cursor CURSOR for
SELECT IATA_C, DELAY, UPDATE_TIME
FROM TBL_TIME
WHERE IATA_C <> '***' AND
FLAG = 1;
EXEC SQL OPEN individual_cursor;
while(1) {
printf("in while");
if (sqlca.sqlcode == 1403 && individual_flag == 0) {
printf("no any data");
return 1;
} else if (sqlca.sqlcode == SQLNOMORE) {
break;
EXEC SQL FETCH individual_without_general_cursor INTO :pnrtime.airline, :pnrtime.delay, :pnrtime.update_time;
EXEC SQL CLOSE individual_cursor;
The result is:
in while
in while
no any data
Since the table is empty, why "in while" is printed twice? And "no any data" is printed in the end? I cannot decide the empty when using "select ... into" in proc unless using "select count(*) from test", right? Thx. -
Format of the initialization string does not conform to specification starting at index 97.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Format of the initialization string does not conform to specification starting at index 97.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Hello,
The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.
Since your post is off-topic, I am moving it to the
off topic forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Error while running the initialize service to create a new application
Hi,
I tried running the initialze service,when I encountered this error.Can anyone help me whith this.
Setting EAC provisioning and performing initial setup...
[03.20.13 23:32:37] INFO: Checking definition from AppConfig.xml against existing EAC provisioning.
[03.20.13 23:32:38] INFO: Setting definition for application 'Endeca'.
[03.20.13 23:32:38] INFO: Setting definition for host 'AuthoringMDEXHost'.
[03.20.13 23:32:39] INFO: Setting definition for host 'LiveMDEXHostA'.
[03.20.13 23:32:39] INFO: Setting definition for host 'ReportGenerationHost'.
[03.20.13 23:32:39] INFO: Setting definition for host 'WorkbenchHost'.
[03.20.13 23:32:39] INFO: Setting definition for host 'ITLHost'.
[03.20.13 23:32:40] INFO: Setting definition for component 'AuthoringDgraph'.
[03.20.13 23:32:40] INFO: [AuthoringMDEXHost] Starting shell utility 'mkpath_dgidx-output'.
[03.20.13 23:32:41] INFO: [AuthoringMDEXHost] Starting shell utility 'mkpath_forge-output'.
[03.20.13 23:32:42] INFO: [AuthoringMDEXHost] Starting shell utility 'mkpath_cumulative-partials'.
[03.20.13 23:32:44] INFO: [AuthoringMDEXHost] Starting shell utility 'mkpath_dgraph-config'.
[03.20.13 23:32:45] INFO: [AuthoringMDEXHost] Starting shell utility 'mkpath_local-dgraph-input'.
[03.20.13 23:32:46] INFO: [AuthoringMDEXHost] Starting shell utility 'mkpath_local-cumulative-partials'.
[03.20.13 23:32:48] INFO: [AuthoringMDEXHost] Starting shell utility 'mkpath_local-dgraph-config'.
[03.20.13 23:32:49] INFO: Setting definition for component 'DgraphA1'.
[03.20.13 23:32:50] INFO: Setting definition for script 'PromoteAuthoringToLive'.
[03.20.13 23:32:50] INFO: Setting definition for custom component 'WorkbenchManager'.
[03.20.13 23:32:51] INFO: Updating provisioning for host 'ITLHost'.
[03.20.13 23:32:51] INFO: Updating definition for host 'ITLHost'.
[03.20.13 23:32:51] INFO: [ITLHost] Starting shell utility 'mkpath_temp'.
[03.20.13 23:32:53] INFO: Setting definition for custom component 'IFCR'.
[03.20.13 23:32:53] INFO: Updating provisioning for host 'ITLHost'.
[03.20.13 23:32:53] INFO: Updating definition for host 'ITLHost'.
[03.20.13 23:32:54] INFO: Setting definition for component 'LogServer'.
[03.20.13 23:32:54] INFO: [ReportGenerationHost] Starting shell utility 'mkpath_input'.
[03.20.13 23:32:56] INFO: Setting definition for script 'DaySoFarReports'.
[03.20.13 23:32:56] INFO: Setting definition for script 'DailyReports'.
[03.20.13 23:32:56] INFO: Setting definition for script 'WeeklyReports'.
[03.20.13 23:32:57] INFO: Setting definition for script 'DaySoFarHtmlReports'.
[03.20.13 23:32:57] INFO: Setting definition for script 'DailyHtmlReports'.
[03.20.13 23:32:57] INFO: Setting definition for script 'WeeklyHtmlReports'.
[03.20.13 23:32:57] INFO: Setting definition for component 'WeeklyReportGenerator'.
[03.20.13 23:32:58] INFO: Setting definition for component 'DailyReportGenerator'.
[03.20.13 23:32:58] INFO: Setting definition for component 'DaySoFarReportGenerator'.
[03.20.13 23:32:59] INFO: Setting definition for component 'WeeklyHtmlReportGenerator'.
[03.20.13 23:32:59] INFO: Setting definition for component 'DailyHtmlReportGenerator'.
[03.20.13 23:33:00] INFO: Setting definition for component 'DaySoFarHtmlReportGenerator'.
[03.20.13 23:33:00] INFO: Setting definition for script 'BaselineUpdate'.
[03.20.13 23:33:00] INFO: Setting definition for script 'PartialUpdate'.
[03.20.13 23:33:01] INFO: Setting definition for component 'Forge'.
[03.20.13 23:33:01] INFO: [ITLHost] Starting shell utility 'mkpath_incoming'.
[03.20.13 23:33:03] INFO: Setting definition for component 'PartialForge'.
[03.20.13 23:33:03] INFO: [ITLHost] Starting shell utility 'mkpath_incoming'.
[03.20.13 23:33:05] INFO: Setting definition for component 'Dgidx'.
[03.20.13 23:33:05] INFO: Definition updated.
[03.20.13 23:33:05] INFO: Provisioning site from prototype...
[03.20.13 23:33:06] SEVERE: null
Occurred while executing line 3 of valid BeanShell script:
1|
2|
3| IFCR.provisionSite();
4| WorkbenchManager.updateWsConfig();
5|
6|
[03.20.13 23:33:06] SEVERE: Caught an exception while invoking method 'run' on object 'InitialSetup'. Releasing locks.
Caused by java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl invoke0 - null
Caused by com.endeca.soleng.eac.toolkit.exception.AppControlException
com.endeca.soleng.eac.toolkit.script.Script runBeanShellScript - Error executing valid BeanShell script.
Caused by java.lang.NullPointerException
com.endeca.soleng.eac.toolkit.utility.IFCRUtility extractIfcrErrorMessage - null
regards,
RahulHi Ritwik,
I got this error while running the initialze service . I checked the Dgidx log but there was no log generated as I'm still running the initialize service.
I even checked the workbench port and hostname.Every thing looks fine.
but im not able to login or see the workbench login web page whn i try to access it with the hostname:portnumber .
Regards,
Rahul -
An error occurred during the initialization of the view manager - Web IC
We just upgraded our CRM Dev system from 4.0 to 5.0. We've already done this once on our Sandbox. However, in our Dev environment, I execute CRM_IC. Select my profile and then get an exception.
An error occurred during the initialization of the view manager
An exception has occurred
Exception Class CX_SY_REF_IS_INITIAL
Text: Dereferencing of the NULL reference
Program: CL_BSP_WD_VIEW_MANAGER========CP
Include: CL_BSP_WD_VIEW_MANAGER========CM003
Source Text Row: 86
This is the line of code that the exception occurs. I debugged through, but not sure what the problem is. It seems like it should have something to do with the runtime profile, but I can't seem to find anything wrong. This problem doesn't happen in the sandbox, but we are on a slightly higher support pack in our Development environment.
get own initial rep view reference
INITIAL_REP_VIEW = REPOSITORY->GET_INITIAL_VIEW( ).
Any ideas? I've already search OSS.
Thanks, CatThirumala,
Thank for your reply. I already recompiled CRM_IC. I'm trying to execute the standard Webclient and still getting the error. I also reactivated CRM_IC_DT_REP and CRM_IC_RT_REP, but no luck. I went to SICF and made sure all the services starting with CRM_IC were activated too. Any other suggestions?
Thanks,
Cat -
How to set/get the initialization vector
Hi,
I have an existing database (built by non-java code) containing encrypted data. I know the algorithm, the key and the initialization vector to use in order to decrypt this data. (This is straight-forward DES encryption.)
My problem is that I can't tell from the java documentation how to set the initialization vector on a Cipher object when I need to perform decryption.
As an aside, when I try and encrypt data - the results from Cipher.getIV () are always null.
Any help greatly appreciated,
Thanks,
--JatinderTo set the initialisation vector for a Cipher, you need to use the IvParameterSpec class and specifically create the initialisation vector. This class implements the AlgorithmParameterSpec interface. This is used in one of the init() methods for the Cipher class when you set up the Cipher (ie. it accepts parameters for the mode, key and parameter spec). I also found that this was difficult to work out from the supporting documentation.
To get the initialisation vector for a Cipher, use the getIV() method after you have performed the init() call. If the vector has not been initialised before the init() call, you mayget a random result. If it has been initialised specifically, it will print out the vector that you initialised it with - I have tried this out.
Hope this helps. -
Doing the Initialization with selection?
Hi Gurus,
1. Please explain the difference between full Update and Delta Initialization with data transfer, and should Full update need to be
used if the Delta initialization with data transfer is already done ?.
2. For doing the initialization with selection in FI-AR loads do we need to take the back up of existing data in the cube ?
And please explain with steps to be followed in case U have any document( COPA related and FI related) will request you to please forward me on
<REMOVED_BY_MODERATOR> will be highly obliged.
Thanks in Advance. Waiting for Warm replies.
Thanks&Regards
SAPSDN
Please search the forum before posting a thread. Please read the rules of engagement
Edited by: Pravender on Feb 12, 2012 1:57 PMHi Fabio,
helpfull answer, but the solution was, to set up into the Infocube the following:
RSDCUBE -> Extras -> Structure-specific Properties -> 'Display'-field. -
Is there a way to call a function with in the initializer of a ArrayCollection?
Is there a way to call a function with in the initializer of a ArrayCollection?
It won't let me do this:
var ac:ArrayCollection = new ArrayCollection([
{childName:'addTrade',index:addTradeIndex },
{childName:'tradeList',dealsCanvas.getChildIndex(tradeList) }The correct syntax is
var ac:ArrayCollection = new ArrayCollection([
{childName:'addTrade',index:addTradeIndex },
{childName:'tradeList',index:dealsCanvas.getChildIndex(tradeList) } -
Delete the initialization of delta on open hub table
HI Gurus
I have loaded data from cube to open hub table using DTP with full update, later on i have loaded the data using a DTP with delta update. Now i am thinking that delta has been initialized on the open hub table, so now want to delete the initialization of delta on the open hub table. It would be great if some one could send me the response.
Thanks
RohitHi Sam,
If I understand you correctly,
You have removed your Initialisation by going InfoPackage --> Scheduler --> Initialization Options for Source --> Removed the Request
Then you did Init without Data Transfer
Then you have the option from init withoout Data transfer to Delta in InfoPackage and Loaded the Data.
Check in the Process Chain the InfoPackage you have mentioned in the selections may pointing towards Init load instead of Delta.
Sudhakar. -
What is the proces code for mbgmcr
what is the proces code for mbgmcr
HI,
This is the Functionmodule under that process code
MB_CREATE_GOODS_MOVEMENT
Regards
Sudheer -
Doc. for using 'Simulate the Initialization of the Delta Pro'
Hello!
I am trying to find documentation on using the 'Simulate the Initialization of the Delta Procedure' in the SBIW of the SAP R/3 system 3.1i.
If anyone can provide the documentation or a link to the correct source, I woul appreciate it greatly.
Thank you,
Sharon Bomberger
[email protected]Hello Sharon,
jere is the documentation:
Delta process initialization simulation
Use
If the delta process has not yet been initialized, but you want to test the delta upload, you have the option of simulating the initialization.
This runs the help entries in all the required tables in BW and in the source system, without loading any data from the source system.
In the monitor, you get a message telling you that a record has been loaded. The initialization-simulation request appears in all the data targets in which an update has taken place. However, this request contains only help entries. The simulation does not update any data in the data targets.
Dependencies
After you have tested the delta upload in this way, initialize the delta process.
Note
You are able to simulate the initialization of the delta process for extractors available as of PlugIn 99 (A), that is, BW-BCT 2.0.
Kind reg.
Michael -
Hi,
I am using a CAN bus to control signal from my PC. When i run the program it gives me an error " A PCAN Channel has not been initialized yet or the initialization process has failed ". Is there anyone who can tell me how to remove this error because i am stuck with this problem.So you have a problem with your PCAN hardware (Non NI hardware) ?
Have you connected/plugged in your PCAN dongle ?
Is it looking for the right port? -
Revision: 18840
Revision: 18840
Author: [email protected]
Date: 2010-11-29 12:41:55 -0800 (Mon, 29 Nov 2010)
Log Message:
bug fix of BLZ-576, add the initialization to one of the counter
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-576
Modified Paths:
blazeds/trunk/modules/core/src/flex/management/runtime/messaging/endpoints/EndpointContro l.java
Maybe you are looking for
-
I want to connect my ibook G4 to my Sony HD TV - I have the adapter that came with the ibook. But, it is so short - When I attach it to the back of my TV and the other end to my ibook - I'm on the back of the TV and can't see. If this is really stupi
-
Sirs Could you please help me with an issue that I currently have with iPhoto. As a Christmas Present for my 6 year old daughter, I have created an iPhoto book of our recent trip to EuroDisney. I completed the book and purchased it via the Apple Stor
-
What does this mean? Has anyone seen before?
-
File extension not showing after a clip has been captured
Hi , I am using Adobe CS6 and am capturing in DVCAM format as soon as a clip is being captured , a new project is created with the captured clip in that But the issue is i am not able to get the file extension for ex: if you right click on that new c
-
Screen is now dim/darker in Windows Boot Camp
I'm running Windows XP on my iMac through boot camp. While playing WoW the other day the screen suddenly dimmed as if someone had just drastically reduced the brightness/gamma. This has never happened before. When I reboot, the screen is bright as no