Three methods for creating an Oracle database

Source: Internet
Author: User
1. Create, configure, or delete a database by running OracleDatabaseConfigurationAssistant (you can also enter dbca in the command line); 2. Create a database by running the command line

1. Create, configure, or delete a Database by running Oracle Database Configuration Assistant (you can also enter dbca in the command line); 2. Create a Database by running the command line

1. Create, configure, or delete a Database by running Oracle Database Configuration Assistant (you can also enter dbca in the command line );
2. Create a database using command line
3. Create, configure, or delete a database by running a custom batch processing script (or create_ORACLE_SID.bat (create_ORACLE_SID. SQL.
Details:
1. Create, configure, or delete a Database by running Oracle Database Configuration Assistant;

It is recommended that DBAs who are not familiar with the creation process use this method. They only need to configure according to the options % 26 #8220; next % 26 #8221; and finally generate the database creation script (we recommend that you keep it ), or directly create a database;
Advantage: the GUI method is easy to use;
Disadvantage: the creation process is slow;
2. Create a database using command line

CONNECT/AS SYSDBA
Startup pfile = 'C: oracleadmininit_testorcl.ora 'nomount;
Create database testOrcl DATAFILE '/u02/oracle/testOrcl/system01.dbf' SIZE 100 M
LOGFILE GROUP1 ('/u01/oracle/testOrcl/redo1a. log ',,
'/U02/oracle/testOrcl/redo1b. log') SIZE 500 K,
GROUP2 ('/u01/oracle/testOrcl/redo1a. log ',
'/U02/oracle/testOrcl/redo1b. log') SIZE 500 K
Character set ZHS16CGB231280;

-- Directly convert the database from the never-built status to the open status
Alter database open;

-- Drop a Database)
Spool c: DROP_DATABASE.BAT
SELECT 'del '| NAME: deletes database-related data files from v $ DATAFILE;
SELECT 'del '| MEMBER deletes data and restructured the log file from v $ LOGFILE;
Spool off;

Advantage: You can familiarize yourself with the creation instructions and principles;
Disadvantage: the configuration is simple, and the command line commands must be memorized;

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.