Oracle DBA
Fanny_Zheng
这个作者很懒,什么都没留下…
展开
-
ORA-28001: The password has expired
---ORA-28001: The password has expired1.Connect as sysdba to the database. C:\Users\Siry>sqlplus / as sysdba2.Run the query to set the password’s life time to unlimited. SQL> ALTER PROFILE DEF原创 2016-09-13 16:58:29 · 363 阅读 · 0 评论 -
Oracle -- SQL monitor privilege
---sql mornintor grant select on v_$sqltext_with_newlines to ;grant select on v_$session to ;grant select on v_$locked_object to ;grant select on v_$lock to ;原创 2016-09-06 16:51:45 · 287 阅读 · 0 评论 -
Oracle add temp file
select TABLESPACE_NAME, BYTES_USED/1024/1024/1024 as GB_USED , BYTES_FREE/1024/1024/1024 GB_FREE from V$TEMP_SPACE_HEADER;ALTER TABLESPACE TEMP ADD TEMPFILE '/u20/oradata/CCIRPAT/DATAFILES/temp原创 2016-09-06 16:49:09 · 2146 阅读 · 0 评论 -
Oracle -- ORA-09817 ORA-09945
Enter user-name: /as sysdbaERROR:ORA-09817: Write to audit file failed.Linux-x86_64 Error: 28: No space left on deviceAdditional information: 12ORA-09945: Unable to initialize the audit trai原创 2016-09-06 16:43:54 · 2124 阅读 · 0 评论 -
Oracle ORA-00604
--ORA-00604: error occurred at recursive SQL level 1--ORA-01654: unable to extend index SYS.I_PLSCOPE_SIG_ACTION$ by 128 in tablespace SYSAUX--00604. 00000 - "error occurred at recursive SQL原创 2016-09-06 16:42:55 · 1918 阅读 · 0 评论 -
Oracle -- Grant privilege
CREATE TABLE "GRANT_PRIVS_INFO" ( "GRANT_REVOKE" VARCHAR2(1000 BYTE), "PRIVS" VARCHAR2(100 BYTE), "TABLE_NAME" VARCHAR2(64 BYTE), "GRANTEE" VARCHAR2(100 BYTE) ) ;create or re原创 2016-09-06 16:40:15 · 945 阅读 · 0 评论 -
Oracle -- Create DB link
CREATE DATABASE LINK LINK_NAME CONNECT TO schema IDENTIFIED BY abc123 USING '';原创 2016-09-06 16:38:59 · 236 阅读 · 0 评论 -
Oracle -- DBA
select name,log_mode from v$database;-----------PATH: /optware/arch/原创 2016-09-06 16:35:13 · 282 阅读 · 0 评论 -
Oracle --- Create instance
pbrun - rootsu - oracle1. Create all required directories as below.mkdir -p /u20/oracle/admin/PROJECT/adumpmkdir -p /u20/oracle/admin/PROJECT/dpdumpmkdir -p /u20/oracle/admin/PROJECT/p原创 2016-09-06 16:18:13 · 629 阅读 · 0 评论 -
Oracle SQL turning
exec DBMS_STATS.gather_table_stats(ownname=>'', tabname=>'');原创 2016-09-13 16:59:12 · 710 阅读 · 0 评论 -
Oracle -- Set NS_NCHAR_CHARACTEREST
--------------------1 change NLS_NCHAR_CHARACTERSET SHUTDOWN IMMEDIATE; STARTUP MOUNT exclusive RESTRICT;ALTER SYSTEM ENABLE RESTRICTED SESSION; ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0; A转载 2016-09-13 17:00:51 · 413 阅读 · 0 评论 -
Oracle -- SQL tunning privilege
---sql tuninggrant advisor to ;grant administer sql tuning set to ;--CHECK CURRENT DB SETselect b.tablespace_name, tbs_size SizeMb, a.free_space FreeMb from (select tablespace_name, r原创 2016-09-06 16:52:46 · 357 阅读 · 0 评论