安装
Windows10安装Oracle19c数据库详细记录(图文详解)
相关命令
登录
本地登录
sqlplus / as sysdba
sqlplus /nolog
sqlplus xianxianrenmin_his/oracle123@localhost:1521/orcl
远程登录
>sqlplus scott/tiger@172.16.100.144:1521/orcl
用 SQL*Plus 连接数据库的时候,除了用户名和密码外,还要在口令后面加一个主机字符串。如下:
请输入用户名:scott
口令:tiger,orcl as sysdba
sqlplus sys/oracle123@172.16.100.144:1521/orcl
请输入用户名: sys as sysdba
密码:安装时设置的 oracle123
创建表空间
create tablespace xianxianrenmin_his
logging
datafile 'E:\java-need\db\oracle\oradata\ps\xianxianrenmin_his.DBF'
size 32M
autoextend on
next 32M maxsize 2048M
extent management local;
create user xianxianrenmin_his identified by oracle123 default tablespace xianxianrenmin_his;
grant connect,resource,dba to xianxianrenmin_his;
对应用户登录后,使用sql语句创建表即可
启动
bash-4.1$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Oct 7 14:15:10 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount
ORACLE instance started.
————————————————
版权声明:本文为CSDN博主「神笔码靓」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https:
关闭
bash-4.1$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Oct 7 14:50:17 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
————————————————
版权声明:本文为CSDN博主「神笔码靓」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https:
|