|
|
|
Как узнать дату-время создания строки в таблице?
|
|||
|---|---|---|---|
|
#18+
Как в Oracle узнать дату-время создания строки в таблице? В таблице ID генерируется из сиквела. Версия базы 11g. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.03.2018, 15:33 |
|
||
|
Как узнать дату-время создания строки в таблице?
|
|||
|---|---|---|---|
|
#18+
Можно создать в таблице поле, сделать триггер на вставку и писать в это поле sysdate. Но в таблице уже полно записей и очень хочется понять когда они были созданы. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.03.2018, 15:37 |
|
||
|
Как узнать дату-время создания строки в таблице?
|
|||
|---|---|---|---|
|
#18+
verter, создать в таблице поле, сделать триггер на вставку и писать в это поле sysdate. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.03.2018, 15:38 |
|
||
|
Как узнать дату-время создания строки в таблице?
|
|||
|---|---|---|---|
|
#18+
verter, авторNOROWDEPENDENCIES | ROWDEPENDENCIES This clause lets you specify whether table will use row-level dependency tracking. With this feature, each row in the table has a system change number (SCN) that represents a time greater than or equal to the commit time of the last transaction that modified the row. You cannot change this setting after table is created. ROWDEPENDENCIES Specify ROWDEPENDENCIES if you want to enable row-level dependency tracking. This setting is useful primarily to allow for parallel propagation in replication environments. It increases the size of each row by 6 bytes. NOROWDEPENDENCIES авторSCN_TO_TIMESTAMP SCN_TO_TIMESTAMP takes as an argument a number that evaluates to a system change number (SCN), and returns the approximate timestamp associated with that SCN. The returned value is of TIMESTAMP datatype. This function is useful any time you want to know the timestamp associated with an SCN. For example, it can be used in conjunction with the ORA_ROWSCN pseudocolumn to associate a timestamp with the most recent change to a row. ..... stax ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.03.2018, 15:59 |
|
||
|
Как узнать дату-время создания строки в таблице?
|
|||
|---|---|---|---|
|
#18+
verterКак в Oracle узнать дату-время создания строки в таблице? RTFM ORA_ROWSCN, SCN_TO_TIMESTAMP. Posted via ActualForum NNTP Server 1.5 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.03.2018, 16:01 |
|
||
|
Как узнать дату-время создания строки в таблице?
|
|||
|---|---|---|---|
|
#18+
Не надо глупых надежд Никакой ROWDEPENDENCIES не спасет Только отдельное поле, соответственно заполняемое ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.03.2018, 16:10 |
|
||
|
Как узнать дату-время создания строки в таблице?
|
|||
|---|---|---|---|
|
#18+
Dimitry SibiryakovRTFM Вот именно, RTFM: Код: plsql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Notes: The usual precision of the result value is 3 seconds. The association between an SCN and a timestamp when the SCN is generated is remembered by the database for a limited period of time. This period is the maximum of the auto-tuned undo retention period, if the database runs in the Automatic Undo Management mode, and the retention times of all flashback archives in the database, but no less than 120 hours. The time for the association to become obsolete elapses only when the database is open. An error is returned if the SCN specified for the argument to SCN_TO_TIMESTAMP is too old. Ну а максимум без flashback archives ~ 5 дней. SY. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.03.2018, 16:21 |
|
||
|
|

start [/forum/topic.php?fid=52&msg=39609718&tid=1884344]: |
0ms |
get settings: |
7ms |
get forum list: |
12ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
27ms |
get topic data: |
5ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
| others: | 226ms |
| total: | 316ms |

| 0 / 0 |
