Home > Database > Mysql Tutorial > Oracle使用DBCA建立数据库

Oracle使用DBCA建立数据库

WBOY
Release: 2016-06-07 17:30:11
Original
1177 people have browsed it

首先说明一点,在安装之前需要注意的几个问题: 1、/etc/hosts文件中,本机的hostname必须和lo对应(如果你有改过hostname的话,

首先说明一点,在安装之前需要注意的几个问题:

1、/etc/hosts文件中,本机的hostname必须和lo对应(如果你有改过hostname的话,,需要修改该文件)

2、$Oracle_HOME/network/admin/listener.ora文件必须配置服务器监听,为了保险起见,将tnsnames和sqlnet文件都配置了吧

dbca -silent -createDatabase -templateName $ORACLE_HOME/assistants/dbca/templates/General_Purpose.dbc -gbdName foway -sid foway -emConfiguration LOCAL -characterSet al32utf8

建完后没有scott用户执行

sqlplus / as sysdba

SQL>@ $ORACLE_HOME/rdbms/admin/utlsampl.sql

解锁scott用户

SQL>alter user scott account unlock identified by

进入scott

SQL>conn scott/密码

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template