Oracle parameter distributed_lock_timeout
I am getting an application error : ORA-02049: timeout: distributed transaction waiting for lock
error? How do I keep the ORA-02049 from happening?how to modify this parameter?
As per oracle, this parameter is NOT supposed to be changed. This can adversly effect the database performance. See the metalink note,*30718.1* for the description of this parameter. And see the note *19332.1* for the example of it.
This parameter is a static parameter so it would require you to have a bounce of your db.
HTH
Aman....
Similar Messages
-
Physical Memory Upgrade [SAP, Oracle parameter changes]
Hello Guru,
Good day!
I'm not sure if I'm in the correct forum, please bare with me if I'm not.
We are actually planning to increase our Production [Physical Memory] server from its current size 15360GB including [oracle, SAP & OS] to 44GB memory. Do you have any idea how can we calculate to the most needed SAP / DB parameter should be increase after we allocate the 44GB in preparation for Go-Live. Below are details of my systems [oracle version, kernel, R/3 System, OS version, SAP parameter and DB parameter.
Reason for memory upgrade: will create two client in one system with a different number of users and different plant e.g. America / Canada
======================================================================
SAP R/3 Version: SAP 4.6C
Oracle Version: 10.2.0.4.0
OS Level: AIX 5.3
orapaa> oslevel -g
Fileset Actual Level Maintenance Level
bos.rte 5.3.8.0 5.3.0.0
Physical Memory
Real,MB 15360
======================================================================
kernel release 46D
kernel make variant 46D_EXT
compiled on AIX 1 5 0056AA8A4C00
compiled for 64 BIT
compile time Aug 17 2007 10:57:49
update level 0
patch number 2337
source id 0.2337
======================================================================
orapaa> prtconf
System Model: IBM,9117-MMA
Machine Serial Number: 06DDD01
Processor Type: PowerPC_POWER6
Processor Implementation Mode: POWER 6
Processor Version: PV_6_Compat
Number Of Processors: 4
Processor Clock Speed: 4208 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 9 SWT_AMR_SADCB335_SAP_HA_PRI
Memory Size: 15360 MB
Good Memory Size: 15360 MB
Platform Firmware level: Not Available
Firmware Version: IBM,EM340_095
Console Login: enable
Auto Restart: true
Full Core: false
======================================================================
Our current used SAP parameter
Profile parameters for SAP buffers Parameters Name Value Unit
Program buffer
abap/buffersize 850000 Kb
CUA buffer
rsdb/cua/buffersize 10000
Screen buffer
zcsa/presentation_buffer_area 20000000 Byte
Generic key table buffer
zcsa/table_buffer_area 100000000 Byte
Single record table buffer
rtbb/buffer_length 60000
Export/import buffer
rsdb/obj/buffersize 40000 kB
Table definition buffer
rsdb/ntab/entrycount 30000
Field description buffer
rsdb/ntab/ftabsize 60000 kB
Initial record buffer
rsdb/ntab/irbdsize 8000 kB
Short nametab (NTAB)
rsdb/ntab/sntabsize 3000 kB
Calendar buffer
zcsa/calendar_area 500000 Byte
Roll, extended and heap memory EM/TOTAL_SIZE_MB 6144 MB
ztta/roll_area 6500000 Byte
ztta/roll_first 1 Byte
ztta/short_area 1400000 Byte
rdisp/ROLL_SHM 16384 8 kB
rdisp/PG_SHM 16384 8 kB
rdisp/PG_LOCAL 150 8 kB
em/initial_size_MB 4092 MB
em/blocksize_KB 4096 kB
em/address_space_MB 4092 MB
ztta/roll_extension 2000000000 Byte
abap/heap_area_dia 2000000000 Byte
abap/heap_area_nondia 2000000000 Byte
abap/heap_area_total 2000000000 Byte
abap/heaplimit 40000000 Byte
abap/use_paging 0
======================================================================
Oracle Parameter
Oracle Parameter Name Value Unit
SGA_MAX_SIZE 6192 MB
PGA_AGGREGATE_TARGET 400 MB
DB_CACHE_SIZE 0
SHARED_POOL_SIZE 960 MB
LARGE_POOL_SIZE 16 MB
JAVA_POOL_SIZE 32 MB
LOG_BUFFER 14246912
db_block_buffers 655360
Thanks and regards,
MikeI feel the best way to get the parameters which needs to be adjusted is to go for EarlyWatch Check after increasing the Physical Memory of your SAP system, as we cannot say how and which parameters needs to be checked and changed.. as there is some dependiblity also between the parameters...
All the best ! -
Is it possible to pass a null Input Oracle parameter to a stored procedure
I have a stored procedure that take 3 inputs and gives 1 output.I'm using Oracle parameter to add all 3 input parameters as follows :
OracleParameter inobj = cmd.Parameters.Add("wid", OracleDbType.Int32,50);
inobj.Direction = ParameterDirection.Input;
inobj.Value = _employeeID;
and added the output parameter as follows:
OracleParameter outobj = _cmd.Parameters.Add("w_first", OracleDbType.Varchar2, 50);
outobj.Direction = ParameterDirection.Output;
On the UI end , the user has a choice to provide 1 input or all inputs or any 2 inputs based on his interest. Stored Proc looks as follows:
SP( inp1 in parameter, inp2 in parameter, inp3 in parameter, output1 out parameter)
If i just get 1 input or 2 inputs from the user, is it fine to query the data for output using same stored procedure or should i have individual stored procedures for each scenario(combination of different inputs)?
Will i get any pl/sql error that says invalid number of arguements?This means if i have 1 input , i need to have a different method to pass 1 parameter value and other input parameters as null and if there are 2 inputs will need different method to handle. So 5 different methods all together?
What if the stored procedure is as follows ,will its make things easier so that only one method is used for all scenarios?(optional parameters is set default value as null in the stored proc)
Create or Replace
Procedure GetFoo
(cur_z OUT sys_refcursor,
pub_date IN varchar2,
fname IN varchar2 default null,
lname IN varchar2 default null,
phone IN varchar2 default null
IS
BEGIN
---get some data
END;
*actually i can test this but, all the database servers are down today. So, i need to have idea if this thing works before i confirm with someone. Thanks. -
Oracle Parameter Recommedation
Dear Oracle Experts,
I have upgraded Oracle 10204 to 10205 and now i want to alter the oracle parameter while system Specs is:
Processors: x3690 X5, Xeon 8C E7-2820 105W 2.00GHz with 2 Processor
RAM: 32 GB
current initSID.ora
prd.__db_cache_size=738197504
*._OPTIM_PEEK_USER_BINDS=FALSE
*.compatible='10.2.0'
*.control_file_record_keep_time=30
*.db_block_size=8192
*.db_cache_size=4294967296
*.db_files=254
*.db_name='PRD'
*.dml_locks=4000
*.event='10191 trace name context forever, level 1'
*.FILESYSTEMIO_OPTIONS='setall'
*.job_queue_processes=1
*.log_buffer=1048576
*.log_checkpoint_interval=0
*.log_checkpoints_to_alert=true
*.open_cursors=800
*.optimizer_features_enable='10.2.0.1'
*.parallel_max_servers=160
*.pga_aggregate_target=629145600
*.processes=280
*.sessions=560
*.sga_max_size=5368709120
*.shared_pool_reserved_size=72461844
*.shared_pool_size=724618444
*.sort_area_retained_size=0
*.sort_area_size=2097152
*.statistics_level='typical'
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='PSAPUNDO'
*.user_dump_dest='G:\oracle\PRD\saptrace\usertrace'
*.workarea_size_policy='AUTO'
there are may parameters are not configure with respect to SAP Note 830576 - Parameter recommendations for Oracle 10g.
while my system is OLTP(SAP ECC 6.0) and please give me your expert suggestion with respect to 10.2.0.5 about following parameters.
STAR_TRANSFORMATION_ENABLED
_FIX_CONTROL
EVENT
_INDEX_JOIN_ENABLED
DB_FILE_MULTIBLOCK_READ_COUNT
OPEN_CURSORS
OPTIMIZER_INDEX_COST_ADJ
PARALLEL_THREADS_PER_CPU
PGA_AGGREGATE_TARGET
SHARED_POOL_SIZE
_FIRST_SPARE_PARAMETER
Regards,hi Deepkorri,
please confirm me...
the result of that script is:
INFORMATION 1 *** Parametercheck for Oracle 10.2. based on Note/Version: 830576/221
INFORMATION 2 *** Parametercheck last changed: 2011-12-22
INFORMATION 3 *** Parametercheck Execution: 2012-02-06 14:49:10
INFORMATION 4 *** DB Startup: 2012-02-04 18:00:16
INFORMATION 5 *** DB SID: PRD
INFORMATION 6 *** DB Environment: OLTP, not RAC
INFORMATION 7 *** DB Platform: Microsoft Windows x86 64-bit
INFORMATION 8 *** DB Patchset: 10.2.0.5.0
INFORMATION 9 *** Last detectable DB Mergefix: from SAP Bundle Patch (released 2011-06-10)
INFORMATION 10 *** Reliability checks: events passed, fixcontrols passed
INFORMATION 11 *** WARNING: Extended support for 10.2.0.5 only available with a special extended support contract (note 1431752)
there are main four columns(Name, Recommendation, IS_VALUE, SHOULD_BE_VALUE) in Result of the SELECT statement
now I have to change the parameter value according Recommendation.
Recommendation Columns consists value with
OK mean I have no need to change it
Automatic Check OK mean ?
IS_VALUE mean current value?
SHOULD_BE_VALUE mean must this value?
_fix_control (5099019) add with value "5099019:ON" 5099019:ON
_fix_control (5705630) add with value "5705630:ON" 5705630:ON
_fix_control (5765456) add with value "5765456:3" 5765456:3
_fix_control (6055658) add with value "6055658:OFF" 6055658:OFF
_fix_control (6399597) add with value "6399597:ON" 6399597:ON
_fix_control (6430500) add with value "6430500:ON" 6430500:ON
_fix_control (6440977) add with value "6440977:ON" 6440977:ON
_fix_control (6626018) add with value "6626018:ON" 6626018:ON
_fix_control (6670551) add with value "6670551:ON" 6670551:ON
_fix_control (6972291) add with value "6972291:ON" 6972291:ON
_fix_control (7692248) add with value "7692248:ON" 7692248:ON
_fix_control (7891471) add with value "7891471:ON" 7891471:ON
_fix_control (9196440) add with value "9196440:ON" 9196440:ON
_fix_control (9495669) add with value "9495669:ON" 9495669:ON
_fix_control (4728348) check if default value " " is suitable (set to 4728348:OFF if Winbundle<=5) set to 4728348:OFF if Winbundle<=5
_fix_control (6120483) ok (is not set; mentioned with other prerequisites/not mentioned in note)
_fix_control (6221403) ok (is not set; mentioned with other prerequisites/not mentioned in note)
_fix_control (6329318) ok (is not set; mentioned with other prerequisites/not mentioned in note)
_fix_control (6660162) ok (is not set; mentioned with other prerequisites/not mentioned in note)
_fix_control (7325597) ok (is not set; mentioned with other prerequisites/not mentioned in note)
event
event (38087) add with value "38087 trace name context forever, level 1" 38087 trace name context forever, level 1
event (10183) add with value "10183 trace name context forever, level 1" 10183 trace name context forever, level 1
event (10027) add with value "10027 trace name context forever, level 1" 10027 trace name context forever, level 1
event (10028) add with value "10028 trace name context forever, level 1" 10028 trace name context forever, level 1
event (10629) add with value "10629 trace name context forever, level 32" 10629 trace name context forever, level 32
event (14532) add with value "14532 trace name context forever, level 1" 14532 trace name context forever, level 1
event (10142) add with value "10142 trace name context forever, level 1" 10142 trace name context forever, level 1
event (38068) add with value "38068 trace name context forever, level 100" 38068 trace name context forever, level 100
event (38085) add with value "38085 trace name context forever, level 1" 38085 trace name context forever, level 1
event (44951) add with value "44951 trace name context forever, level 1024" 44951 trace name context forever, level 1024
event (10411) check if default value " " is suitable (set with level 1 if Winbundle>=3) set with level 1 if Winbundle>=3
event (10191) ok (is set correctly =) 10191 trace name context forever, level 1
event (10049) ok (is not set; mentioned with other prerequisites/not mentioned in note)
event (10091) ok (is not set; mentioned with other prerequisites/not mentioned in note)
event (10162) ok (is not set; mentioned with other prerequisites/not mentioned in note)
event (10753) ok (is not set; mentioned with other prerequisites/not mentioned in note)
event (10891) ok (is not set; mentioned with other prerequisites/not mentioned in note)
how and where(initSID.ora) i can set the value of above event and _fix parameters?
Regards, -
Hi,
We are using for all Oracle number columns the Oracle parameter type OracleType.Number.
Now we have seen that we can also use the type OracleTyp.Int32.
Is it better or faster to use this type for columns
which can use this type.
Have anybody experience with using Oracle data types ??
Kind Regards
MartinIt really depends on what kind of data you're inserting or updating. If you've data that can be accomodated in an integer, you should use OracleDbType.Int32 over OracleDbType.Decimal. You get much better performance by using Byte, Int16, Int32, Single, Double over Decimal but these types can not hold the same precision and scale as Decimal type can.
-
SAP Bundle Patches and Automatic Oracle parameter check script (note117165)
After reading SAP note 1027012 on SAP Bundle Patches and SAP note 1171650 on the
automatic Oracle parameter check script I have a simple question:
Is it still necessary to manually check whether some patch is installed in order to determine
exactly which event and fixcontrol to set?
Or is the automatic Oracle parameter check script so sophisticated that it is fully
sufficient to implement its recommendations, and you don't neet to manually
check any more which SBP with which bugfixes has been installed?
It would be great if SAP could confirm that the automatic parameter check is sufficient,
but so far I haven't seen this statement explicitly. I believe this is mostly because it
is so difficult (impossible?) to determine via SQL which patches have been applied.
Regards,
Mark>
> Is it still necessary to manually check whether some patch is installed in order to determine
> exactly which event and fixcontrol to set?
Yes and No.
until now, fixcontrol are dependent of CBO patches and those are "register" on the view v$system_fix_control. They can be "check" autmatically, so you get the "proper" recommendation for those.
the parameter event depends on different situations, like some patches. But those patches are "normal" patches and it is not possible to check if they are installed from inside the DB with a simple script. For those, the check script will tell you to do it manually and will tell you which patch has to be check
In addition, there are other parameters that have to be check "manually", like processes (where you get a "semiautomatic" check) or db_cache_size, where you should check if the size
> It would be great if SAP could confirm that the automatic parameter check is sufficient,
> but so far I haven't seen this statement explicitly. I believe this is mostly because it
> is so difficult (impossible?) to determine via SQL which patches have been applied.
The automatic parameter check is sufficient, meaning that you get all information, including the parameters that you have to check manually and some information for that check. Currently, it is not possible to automatize it 100% -
Oracle Parameter (SGA_MAX_SIZE / SGA_TARGET)
Hello together,
since yesterday we have a new oracle database on X64 (64BIT on Windows) with SAP R/3 4.7.
The server have 24GB ram and 2x quad Core CPU.
How can give me a good value for this parameters (for oracle)
SGA_MAX_SIZE
SGA_TARGET
I don't know what is a good size for such a hugh physikal memory!
Thank you
ChristianHello Christian,
the parameter SGA_TARGET is "not longer" supported by SAP.
Take a look at sapnote #828268
At the beginning of oracle 10g we have activated the ASMM ... but there is still a bug with oracle 10g which results in a hang situation (solved in 11g ... no backport planned)
For more information regarding to the bug... take a look at bugnotes on metalink 4466399/4472338
SGA_MAX_SIZE should be a little bit higher than the sum of all your memory pools (SGA), because of you can extend some areas dynamically on the fly (if you are using a spfile).
Regards
Stefan -
Oracle Parameter _FIX_CONTROL: EWA vs SAP Note Recommendation?
We have Oracle 11.2.0.2 on RedHat Linux
cat /$ORACLE_HOME/sapbundle/version.txt
SAP Bundle Patch 11.2.0.2.3 - 201108
For FIXCONTROL '6055658:OFF' what recommendation should I take the SAP Note or EWA?
1) SAP NOTE
In the SAP Note 1431798 "Oracle 11_2_0 Database Parameter Settings" ...
May 12, 2011:
added FIXCONTROL '6055658:OFF' for UNIX
FIXCONTROL
'6055658:OFF' UNIX SBP 11201x_date ( date >= 201105 )
So the SAP Note looks like FIXCONTROL should contain '6055658:OFF'
2) EWA
Settings defined but not recommended
6055658:OFF
Thanks in advance.Hello Bill,
You should always check and go with the recommendation from the parameter note.
10g - 830576
11g -1431798
For the fixcontrol parameters, these were introduced to allow enabling and disabling of optimizer fixes . The corresponding patch therefore needs to be installed to enable you to you set the required parameter. With EWA, this report usually flags any parameter which may require further checking, (ie because a note exists that details behaviour of setting this parameter for example a performance behaviour in OLTP versus OLAP). EWA is doing this to ensure that the DBA is aware that there is some additional step, info regarding the parameter. The Colleagues above have already mentioned to run the parameter script which checks it's result against the Oracle version parameter note and flags any incorrect setting and also provides the setting that is recommended. Before you do this you should check the relevant parameter note for these recommendations.
Hope this helps
Best Regards
Rachel
Edited by: Rachel Holloway on Mar 4, 2012 2:18 PM -
Required mentioned details to configure Oracle parameter Alert
Dear all,
We plan to configue alert to monitor our SAP server.
Oracle Parameters:
Performance:
1, Data Buffer Cache hit ratio
2, Library cache hit ratio
3, Dictionary cache
4, "Deadlocks
Which lock(s) are these?"
5, What are the current top 10 SQL queries in terms of resource utilization?
Capacity :
1, Are there objects that have reached their maximum extent? Which ones are these?
2, Are any of the tablespaces reaching their storage capacity?
3, Is there any invalid object in the database?
Kindly suggest where can get all the above details .
Regards
SathiesHi,
Below SAP help documents will give you more informatino,
http://help.sap.com/saphelp_nw04/helpdata/en/df/455ea7747111d6b25100508b6b8a93/frameset.htm
Note 483856 - Description of the alerts for Oracle database monitoring
Note 1139623 - Using transaction RZ20 to monitor remote Oracle databases
Note 1431798 - Oracle 11.2.0: Database Parameter Settings
Note 1289199 - Information about Oracle parameters
Regards
Nagaraju -
Hi...
I have Oracle 8i installed on a Linux server.
Now I installed 9i in another server and upgraded an Oracle 8i database.
But there are some queries that I have performance problems. For example, when I run in SQL Navigator a simple select that returns 2000 rows, the first 100 rows comes fast, a long time later the next 100 are returned, then the next 100 takes a long time too, and so on. It´s like Oracle could not allocate space for the result set.
The value of SORT_AREA_SIZE parameter and the size of TEMP tablespace are the same on both servers.
Any ideas?
Thanks a lotWhat version of 9.2? You should be on at least 9.2.0.6 but really should probably have upgraded to 9.2.0.8.
Between 8.1.7 and 9.2.0 more than 16 hidden parameters which affect the optimizer changed. There were bugs associated with several of these parameters. Upgrading to .6, .7, and .8 provide the fixes for most of the bugs I have read about.
Make sure you updated the statistics after the upgrade. Some SQL statements will just need to be tunned.
Carefully compare the database parameters sets as the use of 9.2 automatic space management (SGA management) and use of the pga_aggregate_target prameter change the environment and query performance can change as a result.
Basic tuning will work to take care of most of the problems in short order.
HTH -- Mark D Powell -- -
Hi Friends,
We have to change the parameter db_cache_size in our oracle 10g database.
What is the unit (kb, mb or gb) of value to be assigned. We have to increase it upto 16gb currently it is 8 gb.
What are the precaution should be taken to change this parameter, application down , user lock etc.
Please help me ?
Regards
Ganesh Datt Tiwari>
tiwari.ganeshdatt wrote:
> Hi Friends,
> We have to change the parameter db_cache_size in our oracle 10g database.
>
> What is the unit (kb, mb or gb) of value to be assigned. We have to increase it upto 16gb currently it is 8 gb.
Hi
Look at the documentation:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams043.htm
there you can see that you can specify it in several units
> DB_CACHE_SIZE = integer [K | M | G]
>
tiwari.ganeshdatt wrote:
>
> What are the precaution should be taken to change this parameter, application down , user lock etc.
It depends (as usual)
I prefer to change the parameter in the spfile and then stop SAP and restart oracle.
Keep in mind other parameters that you may have set (like SGA_TARGET and SGA_MAX_SIZE) as you may have to modify them aswell -
Hi,
my Oracle DB is 10.2.0.5 version
O.s. Linux Red Hat
I need to modify some parameter into parameter file:
Some parameters are below:
audit_sys_operations
audit_trail
compatible
db_cache_size
event
java_pool_size
job_queue_processes
large_pool_size
pga_aggregate_target
processes
session_cached_cursors
sessions
sga_max_size
sga_target
into path $ORACLE_HOME/dbs I've these files:
init.ora
initdw.ora
spfileorcl.ora
pfileORCL.ora
orapworcl
spfileORCL.ora
Which step I have to perform to change these parameters?
Thanks in advance!first of all check whether you are using pfile or spfile.
SHOW PARAMETER SPFILE;
If you get the output in the VALUE column then you can directly issue the below command to change the parameters:
ALTER SYSTEM SET <PARAMETER_NAME>=<VALUE>;
You need to use the SCOPE clause depending on the nature of the parameters.
If you dont get the output in the VALUE column, then its better to create the spfile by using the command:
CREATE SPFILE FROM PFILE;
Then you can use the above method.
And if you want to use the pfile only, then you have to change the parameters manually in that file.
Some parameter changes need the bouncing of the database, while some dont need. -
Hi All,
I got these database profile warning in the dbcheck.
BR0978W Database profile alert - level: WARNING, parameter: OPTIMIZER_FEATURES_ENABLE, value: 10.2.0.4 (set in parameter file)
BR0978W Database profile alert - level: WARNING, parameter: STATISTICS_LEVEL, value: TYPICAL (set in parameter file)
We are using oracle 10.2.0.4. Why are these warning keep poping out in the log?
Many thanks
LauranBR0978W Database profile alert - level: WARNING, parameter: OPTIMIZER_FEATURES_ENABLE, value: 10.2.0.4 (set in parameter file)
BR0978W Database profile alert - level: WARNING, parameter: STATISTICS_LEVEL, value: TYPICAL (set in parameter file)
You need to set these parameters setting in DB17 tcode. check below link
DB check warnings & errors
Thanks
Sushil -
Oracle parameter - how to reset to the default value ?
Hi
I saw once how to reset the init.ora parameter to the default value with "ALTER SYSTEM" clause. I've read the manual but I couldn't find it.
Do you know how to do it?
Regards
Paul G. Matuszyk
Message was edited by:
Paul G. MatuszykALTER SYSTEM set <parameter> = <value>; - if not using SP file. and also change in int file.
ALTER SYSTEM set <parameter> = <value> scope=<memory or spfile or both> ; - if using SP file.
Only some parameters can be changed this way not all.
rgds -
Oracle date parameter query not working?
http://stackoverflow.com/questions/14539489/oracle-date-parameter-query-not-working
Trying to run the below query, but always fails even though the parameter values matches. I'm thinking there is a precision issue for :xRowVersion_prev parameter. I want too keep as much precision as possible.
Delete
from CONCURRENCYTESTITEMS
where ITEMID = :xItemId
and ROWVERSION = :xRowVersion_prev
The Oracle Rowversion is a TimestampLTZ and so is the oracle parameter type.
The same code & query works in Sql Server, but not Oracle.
Public Function CreateConnection() As IDbConnection
Dim sl As New SettingsLoader
Dim cs As String = sl.ObtainConnectionString
Dim cn As OracleConnection = New OracleConnection(cs)
cn.Open()
Return cn
End Function
Public Function CreateCommand(connection As IDbConnection) As IDbCommand
Dim cmd As OracleCommand = DirectCast(connection.CreateCommand, OracleCommand)
cmd.BindByName = True
Return cmd
End Function
<TestMethod()>
<TestCategory("Oracle")> _
Public Sub Test_POC_Delete()
Dim connection As IDbConnection = CreateConnection()
Dim rowver As DateTime = DateTime.Now
Dim id As Decimal
Using cmd As IDbCommand = CreateCommand(connection)
cmd.CommandText = "insert into CONCURRENCYTESTITEMS values(SEQ_CONCURRENCYTESTITEMS.nextval,'bla bla bla',:xRowVersion) returning ITEMID into :myOutputParameter"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.ReturnValue
p.DbType = DbType.Decimal
p.ParameterName = "myOutputParameter"
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion"
v.Value = rowver
cmd.Parameters.Add(v)
cmd.ExecuteNonQuery()
id = CType(p.Value, Decimal)
End Using
Using cmd As IDbCommand = m_DBTypesFactory.CreateCommand(connection)
cmd.CommandText = " Delete from CONCURRENCYTESTITEMS where ITEMID = :xItemId and ROWVERSION = :xRowVersion_prev"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.Input
p.DbType = DbType.Decimal
p.ParameterName = "xItemId"
p.Value = id
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion_prev"
v.Value = rowver
v.Precision = 6 '????
cmd.Parameters.Add(v)
Dim cnt As Integer = cmd.ExecuteNonQuery()
If cnt = 0 Then Assert.Fail() 'should delete
End Using
connection.Close()
End Sub
Schema:
-- ****** Object: Table SYSTEM.CONCURRENCYTESTITEMS Script Date: 1/26/2013 11:56:50 AM ******
CREATE TABLE "CONCURRENCYTESTITEMS" (
"ITEMID" NUMBER(19,0) NOT NULL,
"NOTES" NCHAR(200) NOT NULL,
"ROWVERSION" TIMESTAMP(6) WITH LOCAL TIME ZONE NOT NULL)
STORAGE (
NEXT 1048576 )
Sequence:
-- ****** Object: Sequence SYSTEM.SEQ_CONCURRENCYTESTITEMS Script Date: 1/26/2013 12:12:48 PM ******
CREATE SEQUENCE "SEQ_CONCURRENCYTESTITEMS"
START WITH 1
CACHE 20
MAXVALUE 9999999999999999999999999999still not comming...
i have one table each entry is having only one fromdata and one todate only
i am running below in sql it is showing two rows. ok.
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between '830' and '850' and t1.U_frmdate ='20160801' and t1.u_todate='20160830'
in commond promt
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between {?FromEmid} and {?ToEmid} and t1.U_frmdate ={?FDate} and t1.u_todate={?TDate}
still not showing any results..
Maybe you are looking for
-
"package javax.xml .rpc does not exist" error when compiling client jar
When I try to compile the web services client jar with either the clientgen or the <client> element of servicegen I get the following error "package weblogic.webservice.core.rpc does not exist" Here is the error output [servicegen] C:\Documents and S
-
Mac OS X 10.6.8 software updates quites unexpectedly, any idea??
Mac OS X 10.6.8 software updates quites unexpectedly, any idea?? Process: Software Update [15049] Path: /System/Library/CoreServices/Software Update.app/Contents/MacOS/Software Update Identifier: com.apple.SoftwareUpdate Versi
-
the above question
-
Cannot download coverted pdf to word file
Signed up last evening for the product. Uploaded 2 documents for conversion from pdf to word. Conversion runs and indicates file is available for down load. Click on down load and get this error message.
-
Hi! I need to integrate BlazeDS security with an external security mechanism so I have implemented custom authentication as described in http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=services_security_1 .html. Now I need to i