oracle manually create a database

1: Prepare the initialization file initR43jxgl2.ora. (The best way is to copy an ora file directly to the previous installation instance).

1

2: Use the .bat file to create the corresponding file to save the related database information.

        2

        3

4

5

        3: Prepare the script for creating the database.

 6

        4: Set the environment variable set ORACLE_SID = R43jxgl2.

 7

        5: Create a password file.

 8

        6: Create an instance name.

 9

 

        7: Start the database in nomount mode.

 10

        8: Connect to the database.

 11

 

        9:启用startup pfile='D:\oracle11g\admin\43jxgl2\pfile\init43jxgl2.ora'nomount。

 

 12

 

13

       10: Call the database creation script to create the database.

 14

 15

 

 

 

      11: Execute @ D: \ oracle11g \ product \ 11.2.0 \ dbhome_1 \ RDBMS \ ADMIN \ catalog.sql to create a data dictionary.

 16

 17

      12: Execute @ D: \ oracle11g \ product \ 11.2.0 \ dbhome_1 \ RDBMS \ ADMIN \ catproc.sql to create the package.

 18

 19

 

      13: Set up some configurations.

 20

 21

 

     14:执行SELECT dbms_registry_sys.time_stamp('CATPROC')AStimestamp FROM DUAL;。

 22

     15: Create tns.

 23

     16: Create spfile.

 24

 

     17: Use the command show parameter db_name to view the database name.

 25

     18: Execute pupbld. Before executing pupbld, first switch the user to system. 

 26

 27

    19: Execute scott script to create scott mode.

 28

 43

    20: View the data.

 29

    21: The use of sys, system, scott.

30

Scan the code and follow the public account for more information.

                                                                        

Published 24 original articles · praised 36 · 20,000+ views

Guess you like

Origin blog.csdn.net/tanjunchen/article/details/63262648