Home » Infrastructure » Unix » unix sequence versus oracle
unix sequence versus oracle [message #186705] Wed, 09 August 2006 02:56 Go to next message
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 Go to previous message
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.
Previous Topic: Releasing SYSTEM TABLE SPACE to USERDATA,INDEX
Next Topic: Output columns of ps-ef | grep pmon
Goto Forum:
  


Current Time: Tue Apr 23 07:16:36 CDT 2024