Comments and answers for "Create Unique ObjectId in Oracle out of different shapes, daily." https://knowledge.亚搏在线safe.com/questions/29409/create-unique-objectid-in-oracle-out-of-different.html The latest comments and answers for the question "Create Unique ObjectId in Oracle out of different shapes, daily." Comment by ebygomm on ebygomm's comment https://knowledge.safe.com/comments/29430/view.html

But if you expose attributes using "populate from SQL query" FME will helpfully sort this out for you, and also confirm you've got your sql right.:-)

Mon, 06 Jun 2016 14:04:46 GMT ebygomm
Comment by david_r on david_r's comment https://knowledge.safe.com/comments/29429/view.html

Just a small detail: Since Oracle is upper case by default, the attribute you need to expose will be called MAXOBJECTID

Mon, 06 Jun 2016 13:59:39 GMT david_r
Answer by mvloenhout https://knowledge.safe.com/answers/29424/view.html

It works.Thank you

Mon, 06 Jun 2016 13:11:56 GMT mvloenhout
Comment by ebygomm on ebygomm's comment https://knowledge.safe.com/comments/29420/view.html

Within an sqlcreator something like the following

select max(ObjectID) as maxObjectID from table1

This will return a single record with an attribute called maxObjectID which you can use.

You could then join this with your other records and using an attributecreator set ObjectID to equal count + maxObjectID for example

Mon, 06 Jun 2016 11:50:52 GMT ebygomm
Answer by gio https://knowledge.safe.com/answers/29419/view.html

select Max(ObjectID) as LastId from etc.

Then use counter and set start from = LastID

Mon, 06 Jun 2016 11:43:57 GMT gio
Comment by mvloenhout on mvloenhout's answer https://knowledge.safe.com/comments/29418/view.html

I've tried, but for Oracle the above will not work.I'm going to try the SQL-script.

Thank you!

Mon, 06 Jun 2016 11:41:29 GMT mvloenhout
Comment by mvloenhout on mvloenhout's answer https://knowledge.safe.com/comments/29417/view.html

Thank you for your fast reaction.Do you have written this down once?

My SQl is not very good.So if you have an example, I can adapt this to my case.

Mon, 06 Jun 2016 11:40:49 GMT mvloenhout
Comment by david_r on david_r's answer https://knowledge.safe.com/comments/29415/view.html

Unfortunately, Oracle does not support the implicit creation of sequences, like PostgreSQL does.Something like it (IDENTITY column) was introduced in Oracle 12c, but as far as I know that syntax it isn't supported by FME.

Mon, 06 Jun 2016 11:32:59 GMT david_r
Answer by nielsgerrits https://knowledge.safe.com/answers/29414/view.html

This works for me in PostGIS.

Mon, 06 Jun 2016 10:11:33 GMT nielsgerrits
Answer by ebygomm https://knowledge.safe.com/answers/29410/view.html

You could use an sqlcreator to get the max ObjectID in the existing table and then add this figure to the count attribute to gain the ObjectID

Mon, 06 Jun 2016 10:03:32 GMT ebygomm