Oracle: Common Database pfile and database creation scripts

Source: Internet
Author: User

Record memo:

Pfile:

  1. Mercury. _ db_cache_size = 289406976
  2. Mercury. _ java_pool_size = 4194304
  3. Mercury. _ large_pool_size = 4194304
  4. Mercury. _ Oracle_base = '/oracle' # ORACLE_BASE set from environment
  5. Mercury. _ pga_aggregate_target = 301989888
  6. Mercury. _ sga_target = 503316480
  7. Mercury. _ shared_io_pool_size = 0
  8. Mercury. _ shared_pool_size = 192937984
  9. Mercury. _ streams_pool_size = 0
  10. *. Audit_file_dest = '/oracle/mercury/adump'
  11. *. Audit_trail = 'db'
  12. *. Compatible = '11. 2.0'
  13. *. Control_files = '/oracle/mercury/oradata/ora_control1', '/oracle/mercury/oradata/ora_control2'
  14. *. Core_dump_dest = '/oracle/mercury/cdump'
  15. *. Db_block_size = 8192
  16. *. Db_domain =''
  17. *. Db_name = 'mercury'
  18. *. Db_recovery_file_dest = '/oracle/mercury/recovery'
  19. *. Db_recovery_file_dest_size = 1G
  20. *. Diagnostic_dest = '/oracle/mercury/diag'
  21. *. Dispatchers = '(PROTOCOL = TCP) (SERVICE = ORCLXDB )'
  22. *. Fast_start_mttr_target = 300
  23. *. Memory_target = 768 m
  24. *. Open_cursors = 300
  25. *. Processses = 150
  26. *. Remote_login_passwordfile = 'clusive'
  27. *. Undo_tablespace = 'undotbs1'

Database creation script

  1. Set echo off
  2. Connect/as sysdba
  3. Create spfile from pfile
  4. Spool/oracle/mercury/createdb. log
  5. Startup nomount
  6. Create database mercury
  7. User sys identified by lzx123
  8. User system identified by lzx123
  9. Logfile group 1 ('/oracle/mercury/oradata/redo01a. log','/oracle/mercury/oradata/redo01b. log') SIZE 50 m blocksize 512,
  10. GROUP 2 ('/oracle/mercury/oradata/redo02a. log','/oracle/mercury/oradata/redo02b. log') SIZE 50 m blocksize 512
  11. MAXLOGFILES 5
  12. MAXLOGMEMBERS 5
  13. MAXLOGHISTORY 1
  14. MAXDATAFILES 100
  15. Character set ZHS16GBK
  16. National character set AL16UTF16
  17. EXTENT MANAGEMENT LOCAL
  18. DATAFILE '/oracle/mercury/oradata/system01.dbf' SIZE 200 M REUSE
  19. Sysaux datafile '/oracle/mercury/oradata/sysaux01.dbf' SIZE 200 M REUSE
  20. Default tablespace users
  21. DATAFILE '/oracle/mercury/oradata/users01.dbf'
  22. SIZE 100 M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
  23. Default temporary tablespace tempts1
  24. TEMPFILE '/oracle/mercury/oradata/temp01.dbf'
  25. SIZE 20 M REUSE
  26. Undo tablespace undotbs1
  27. DATAFILE '/oracle/mercury/oradata/undotbs01.dbf'
  28. SIZE 100 m reuse autoextend on maxsize unlimited;
  29. @? /Rdbms/admin/catalog. SQL
  30. @? /Rdbms/admin/catproc. SQL
  31. Connect system/lzx123
  32. @? /Sqlplus/admin/pupbld. SQL
  33. Spool off

It is also possible to create the data dictionary and dbms package if the package is not successful. You need to manually create a new one;

Contact Us

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.

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.