以下是引用片段:ErrorCode:1418ThisfunctionhasnoneofDETERMINISTIC,NOSQL,orREADSSQLDATAinitsdeclarationandbinaryloggingisenabled(you*might*wanttousethelesssafelog_bin_trust_function_creatorsvariable)(0mstaken) 解決方案如下: 1. mysql> SET GLOBAL
鎖表,相信大家都遇到過,解鎖的方法想必大家也都知道,但是一個個的殺進程難免有些低級,我們用預存程序來實現這一功能,就變得異常簡單了。1.建立視圖,查詢進程資訊,注意要給目前使用者賦予系統許可權select any dictionarycreate or replace view mysession asselect b.sid,b.serial# from v$lock a,v$session b where a.SID = b.SID and status='INACTIVE' --and
Oracle使用者管理與使用權限設定建立使用者:CREATE USER user_nameIDENTIFIED BY password[DEFAULT TABLESPACE tablespace_name] [TEMPORARY TABLESPACE tablespace_name][QUOTA ... ON tablespace_name] --設定磁碟空間配額[PASSWORD EXPIRE]--密碼到期,使用者登入時,提示使用者改密碼[ACCOUNT
準備工作:如何將V$視圖查詢許可權賦給其他使用者: sys@ORCL>grant select on v$paramter toscott;grant select on v$paramter to scott*第 1 行出現錯誤:ORA-00942: 表或視圖不存在 sys@ORCL>grant select on v$parameter toscottgrant select on v$parameter to scott*第 1
在歸檔模式下有時可能需要將一些資料從一個磁碟組遷移到另外個磁碟組。這種情況下我們可以使用命令“BACKUP AS COPY”將資料檔案移到新磁碟組。然後通過“SET NEWNAME”和“SWITCH”命令來更改控制檔案裡面該資料檔案的檔案名稱。archivelog 模式:將資料檔案“+DATA/orcl/datafile/users.261.689589837”從磁碟組DATA遷移到USERDATA。
SQL> alter database open read only;alter database open read only*ERROR at line 1:ORA-10458: standby database requires recoveryORA-01152: file 1 was not restored from a sufficiently old backupORA-01110: data file 1: '/Oracle/oradata/BSTYLE/system.3
Data Gurad的作用就不多說了,主在這說下物理standby的搭建步驟。大致有這三種方式建立standby庫方式一:用rman的方式產生standby. (用rman的duplice方式直接建立,無須先備份)方式二:用rman的restore方式產生。(先用rman全備份主庫後,再用rman通過restore的方式建立)方式三:用cp的方式產生 (關閉主庫後,複製控制項檔案,密碼檔案,資料檔案到備庫所在位置)我主要在這用duplice方式,優點無須多說,假設你的資料庫上T,你會選哪種方法?