oracle 常用命令

一 常用命令

1. show user;  

查看当前用户

2. desc table_name;

查看表结构

3. 从当前用户空间中 查看tablespace_name ,table_name 

select table_name,tablespace_name,temporary from user_tables;

 4.查看namespace 唯一值

select distinct namespace from v$librarycache;

5. 查看某一表

select table_name,tablespace_name,temporary from user_tables where table_name=table_name;

 

二 oracle 表结构简介

mysql : database<--table<--colum

oracle: namespace<-- table<--colum

oracle 无数据库概念,为表命名空间

 

三  oracle 客户端工具

1.sqlplus

2. navicat for oracel

客户端工具的配置较为麻烦,需要去官网下载对应的oracel instance client

 

四 . 服务器端 登录oracle

1.  进入服务器后,执行命令  su - oracle

2.  sqlplus user/key  ,sqlplus 输入用户名和密码 登入oracel

 

posted @ 2017-04-11 14:39  草色青青  阅读(141)  评论(0编辑  收藏  举报