快速切换数据文件从裸设备切换到另外一个裸设备上
通过我们可以通过dd来完成这个操作,我们还可以使用rman来操作:[oracle@10g hcl]$ rman target /Recovery Manager: Release 10.2.0.1.0 - Production on Tue Nov 4 13:12:31 2008Copyright (c) 1982, 2005, Oracle. All rights reserved.connected to target database: TEST (DBID=1963002549)RMAN> sql 'alter database datafile 5 offline';using target database control file instead of recovery catalogsql statement: alter database datafile 5 offlineRMAN> backup as copy datafile 5 format '/home/oracle/oradata/tes
理解grant的with admin option
SQL> conn / as sysdba已连接。SQL> grant connect to hcl;授权成功。SQL> conn hcl/hcl已连接。SQL> grant connect to test;grant connect to test*第 1 行出现错误:ORA-01932: ADMIN 选项未授权给角色 'CONNECT'SQL> grant create session to test;grant create session to test*第 1 行出现错误:ORA-01031: 权限不足SQL> conn / as sysdba已连接。SQL> grant connect to hcl with admin option;授权成功。SQL> conn hcl/hcl已连接。SQL> grant create session to test;grant create session to test*第 1 行
多桌面小工具
目前支持2个桌面,以后慢慢完善为更多界并完善功能。没有界面,直接运行即可,alt+c为原来的桌面,alt+w为新桌面,ctl+shift+alt+q退出程序。
dbca中,各可选组件的含义
TABLE 2 . 3 Oracle Optional ComponentsComponent DescriptionOracle Text Provides support for multimedia content such as audioand video.Oracle OLAP Provides facilities for creating and deploying online ...
data type之number
SQL> create table n2 (3 num number(5,2) 4 );Table created.SQL> insert into n values (12345.12);insert into n values (12345.12) ...
exp&imp 优化及版本问题
1、exp用低版本的数据库程序,imp用高版本的数据库程序;如果是oracle8往oracle7上导,需要在8中执行一个cat7exp.sql脚本,来允许7上的exp在8上导出数据。Specifies whether Import should commit after each array...
前几天在客户那,数据库设为noarchive后,还有2个arc进程
数据库是9iSQL>alter database noarchivelog;SQL>alter database open;$ps -ef|grep arc发现还有2个arc进程经常分析log_archive_start是true,设为false进程就不存在了