實驗(一):認識資料庫的參數檔案

來源:互聯網
上載者:User

實驗一):主要熟練對資料庫的參數檔案操作
通過實驗可知以下知識點:
1.使用altersystem修改參數,在spfile立即生效。
2.spfile和pfile可互相轉換

1.參數檔案位置

sys@CISCOSYS> show parameter spfile;NAME                                 TYPE        VALUE------------------------------------ ----------- ------------------------------spfile                               string      D:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILEORCL.ORA預設參數job_queue_processes=10sys@CISCOSYS> show parameter job_queue_processes;NAME                                 TYPE        VALUE------------------------------------ ----------- ------------------------------job_queue_processes                  integer     10sys@CISCOSYS> alter system set job_queue_processes=15;System altered.sys@CISCOSYS> show parameter job_queue;NAME                                 TYPE        VALUE------------------------------------ ----------- ------------------------------job_queue_processes                  integer     15sys@CISCOSYS> create pfile='d:\orcl.ora' from spfile;File created.查看d:\orcl.ora==============================================...*.db_recovery_file_dest='D:\oracle\product\10.2.0/flash_recovery_area'*.db_recovery_file_dest_size=10737418240*.dispatchers='(protocol=tcp)(service=ora10gs)(dispatchers=2)'*.global_names=FALSE*.job_queue_processes=15*.log_archive_dest_1='location=D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORCL\arch'*.log_archive_format='arch%t_%s_%r.arc'*.log_archive_start=TRUE*.nls_date_format='YYYY-MM-DD HH24:MI:SS'*.open_cursors=300*.open_links=4...===============================================

檔案裡的“*”,表示是參數是共用的,對所有執行個體均有效。
接下來我們將d:\orcl.ora中的job_queue_processes=15改回原來的10


重啟資料庫之後查詢才有效

sys@CISCOSYS> show parameter job_queue_;NAME                                 TYPE        VALUE------------------------------------ ----------- ------------------------job_queue_processes                  integer     10

本文出自 “簡單” 部落格,請務必保留此出處http://dba10g.blog.51cto.com/764602/1301502

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.