標籤:oracle 查看進程
第06講 Chapter 03--Managing an Oracle Instance--學習過程:$ id$ sqlplus /nologSQL> conn / as sysdbaSQL> startupSQL> !$ ps -ef|grep oracle 最後查看進程--知識點:initialization parameter (pfile和spfile)SQL> desc v$parameter; Name Null? Type ----------------------------------------- -------- ---------------------------- NUM NUMBER NAME VARCHAR2(80) TYPE NUMBER VALUE VARCHAR2(4000) DISPLAY_VALUE VARCHAR2(4000) ISDEFAULT VARCHAR2(9) ISSES_MODIFIABLE VARCHAR2(5) ISSYS_MODIFIABLE VARCHAR2(9) ISINSTANCE_MODIFIABLE VARCHAR2(5) ISMODIFIED VARCHAR2(10) ISADJUSTED VARCHAR2(5) ISDEPRECATED VARCHAR2(5) ISBASIC VARCHAR2(5) DESCRIPTION VARCHAR2(255) UPDATE_COMMENT VARCHAR2(255) HASH NUMBER--設定name,value的寬度SQL> col name format a20SQL> col value format a30SQL> select name,value from v$parameter;--查看參數pga_aggregate_target的value--方法一:SQL> select name,value from v$parameter 2 where name=‘pga_aggregate_target‘;NAME VALUE-------------------- ------------------------------pga_aggregate_target 0SQL> clear scr--方法二:SQL> show parameter sga;NAME TYPE VALUE------------------------------------ ----------- ------------------------------lock_sga boolean FALSEpre_page_sga boolean FALSEsga_max_size big integer 536Msga_target big integer 0SQL> --PFILE -->檔案名稱 initSID.ora--Modifications made manually--vi edit--Changes take effect on the next start up--Only opened during instance start up--Default location is $ORACLE_HOME/dbs-->在類UNIX作業系統裡面[[email protected] dbs]$ pwd/u01/app/oracle/product/11.2.0/db_1/dbs[[email protected] dbs]$ lshc_DBUA0.dat initorcl.ora orapworcl peshm_orcl_one_0 spfileorclone.orahc_ora11g.dat lkORA11G orapworclone pwdorcl.orahc_orcl.dat lkORCL peshm_DBUA0_0 snapcf_orcl.fhc_orclone.dat lkORCL_ONE peshm_ora11g_0 spfile.orainit.ora orapwora11g peshm_orcl_0 spfileora11g.ora[[email protected] dbs]$ env | grep ORACLEORACLE_UNQNAME=orclORACLE_SID=orclORACLE_BASE=/u01/app/oracleORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1--ORACLE_BASE=/u01--ORACLE_HOME=/u01/oracle--ORACLE_SID=orcl --->全稱:SID:site identifier--PATH=$ORACLE_HOME/bin:$PATH -->這一步不能忘記,不然 sqlplus不能識別的--推薦一本書 expert oracle database architecture
本文出自 “那你魔鬼” 部落格,請務必保留此出處http://599184429.blog.51cto.com/5147223/1530506
Oracle學習--管理一(3 第06講 Chapter 03)