oracle__学习笔记2014.09.05
2014-10-17 00:00
369 查看
oracle学习笔记2014.09.05
测试数据库配置的信息 全局数据库名:xiuhao 系统标识符(SID):xiuhao 服务器参数文件名:c:\oracle\dbs\spfilexiuhao.ora database control URL: http://C-1:5500/em sys以及system解锁
edit
以文本格式打开当前命令//
执行当前命令l [num]
显示缓存区命令get [file]
把file中的文件加入到缓冲区c /[str] /[str]
修改当前语句中的内容spo[ol] [file]
将执行的命令以及结果保存到file中使用spo off终止保存
使用cmd登陆sqlplus
在密码后添加as sysdba锁定\解锁用户
alter user [username] account unlock;
需要sys权限
链接用户
conn [username]/[passwd]
conn / as sysdba(默认sys用户)
如果使用sys,需要密码后添加 as sysdba
查询块大小
select name,value from V$parameter where name='db_block_size';
需要使用sys
查询表空间
select tablespace_name from dba_tablespaces;TABLESPACE_NAME |
---|
SYSTEM |
UNDOTBS1 |
SYSAUX |
TEMP |
USERS |
查询控制文件,pfile
show parameter control_files
show parameter pfile
select name from V$controlfile;
从java到oracle到mysql
数据文件
select name from v$datafile;
授权用户scott为sysdba用户,并且使用scott登陆
grant sysdba to scott;
conn scott/tiger as sysdba
相关文章推荐
- oracle__学习笔记2014.09.05
- oracle__学习笔记2014.09.05
- Oracle 学习笔记[2004年4月8日 9:44]
- ORACLE SQL性能优化(学习笔记)
- Oracle高级培训 第1课 学习笔记
- Oracle高级培训 第5课 学习笔记
- Oracle高级培训 第4课 学习笔记
- Oracle高级培训 第3课 学习笔记
- ORACLE性能诊断―学习statspack笔记(一) [安装与测试]
- Oracle动态性能视图 v$sga 学习笔记
- oracle基本学习笔记1
- Oracle高级培训 第6课 学习笔记
- Oracle 学习笔记
- oracle 体系结构学习笔记 --20050822 我的第一次blog
- Oracle分析函数学习笔记3
- oracle基本学习笔记1
- Oracle专家高级编程学习笔记( 二)
- oracle 学习笔记(一)
- Oracle 学习过程中的笔记以及几个问题
- Oracle高级培训 第2课 学习笔记