wagmiguel 0 Denunciar post Postado Janeiro 15, 2009 Pessoal sou novo no forum, estou tendo problemas para importar uma base para um servidor de testes. Quando tento importar a base do Oracle 9i para um outro oracle 9i, com todas as tablespaces criadas na base destino, o imp me retorna o erro abaixo: Erro Oracle 25157 Encontrado O tamanho do bloco especificado 6144 não é valido. Pelo que eu entendi o imp tenta exportar com o tamanho do block size 6144, mas a base que eu criei tem o tamanho padrão do block size 8192, por isso acontece este erro. Ja tentei criar uma base com o block size de tamanho 6144, mas o oracle diz que este valor esta fora do padrão. Os dois servidores executam em Windows 2003 Se alguem puder me ajudar ficarei muito agradecido. Atenciosamente Wagner Compartilhar este post Link para o post Compartilhar em outros sites
Eder Couto 0 Denunciar post Postado Janeiro 19, 2009 Wagner, Provavelmente o tamanho do bloco do banco de dados no qual você fez o export deve estar 6k (6144) e o que você está tentando fazer o import 8k (8192). Verifique o parâmetro db_block_size: show parameter db_block_size ou select * from v$parameter where name like 'db_block_size'; Caso você compreve o tamanho dos blocos diferentes entre os bancos, é necessário utilizar o seguinte procedimento que está Metalink para que os dois bancos estejam com o mesmo tamanho de bloco. Subject: How to Change Database Block Size Note: 1011167.7. PROCEDURE --------- Once you have decided upon your transfer method and taken your database backup, the process of changing your block size should proceed as follows: 1. Perform data extraction from existing database as per data transfer method. 2. If you do not intend to keep it, shutdown and delete existing database. 3. Change DB_BLOCK_SIZE in initialization parameter file. This will be a new file if the existing database is to be kept. 4. Create new database. 5. Reload data into new database as per transfer method. To recreate the database with a different block size using export/import transfer method, use the following example: 1. Take a full cold backup of your database. This is your guarantee that you can come back to your original setting in case you need to. 2. Take a full export of your database. 3. Delete your database files excluding init<sid>.ora at the OS level. 4. In the INIT<SID>.ORA change the parameter db_block_size to your required size. db_block_size = 8192 # size in bytes. The value you specify is OS specific and must be # a multiple of Operating System's block size. Please check your # operating system specific Installation and Configuration Guide. # Also look at Note 34020.1 for guidelines on sizing db_block_size 5. Ensure all operating system environment variables are correct. Especially the ORACLE_HOME, ORACLE_SID. Ensure the init<SID>.ora file can be found. Refer to your OS specific Installation and Configuration Guide for details. 6. Recreate the database. 7. Import the database using the Export file generated in step 2; Using the above steps you will be able to increase the block size of the database. This helps improve db performance with OLTP (in collaboration with other tuning measures). There is no other alternate method of changing the block size without rebuilding the database. Compartilhar este post Link para o post Compartilhar em outros sites