Data / Data files / Database GROWTH
Dear experts,
I have a practical question on reading / determining the exact fluctuations in the sizeof
a database.
I am publishing this question in the oracle section, as my database is oracle, but if I am
not wrong, all this should be valid for all databases.
So, the question itself: I have a system, where all the datafiles / tablespaces are set to
AUTOEXTEND, the size for each growth is 200 MB (meaning, if growing automatically,
the increment size will be 200 MB). Now I would like to see, if datafiles grew automatically,
lets say for today! And if yes - by how much increments.
Furthermore, I would like to ask - browsing ST04, in Space / Database / Overview on the
history tab - all the daily / weekly / monthly changes - how to evaluate, whether this was
only an "internal" growth, when the database grew in account of decreasing the free space
in the DB itself, and when it has also caused a data file to grow automatically, as it has its
AUTOEXTEND option enabled ???
Dear Deepak,
after quite a lot of googling,I found this:
SELECT TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY') days, ts.tsname,
max(round((tsu.tablespace_size* dt.block_size )/(1024*1024),2) ) cur_size_MB,
max(round((tsu.tablespace_usedsize* dt.block_size )/(1024*1024),2)) usedsize_MB
FROM DBA_HIST_TBSPC_SPACE_USAGE tsu, DBA_HIST_TABLESPACE_STAT ts, DBA_HIST_SNAPSHOT sp, DBA_TABLESPACES dt
WHERE tsu.tablespace_id= ts.ts#
AND tsu.snap_id = sp.snap_id
AND ts.tsname = dt.tablespace_name
AND ts.tsname NOT IN ('SYSAUX','SYSTEM')
GROUP BY TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY'), ts.tsname
ORDER BY ts.tsname, days;
It comes the closest to what I really need. And what I need, is the above query,
but by data file, not by tablespaces.
Thanks a lot!!
Similar Messages
-
Data Files for new Oracle 11.2g install
Hi,
I have installed Oracle 11.2g on Windows 7 Professional 32 bit environment. I would like to download data files to run queries. Could you tell me where I can download data files/database files/scripts?
Could you also tell me which Oracle manual can be used to practice Oracle database for Systems Admin.
Thanks for your help.Fallow complete oracle documentation Library.
Oracle Database Online Documentation 11g Release 2 (11.2)
Thanks,
<moderator edit - delelted link signature - see FAQ on top right> -
How to design SQL server data file and log file growth
how to design SQL DB data file and log file growth- SQL server 2012
if my data file is having 10 GB sizze and log file is having 5 GB size
what should be the size in MB (not in %) of autogrowth. based on what we have to determine the ideal size of file auto growth.It's very difficult to give a definitive answer on this. Best principal is to size your database correctly in advance so that you never have to autogrow, of course in reality that isn't always practical.
The setting you use is really dictated by the expected growth in your files. Given that the size is relatively small why not set it to 1gb on the datafile(s) and 512mb on the log file? The important thing is to monitor it on an on-going basis to see if that's
the appropriate amount.
One thing you should do is enable instant file initialization by granting the service account Perform Volume Maintenance tasks in group policy. This will allow the data files to grow quickly when required, details here:
https://technet.microsoft.com/en-us/library/ms175935%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
Also, it possible to query the default trace to find autogrowth events, if you wanted you could write an alert/sql job based on this
SELECT
[DatabaseName],
[FileName],
[SPID],
[Duration],
[StartTime],
[EndTime],
CASE [EventClass]
WHEN 92 THEN 'Data'
WHEN 93 THEN 'Log' END
FROM sys.fn_trace_gettable('c:\path\to\trace.trc', DEFAULT)
WHERE
EventClass IN (92,93)
hope that helps -
Database data file growing very fast
Hi
I have a database that runs on SQL server 2000.
A few months back, the database was shifted to new server because the old server was crash.
There was no issue in old server which was used more than 10 years.
I noticed that the data file was growing very fast since the database was shifted to new server.
When I run "sp_spaceused", a lot of space are unused. Below is the result:
database size = 50950.81 MB
unallocated space = 14.44 MB
reserved = 52048960 KB
data = 9502168 KB
index size = 85408 KB
unused = 42461384 KB
When I run "sp_spacedused" only for one big table, the result is:
reserved = 19115904 KB
data = 4241992 KB
index size = 104 KB
unused = 14873808 KB
I had shrink the database and the size didn't reduce.
May I know how to reduce the size? Thanks.Hallo Thu,
can you check whether you have active Jobs in Microsoft SQL Server Agent which may...
rebuild Indexes?
run maintenance Jobs of your application?
I'm quite confident that index maintenance will cause the "growth".
Shrinking the database is...
useless and
nonsence
if you have index maintenance Tasks. Shrinking the database means the move of data pages from the very end of the database to the first free part in the database file(s). This will cause index fragmentation.
If the nightly index maintenance Job will rebuild the Indexes it uses NEW space in the database for the allocation of space for the data pages!
Read the blog post from Paul Randal about it here:
http://www.sqlskills.com/blogs/paul/why-you-should-not-shrink-your-data-files/
MCM - SQL Server 2008
MCSE - SQL Server 2012
db Berater GmbH
SQL Server Blog (german only) -
How to store data into database by reading sql statements from text file
how to write java program for storing data into database by reading sql statements from text file
Step 1: Create a property file to add various queries.
Step 2: Read the properties file using ResourceBundle
Step 3: Use the jdbc to execute the query read from the property file.
So in future if you need to change query no need do any modifications in java program. But depends on how you use the property file. -
How can i recover my database after losing system data file.
hi everyone,
how can i recover my database in the following scenario.
1. offline complete backup taken 2 days ago. database was in archive mode.
2. today i lost my system data file, and also lost my all archived files.
3. i started up the database but, the following error was generated.
SQL> startup
ORACLE instance started.
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
4. i copied the system data file from backup and wrote the following statement, to recover the database.
SQL> recover datafile 1;
ORA-00279: change 2234434 generated at 07/15/2009 10:52:10 needed for thread 1
ORA-00289: suggestion : C:\B\ARC00051.001
ORA-00280: change 2234434 for thread 1 is in sequence #51
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
now i don't have any archive file. is there any chance to recover the database ?
R e g a r d s,
Asif Iqbal
Software Engineer,
Lucky Tex, Karachi,
Pakistan.now i don't have any archive file. is there any chance to recover the database ?If no archive log files are available you can't recover the datafile.You need to have all the archives from the time of offline backup was taken till the system datafile is lost.
Anand -
Issue to load data from database to XML file. error: ODI-40768
Hi,
While I am trying to load data from database to XML following error is appearing.
ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
at java.lang.Thread.run(Thread.java:662)
jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
physical schema: TESTSQL
Knowledge modules are:
LKM: LKM SQL to SQL
IKM: IKM XML Control Append
CKM: CKM SQL
Parameters set are:
CREATE_XML_FILE: true
XML_PATH:<default>:C:\DATA_FILE\www.xml
I have tried to change the directory path but error is still there.
Could some one please help me to resolve the issue?
Regards,
user1672911Hi,
The trouble in "<default>:" - if you set XML_PATH as C:\DATA_FILE\www.xml instead <default>:C:\DATA_FILE\www.xml- it will work correctly.
Greetings,
Eugene -
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Hi All,
Need help from the gurus.
Currently we are in state unable to do anything.
Was using a database and all of a sudden it crashed. Tried to mount the database, open it, it failed. Also tried the recover and alter database open, even that failed. Errors are as follows.
Errors in file e:\oracle\product\10.2.0 \admin\devrevdb\bdump\devrevdb_p000_2620.trc:
ORA-00603: ORACLE server session terminated by fatal error
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-00449: background process 'DBW0' unexpectedly terminated with error 1242
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
In my spfile, the administrator has set only two control files and there is no mirroring and hence do not have another control file that will help me boot the db.
Please let me know how I should go about it. I am only a timebeing person trying to carryout a db activity. Any help would be of great help.Hemant,
thanks for the reply.
I tried the way you suggested and it threw an error.
ORA-01145: offline immediate disallowed unless media recovery enabled
I searched and found that an additional tag of drop needs to be added to the command which you suggested.
ALTER DATABASE DATAFILE '<filename>' OFFLINE DROP.
i don't know what will the drop command have an effect ?
i have copied the data file to another location. Since i don't know much, i just want to be sure of what im doing.
if the above command is successfull, will it drop the datafile or the tablespace and i can no more use it. How can i use the copied datafile.
Thanks,
Sachin
I -
How to manage a data file using Business Contact Manager database tool
I set up BCM on my desktop and now want to share with the rest of the office. I downloaded BCM database tool on the C drive
of the server and all was well until I tried to move through the wizard. The only option that gets me to a data file is creating a database. However, I receive the error message "Cannot create a new database. The operation has been rolled back. Please
make sure the database service is running". How can I make this work? Truthfully, I don't want to create a new database - I have already set one up; Restore only gives me the database server instance but no choices for the database name list. I have installed
BCM on another co-workers desktop and allowed the database to be shared with her. What more am I missing? Why can't I get the server to see the data file?Hi,
If the Database has not been shared, you can't connect to it.
Please also confirm you have been granted permission to access the shared Business Contact Manager database.
You can refer to this article below and there are some factors that you should consider:
Business Contact Manager cannot connect to the shared database
http://office.microsoft.com/en-us/outlook-help/business-contact-manager-cannot-connect-to-the-shared-database-HA010262548.aspx
I hope it can be helpful.
Regards,
Melon Chen
TechNet Community Support -
Inserting files in to Oracle 8i database through JDBC - Only 4k data file
Hi,
I need to insert a files(images or excel files, doc files etc..) in to oracle 8i database through JDBC program. But i am not able to store more than 4k data files in to files. can any body give me solutions regarding this.
My code is like this...
String fileName ="Sample.jpg";
String dataSource = "jdbc/oracle";
File file=null;
FileInputStream fis = null;
Context initCtx=null;
DataSource ds = null;
Connection con = null;
try
initCtx = new InitialContext();
ds = (DataSource)initCtx.lookup(dataSource);
con = ds.getConnection();
try
file = new File(fileName);
fis = new FileInputStream(file);
catch(FileNotFoundException fe)
out.println("File Not Found");
PreparedStatement pstmt = con.prepareStatement("insert into bfiles values(?,?)");
pstmt.setString(1, fileName);
pstmt.setBinaryStream(2, fis, (int)file.length());
pstmt.executeUpdate();
out.println("Inserted");
fis.close();
pstmt.close();
con.close();
out.println("closed");
catch(Exception e)
out.println(e);
} in Oracle bi i have created a table like this :
CREATE TABLE BFILES
FILENAME VARCHAR2(100) DEFAULT NULL,
FILECONTENT BLOB DEFAULT EMPTY_BLOB()
)Please help me ourt to solve this problem.
i got struck in this problem.
its urgent
thanks in advance
djshivuHi Shanu.
Thanks for your help...
By Using THIN driver also we can insert any files more than 4k and and retrive same. Fallowing codes worked fine for me using thin Driver .
Following are the 2 programs to write and read.
we can insert and retrieve any format of files ( jpg, gif, doc, xsl, exe, etc...)
=======================================================
// Program to insert files in to table
import oracle.jdbc.driver.*;
import oracle.sql.*;
import java.sql.*;
import java.io.*;
import java.awt.image.*;
import java.awt.*;
* @author Shivakumar D.J
* @version
public class WriteBlob{
public static void main(String[] args){
String filename = "018-Annexure-A.xls";
Connection conn = null;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
conn=DriverManager.getConnection("jdbc:oracle:thin:@test:1521:orcl","modelytics","modelytics");
conn.setAutoCommit(false);
Statement st = conn.createStatement();
int b= st.executeUpdate("insert into bfiles values('"+filename+"', empty_blob())");
ResultSet rs= st.executeQuery("select * from bfiles for update");
rs.next();
BLOB blob=((oracle.jdbc.driver.OracleResultSet)rs).getBLOB(2);
FileInputStream instream = new FileInputStream(filename);
OutputStream outstream = blob.getBinaryOutputStream();
int chunk = blob.getChunkSize();
byte[] buff = new byte[chunk];
int le;
while( (le=instream.read(buff)) !=-1)
outstream.write(buff,0,le);
instream.close();
outstream.close();
conn.commit();
conn.close();
conn = null;
System.out.println("Inserted.....");
catch(Exception e){
System.out.println("exception"+e.getMessage());
e.printStackTrace();
}//catch
}=======================
// Program to retrieve files from database
[import java.sql.*;
import java.io.*;
import java.awt.*;
public class ReadImage
public static void main(String a[])
String fileName ="018-Annexure-A.xls";
try
Driver driver = new oracle.jdbc.driver.OracleDriver();
DriverManager.registerDriver(driver);
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@test:1521:orcl", "modelytics", "modelytics");
File file = new File("C:/Documents and Settings/USERID/Desktop/dump.xls");
FileOutputStream targetFile= new FileOutputStream(file); // define the output stream
PreparedStatement pstmt = con.prepareStatement("select filecontent from bfiles where filename= ?");
pstmt.setString(1, fileName);
ResultSet rs = pstmt.executeQuery();
rs.next();
InputStream is = rs.getBinaryStream(1);
byte[] buff = new byte[1024];
int i = 0;
while ((i = is.read(buff)) != -1) {
targetFile.write(buff, 0, i);
System.out.println("Completed...");
is.close();
targetFile.close();
pstmt.close();
con.close();
catch(Exception e)
System.out.println(e);
}====================
Table Structure is like this
CREATE TABLE BFILES
FILENAME VARCHAR2(100) DEFAULT NULL,
FILECONTENT BLOB DEFAULT EMPTY_BLOB()
)========================================================
i hope above codes will helpful for our future programmers
thanks shanu...
regards
djshivu...(javashivu) -
ORA-01157: cannot identify/lock data file error in standby database.
Hi,
i have a primary database and standby database (11.2.0.1.0) running in ASM with different diskgroup names. I applied an incremental backup on standby database to resolve archive log gap and generated a controlfile for standby in primary database and restored the controlfile in standby database.But when i started the MRP process its not starting and thows error in alert log ORA-01157: cannot identify/lock data file. When i queried the standby database file it shows the location on primary database datafiles names not the standby database.
PRIMARY DATABASE
SQL> select name from v$datafile;
NAME
+DATA/oradb/datafile/system.256.788911005
+DATA/oradb/datafile/sysaux.257.788911005
+DATA/oradb/datafile/undotbs1.258.788911005
+DATA/oradb/datafile/users.259.788911005
STANDBY DATABASE
SQL> select name from v$datafile;
NAME
+STDBY/oradb/datafile/system.256.788911005
+STDBY/oradb/datafile/sysaux.257.788911005
+STDBY/oradb/datafile/undotbs1.258.788911005
+STDBY/oradb/datafile/users.259.788911005
The Actual physical location of standby database files in ASM in standby server is shown below
ASMCMD> pwd
+STDBY/11gdb/DATAFILE
ASMCMD>
ASMCMD> ls
SYSAUX.259.805921967
SYSTEM.258.805921881
UNDOTBS1.260.805922023
USERS.261.805922029
ASMCMD>
ASMCMD> pwd
+STDBY/11gdb/DATAFILE
i even tried to rename the datafiles in standby database but it throws error
ERROR at line 1:
ORA-01511: error in renaming log/data files
ORA-01275: Operation RENAME is not allowed if standby file management is
automatic.
Regards,
007Hi saurabh,
I tried to rename the datafiles in standby database after restoring it throws the below error
ERROR at line 1:
ORA-01511: error in renaming log/data files
ORA-01275: Operation RENAME is not allowed if standby file management is
automatic.
Also in my pfile i have mentioned the below parameters
*.db_create_file_dest='+STDBY'
*.db_domain=''
*.db_file_name_convert='+DATA','+STDBY'
*.db_name='ORADB'
*.db_unique_name='11GDB'
Regards,
007 -
Reading file and dump data into database using BPEL process
I have to read CSV files and insert data into database.. To achieve this, I have created asynchronous bpel process. Added Filed Adapter and associated it with Receive activity.. Added DB adapter and associated with Invoke activity. Total two receive activity are available in process, when tried to Test through EM, only first receive activity is completed, and waiting on second receive activity. Please suggest how to proceed with..
Thanks, Manoj.Deepak, thank for your reply.. As per your suggestion I created BPEL composite with
template "Define Service Later". I followed below steps, please correct me if I am wrong/missing anything. Your help is highly appreciated...
Step 1-
Created File adapter and corresponding Receive Activity (checkbox create instance is checked) with input variable.
Step 2 - Then in composite.xml, dragged the
web service under "Exposed Services" and linked the web service with Bpel process.
Step 3 - Opened .bpel file and added the DB adapter with corresponding Invoke activity, created input variable. Web service is created of Type "Service" with existing WSDL(first option aginst WSDL URL).
and added Assign activity between receive and invoke activities.
Deployed the composite to server, when triedTest it
manually through EM, it is promting for input like "subElmArray Size", then I entered value as 1 with corresponding values for two elements and click on Test We Service button.. Ptocess is completing in error. The error is
Error Message:
Fault ID
service:80020
Fault Time
Sep 20, 2013 11:09:49 AM
Non Recoverable System Fault :
Correlation definition not registered. The correlation set definition for operation Read, process default/FileUpload18!1.0*soa_3feb622a-f47e-4a53-8051-855f0bf93715/FileUpload18, is not registered with the server. The correlation set was not defined in the process. Redeploy the process to the containe -
After renaming data file it failes during database open
Hi,
I took RMAN full back.
Then i renamed datafile then restored and recovered. It goes fine.
But during the daabase open it fails with
ORA-01113: file 6 needs media recovery
ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
Any specific reason for that?
=======================================================
Recovery Manager: Release 11.2.0.1.0 - Production on Thu Jul 22 01:19:30 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> backup database;
connected to target database: QA112ASM (DBID=3746246770)
RMAN>
Starting backup at 22-JUL-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=145 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=+OBTDG1/qa112asm/datafile/system01.dbf
input datafile file number=00003 name=+OBTDG1/qa112asm/datafile/rbs01.dbf
input datafile file number=00002 name=+OBTDG1/qa112asm/datafile/sysaux01.dbf
input datafile file number=00004 name=+OBTDG1/qa112asm/datafile/temp01.dbf
input datafile file number=00005 name=+OBTDG1/qa112asm/datafile/tools01.dbf
input datafile file number=00006 name=+OBTDG1/qa112asm/datafile/users01.dbf
input datafile file number=00007 name=+OBTDG1/qa112asm/datafile/vindx.dbf
channel ORA_DISK_1: starting piece 1 at 22-JUL-10
channel ORA_DISK_1: finished piece 1 at 22-JUL-10
piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=TAG20100722T011934 co
mment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 22-JUL-10
channel ORA_DISK_1: finished piece 1 at 22-JUL-10
piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back09ljcra0_1_1 tag=TAG20100722T011934 co
mment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-JUL-10
RMAN> shutdown immediate
Oracle instance shut down
RMAN> startup mount
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 275615744 bytes
Fixed Size 2168944 bytes
Variable Size 184551312 bytes
Database Buffers 83886080 bytes
Redo Buffers 5009408 bytes
RMAN>run(
*run {*
set newname for datafile '+OBTDG1/QA112ASM/users01.dbf' to '+OBTDG1/QA112ASM/users02.dbf' ;
restore datafile '+OBTDG1/QA112ASM/users01.dbf';
recover datafile '+OBTDG1/QA112ASM/users01.dbf' noredo;
switch datafile '+OBTDG1/QA112ASM/users02.dbf' ;
RMAN>
2> 3> 4> 5> 6>
executing command: SET NEWNAME
Starting restore at 22-JUL-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=137 device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00006 to +OBTDG1/QA112ASM/datafile/users02.dbf
channel ORA_DISK_1: reading from backup piece /qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljc
r97_1_1
channel ORA_DISK_1: piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=T
AG20100722T011934
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 22-JUL-10
Starting recover at 22-JUL-10
using channel ORA_DISK_1
Finished recover at 22-JUL-10
datafile 6 switched to datafile copy
input datafile copy RECID=2 STAMP=724987222 file name=+OBTDG1/qa112asm/datafile/users02.dbf
RMAN> alter database open;
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 07/22/2010 01:20:23
ORA-01113: file 6 needs media recovery
ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
=======================================================
Edited by: user13310502 on Jul 23, 2010 4:49 AMas you can see..
RMAN> sql "alter tablespace andreas offline";
sql statement: alter tablespace andreas offline
RMAN> run
2> {
3> set newname for datafile 8 to '+FRA';
4> restore datafile 8;
5> recover datafile 8;
6> switch datafile 8;
7> }
executing command: SET NEWNAME
Starting restore at 23-JUL-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00008 to +FRA
channel ORA_DISK_1: reading from backup piece +FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763
channel ORA_DISK_1: restored backup piece 1
piece handle=+FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763 tag=TAG20100723T135242
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 23-JUL-10
Starting recover at 23-JUL-10
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:00
Finished recover at 23-JUL-10
datafile 8 switched to datafile copy
input datafile copy recid=7 stamp=725118807 filename=+FRA/remtest/datafile/andreas.3113.725118805
RMAN> sql "alter tablespace andreas online";
sql statement: alter tablespace andreas online
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 07/23/2010 13:53:33
RMAN-11003: failure during parse/execution of SQL statement: alter tablespace andreas online
ORA-01113: file 8 needs media recovery
ORA-01110: data file 8: '+FRA/remtest/datafile/andreas.3113.725118805'
RMAN> run
2> {
3> set newname for datafile 8 to '+FRA';
4> restore datafile 8;
5> switch datafile 8;
6> recover datafile 8;
7> }
executing command: SET NEWNAME
Starting restore at 23-JUL-10
using channel ORA_DISK_1
channel ORA_DISK_1: restoring datafile 00008
input datafile copy recid=8 stamp=725118807 filename=+DATA/remtest/datafile/andreas.349.725036143
destination for restore of datafile 00008: +FRA
channel ORA_DISK_1: copied datafile copy of datafile 00008
output filename=+FRA/remtest/datafile/andreas.3114.725118849 recid=9 stamp=725118849
Finished restore at 23-JUL-10
datafile 8 switched to datafile copy
input datafile copy recid=10 stamp=725118850 filename=+FRA/remtest/datafile/andreas.3114.725118849
Starting recover at 23-JUL-10
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:01
Finished recover at 23-JUL-10
RMAN> sql "alter tablespace andreas online";
sql statement: alter tablespace andreas online -
How to Re org the SQL 2008 database to have equal size data files
Hello everyone -
I have I/O issue with our production system (SAP ECC 6.0 on Windows 2008 and MSSQL 2008).
Following are my I/0 stats in DB02 (since DB Start)
ECPDATA1 E: Data 25.779 28.053 4.689 1,056.68 36.297 23.326 2.515 45.301 14.43
ECPDATA2 E: Data 23.143 24.979 4.68 593.297 17.971 12.448 1.238 47.663 14.518
ECPDATA3 G: Data 9.17 9.807 3.477 1,018.69 36.144 21.938 2.457 46.434 14.712
ECPDATA4 F: Data 10.985 11.788 2.69 148.512 4.777 3.248 0.314 45.722 15.201
ECPDATA5 F: Data 14.746 16.164 2.676 162.39 6.693 3.679 0.432 44.139 15.491
ECPLOG1 D: Log 5.337 27.081 4.916 26.962 26.264 0.037 1.919 726.928 13.688
ECPLOG2 F: Log 0.755 17.582 0.487 35.472 35.161 0.042 2.637 845.998 13.334
The fourth column is ms/op which is very high and also asymmetrical for all the data files.
Also, The data files are not of equal size
ECPDATA1 106,173
ECPDATA2 59,588
ECPDATA3 105,036
ECPDATA4 14,992
ECPDATA5 16,491
ECPLOG1 1,025
ECPLOG2 3,199
So ECPdata1 and ECPdata3 are about 105 GB while #4 and #5 are 14 GB and 16 GB each. As per SQL best practices, all the Data files should be of equal size to get the best performance.
How do I make the data files with equal sizes ?
Your help is very much appreciated.
Thank you
-TSBHi dudes!
The key here is that you manually grow your datafiles before the autogrown mechanism comes to play; in fact, SAP recommends setting the autogrow just to avoid the hypothetical case that should never arrive in which the DB administrator forgot about the database size and it ran out of space.
Otherwise, if you properly monitor and manage your DB you should always grant that at least 30% (to say) of free space is allocated in your datafiles. If you do so, the SQL Server engine should do the rest, as it follows a proportional filling strategy as you can read in SAP note 1238993.
In case your database is not still proportional, my advise is that you just manually grow the datafiles so that all them are the same size, and so SQL Server will do the rest. If you however need to addresss that immediately, you will need to reorganize your database, which is not just more sensitive and complicate, but also which involves some I/O intensive operations (check SAP note 159316).
Cheers!!
--Jesú -
I have copy of data files! How to install and add these files to database!
Dear All,
I am using Oracle 11gR1 and Linux is the operating system.
I have OS level copy of my data files. This also includes the system and user tablespace data files.
Here is the list of datafiles:
*/DB/app/oracle/oradata/bssglb/system01.dbf*
*/DB/app/oracle/oradata/bssglb/sysaux01.dbf*
*/iscsi/oracle/db/undotbs05.dbf*
*/DB/app/oracle/oradata/bssglb/users01.dbf*
*/DB/app/oracle/oradata/bssglb/bss01.dbf*
*/var/oracle/oradata/bssglb/bss02*
*/var/oracle/oradata/bssglb/system02.dbf*
*/iscsi/oracle/db/bss03.dbf*
*/iscsi/oracle/db/bssdevp01.dbf*
I need to copy these files to a fresh install oracle database, kindly let me know the steps or any helpful document.
Thank you, ImranI created control files with command:
CREATE CONTROLFILE REUSE DATABASE "BSSGLB" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 5
MAXDATAFILES 600
MAXINSTANCES 10
MAXLOGHISTORY 1168
LOGFILE
GROUP 1 '/DB/app/oracle/oradata/bssglb/redo01.log' SIZE 500M,
GROUP 2 '/DB/app/oracle/oradata/bssglb/redo02.log' SIZE 500M,
GROUP 3 '/DB/app/oracle/oradata/bssglb/redo03.log' SIZE 500M
-- STANDBY LOGFILE
DATAFILE
'/DB/app/oracle/oradata/bssglb/system01.dbf',
'/DB/app/oracle/oradata/bssglb/sysaux01.dbf',
'/DB/app/oracle/oradata/bssglb/users01.dbf',
'/DB/app/oracle/oradata/bssglb/bss01.dbf',
'/var/oracle/oradata/bssglb/bss02',
'/var/oracle/oradata/bssglb/system02.dbf'
CHARACTER SET US7ASCII
;I have all the files mentioned in the datafile section of the above command.
But somehow when i try to open the DB, first it asks for the media recover. When i recover database then it disconnects database saying:
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
Process ID: 4768
Session ID: 170 Serial number: 5Contents of the alert log file are:
Beginning crash recovery of 1 threads
parallel recovery started with 3 processes
Started redo scan
Completed redo scan
1 redo blocks read, 0 data blocks need recovery
Started redo application at
Thread 1: logseq 7, block 2, scn 20356182450
Recovery of Online Redo Log: Thread 1 Group 1 Seq 7 Reading mem 0
Mem# 0: /DB/app/oracle/oradata/bssglb/redo01.log
Completed redo application
Completed crash recovery at
Thread 1: logseq 7, block 3, scn 20356202453
0 data blocks read, 0 data blocks written, 1 redo blocks read
Sun Feb 20 08:16:23 2011
Thread 1 advanced to log sequence 8
Thread 1 opened at log sequence 8
Current log# 2 seq# 8 mem# 0: /DB/app/oracle/oradata/bssglb/redo02.log
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Sun Feb 20 08:16:23 2011
SMON: enabling cache recovery
Errors in file /Oracle/app/oracle/diag/rdbms/bssglb/bssglb/trace/bssglb_ora_4550.trc:
ORA-01173: data dictionary indicates missing data file from system tablespace
Error 1173 happened during db open, shutting down database
USER (ospid: 4550): terminating the instance due to error 1173
Sun Feb 20 08:16:25 2011
Instance terminated by USER, pid = 4550
ORA-1092 signalled during: alter database open...
ORA-1092 : opiodr aborting process unknown ospid (4550_182910338848)
Sun Feb 20 08:16:26 2011
ORA-1092 : opitsk aborting processPlease help
Maybe you are looking for
-
Hi, I have created test script and test configuration to upload customer master data (Tcode XD01) in DEV system. It is working fine. I saved them as local object. Now to transport test script and test configuration in QA, do i need to create request
-
IPhones on same iCloud account mixing up messages
My family has two iPhone 4's and one 4S all connected to the sme iTunes/iCloud account that have recently been mixing up messages. This problem just recently started where one message is intended to be sent from one of the phones to just one other (i
-
How can I create a PDF that conforms to PDFX/1-a:2001 form Pages
I have a 358 page B&W document created in PAGES - I need to submit this to the printers (Lightning Source) as a PDFX/1-a:2001. I have Adobe Acrobat Professional and Distiller. However, pdfs created by PAGES cannot be converted by Acrobat into PDFX/1-
-
I was downloading 2 movies for rental on itunes to my imac. My internet connection was lost. My credit card was charged, but now my movies are nowhere to be found. I went to the Store and checked for available downloads and it stated that all purc
-
RAW 8.4 Changing Date Created
I cannot change the date in Date Created in File Info. The new date shows in File Info but has no effect with sorting as the File Properties shows the original date. I have tried MM/DD/YYYY and MM/DD/YYYY 00:00:00 AM. Fujifilm X-T1 RAW files