|
|
|
Еще вопрос
|
|||
|---|---|---|---|
|
#18+
Вот это отрывок из доки .... Using the CREATE UNDO TABLESPACE Statement The CREATE UNDO TABLESPACE statement is the same as the CREATE TABLESPACE statement, but the UNDO keyword is specified. Oracle determines most of the attributes of the undo tablespace, you can specify only the DATAFILE clause. This example creates the undotbs_02 undo tablespace: CREATE UNDO TABLESPACE undotbs_02 DATAFILE '/u01/oracle/rbdb1/undo0201.dbf' SIZE 2M REUSE AUTOEXTEND ON; Altering an Undo Tablespace Undo tablespaces are altered using the ALTER TABLESPACE statement. However, since most aspects of undo tablespaces are system managed, you need only be concerned with the following actions: Adding a datafile Renaming a datafile Bringing a datafile online or taking it offline Beginning or ending an open backup on a datafile These are also the only attributes you are permitted to alter. If an undo tablespace runs out of space, or you want to prevent it from doing so, you can add more files to it or resize existing datafiles. The following example adds another datafile to undo tablespace undotbs_01: ALTER TABLESPACE undotbs_01 ADD DATAFILE '/u01/oracle/rbdb1/undo0102.dbf' AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED; ..... Делаю CREATE UNDO TABLESPACE undotbs DATAFILE '/home/oracle/OraHome1/oradata/undo.dbf' SIZE 2M REUSE AUTOEXTEND ON; все окей делаю ALTER TABLESPACE undotbs ADD DATAFILE '/home/oracle/OraHome1/oradata/undo.dbf' AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED; пишет ERROR at line 1: ORA-01537: cannot add data file '/home/oracle/OraHome1/oradata/undo.dbf' - file already part of database ??? В чем проблема госпада ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.05.2003, 09:47 |
|
||
|
Еще вопрос
|
|||
|---|---|---|---|
|
#18+
Вот это отрывок из доки .... Using the CREATE UNDO TABLESPACE Statement The CREATE UNDO TABLESPACE statement is the same as the CREATE TABLESPACE statement, but the UNDO keyword is specified. Oracle determines most of the attributes of the undo tablespace, you can specify only the DATAFILE clause. This example creates the undotbs_02 undo tablespace: CREATE UNDO TABLESPACE undotbs_02 DATAFILE '/u01/oracle/rbdb1/undo0201.dbf' SIZE 2M REUSE AUTOEXTEND ON; Altering an Undo Tablespace Undo tablespaces are altered using the ALTER TABLESPACE statement. However, since most aspects of undo tablespaces are system managed, you need only be concerned with the following actions: Adding a datafile Renaming a datafile Bringing a datafile online or taking it offline Beginning or ending an open backup on a datafile These are also the only attributes you are permitted to alter. If an undo tablespace runs out of space, or you want to prevent it from doing so, you can add more files to it or resize existing datafiles. The following example adds another datafile to undo tablespace undotbs_01: ALTER TABLESPACE undotbs_01 ADD DATAFILE '/u01/oracle/rbdb1/undo0102.dbf' AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED; ..... Делаю CREATE UNDO TABLESPACE undotbs DATAFILE '/home/oracle/OraHome1/oradata/undo.dbf' SIZE 2M REUSE AUTOEXTEND ON; все окей делаю ALTER TABLESPACE undotbs ADD DATAFILE '/home/oracle/OraHome1/oradata/undo.dbf' AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED; пишет ERROR at line 1: ORA-01537: cannot add data file '/home/oracle/OraHome1/oradata/undo.dbf' - file already part of database ??? В чем проблема госпада ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.05.2003, 09:47 |
|
||
|
Еще вопрос
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. Этим ты не только создал UNDO TABLESPACE но и уже добавил к нему дата файл '/home/oracle/OraHome1/oradata/undo.dbf' И тут ты его пытаешься добавить еще раз. Код: plaintext 1. 2. Ораклу это не нравится:-) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.05.2003, 10:29 |
|
||
|
Еще вопрос
|
|||
|---|---|---|---|
|
#18+
В том и проблема, что ВЫ пытаетесь добавить к табл. пространству файл, который уже в базе есть. Добавляя файл, вы заставляете базу создать нечто новое и положить в указанное место, а два разных файла с одним и тем же именем быть не может. Если на самом деле Вы хотите изменить некоторые параметры существующего файла (напр., как здесь, назначить размер), то нужна команда ALTER DATABASE DATAFILE. Попробуйте так: ALTER DATABASE DATAFILE '/home/oracle/OraHome1/oradata/undo.dbf' AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.05.2003, 10:35 |
|
||
|
Еще вопрос
|
|||
|---|---|---|---|
|
#18+
Почемы ты очень часто создаешь топик дважды? Стараешься отвечаешь, а потом в клоне топика узнаешь что вопрос снят. 1) Не надо ДВА раза нажимать на "опубликовать" 2) Не следует навигировать во время отправки сообщения ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.05.2003, 10:42 |
|
||
|
|

start [/forum/topic.php?fid=52&msg=32159209&tid=1990595]: |
0ms |
get settings: |
8ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
200ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
52ms |
get tp. blocked users: |
2ms |
| others: | 240ms |
| total: | 539ms |

| 0 / 0 |
