2017年2月4日
摘要: --查询帐户的状态select username,account_status from dba_users where username='SCOTT'; --创建用户create user john identified by johndefault tablespace usersquota 阅读全文
posted @ 2017-02-04 11:26 john2017 阅读(1120) 评论(0) 推荐(0) 编辑
摘要: --查看数据库运行模式(spfile还是pfile)select decode(count(*),1,'spfile','pfile') from v$spparameterwhere rownum=1 and isspecified='TRUE'; --以pfile启动数据库create pfil 阅读全文
posted @ 2017-02-04 11:25 john2017 阅读(387) 评论(0) 推荐(0) 编辑
摘要: --查看控制文件路径 show parameter control_files; --控制文件的备份,三种方式1)使用OS命令进行拷贝;1)open状态下,使用alter database命令生成控制文件副本;2)open状态下,使用alter database backup controlfile 阅读全文
posted @ 2017-02-04 11:24 john2017 阅读(814) 评论(0) 推荐(0) 编辑
摘要: --两个相关视图v$logv$logfile alter system switch logfile; --强制日志切换alter system checkpoint; --强制检查点 --添加日志组alter database add logfile group 4 ('/u01/app/orac 阅读全文
posted @ 2017-02-04 11:23 john2017 阅读(235) 评论(0) 推荐(0) 编辑
摘要: --查看归档模式archive log list select log_mode from v$database; --修改为归档模式(mount下)alter database archivelog --修改为非归档模式(mount下)alter database noarchivelog --切 阅读全文
posted @ 2017-02-04 11:21 john2017 阅读(450) 评论(0) 推荐(0) 编辑
摘要: --查看临时文件的使用/剩余空间 SQL> select * from v$temp_space_header; --查看SCOTT用户所属的临时表空间 SQL> select username ,temporary_tablespace from dba_users where username= 阅读全文
posted @ 2017-02-04 11:20 john2017 阅读(219) 评论(0) 推荐(0) 编辑
摘要: --查询默认的undo表空间 select name,value from v$parameterwhere name like '%undo%'; --创建 undotbs2 表空间 create undo tablespace undotbs2datafile '/u01/app/oracle/ 阅读全文
posted @ 2017-02-04 11:20 john2017 阅读(701) 评论(0) 推荐(0) 编辑
摘要: --查看表空间 select * from dba_tablespaces; select * from v$tablespace; select * from dba_data_files; --查看数据文件select * from v$datafile; select * from dba_t 阅读全文
posted @ 2017-02-04 11:19 john2017 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 1.从官网http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 选择instantclient-basic-nt-11.2.0.4.0.zip (32位的,PL/SQL貌似不支持64位 阅读全文
posted @ 2017-02-04 11:16 john2017 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 先在软件运行界面卸载 Oracle 一、删掉主目录 二、删除注册表内容。 运行regedit命令,删除下面内容: --1、HKEY_CLASSES_ROOT,删除此键下所有以Ora,Oracle,Orcl,EnumOra 为前缀的键。 2、HKEY_CURRENT_USER\Software\Mic 阅读全文
posted @ 2017-02-04 11:15 john2017 阅读(371) 评论(0) 推荐(0) 编辑