unix sequence versus oracle [message #186705] |
Wed, 09 August 2006 02:56 |
mape
Messages: 298 Registered: July 2006 Location: Slovakia
|
Senior Member |
|
|
Hello
How to create sequence in unix just like for instance oracle sequences?
I need to create unix file of file naming convention
file_<sequence>.txt
where sequence is number start with 1 increment by 1.
The next created file would be file_002.txt and so.
Thanks
|
|
|
Re: unix sequence versus oracle [message #187723 is a reply to message #186705] |
Tue, 15 August 2006 03:04 |
Jai Vrat Singh
Messages: 205 Registered: September 2002 Location: Singapore
|
Senior Member |
|
|
There is nothing like OS( e.g UNIX) sequence. But to emulate, you can create a file which will act as a shared memory(area) for all processes accessing it. Take a lock on file, read the data in it, use it increament the data write in file and unclock it. Be careful while locking and unlocking. Poor impelmentation may cause deadlocks.
|
|
|