当前位置:网站首页>1. Create Oracle database manually
1. Create Oracle database manually
2022-07-05 06:28:00 【Cold leaves elegant_】
Graduated , Sort out the notes you took during your undergraduate course .
This is from before Oracle In the database class, the teacher gave us the task , Everyone must follow the steps to manually create the database
Manually create Oracle The steps of the database are as follows :
1、 Set the database name and instance name
2、 Create related directories
3、 Create parameter file ( modify )
4、 Create examples
oradim -new -sid test -intpwd test -srvcstart system/demand
oradim -delete -sid test
5、 Connect Oracle example
6、 Boot instance
7、 Use create database Create database
8、 Create the server parameters file
1、 Set the database name and instance name
set oracle_sid=test
2、 Create related directories
d:
cd D:\app\Snakewood\admin
mkdir testdba
cd testdba
mkdir adump
mkdir bdump
mkdir cdump
mkdir udump
mkdir pfile // Store tracking documents
cd..
cd..
cd oradata
mkdir testdba // Store control documents 、 Data file redo log file
3、 Create parameter file ( modify )
To D:\app\Snakewood\product\11.2.0\dbhome_1\dbs Copy under this directory init.ora File to desktop , Copy it to
D:\app\Snakewood\product\11.2.0\dbhome_1\database

The contents of the new text file are as follows :
create database test
datafile 'D:/app/Snakewood/product/11.2.0/dbhome_1/oradata/test/system0.dbf' size 300M reuse autoextend on next 10240K maxsize unlimited extent management local
sysaux datafile 'D:/app/Snakewood/product/11.2.0/dbhome_1/oradata/test/sysaux01.dbf' size 120M reuse autoextend on next 10240K maxsize unlimited
default temporary tablespace temp
tempfile 'D:/app/Snakewood/product/11.2.0/dbhome_1/oradata/test/temp01.dbf' size 20M reuse autoextend on next 640K maxsize unlimited
undo tablespace "UNDOTBS1"
datafile 'D:/app/Snakewood/product/11.2.0/dbhome_1/oradata/test/undotbs1.dbf' size 20M reuse autoextend on next 5120K maxsize unlimited
logfile
group 1 ('D:/app/Snakewood/product/11.2.0/dbhome_1/oradata/test/redo01.log') size 10M,
group 2 ('D:/app/Snakewood/product/11.2.0/dbhome_1/oradata/test/redo02.log') size 10M,
group 3 ('D:/app/Snakewood/product/11.2.0/dbhome_1/oradata/test/redo03.log') size 10M;
Save as test.sql
4、 Create examples
oradim -new -sid test -intpwd test -srvcstart system/demand
oradim -delete -sid test
oradim -new -sid test -intpwd test -srvcstart demand // Create an instance and create a password file
oradim -delete -sid test // Delete the instance
Create password file manually
orapwd file=D:/app/Snakewood/product/11.2.0\dbhome_1\database\PWDtest.ora password=test entries=2
5、 Connect Oracle example
sqlplus
sys as sysdba

The prompt that you have connected to the idle routine indicates that the database has not been started
6、 Boot instance
Because now only the parameter file is created , Control documents 、 There are no data files and redo log files , So you can only enter nomount state
startup nomount pfile='D:\app\Snakewood\admin\mydba\pfile\initmydba.ora'

7、 Use create database Create database 
8、 Create the server parameters file
create spfile from pfile='D:\app\Snakewood\admin\testdba\pfile\inittestdba.ora'

Summary
Oracle11g The path and Oracle10g The path is different ,
11g Is in D:\app\Snakewood… Next
10g Is in D:\app\Snakewood\product\11.2.0\dbhome_1… Next
Set oracle_sid = xxx If the modification is not successful , You can go to the registry to find oracle_sid And modify the corresponding value
边栏推荐
- MySQL advanced part 2: MySQL architecture
- 微信小程序路由再次跳转不触发onload
- What's wrong with this paragraph that doesn't work? (unresolved)
- Traversal of leetcode tree
- Basic explanation of typescript
- Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
- 高斯消元 AcWing 884. 高斯消元解异或線性方程組
- 11-gorm-v2-02-create data
- [learning] database: several cases of index failure
- Getting started with typescript
猜你喜欢

Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
![[2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields](/img/65/7fa32cd0005ddaaebacd85c25e0c7e.jpg)
[2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields

2021apmcm post game Summary - edge detection

Chinese remainder theorem acwing 204 Strange way of expressing integers

Inclusion exclusion principle acwing 890 Divisible number

SQL三种连接:内连接、外连接、交叉连接

vsCode创建自己的代码模板

MySQL advanced part 2: optimizing SQL steps

Simple selection sort of selection sort

容斥原理 AcWing 890. 能被整除的数
随机推荐
Golang uses context gracefully
【高德地图POI踩坑】AMap.PlaceSearch无法使用
微信小程序路由再次跳转不触发onload
Operator priority, one catch, no doubt
11-gorm-v2-02-create data
MySQL advanced part 2: storage engine
求组合数 AcWing 888. 求组合数 IV
Install opencv -- CONDA to establish a virtual environment and add the kernel of this environment in jupyter
WordPress switches the page, and the domain name changes back to the IP address
MySQL advanced part 2: SQL optimization
Winter vacation water test 1 Summary
高斯消元 AcWing 884. 高斯消元解异或线性方程组
5.Oracle-錶空間
2021apmcm post game Summary - edge detection
How to understand the definition of sequence limit?
20220213-CTF MISC-a_ good_ Idea (use of stegsolve tool) -2017_ Dating_ in_ Singapore
MPLS experiment
New title of module a of "PanYun Cup" secondary vocational network security skills competition
中国剩余定理 AcWing 204. 表达整数的奇怪方式
[leetcode] day94 reshape matrix