running-a-command-prompt-as-nt-authoritysystem
running-a-command-prompt-as-nt-authoritysystem
gzip
1.使用最大压缩率将文件压缩并输出到新目录(旧文件不变)gzip -9 -c oldfilepath/oldfilename > newfilepath/newfilename.gzEOF
IMPDP分区表注意事项
1. 将A用户的分区表par_table导入到B用户下,同时映射到新表空间impdp dba01/dba01 directory=EXPIMP_DIR dumpfile=dmpfile_%U tables=a.par_table REMAP_SCHEMA=a:b REMAP_TABLESPACE='(TBS1:NEWTBS1,TBS2:NEWTBS2)'※注意1.实际导入前最好使用sqlfile子句确认导入时DDL语句内容,sqlfile子句只输出DMP文件中的DDL语...
Oracle表移动表空间
在oracle中有时需要把表移动到其他表空间中,下面是移动的步骤。首先,使用下面的命令移动:alter table table_name move tablespace tablespace_name;然后,如果有索引的话必须重建索引:alter index index_name rebuild tablespace tablespace_name;需要注意的地方是:1、若表中需要同时移动lob相关字段的数据,...
UNDO表空间空间回收及切换
1. 查看 undo 相关参数show parameter undoNAME TYPE VALUE------------------ -------- ----------undo_management string AUTOundo_retention integer 900undo_tablespace &nb...
表空间与数据文件的offline和online操作
1. 表空间与数据文件 offline 的区别在对表空间进行 offline 时, oracle 需要针对表空间进行检查点, 刷新表空间中数据文件的相关事务, 更新控制文件中与数据文件的 SCN, 达到一致状态当表空间被再次 online 时, oracle 会使用 online 时刻的 SCN, 更新上面各个位置的 SCN (当然文件结束 SCN 号会置为无穷大), 将数据文件...
[待整理]oracle10g删除(释放)数据文件/表空间流程
1.获取开启select 'alter table ' || owner || '.'|| table_name || ' enable row movement; ' from dba_tables where tablespace_name='USERS';select 'alter table ' || owner || '.'|| table_name || ' shrink space CASCADE; ' from dba_tables where tablespace_name='USERS';oracle删除(释放)数据文件/表空间...
Oracle10g删除数据文件
1.查看数据文件是否为空(只有为空的数据文件才能删除)SELECT E.SEGMENT_TYPE AS SEGMENT_TYPE , E.SEGMENT_NAME AS SEGMENT_NAME , F.FILE_NAME A...
用户管理的热备份方式复制数据库
1. 创建实例, 密码文件, 初始化参数文件, 以及目标库相应目录> oradim -new -sid dup (Windows下需要)> orapwd file=pwddup password=xxxxxx(Windows下需要)> mkdir %ORACLE_BASE%\admin\dup> mkdir %ORACLE_BASE%\admin\dup\adump> mkdir %ORACLE_BASE%\admin\dup\bdump> mkdir %ORACLE_BASE%\admin\dup\cdump...
查看dmp文件是exp还是expdp导出来的
获取dmp文件的头信息dd if=xxx.dmp of=aaa bs=1m count=1以字符串方式查看头信息strings aaa|moreexpdp:包含SYS_EXPORT_TABLEexp:包含@EXPORT:V
抽取exp/expdp导出文件头的信息
转自:http://www.lunar2013.com/author/admin抽取exp和expdp的dump文件头信息,同时支持oracle 7.3.4以后的exp导出文件和oracle 10.1以后的expdp导出文件CREATE OR REPLACE PROCEDURE show_dumpfile_info( p_dir VARCHAR2 DEFAULT 'DATA_PUMP_DIR', p_file VARCHAR2 DEFAULT 'EXPDAT.DMP')AS--...
抽取exp/expdp导出文件头的信息
Oracle数据泵
- 注意事项expdp可以在客户端或服务器端执行,但文件最终保存在服务器端exp命令在哪里执行,就导出到哪里dbms_datapump --- pl/sql中调用- 前期准备创建转存目录create directory backup_dir as 'c:\backup_dir'赋予用户访问权限grant read,write on directory backup_dir to scott查询创建了哪些目录sel...
获取WebLogic版本号有以下几种方式
获取WebLogic版本号有以下几种方式:1.通过命令方式,具体操作方式如下cd $MW_HOME\weblogicxx\server\bin$MW_HOME\weblogicxx\server\bin>setWLSEnv.cmd 或setWLSEnv.sh$MW_HOME\weblogicxx\server\bin>java weblogic.version执行结果输出示例如下:WebLogic Server 9.1 Mon Dec 12 19:26:33 EST 2005 68917...
查看Oracle数据库是企业版还是标准版
1.查看v$version视图
EXISTS 与 IN
select t1.* from t1 where not exists (select 1 from t2 where t2.a = t1.a) where exists (select ...), select 有记录则结果为真,相当于 where 1 = 1where not exists (select ...),select有记录则结果为假,相当于 where 1 = 2
Windows命令行卸载IE
In this blog, I am sharing the commands available to uninstall Internet Explorer. Examples covered in this blog are for:Internet Explorer 9Internet Explorer 10Internet Explorer 11 Example for uninstalling Internet explorer 9Log on to the co...
Windows使用SC基础命令
<span style="font-family:Helvetica, Tahoma, Arial, sans-serif;font-size:14px;line-height:25.1875px;white-space:normal;background-color:#FFFFFF;"><span style="font-family:SimSun;font-size:24px;color:#006600;">1、创建服务</span><span style="font-family:SimSun;font-size:24px;color:#006600;"></span><br ...
Windows下Subversion简单配置
<span style="font-family:SimSun;font-size:24px;color:#006600;">Subversion版本1.8.x,Apache版本2.2</span><br /><span style="font-family:SimSun;font-size:24px;color:#006600;"><br />1、创建仓库目录</span><br /><span style="font-family:SimSun;font-size:24px;color:#006600;">cd /d d:/repos</span><br /...
Cisco路由器基本配置命令
Router>enRouter#conf tRouter(config)#line con 0Router(config-line)#logg syRouter(config-line)#exec-t 0 0Router(config-line)#exiRouter(config)#no ip domain-loRouter(config)#host R1R1(config)#exi