Example script for creating a database using the Oracle command line

Source: Internet
Author: User
set echo onspool D:\oracle\app\admin\ocp11g\sctripts\cteatedb.logstartup nomount pfile"D:\oracle\app\admin\ocp11g\sctrpts\init.ora";create database "ocp11g"maxinstances 8maxloghistory 1maxlogfiles 16maxlogmembers 3maxdatafiles 100datafile 'D:\oracle\app\oradata\ocp11g\system01.dbf' size 300m reuse autoextend on next 10240k maxsize unlimited extent management localsysaux datafile 'D:\oracle\app\oradata\ocp11g\sysaux01.dbf' size 120m reuse autoextend on next 10240k maxsize unlimited smallfile default temporary tablespace temp tempfile 'D:\oracle\app\oradata\ocp11g\temp01.dbf' size 20m reuse autoextend on next 640k maxsize unlimited smallfile undo tablespace "undotbs1" datafile 'D:\oracle\app\oradata\ocp11g\undotbs01.dbf' size 200m reuse autoextend on next 5120k maxsize unlimitedcharacter set we8mswin1252national character set al16utf16logfile group 1 ('D:\oracle\app\oradata\ocp11g\redo01.log') size 51200k,group 2 ('D:\oracle\app\oradata\ocp11g\redo02.log') size 51200k,group 3 ('D:\oracle\app\oradata\ocp11g\redo03.log') size 51200kuser sys identified by "&&systemPassword"user system identified by "&&systemPassword";spool off

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.