Its great to share this great ebook.
Title : “SAP DBA COCKPIT – Flight Plans for DB2 LUW Database Administrators”
This ebook format is PDF. You can download it here or directly here (http://www.ziddu.com/downloadlink/9987177/COCKPIT-FlightPlansforDB2LUWDatabaseAdministrators.pdf) or here (http://ugotfile.com/file/1547172/SAP DBA COCKPIT – Flight Plans for DB2 LUW Database Administrators.pdf).
Happy downloading and enjoy it.
Just for refreshing my memory and yours
he differences in the 3 startup stages for oracle db are as below.
When DB is in the nomount stage, oracle first opens and reads the initialization parameter file “init.ora” for the DB configuration which includes various parameters required for initialization. Based on the parameters, the memory areas in database instance are allocated and db background processes are started. The instance then starts.
When DB is in this stage, it opens and reads the control file which contains the physical structure of db like the database datafiles etc.. It determines the location of the datafiles and the database is ready to be opened.
When DB is in this stage, it opens the database, it tries to access all of the datafiles associated with the database. Once it has accessed the database datafiles, it makes sure that all of the database datafiles are consistent.
After that DB is into normal operations state.
From my previous posting I had mention that I need to recreate my Oracle database control file since I need to increase my MAXDATAFILES parameter.
Yesterday (sunday) I had a chance to manage my control file since I have time to shutdown my server. I log on my AIX server and logon to Oracle SQL Plus.
Connect to my database.
SQL>conn / as sysdba;
Then dump my current control file to a text file.
SQL>alter database backup controlfile to trace as ‘/oracle/[SID]/controlfile.txt’;
Then I copied that file (controlfile.txt) to my local notebook and edit it using my favourite text editor.
Here are list of my old control file :
A few weeks ago, I need to manage my number of datafiles on Oracle server parameter file (spfile). On Oracle spfile, by using BRTOOLS or BRSPACE, you can check your DB_FILES parameter.
ora[sid]>brspace -f dbparam
On my system, currently DBFILES = 768. I need to increase my DB_FILES so it can manage larger number of datafiles but unfortunately I can’t do it right now since my MAXDATAFILES was set to 784. So I can only increase my number of datafiles from 768 to 748.
You can check MAXDATAFILES number on your Oracle control file. Follow this instruction to get your MAXDATAFILES parameter info :
- Login to your DB server using root
- Change to ora[sid] user. root#su – ora[sid] [ENTER]
- Go to sqlplus. ora[sid]>sqlplus /nolog [ENTER]
- Connect to your database instance. SQL>conn / as sysdba [ENTER]
- Run command to extract control file to trace file. SQL>alter database backup controlfile to trace [ENTER]
- Get information about where your trace file is stored. SQL>show parameter user_dump_dest
- Get your trace file (usually it has .trc extension) and open it using your favourite text editor.
- Find MAXDATAFILES info inside it.
Here is my trace file sample :
—-more lines—–STARTUP NOMOUNTCREATE CONTROLFILE REUSE DATABASE “[SID]” NORESETLOGS FORCE LOGGING ARCHIVELOG— SET STANDBY TO MAXIMIZE PERFORMANCEMAXLOGFILES 255MAXLOGMEMBERS 3MAXDATAFILES 784 ——-> this is the information I mentioned.MAXINSTANCES 50MAXLOGHISTORY 22462LOGFILEGROUP 1 (‘/oracle/[SID]/origlogA/log_g11m1.dbf’,‘/oracle/[SID]/mirrlogA/log_g11m2.dbf’) SIZE 50M,—-more lines—–
If I want to increase MAXDATAFILES, then I need to re-create my control file. I’ll update more about re-creating control file on my next posting.
We are currently running our SAP R/3 4.7 system on Oracle 9i database. Oracle 184.108.40.206 is the exact version. We haven’t change any parameter on our control file.
The main problem is we need to set our number of datafiles on Oracle
Currently we have DB_FILES set to 768 on Oracle parameter file. We need to set this to higher number (may be around 1024). I ask this question to SAP SDN forum and Stefan said I need to check MAXDATAFILES on our control file. So I need to check my control file.
I log on to my database system and try to dump our control file to trace file using this SQL command :
SQL> alter database backup controlfile to trace;
I check my dump trace location.
SQL> show parameter user_dump_dest
NAME TYPE VALUE
———————————— ———– ——————————
user_dump_dest string /oracle/[SID]/saptrace/usertrace
Than I try to get my files and read it using my text editor.
This is some lines on my trace file.
# only if the current version of all online logs are available.
CREATE CONTROLFILE REUSE DATABASE “[SID]” NORESETLOGS FORCE LOGGING ARCHIVELOG
— SET STANDBY TO MAXIMIZE PERFORMANCE
From MAXDATAFILES line, I get information about my maximum datafiles I can set, 784. So I cannot set my DB_FILES parameter to 1024 yet. I need to adjust and re-create my control file.
I need to shutdown, backup and re-create it. I’ll explained on mye next posting.