[oracle_br] Tamanho do autoextend
Pessoal, Fiz uma consulta que me retorna dados do meu data file e da minha tablespace. Mas não estou encontrando em que view do dicionário possui tamanho que foi definido para o autoextend. Agradeço desde já. Versão Oracle 10.2.0.4.0 -- Atenciosamente Francisco Porfirio Ribeiro Neto [As partes desta mensagem que não continham texto foram removidas]
Re: [oracle_br] Tamanho do autoextend
Bom dia, dba_data_files SQL select FILE_NAME,TABLESPACE_NAME,INCREMENT_BY 2 from dba_data_files 3 where AUTOEXTENSIBLE='YES'; FILE_NAME TABLESPACE_NAMEINCREMENT_BY -- /u01/app/oracle/oradata/orcl/system01.dbf SYSTEM 1280 Att, Rodrigo Mufalani - Original Message - From: francisco porfirio francisco.porfi...@gmail.com To: oracle_br@yahoogrupos.com.br Sent: Wednesday, October 07, 2009 10:06 AM Subject: [oracle_br] Tamanho do autoextend Pessoal, Fiz uma consulta que me retorna dados do meu data file e da minha tablespace. Mas não estou encontrando em que view do dicionário possui tamanho que foi definido para o autoextend. Agradeço desde já. Versão Oracle 10.2.0.4.0 -- Atenciosamente Francisco Porfirio Ribeiro Neto [As partes desta mensagem que não continham texto foram removidas] -- Atenção! As mensagens do grupo ORACLE_BR são de acesso público e de inteira responsabilidade de seus remetentes. Acesse: http://www.mail-archive.com/oracle_br@yahoogrupos.com.br/ -- Apostilas » Dicas e Exemplos » Função » Mundo Oracle » Package » Procedure » Scripts » Tutoriais - O GRUPO ORACLE_BR TEM SEU PROPRIO ESPAÇO! VISITE: http://www.oraclebr.com.br/ Links do Yahoo! Grupos
Re: [oracle_br] Tamanho do autoextend
rflribe...@oradbcom select sys.dbms_metadata.get_ddl('TABLESPACE','USERS') from dual; SYS.DBMS_METADATA.GET_DDL('TABLESPACE','USERS') CREATE TABLESPACE USERS DATAFILE '/u02/oradata/oradbcom/users01.dbf' SIZ E 5242880 AUTOEXTEND ON NEXT 1310720 MAXSIZE 32767M LOGGING ONLINE PERMANENT BLOCKSIZE 8192 EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGME NT SPACE MANAGEMENT AUTO Elapsed: 00:00:00.86 Ribeiro, Reginaldo Administrador de Bancos de Dados Oracle Certified Associate 10g DBCom Brazil Consultoria em Tecnologia da Informação skype: rflribeiro mobile: 551178715729 nextel id: 55*84*70035 fone: 551135225172 e-mail: rflribe...@dbcom.com.br site: http://www.dbcom.com.br Am 07.10.2009 10:06, schrieb francisco porfirio: Pessoal, Fiz uma consulta que me retorna dados do meu data file e da minha tablespace. Mas não estou encontrando em que view do dicionário possui tamanho que foi definido para o autoextend. Agradeço desde já. Versão Oracle 10.2.0.4.0 -- Atenciosamente Francisco Porfirio Ribeiro Neto !-- #ygrp-mkp{ border: 1px solid #d8d8d8; font-family: Arial; margin: 14px 0px; padding: 0px 14px; } #ygrp-mkp hr{ border: 1px solid #d8d8d8; } #ygrp-mkp #hd{ color: #628c2a; font-size: 85%; font-weight: bold; line-height: 122%; margin: 10px 0px; } #ygrp-mkp #ads{ margin-bottom: 10px; } #ygrp-mkp .ad{ padding: 0 0; } #ygrp-mkp .ad a{ color: #ff; text-decoration: none; } -- !-- #ygrp-sponsor #ygrp-lc{ font-family: Arial; } #ygrp-sponsor #ygrp-lc #hd{ margin: 10px 0px; font-weight: bold; font-size: 78%; line-height: 122%; } #ygrp-sponsor #ygrp-lc .ad{ margin-bottom: 10px; padding: 0 0; } -- !-- #ygrp-mlmsg {font-size:13px; font-family: arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;*font-size:100%;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family: Georgia; } #ygrp-text p{ margin: 0 0 1em 0; } dd.last p a { font-family: Verdana; font-weight: bold; } #ygrp-vitnav{ padding-top: 10px; font-family: Verdana; font-size: 77%; margin: 0; } #ygrp-vitnav a{ padding: 0 1px; } #ygrp-mlmsg #logo{ padding-bottom: 10px; } #ygrp-reco { margin-bottom: 20px; padding: 0px; } #ygrp-reco #reco-head { font-weight: bold; color: #ff7900; } #reco-category{ font-size: 77%; } #reco-desc{ font-size: 77%; } #ygrp-vital a{ text-decoration: none; } #ygrp-vital a:hover{ text-decoration: underline; } #ygrp-sponsor #ov ul{ padding: 0 0 0 8px; margin: 0; } #ygrp-sponsor #ov li{ list-style-type: square; padding: 6px 0; font-size: 77%; } #ygrp-sponsor #ov li a{ text-decoration: none; font-size: 130%; } #ygrp-sponsor #nc{ background-color: #eee; margin-bottom: 20px; padding: 0 8px; } #ygrp-sponsor .ad{ padding: 8px 0; } #ygrp-sponsor .ad #hd1{ font-family: Arial; font-weight: bold; color: #628c2a; font-size: 100%; line-height: 122%; } #ygrp-sponsor .ad a{ text-decoration: none; } #ygrp-sponsor .ad a:hover{ text-decoration: underline; } #ygrp-sponsor .ad p{ margin: 0; font-weight: normal; color: #00; } o{font-size: 0; } .MsoNormal{ margin: 0 0 0 0; } #ygrp-text tt{ font-size: 120%; } blockquote{margin: 0 0 0 4px;} .replbq{margin:4} dd.last p span { margin-right: 10px; font-family: Verdana; font-weight: bold; } dd.last p span.yshortcuts { margin-right: 0; } div.photo-title a, div.photo-title a:active, div.photo-title a:hover, div.photo-title a:visited { text-decoration: none; } div.file-title a, div.file-title a:active, div.file-title a:hover, div.file-title a:visited { text-decoration: none; } #ygrp-msg p#attach-count { clear: both; padding: 15px 0 3px 0; overflow: hidden; } #ygrp-msg p#attach-count span { color: #1E66AE; font-weight: bold; } div#ygrp-mlmsg #ygrp-msg p a span.yshortcuts { font-family: Verdana; font-size: 10px; font-weight: normal; } #ygrp-msg p a { font-family: Verdana; } #ygrp-mlmsg a { color: #1E66AE; } div.attach-table div div a { text-decoration: none; } div.attach-table { width: 400px; } -- [As partes desta mensagem que não continham texto foram removidas]
Re: [oracle_br] Tamanho do autoextend
Rodrigo, A consulta que você enviou não traz o valor correto. Já o que Reginaldo enviou, ele traz todas as informações da criação do datafile (Atende Parcialmente). Eu precisaria apenas do tamanho do extend para incrementar no meu sql, sem precisar comolocar o campo clob todo citado pelo Reginaldo 2009/10/7 Ribeiro, Reginaldo rflribe...@dbcom.com.br rflribe...@oradbcom select sys.dbms_metadata.get_ddl('TABLESPACE','USERS') from dual; SYS.DBMS_METADATA.GET_DDL('TABLESPACE','USERS') -- CREATE TABLESPACE USERS DATAFILE '/u02/oradata/oradbcom/users01.dbf' SIZ E 5242880 AUTOEXTEND ON NEXT 1310720 MAXSIZE 32767M LOGGING ONLINE PERMANENT BLOCKSIZE 8192 EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGME NT SPACE MANAGEMENT AUTO Elapsed: 00:00:00.86 Ribeiro, Reginaldo Administrador de Bancos de Dados Oracle Certified Associate 10g DBCom Brazil Consultoria em Tecnologia da Informação skype: rflribeiro mobile: 551178715729 nextel id: 55*84*70035 fone: 551135225172 e-mail: rflribe...@dbcom.com.br rflribeiro%40dbcom.com.br site: http://www.dbcom.com.br Am 07.10.2009 10:06, schrieb francisco porfirio: Pessoal, Fiz uma consulta que me retorna dados do meu data file e da minha tablespace. Mas não estou encontrando em que view do dicionário possui tamanho que foi definido para o autoextend. Agradeço desde já. Versão Oracle 10.2.0.4.0 -- Atenciosamente Francisco Porfirio Ribeiro Neto !-- #ygrp-mkp{ border: 1px solid #d8d8d8; font-family: Arial; margin: 14px 0px; padding: 0px 14px; } #ygrp-mkp hr{ border: 1px solid #d8d8d8; } #ygrp-mkp #hd{ color: #628c2a; font-size: 85%; font-weight: bold; line-height: 122%; margin: 10px 0px; } #ygrp-mkp #ads{ margin-bottom: 10px; } #ygrp-mkp .ad{ padding: 0 0; } #ygrp-mkp .ad a{ color: #ff; text-decoration: none; } -- !-- #ygrp-sponsor #ygrp-lc{ font-family: Arial; } #ygrp-sponsor #ygrp-lc #hd{ margin: 10px 0px; font-weight: bold; font-size: 78%; line-height: 122%; } #ygrp-sponsor #ygrp-lc .ad{ margin-bottom: 10px; padding: 0 0; } -- !-- #ygrp-mlmsg {font-size:13px; font-family: arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;*font-size:100%;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family: Georgia; } #ygrp-text p{ margin: 0 0 1em 0; } dd.last p a { font-family: Verdana; font-weight: bold; } #ygrp-vitnav{ padding-top: 10px; font-family: Verdana; font-size: 77%; margin: 0; } #ygrp-vitnav a{ padding: 0 1px; } #ygrp-mlmsg #logo{ padding-bottom: 10px; } #ygrp-reco { margin-bottom: 20px; padding: 0px; } #ygrp-reco #reco-head { font-weight: bold; color: #ff7900; } #reco-category{ font-size: 77%; } #reco-desc{ font-size: 77%; } #ygrp-vital a{ text-decoration: none; } #ygrp-vital a:hover{ text-decoration: underline; } #ygrp-sponsor #ov ul{ padding: 0 0 0 8px; margin: 0; } #ygrp-sponsor #ov li{ list-style-type: square; padding: 6px 0; font-size: 77%; } #ygrp-sponsor #ov li a{ text-decoration: none; font-size: 130%; } #ygrp-sponsor #nc{ background-color: #eee; margin-bottom: 20px; padding: 0 8px; } #ygrp-sponsor .ad{ padding: 8px 0; } #ygrp-sponsor .ad #hd1{ font-family: Arial; font-weight: bold; color: #628c2a; font-size: 100%; line-height: 122%; } #ygrp-sponsor .ad a{ text-decoration: none; } #ygrp-sponsor .ad a:hover{ text-decoration: underline; } #ygrp-sponsor .ad p{ margin: 0; font-weight: normal; color: #00; } o{font-size: 0; } .MsoNormal{ margin: 0 0 0 0; } #ygrp-text tt{ font-size: 120%; } blockquote{margin: 0 0 0 4px;} .replbq{margin:4} dd.last p span { margin-right: 10px; font-family: Verdana; font-weight: bold; } dd.last p span.yshortcuts { margin-right: 0; } div.photo-title a, div.photo-title a:active, div.photo-title a:hover, div.photo-title a:visited { text-decoration: none; } div.file-title a, div.file-title a:active, div.file-title a:hover, div.file-title a:visited { text-decoration: none; } #ygrp-msg p#attach-count { clear: both; padding: 15px 0 3px 0; overflow: hidden; } #ygrp-msg p#attach-count span { color: #1E66AE; font-weight: bold; } div#ygrp-mlmsg #ygrp-msg p a span.yshortcuts { font-family: Verdana; font-size: 10px; font-weight: normal; } #ygrp-msg p a { font-family: Verdana; } #ygrp-mlmsg a { color: #1E66AE; } div.attach-table div div a { text-decoration: none; } div.attach-table { width: 400px; } -- [As partes desta mensagem que não continham texto foram removidas] -- Atenciosamente Francisco Porfirio Ribeiro Neto [As partes desta mensagem que não continham texto foram removidas]
Re: [oracle_br] Tamanho do autoextend
Meu caro Francisco, A informação que lhe passei não é imprecisa, o fato é que a coluna dá o valor em blocos e não em MB. Por favor, antes de dizer que não está correto, *SEMPRE* consulte a documentação Oficial. Dê uma olhada abaixo: INCREMENT_BY NUMBER Number of tablespace blocks used as autoextension increment. Block size is contained in the BLOCK_SIZE column of the DBA_TABLESPACES view. DBA_DATA_FILES DBA_DATA_FILES describes database files. Column DatatypeNULLDescription FILE_NAME VARCHAR2(513) Name of the database file FILE_ID NUMBER NOT NULLFile identifier number of the database file TABLESPACE_NAME VARCHAR2(30)NOT NULLName of the tablespace to which the file belongs BYTES NUMBER Size of the file in bytes BLOCKS NUMBER NOT NULLSize of the file in Oracle blocks STATUS VARCHAR2(9) File status: AVAILABLE or INVALID (INVALID means that the file number is not in use, for example, a file in a tablespace that was dropped) RELATIVE_FNONUMBER Relative file number AUTOEXTENSIBLE VARCHAR2(3) Autoextensible indicator MAXBYTESNUMBER Maximum file size in bytes MAXBLOCKS NUMBER Maximum file size in blocks INCREMENT_BYNUMBER Number of tablespace blocks used as autoextension increment. Block size is contained in the BLOCK_SIZE column of the DBA_TABLESPACES view. USER_BYTES NUMBER The size of the file available for user data. The actual size of the file minus the USER_BYTES value is used to store file related metadata. USER_BLOCKS NUMBER Number of blocks which can be used by the data ONLINE_STATUS VARCHAR2(7) Online status of the file: * SYSOFF * SYSTEM * OFFLINE * ONLINE * RECOVER Atenciosamente, Rodrigo Mufalani OCP 10g 11g OCE RAC 10g R2 Oracle ACE Member mufal...@oi.com.br http://mufalani.blogspot.com Quer deixar seu Oi com a sua cara? No Mundo Oi você baixa toques, vídeos, jogos, músicas completas e encontra serviços incríveis pro seu Oi e pra internet. Acesse http://www.mundooi.oi.com.br e descubra!