Oracle-下载-安装-控制台命令

版权声明:随意 https://blog.csdn.net/caokangnsd/article/details/81987384

Oracle官网账号注册:

https://www.oracle.com/index.html

账户:aliyun***

密码:Shu***

下载:

下载地址:http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html

两个文件下载

安装:

将两个压缩包解压到一起,点击setup.exe按步骤安装即可

管理口令S-3

S-3

等待全部完成,关闭

启动服务:

(1)OracleOraDb11g_home1TNSListener:表示监听服务,如果客户端要想连接到数据库,此服务必须打开。在程序开发中该服务也要起作用。 
(2)OracleServiceORCL:表示数据库的主服务,命名规则:OracleService数据库名称。此服务必须打开,否则Oracle根本无法使用。 

CMD控制台:

切换数据库

创建切换用户及更改密码

系统用户:

create user test identified by test 创建用户名密码

grant create session to test创建成功,开始授予权限输入【grant create session to 用户名】,授予连接数据库权限。

grant unlimited tablespace to 用户名,操作表空间权限

grant create table to 用户名,创建表权限

创建数据库:

可以在菜单栏用工具配置数据库实例

错误示范:慎用shutdown abort

NAVICAT连接:

、查看所有用户和密码

select username,password from dba_users;

、查看所有数据库

select name from v$database;

猜你喜欢

转载自blog.csdn.net/caokangnsd/article/details/81987384