/users01.dbf5 online/u01/APP/Oracle/oradata/orcl/example01.dbf6 online/u01/APP/Oracle/oradata/orcl/perfstat. DBF7 online/u01/APP/Oracle/oradata/orcl/risenet. DBF
"Online" indicates normal online status
8. query the table space statusSQL> select tablespace_name, status from dba_tablespaces;
Tablespace_name status---------------------------------------System OnlineUndotbs1 onlineSysaux onlineTemp onlineUsers onlineExample onlinePerfstat onlineRisenet on
index segments Use General DDL, DML, LOGGING and NOLOGGING
1. view the archiving mode of the database
For more information about how to set the log archiving mode, see:
Oracle ONLINE redo LOG FILE)
Oracle archiving logs
Sys @ ORCL> select log_mode, force_logging from v $ database;
LOG_MODE
---------------
ARCHIVELOG NO
Sys @ ORCL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination/u01/bk/arch
Oldest online log sequence 50
Next log sequence to archi
the bstat/estat function and more information.For more information, see $ ORACLE_HOME/rdbms/admin/spdoc.txt.Install statspack:CD $ ORACLE_HOME/rdbms/adminSqlplus "/As sysdba" @ spdrop. SQL -- Uninstall. This is not required for the first time.Sqlplus "/As sysdba" @ spcreate. SQL -- enter the tablespace name as promptedUse statspack:Sqlplus perfstat/perfstatExec statspack. Snap; -- collects statistics and generates a snapshot number for each operation
Installation Process
1. Upload Oracle 11g media to Aix
Unzip, execute unzip to decompress the two zip files respectively. The decompressed directory is the database directory.
2. Environment Detection
1) check physical memory, swap space, and TMP Space
#/Usr/sbin/lsattr-e-l sys0-A realmem (memory at least 1 GB)
# LSPs-a check swap space (Oracle recommends that 1 ~ 2G swap is 1.5ram, physical memory is 2 ~ 8g swap = Ram; physical memory greater than 8g; Swap = 3/4 RAM)
# DF-g/tmp: Check the size
database.
The following is a script that enables the monitoring of all indexes in a system:
set pages 999;set heading off;spoolrun_monitor.sqlselect 'alter index '||owner||'.'||index_name||' monitoring usage;'from dba_indexeswhere owner not in ('SYS','SYSTEM','PERFSTAT');spool off;@run_monitor
Wait for a while until enough SQL statements are run on the database, and then you can query the new V $ OBJECT_USAGE view.
select
query.SQL> select sysdate-(sysdate-3) from dual;
Sysdate-(sysdate-3)-------------------3Here we can see that Oracle uses days as the unit of the elapsed time, so we can easily use the Conversion Function to convert it to hours or minutes. However, when the number of minutes is not an integer, we will encounter the problem of placing the decimal point.Select(Sysdate-(sysdate-3.111) * 1440FromDual;
(Sysdate-(sysdate-3.111) * 1440------------------------------4479.83333Of course, we can use the
. Here is a script that opens the monitoring function for all indexes in a system:
QUOTE:
Set pages 999;Set heading off;Spoolrun_monitor.sqlSelect' Alter index ' | | owner| | '. ' | | index_name| | ' monitoring usage; 'FromDba_indexeswhereOwner not in (' SYS ', ' SYSTEM ', ' Perfstat ');Spool off;@run_monitor
You'll need to wait a bit longer until you'v
included in the MeasureWare tools to do performance analysis)To determine if the glance Pak is installed: see/var/opt/perf/gkey and Mwakey two license files, it is recommended to back up these two files, you can avoid the reload glance cannot find the codeword can not install the situation appears, Install the trial version directly and then copy the two original files to be used as a formal version. In addition, reinstall Glance Pak, you need to stop the Midaemon process, note that the install
opens the monitoring function for all indexes in a system:
Set pages 999;
Set heading off;
Spoolrun_monitor.sql
Select
' alter index ' | | owner| | '. ' | | index_name| | ' monitoring usage; '
from Dba_indexes
where
owner isn't in (' SYS ', ' SYSTEM ', ' perfstat ')
;
Spool off;
@run_monitor
You'll need to wait a bit longer until you've run enough SQL statements on the database, and then you can query the new V$object_usage view.
operations, this time only allow administrators to log in)
Find the table space for the rollback segment:
Sql> select Tablespace_name,status from Dba_tablespaces;
Tablespace_name??????????????? STATUS
------------------------------ ---------
SYSTEM???????????????????????? ONLINE
TOOLS????????????????????????? ONLINE
Rbs??????????????????????????? ONLINE
TEMP?????????????????????????? ONLINE
USERS????????????????????????? ONLINE
INDX?????????????????????????? ONLINE
Drsys??????????????????
default tablespace for non-core system usersWhen you create an Oracle instance, you create non-core users, such as DBSNMP, ODM, Perfstat, and so on, in addition to creating users such as SYS, system cores, and so on. These users are using system as their default tablespace in 9i. These users, once used, also generate a large amount of data to occupy the system table space.In oracle10g, a new tablespace sysaux is used as the default table space for th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.