转自 http://blog.csdn.net/njyxfw/article/details/7516143 今天一个同事问到我,有没动态注册监听的命令,查了下,找到了alter system register的用法 1 Static Registration via set the listener.ora2 Dynamic Instance Registration via the PMON At instance startup time, the PMON process will us…
alter system register的用法 1 Static Registration via set the listener.ora2 Dynamic Instance Registration via the PMON At instance startup time, the PMON process will use this parameter to locate a listener andinform. it of the INSTANCE_NAME and SERVICE…
以前知道 ALTER SYSTEM SWITCH LOGFILE对单实例数据库或RAC中的当前实例执行日志切换, ALTER SYSTEM ARCHIVE LOG CURRENT会对数据库中的所有实例执行日志切换, 所以在RAC环境上大多时间一般使用后者,而今天遇到了不管执行多少次ALTER SYSTEM ARCHIVE LOG CURRENT命令,日志就是不切换的情况 最后使用 ALTER SYSTEM SWITCH LOGFILE 进行强制切换才解决这个问题,而ALTER SYSTEM SW…
--alter system [switch logfile]与[archive log current]的区别 ------------------------------------------------------------2013/09/21 alter system switch logfile 是强制日志切换,不一定就归档当前的重做日志文件(若自动归档打开,就归档前的重做日志,若自动归档没有打开,就不归档当前重做日志.) alter system archive log cu…
alter system archive log current 是归档当前的重做日志文件,不管自动归档有没有打都归档. alter system switch logfile 是强制日志切换,不一定就归档当前的重做日志文件(若自动归档打开,就归档前的重做日志,若自动归档没有打开,就不归档当前重做日志.) 主要的区别在于:ALTER SYSTEM SWITCH LOGFILE对单实例数据库或RAC中的当前实例执行日志切换;而ALTER SYSTEM ARCHIVE LOG CURRENT会对数据…
模拟开发人员需求,可以杀死其它阻塞自己的会话1.能有查询阻塞会话确认的权限SQL> grant select on v_$session to testa;SQL> grant select on v_$sql to testa;SQL> select sid,serial#,username,sql_id,status,event,BLOCKING_INSTANCE,BLOCKING_SESSION from v$session where username='TESTA'; SID…
public class Shuzufuzhi { public static void main(String args[]) { int myArray[]={1,2,3,4,5,6}; int yourArray[]={10,9,8,7,6,5,4,3,2,1}; int Array3 []=new int [myArray.length+yourArray.length]; System.arraycopy(myArray, 0,Array3,0,myArray.length…
更改 字段的数据类型 Alter Table TB_ITM_ITEM alter column is_timing int NULL; 新增字段: alter table WeiboSmartCategorySetting add AccountLevelMaxFilter int null 更改字段长度 alter table TB_ITM_ITEM alter column input_pids nvarchar(200) 将某个int(bigint)型的字段变为自增字段 ALTER TAB…
SCOPE The SCOPE clause lets you specify when the change takes effect. Scope depends on whether you started up the database using a client-side parameter file (pfile) or server parameter file (spfile). scope可指定对system的修改何时生效,scope=memory|spfile|both ,…
System.arraycopy System.arraycopy的函数原型是: public static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length) 其中:src表示源数组,srcPos表示源数组要复制的起始位置,desc表示目标数组,length表示要复制的长度. public final class System extends Object System 类包含一些有用的类字段…