最近寫預存程序,遇到一個問題,使用批量插入資料老是出錯,說違反唯一性限制式,最後檢查預存程序,發現type table資料沒有刪除而引起的,預存程序如下:type type_char2 is table of NVARCHAR2(30) index by binary_integer; --定義一個字串的暫存資料表類型
The CR blocks created: Oracle metric is the number of CURRENT blocks cloned to create CR (consistent read) blocks. The most common reason for cloning is that the buffer is held in an incompatible mode.
Oracle的許可權有兩種:system privileges:使用者所做的操作會對資料字典造成影響;object privileges:使用者所做的操作會對資料造成影響; System Privilege:大概有200多個系統許可權,常用的系統許可權包括:CREATE SESSION RESTRICTED SESSION:當資料庫處於restricted狀態的時候,這些使用者可以進入; ALTER DATABASE ALTER SYSTEM CREATE TABLESPACE
備庫: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使用者管理中的常見操作,但這其中隱含了Oracle資料庫系統的系統許可權與對象許可權方面的知識。掌握還Oracle使用者的授權操作和原理,可以有效提升我們的工作效率。 Oracle資料庫的許可權系統分為系統許可權與對象許可權。系統許可權( Database System Privilege )可以讓使用者執行特定的命令集。例如,CREATE TABLE許可權允許使用者建立表,GRANT ANY PRIVILEGE 許可權允許使用者授予任何系統許可權。對象許可權(
#!/bin/sh#The scripts is for RHEL5U1#author is kevin#date 2011-06-06for i in libXp-1.0.0-8 openmotif-2.3.0-0.3.el5 compat-db-4.2.52-5.1 compat-gcc-34-3.4.6-4 compat-libf2c-34-3.4.6-4 compat-gcc-34-g77-3.4.6-4 compat-gcc-
有組態工具使用時, 經常會出現以下錯誤: ORA-01502: index 'xxx.xxxxx' or partition of such index is in unusable state,解決方案為——以 DBA 登入,並運行以下指令碼即可-- 請以 DBA 許可權登入,並執行 -- 將所有 UNUSABLE 狀態的 index 修複, rebuild 一下即可 &
一、處理過程 1.通過尋找出已被鎖定的資料庫表及相關的sid、serial#及spid: select object_name as 對象名稱,s.sid,s.serial#,p.spid as 系統進程號 from v$locked_object l , dba_objects o , v$session s , v$process