Extended datafile
Dear Team,
After restoring my Test server. When I am extended datafile . It give below error messege
Tablespace extension main menu
1 = Extend tablespace
2 - Show tablespaces
3 - Show data files
4 - Show disk volumes
5 * Exit program
6 - Reset program status
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
2
BR0280I BRSPACE time stamp: 2010-08-11 20.57.50
BR0663I Your choice: '2'
BR0280I BRSPACE time stamp: 2010-08-11 20.57.51
BR0301E SQL error -1157 at location BrTspListGet-15, SQL statement:
'OPEN curs_36 CURSOR FOR'
'SELECT TABLESPACE_NAME, BYTES FROM DBA_FREE_SPACE UNION ALL SELECT TABLESPACE_NAME, BYTES_FREE + BYTES_USED FROM V$TEMP_SPACE_HEADER UNION ALL SELECT TABLESPACE_NAME, NVL(BYTES_USED, 0) * -1 FROM GV$TEMP_EXTENT_POOL ORDER BY 1'
ORA-01157: cannot identify/lock data file 255 - see DBWR trace file
ORA-01110: data file 255: '/oracle/PRD/sapdata2/temp_1/temp.data1'
BR0669I Cannot continue due to previous warnings or errors - you can go back to repeat the last action
BR0280I BRSPACE time stamp: 2010-08-11 20.57.51
BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
why this give this messge .how to extended datafile.
Dear
I have schedule All house keeping job via SM36.
I checked initPRD.ora file its show below db_files = 254.
number of processes
sessions = 1.2 * processes
processes = 80
sessions = 96
AUDITING AND STATISTICS
sql_trace=TRUE
audit_trail = true
db_block_lru_extended_statistics = 1000
db_block_lru_statistics = true
PART III, STATIC PARAMETERS #
DB-NAME
db_name = PRD
DB-BLOCKSIZE
db_block_size = 8192
DB-FILES
db_files = 254
OPTIMIZER MODE
#optimizer_mode = choose
#optimizer_search_limit = 3
PATHS / DESTINATIONS / TRACES
/oracle/PRD/saptrace/background: trace files of the background
processes
/oracle/PRD/saptrace/usertrace: trace files of the user processes
log_archive_dest is a destination, not a path.
The archivefiles get the name
/oracle/PRD/oraarch/PRDarch<thread#>_<log#>
background_dump_dest = /oracle/PRD/saptrace/background
user_dump_dest = /oracle/PRD/saptrace/usertrace
core_dump_dest = /oracle/PRD/saptrace/background
log_archive_dest = /oracle/PRD/oraarch/PRDarch
#log_archive_format = %t_%s
Regards
Similar Messages
-
Unable to extend datafile which is autoextend on.
Hi All,
I am facing interesting problem in
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
SunOS XYZ 5.10 Generic_138888-07 sun4u sparc SUNW,Sun-Fire-880
Datafile is autoextend on and enough free space is available in mount point on OS, but datafile is unable to extend.....
Below are the details:
select file_name,AUTOEXTENSIBLE from dba_data_files where tablespace_name='I_20090414_4';
FILE_NAME AUTOEXTENSIBLE
/mnt/tfmdtwmna01/apps3/oradata/wmsgivn/i_20090414_4.dbf YES
SQL> !df -h /mnt/tfmdtwmna01/apps3/
Filesystem size used avail capacity Mounted on
ABCDEF.cda.com:/vol/vol3/apps3
315G 201G 114G 64% /mnt/tfmdtwmna01/apps3Did anyone have faced this type of issue????? I think this database is hitting some bugs....
Some inputs:
OS was recently upgraded to Solaris 5.10 and Database was also recently upgraded from 9.2.0.7 to 9.2.0.8
Please help!!!!!
-Yasser
Edited by: YasserRACDBA on Apr 15, 2009 6:18 PMSQL> sho parameter block
NAME TYPE VALUE
db_block_buffers integer 0
db_block_checking string FALSE
db_block_checksum boolean TRUE
db_block_size integer 8192
db_file_multiblock_read_count integer 16-Yasser -
Hi All,
need some help. our database resides in raw device. currently datafiles resides in different logical volume in HP UNIX server version 11.11. our database is Oracle9i.
there is one datafile with size 4G, not auto extensible resides in logical volume with physical size 4G. if i extend the logical volume from 4G to 6G, can i just resize the datafile to 6G?
or do i need to create a new datafile because current file size is big?With raw devices alternative cost of performance is typical management difficulties like this, but after 10g ASM is a big shift - http://www.dbazine.com/olc/olc-articles/still5
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/storeman.htm#i1021337
Best regards. -
About automatically extend datafile!
HI All Experts,
What is the advantage and disadvantage about using automatically extend on datafile? Any suggestion is welcome!I agree with forbrich, I also do not like using autoextend option. In case when you are obligated to use it (i.e. customer requirement) I would advice you to use MAXSIZE option. This will limit the size to which file can autoextend. You should also choose reasonable datafile sizes, you should choose reasonable sizes. You have to remember about data availability. If you place or you data in one datafile and this file will be corrupted you whole application will be not available during restore of for example 32 GB datafile. If you devide your data wisely between tablespaces in case of one datafile corruption many parts of your application can be available to end users.
Best Regards
Krystian Zieja / mob -
how to resize the datafile which is in the mount state
Edited by: user11345217 on Mar 24, 2010 3:41 PMHi ,
Can you please try the below command as Asif said above alter database,alter tablespace will only work when your database is open.So you have to open your database first.
SQL> ALTER DATABASE DATAFILE 'F:\oradata\live\Mydb02.ora' RESIZE 500m;
Best regards,
Rafi.
http://rafioracledba.blogspot.com/
Edited by: Rafi (Oracle DBA) on Mar 24, 2010 3:16 AM -
How datafile being extended over different mount point automatically
Hello,
I would like to understand if I have like 20 datafiles created over 2 mount point. All of it being setup with auto extend of 1GB and maxfile of 10GB. All files are not a max size yet.
10 datafiles at /mountpoint1 with free space of 50GB
10 datafiles at /mountpoint2 with free space of 200MB
Since mountpoint2 have absolutely no space for auto extend, will it keep extending datafiles at mountpoint1 until it hit the maxsize of each file?
Will it cause any issue of having mountpoint could not be extended due to mountpoint2?Girish Sharma wrote:
In general, extents are allocated in a round-robin fashionNot necessarily true. I used to believe that, and even published a 'proof demo'. But then someone (may have been Jonothan Lewis) pointed out that there were other variables I didn't control for that can cause oracle to completely fill one file before moving to the next. Sorry, I don't have a link to that converstation, but it occurred in this forum, probably some time in 2007-2008.Ed,
I guess you are looking for below thread(s)... ?
Re: tablespaces or datafile
or
Re: tablespace with multiple files , how is space consumed?
Regards
Girish SharmaYes,but even those weren't the first 'publication' of my test results, as you see in those threads I refer to an earlier demo. That may have been on usenet in comp.database.oracle.server. -
Hi All,
I have Oracle 8i installed on Redhat 7.3
I am trying to import from a large dmp file (10 GB). Initially I was getting error related to "unable to extend datafile", which I got over by creating multiple datafiles with size 2GB each. Thanks to the help provided on this list.
But now I ran into another error that reads as following:
IMP-00058: ORACLE error 1653 encountered
ORA-01653: unable to extend table XXX.XXX_DAT by 311072 in tablespace YYY
IMP-00017: following statement failed with ORACLE error 1031:
"CREATE TRIGGER "USERME".XXX_BI before insert"
I have created enough datafile and I have 60 GB available space on the drive. Please guide me as to what am I doing wrong here, and how could I get over this problem.
Thanks.
AmitHi Joel,
Thanks for your time.
I have already done that part before I started import. The user has unlimited quota on the tablespace. But the problem still shows up.
By the way, I have multiple dmp files, I could import the first dmp file, but this error shows up while doing the import for the next dmp file, which should just append the data to the existing table. I am sorry, I should have mentioned this before.
Please advise.
-Amit -
The percentage of free space is remain unchanged after extend data file.
I have alter database and extend datafile (applsysd03.dbf), the free size is larger than before, but don't know why the percentage (MAX_PER_FREE) is remain unchanged.
FILE_NAME TABLESPACE TOTAL USED FREE PER_FREE MAX_SIZE MAX_FREE MAX_PER_FREE
applsysd03.dbf APPLSYSD 3000 1637.9 1362.1 45.4 2000 362.1 18.1
applsysd03.dbf APPLSYSD 1900 1637.9 262.1 13.8 2000 362.1 18.1
Here is the my scripts:
select b.file_name File_name,
b.tablespace_name Tablespace,
b.bytes/(1024*1024) Total,
round((b.bytes - sum(nvl(a.bytes,0)))/(1024*1024),1) Used,
round(sum(nvl(a.bytes,0))/(1024*1024),1) Free,
round((sum(nvl(a.bytes,0))/(b.bytes))*100,1) per_Free,
round(decode(b.maxbytes,0,b.bytes,b.maxbytes)/(1024*1024),1) Max_Size,
round((sum(nvl(a.bytes,0)) + decode(b.maxbytes,0,0,b.maxbytes-b.bytes))/(1024*1024),1) Max_Free,
round((((sum(nvl(a.bytes,0)) + decode(b.maxbytes,0,0,b.maxbytes-b.bytes))/(1024*1024)) / (decode(b.maxbytes,0,b.bytes,b.maxbytes)/(1024*1024))) * 100,1) Max_per_Free
from sys.dba_free_space a,sys.dba_data_files b
where a.file_id(+) = b.file_id
and exists (
select file_id,recent_record
from ( select file_name,file_id,tablespace_name, max(file_id) over (partition by tablespace_name) recent_record
from sys.dba_data_files
where tablespace_name in ('ALRD','ALRX','APPLSYSD','APPLSYSX','APD','APX','ARD','ARX','CAPD','CAPX','CARD','CARX','CFNDD','CFNDX','CGLD','CGLX','CINVD','CINCX','CPOD','CPOX','CQCD','CQCX','CTXD','GLD','GLX','HRD','HRX','ICXD','ICXX','INVD','INVX','POD','POX','RGD','RGX','CWPLD','CWPLX','CSYND','CSYNX')
) t
where t.file_id = t.recent_record
and t.file_id = b.file_id
group by b.tablespace_name, b.file_name, b.bytes,b.maxbytes
order by 9
Any clues?
FANTo summarize - you want to see what percent of the maximum datafile space is free.
If the maxbyes <= bytes (size of the datafile) it will never autoextend. So, the max size is the current datafile size.
If the maxbytes >bytes, the max available space is the maxbyes.
So, the calculation would be:
max_percent_free = (max_size - used) / (max_size)
where max_size is either maxbytes or bytes (current datafile size).
In the first case, where datafile is 1900 meg that would be:
max_percent_free = (2000-1637) / (2000) = 18% - we use maxbytes since it is 2000, greater than the file size (1900)
After increasing the size to 3000
max_percent_free = (3000-1637) / 3000 = 45% - we use file size, 3000, since it is larger than maxbytes (2000)
If you would set maxbytes to 5 gb
max_percent_free = (5000-1637)/5000 = 67%
Does that make sense? -
Do I need to add datafile right now
Hi Friends,
I saw a tablespace there are two datafile.
one is full. second file information as below
File Size 3072MB and online
Automatically extend datafile when full (AUTOEXTEND) Increment 1024 KB
Maximum File Size value 32767MB
I saw size 6144.0 and used 5805.0 used as 94.5 in EM
seagment management set as auto
from threshold I saw
Tablespace Size (MB) 6,144.00 Space Used (MB) 5,805.00
Space Used (%) 94.48 Free Space (MB) 339.00
We use oracle 10gR2 in window 2003
Do i need to add or increase size or waitng for auto increase based on Maximum File Size value 32767MB
I dod not get a alert/ or warming information. we set as 95% for this event. warming as 85%.
Thanks,
Jim
Edited by: user589812 on Dec 5, 2008 1:32 PMIf the second file is created with maxsize 32 G then you don' thave issue at this point of time, it will automatically extend file till second files also reaches its maxsize. In addition if you are deleting/truncating data periodically from tables, then you should be having free space in both files
select file_name, (bytes/(1024*1024*1024)) size_gb from dba_data_files
where tablespace_name='YOURTABLESPACE';
You can use following to verify how much is freed up in tablespaces (you can join with dba_data_files)
select * from dba_free_space
where tablespace_name='YOURTABLESPACE'; -
Resize datafile in standby when its in mount stage
Hi All,
Oracle 10.2.0.1
Linux EL5
I have configured standby database for testing. Now i have a problem that my users tablespace in standby got filled and its giving error message like
ORA-01237: cannot extend datafile 4
ORA-01110: data file 4: '/u01/app/oracle/oradata/orcl/users01.dbf'
Now i have to autoextend the datafile 4 in standby.how to do it in mount stage?
When i try to open the database for resizing the datafile, i am getting the below error..
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf'
Any other options ? please advice..
TIA,Hi,
Thanks for your reply...
But i cant do that,because the current sequence in the primary is 51. And rite now the sequence in the standby is stuck in 45, now i have to pass this 6 sequences so that the changes made(like resizing the datafile) in the primary will reflect in the standby..
Now this is the error message i am getting when i start the redo apply in standby..
MRP0: Background Media Recovery terminated with error 1237
Thu Aug 27 20:01:33 2009
Errors in file /u01/app/oracle/admin/orcl/bdump/orclstdby_mrp0_5742.trc:
ORA-01237: cannot extend datafile 4
ORA-01110: data file 4: '/u01/app/oracle/oradata/orcl/users01.dbf'
ORA-19502: write error on file "/u01/app/oracle/oradata/orcl/users01.dbf", blockno 56960 (blocksize=8192)
ORA-27072: File I/O error
Linux Error: 11: Resource temporarily unavailable
Additional information: 4
Additional information: 56960
Additional information: 327680
Managed Standby Recovery not using Real Time Apply
Some recovered datafiles maybe left media fuzzy
Media recovery may continue but open resetlogs may fail
Any other options ?
Please advice...
TIA, -
Standby database datafile corruption.
Hi:
I am getting the following errors on my standby db. Could u please tell me how to handle the situation. I am skeptical to try out any thing as this might end up in datafile corruption. Please advice..
MRP0: Background Media Recovery terminated with error 1237
Fri Nov 30 09:15:25 2007
Errors in file /u01/prod/oraprod/proddb/9.2.0/admin/PROD_hunter/bdump/prod2_mrp0_19630.trc:
ORA-01237: cannot extend datafile 392
ORA-01110: data file 392: '/u03/prod/oraprod/proddata/a_txn_data01.dbf'
ORA-19502: write error on file "/u03/prod/oraprod/proddata/a_txn_data01.dbf", blockno 424577 (blocksize=8192)
ORA-27072: skgfdisp: I/O error
Linux Error: 4: Interrupted system call
Additional information: 424576
Some recovered datafiles maybe left media fuzzy
Media recovery may continue but open resetlogs may fail
MRP0: Background Media Recovery process shutdown
---------------------------------------------------------------------------------------------------------------------Check this error,
ORA-01237: cannot extend datafile string
Cause: An operating system error occurred during the resize.
Action: Fix the cause of the operating system error and retry the command.
Is there any DDL statement in your primary to resize datafile ? Do you have enough space on standby server? -
Dear Experts,
I am using SAP 4.7 with oracle 8.1 on Windows 200 server.
I want to extended data file and Add data file. I think it can be via SAPDBA ,But I never use this one . So please explain me step-by step . so that I can ADD or Extended datafile ? and It can be Online , mean no user will effect on his work.
Please give me so step by setp .
thanks
MANUHi Manu,
Oracle 8.1 -> desupported
Windows 2000 -> desupported
SAPDBA -> not maintained anymore
You're running pretty outdated software there...
Anyhow, yes you can use SAPDBA to add a datafile.
Just start SAPDBA.
You'll get a menu then, similar to this:
SAPDBA V6.20 - SAP Database Administration - on WIN NT 5.1
ORACLE version: 9.2.0.8.0
ORACLE_SID : IPDB
ORACLE_HOME : c:\ORACLE\IPDB\920
DATABASE : db status unknown
a - Startup/shutdown instance h - Backup database
b - Instance information i - Backup offline redo logs
c - Tablespace administration j - Restore/recovery
d - Reorganization k - Additional functions
e - Export/import l - Show/cleanup
f - Archive mode m - User and security
q - Quit
Please select ==>
Choose "c . Tablespace administration" and "f - Alter tablespace add data/temp file" in the following menu screen.
That should be easy enough.
Best regards,
Lars -
Is it possible to recover by renaming a stdby datafile for space issues
Hi All,
In one of the mount point in standby database, i dont have enough space and the mrp is stopped with the below error.
ORA-01237: cannot extend datafile 66
My question is, can i follow the below steps to recover the standby.. I have all the archive logs in standby and there is no archive log gap.
I have space in another mount point also in standby.
1. shutdown the standby db and copy the afftected datafile from the current mount point to the mount point which i have space.
2. rename the datafile
3. start the mrp process again.
Can i follow the above steps?
DB version:10.2.0.5
OS:AIXHi,
DB_FILE_NAME_CONVERT you need to set when in process of duplicate from primary to standby.
Here no need of this parameter, make sure STANDBY_FILE_MANAGEMENT is set to AUTO, that should be fine. -
ORA-01237 when trying to shrink a datafile
I have a datafile which is on a disk which run full.
The datafile was thought to autoextend to 2 GB, but due to other use the disk is now full with the datafile using 850 MB.
select file_name, bytes, maxbytes from dba_data_files
where file_name = '/dtb1/CELV4/dtb1/tma001.dbf'
FILE_NAME,BYTES,MAXBYTES
/dtb1/CELV4/dtb1/tma001.dbf,850395136,2147483648
I have now added another datafile on another disk.
To make sure that the old datafile does not extend any further, I tried to shrink the datafile:
alter database datafile '/dtb1/CELV4/dtb1/tma001.dbf' resize 1g;
ORA-01237: cannot extend datafile 8
ORA-01110: data file 8: '/dtb1/CELV4/dtb1/tma001.dbf'
ORA-27072: File I/O error
Additional information: 2
As far as I have understood the documentation, shrinking a datafile should be possible. So where does this error come from? Does Oracle first need additional space for shrinking, so the nearly full disc could be the problem?
Many thanks,
ThomasThe datafile size is 850395136 bytes -- i.e. about 811MB (dividing by 1048576)
The "alter database datafile ... resize 1g" command that you issued attempted to increase the size of the file.
If you want to prevent the datafile from attempting to autoextend you should set autoextend off with
alter database datafile '/dtb1/CELV4/dtb1/tma001.dbf' maxsize 820M;
alter database datafile '/dtb1/CELV4/dtb1/tma001.dbf' autoextend off;The first command to change the maxsize is optional. IF autoextend is set to OFF, Oracle will ignore the MAXSIZE. However, it is safer to reduce this as well, in case a DBA or a script resets the datafile back to AUTOEXTEND ON in the future.
(Note : If MAXSIZE is set to less than the current size, Oracle will silently allow you to do so, and autoextend would fail to extend the datafile, but that is not a "clean" way to set the maxsize). -
Hi
I just took over from someone the role of a DBA and I would like to clarify an issue I saw in Oracle (R) Enterprise Manager Console Version 9.2.0.1.0 Production.
My Default Temporary Tablespace, TEMP.DBF is currently sized at 6144 MB, Used size is 6140 MB, 99.93% with full auto extend on.
Automatically extend datafile when full (Auto extend) 20480 K Bytes.
Maximum Size - 8192 K Bytes. (------> Issue to clarify here<------)
I think most probably my ex-staff clicked wrongly and chose "K Bytes". It should be "M Bytes". However, I would like to know how is it possible that OEM console Version 9.2.0.1.0 allows the Maximum Size (8192 K Bytes) to be below 6144 MB? Is this allowed? If so and left uncheck, what will the repercussion be on the TEMP tablespace?
Has anyone ever come across this issue?
Regards
HahnhahnhahnSee an small example below
"Tablespace Created"
SQL> create temporary tablespace temp_test tempfile 'C:\ORACLE\APP\ORADATA\CKPT\temp_test01.tmp' size 100m autoextend on
next 10m maxsize 200m;
Tablespace created.
SQL>
"check below size, user bytes,maxsize"
TABLESPACE_NAME FILE_NAME BYTES/1024/1024 USER_BYTES/1024/1024 MAXBYTES/1024/1024 AUT
TEMP_TEST C:\ORACLE\APP\ORADATA\CKPT\TEMP_TEST01.TMP "100 99 200" YES
SQL>
"Now resized to more than maxsize so further maxsize supprssed"
SQL> alter database tempfile 'C:\ORACLE\APP\ORADATA\CKPT\TEMP_TEST01.TMP' resize 250m;
Database altered.
SQL> select tablespace_name,file_name,bytes/1024/1024,user_bytes/1024/1024,maxbytes/1024/1024,autoextensible from dba_temp_files where tablespace_name='TEMP_TEST';
TABLESPACE_NAME FILE_NAME BYTES/1024/1024 USER_BYTES/1024/1024 MAXBYTES/1024/1024 AUT
TEMP_TEST C:\ORACLE\APP\ORADATA\CKPT\TEMP_TEST01.TMP "250 249 200 YES"
SQL>
Now Bytes is more than Maxsize , its common behaviour of oracle database. When you resize tempfile, you have to again mention what is the maxsize.
Maybe you are looking for
-
Adding a JDBC driver in Sun Java System Web Server 7
I'm trying to configure JDBC database connection pooling for a Microsoft SQL Server 2005 Express Edition though the Sun Java System Web Server 7 administration console. I don't want to use the MSSQL JDBC driver that comes bundled with the SJSWS 7. So
-
How do I use a USB microphone with logic?
Logic recognizes the samson meteor microphone, but how do I get sound from it when using it for a track? Do I select an audio, software instr, or midi track? I also use an audiobox midi for my keyboard. For that, I select software instrument and then
-
Hi all, I need to perform some validations over a field and I am doing it on a field exit. The requirement is that I have to inform the user if, after the validation, the exit changes the value of the field. Does anyone has a hint for that? Thanks in
-
Ever since updating to the newest version of desktop skype, I get a sound notifications whenever im actively using the skype window. More specifically whenever someone sends an IM, its pings. Making group chats aggrivating to participate in. I have s
-
Hi, Here is the standard MPLS network with vrf INTERNET: PE2--P2--P1--PE1--INTERNET | CPE PE1-routes ip route vrf INTERNET 0.0.0.0 0.0.0.0 --> PE1 IP route vrf INTERNET 0.0.0.0 0.0.0.0 -- > INTERNET vrf INTERNET 10.10.0.0/16 connected 192.168.0.5 is