How to find Connection is commitable ?
Hi, i have one requirement that is i first made a connection object to connection.setAutoCommit(false); and i done some sql operations in the connection like execute select/inser/update statement after i finish all the operation i want to call commit on the connection object, but before calling the commit method is there is any way to find is the connection is commitable or not, if it is not commitable i need to call rollback
thanks in advance
baiju
Yes, almost all popular drivers support local transaction (transaction with in same connection object), but my requirement is to write a connection manager that will have number of dirrerent connection i want to write code for two phase commit on all the connection, it i first check weather all the connection object is commitable/or can call commit or i need to roll back all the connection objects in the transaction, so before executing any commit/rollback on all the connection i want to identfiy that all the connection is commitable or not
thank you
Similar Messages
-
Urgent!! how to find the recent committed record
how to find the recent commited record
if the records are inserted at the same time?Use ORDER BY(DateColumn)...
I don't have any other idea... -
How to find the recent committed record
how to find the recent commited record
if the records are inserted at the same time?Use ORDER BY(DateColumn)...
I don't have any other idea... -
Hi,
I have a spatial table with geom type as 2002.
I have a set of line (for example lets say it is 5 rows) attach image.
I need to find line that is inner connecting to these 5 rows. What I mean is a boundary line has inner line.
I am unable to get inner lines of a boundary.
If I query spatial table I get boundary line but i want inner lines.
attach is snapshot for ref.
thanks in advance
saazThanks B Hall and Stefan Jager @@for your inputs.
Actually, in my database that has spatial geometry information has SDO_GTYPE is 2002 for ids that are connected to each other.
and I have a second table that has no spatial geometry by a polygon information (more than one line).
so for example in my poly_tab and line_tab
poly_tab
poly_id line_id
46951 1001
46951 1005
46951 1009
46951 1032
46951 1036
56102 1072
56102 1079
56102 1082
39024 1050
39024 1045
........ and so on (note no spatial geometry column here and line_id is fk to line_tab and this table has line geom)
also to be noted here that 1002 and 1003 has no record in poly_tab table.
line_tab
line_id mdsys.geometry(sdo_gtype
1001 2002
1005 2002
1009 2002
1032 2002
1036 2002
1072 2002
1079 2002
1082 2002
1050 2002
1045 2002
1002 2002
1003 2002
1019 2002
lets says if I query poly_tab where poly_id = 46951
it should display
line_id
1001
1005
1009
1032
1036
1002
1003
note 1002 and 1003 are inner lines for this polygon but in poly_tab this line does not exits. (in poly table only boundary line exists)
@Stefan Jager
thanks in advance
saaz -
How to find the number of users connected to database from OS level(Linux)
Hi All,
Could anyone know , how to find the number of users connected to database without connecting with sql*plus
is there any command to find it?
example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
oracle version:- 10g,11g
Operating System:- OEL4/OEL5/AIX/Solaris
any help will be appreciated.
Thanks in advance.
Thank you.
Regards,
Rajesh.Excellent.
Tested, works as long as you set the ORACLE_SID first ( to change databases )
ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
Thanks!
select OSUSER
from V$SESSION
where AUDSID = SYS_CONTEXT('userenv','sessionid')
and rownum=1;Best Regards
mseberg -
How to find the number of ODBC connections to Oracle Database
Hi All,
How to find the number of ODBC connections and all connections to the Database in last week. Are there any views to get this information?
Thanks in advance,
MahiWhat Ed said is true that Oracle doesn't note which type of protocol is connecting to the database, however, you can see which program is accessing the database.
For example: if you already know of a user using ODBC, you can verify as:
select username, osuser, terminal, program from v$session where username = 'SCOTT'
USERNAME OSUSER TERMINAL PROGRAM
SCOTT IUSR_SRV231 SRV231 w3wp.exe
SCOTT IUSR_SRV231 SRV231 w3wp.exe
2 rows selected.Assuming that you can confirm the progam noted in the above (example) is the one using ODBC, then you can change the query such as:
SQL> select username, osuser, terminal, program from v$session where program = 'w3wp.exe';
USERNAME OSUSER TERMINAL PROGRAM
SCOTT IUSR_SRV231 SRV231 w3wp.exe
SCOTT IUSR_SRV231 SRV231 w3wp.exe
2 rows selected.Just for kicks, I checked our listener.log file, but there was no reference of odbc in it either.
Hope this helps... -
How to find out which jobs are connected to the user
Hello, i have a question, but i was unable to find the answer. The problem is that our internal consultant left the company, and there are certain jobs that run under his account. We want now to switch this jobs to other accounts. The problem we are facing is how to find out what jobs, or job steps are connected with his account, so we can safely demote his account, so that no other jobs will be run under his account. Thank you very much
Sincerely,
Luka Prijicthe only reliable way to do this is by scanning table TBTCP using the person's userID in field AUTHCKNAM and filtering by job statuses: scheduled, released, ready and active (sorry I can't remember the code#'s off top of my head, something like P=scheduled, S=scheduled...you have to look it up). When you search SM37 it only permits you to scan by the userID who created the job, but it won't tell you if a different userID is defined in a job step. That's why you need to scan TBTCP. Don't forget that you should also check for a user's open Workflow items before deletion.
I noticed some posts in this forum that suggest a userID should never be deleted, only locked, added to a special user group, and all role assignments removed. However I've never worked somewhere that does this. -
I perviously transfered all my iTunes music to an external hard drive. But now when I connect the external hard drive and try to play a song, I get an error message saying that I need to "locate" my music. I don't how to find it on my external hard drive. Please help for I am not that computer savy and don't want to mess anything up.
Thanks!I called Apple Support and they walked me through it. They told me to basically copy and paste my music to the external hard drive. (I think.) Or maybe it was they had me transfer a folder to the EHD. I don't exactally remember it was a few years back. But I tried to plug in the EHD before starting and...nothing. Still says same thing, "locate file."
-
My iOS isn´t in device on the left hand, how can find it? or is it that is not connecting properly to the computer
You need to update to 10.6.8 using Software Update.
-
How to find whether any disk arry is connected in the system
Hi Guys,
Please help me regarding Disk Array.
1) What command(s) should I use to check whether any disk array is connected in the server or not.
2) Please share the method for,
For single server system (A single sun server is connected with exernal disk array).
For Cluster server system (Two servers are connected as a sun cluster and Disk array is connected to the cluster as resource).
3) If the disk array is from SUN or from other vendor, how can i know that?
4) How to find how many disks are available in the Disk array?
ThanksWow... I got a reply from nik !!!
Thanks for your reply..
*1) I have a confussion that format command only report the local disks not external disks(Disk array). Is that correct?*
2) We have a cluster server V890+V890 + Disk-Array(Sun StorageTek). The format output is below.
*(5,6,7 & 8 are disk array?)*
root# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01924a4e1,0
1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01a467d91,0
2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e019dd3151,0
3. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01a467321,0
4. c1t4d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01922a001,0
5. c2t600A0B8000482D560000031B482A46BCd0 <SUN-CSM200_R-0619 cyl 51838 alt 2 hd 512 sec 64>
/scsi_vhci/ssd@g600a0b8000482d560000031b482a46bc
6. c2t600A0B8000482D5600000318482A46A6d0 <SUN-CSM200_R-0619 cyl 51838 alt 2 hd 512 sec 64>
/scsi_vhci/ssd@g600a0b8000482d5600000318482a46a6
7. c2t600A0B8000482DBC00000659482B59D3d0 <SUN-CSM200_R-0619 cyl 51838 alt 2 hd 512 sec 64>
/scsi_vhci/ssd@g600a0b8000482dbc00000659482b59d3
8. c2t600A0B8000482E200000049E482B599Ad0 <SUN-CSM200_R-0619 cyl 51838 alt 2 hd 512 sec 64>
/scsi_vhci/ssd@g600a0b8000482e200000049e482b599a
(End 0f output)
*3) For cfgadm output is given below*
root# cfgadm -al
Ap_Id Type Receptacle Occupant Condition
PCI0 unknown empty unconfigured unknown
PCI1 unknown empty unconfigured unknown
PCI2 unknown empty unconfigured unknown
PCI3 unknown empty unconfigured unknown
PCI4 scsi/hp connected configured ok
PCI5 pci-pci/hp connected configured ok
PCI6 pci-pci/hp connected configured ok
PCI7 fibre/hp connected configured ok
PCI8 fibre/hp connected configured ok
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 CD-ROM connected configured unknown
c1 fc-private connected configured unknown
c1::500000e01922a001 disk connected configured unknown
c1::500000e01924a4e1 disk connected configured unknown
c1::500000e019dd3151 disk connected configured unknown
c1::500000e01a467321 disk connected configured unknown
c1::500000e01a467d91 disk connected configured unknown
c1::508002000065adb9 ESI connected configured unknown
c3 scsi-bus connected configured unknown
c3::rmt/0 tape connected configured unknown
c4 scsi-bus connected unconfigured unknown
c5 scsi-bus connected unconfigured unknown
c6 scsi-bus connected configured unknown
c6::rmt/1 tape connected configured unknown
c7 scsi-bus connected unconfigured unknown
c8 scsi-bus connected unconfigured unknown
c9 fc-private connected configured unknown
c9::200600a0b8482dab disk connected configured unknown
c10 fc-private connected configured unknown
c10::200500a0b8482dbd disk connected configured unknown
c11 fc-private connected configured unknown
c11::200700a0b8482dab disk connected configured unknown
c12 fc-private connected configured unknown
c12::200400a0b8482dbd disk connected configured unknown
usb0/1 unknown empty unconfigured ok
usb0/2 unknown empty unconfigured ok
usb0/3 unknown empty unconfigured ok
usb0/4 unknown empty unconfigured ok
*4) root# cfgadm -al -o show_FCP_dev*
Ap_Id Type Receptacle Occupant Condition
c1 fc-private connected configured unknown
c1::500000e01922a001,0 disk connected configured unknown
c1::500000e01924a4e1,0 disk connected configured unknown
c1::500000e019dd3151,0 disk connected configured unknown
c1::500000e01a467321,0 disk connected configured unknown
c1::500000e01a467d91,0 disk connected configured unknown
c1::508002000065adb9 ESI connected configured unknown
c9 fc-private connected configured unknown
c9::200600a0b8482dab,0 disk connected configured unknown
c9::200600a0b8482dab,1 disk connected configured unknown
c9::200600a0b8482dab,31 disk connected configured unknown
c10 fc-private connected configured unknown
c10::200500a0b8482dbd,0 disk connected configured unknown
c10::200500a0b8482dbd,1 disk connected configured unknown
c10::200500a0b8482dbd,31 disk connected configured unknown
c11 fc-private connected configured unknown
c11::200700a0b8482dab,0 disk connected configured unknown
c11::200700a0b8482dab,1 disk connected configured unknown
c11::200700a0b8482dab,31 disk connected configured unknown
c12 fc-private connected configured unknown
c12::200400a0b8482dbd,0 disk connected configured unknown
c12::200400a0b8482dbd,1 disk connected configured unknown
c12::200400a0b8482dbd,31 disk connected configured unknown
Which part of output is indicating diskarry.. Please help me to understand....
FYI
root@# more /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d103 - - swap - no -
/dev/md/dsk/d100 /dev/md/rdsk/d100 / ufs 1 no nologging
/dev/md/dsk/d115 /dev/md/rdsk/d115 /global/.devices/node@1 ufs 2 no global
swap - /tmp tmpfs - yes -
/dev/vx/dsk/ossdg/exporthome /dev/vx/rdsk/ossdg/exporthome /export/home ufs 2 no logging
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
sharefs - /etc/dfs/sharetab sharefs - no - -
The ikon for connecting to wifi no the top is gone..? How to find it ?
Hi! The ikon for connecting to wifi at the top is gone and I wonder how to find it and activate it Afghanistan?
Hi andy,
I have the same ports as you on my Ti and my TV and the 4 pin S-Video cable works just fine.
I also have an S-Video to RCA adapter, and the S-Video end has 6 pins, so I'm thinking that the extra 2 pins have something to do with converting from S-Video to RCA.
I don't know if the UK has Radio Shack stores, but a quick call to an electronics store like that should yield a definitive answer to the extra 2 pins if you really want to know.
BTW how do I add a link to a message without showing the whole address.
That's called html language. Do a google and you'll come up with all kinds of fun things you can do with html. -
How to find my iphone back up file in pc without iphone connect
How to find my iphone back up file in itune without connect my iphone? I lost my phone and urgently need to find my contacts in PC, anyone can help?
You don't. It's gone. You should really pay more attention to the prompts that pop up on your computer before you just click 'ok'.
-
How to find remote computer/laptop connected Wired or Wireless?
hi
How to find remote computer (more than 1000) workstation connected wired or wireless? can some one give me the script to find
Regards
GGThanks for your reply. It gave the output like below. It not mentioned it's connected wired or wireless.. can you give me exact one
netconnectionid
Bluetooth Network Connection
Local Area Connection
Wireless Network Connection
Wireless Network Connection 2
Local Area Connection 3 -
How do i find the recent commited record?
How to find the recent record commited in the database?
i have a table which stores the itemcode,stockupdated(number) and date on which the stocks are updated. A record is inserted in the table through a trigger. if two records of the same itemcode have got committed at the same instance(with the same time gap)..how do i find the recent committed record through SQLhi,
i think, u can do that using the rowid, select the rowid on ur table in which u r inserting records in descending order.
"select * from table_name
order by rowid desc;"
and the first rowid is unique corresponds to each reocrod inserted in the table.
Regards, -
How to find the Commitment cost for a PM order using tables ?
Hello all ,
How to find the Commitment cost for a given PM order using table .
Thanks and regards ,
Prem.Issue got resolved
Maybe you are looking for
-
How to use propertyConstraints in developing custom reports cq5??
hi, i need to add some custom query in reports, but have no idea how to create propertyConstraints in query builder. kindly explain how to create it... Regards, Fazz
-
Untrusted forest with duplicate AD site names
Can anyone speculate on the behavior when enabling Forest discovery of an untrusted forest that has AD sites with the same names as what are in the installed forest (The forest where Config Mgr lives)? My concern is that the currently discovered boun
-
Hi pals, Im trying to implement a jsp application which is capable of creating charts dynamically, The thing i need to know is how to create chart application in jsp.?
-
Fuzzy edges and display of font, graphics and pics using Elements 12 on Macbook Pro retina 13"
I recently bought a Macbook Pro 13" retina display. The edges and display of font, graphics and pics in Elements12 are fuzzy. They werent like that on my old macbook that didnt have retina display. David
-
Hello, Can you please tell me the procedure how to do actual settlement Project/wbs element/net work. Please help!!!!! Thanks SM