04 2014 档案
摘要:返回:Oracle 索引页 SQL> show parameter audit_file_dest;NAME TYPE VALUE audit_file_dest string /u01/app/oracle/admin/orcl/adumpSQL> SQL> SQL> show parameter
阅读全文
摘要:先看有没有sqlnet.ora[oracle@localhost ~]$ cd $ORACLE_HOME[oracle@localhost dbhome_1]$ cd network[oracle@localhost network]$ cd admin[oracle@localhost admin...
阅读全文
摘要:SQL> create pfile from spfile;File created.SQL> [oracle@localhost dbs]$ ls -lrttotal 24-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora-rw-r----...
阅读全文
摘要:先切换:SQL> select group#,status from v$log; GROUP# STATUS---------- ---------------- 1 INACTIVE 2 CURRENT 3 INACTIVESQL> alter system archive log curren...
阅读全文
摘要:试验设想:机器1: alter database begin backup然后,在oracle仍然活动的状态下,将$ORACLE_BASE目录全部压缩拷贝到机器2机器2:startup:失败startup mount--〉recover database。 仍然失败看来,storage copy 这...
阅读全文
摘要:oracle11g观察数据库scn:SQL> select dbms_flashback.get_system_change_number from dual;GET_SYSTEM_CHANGE_NUMBER------------------------ 1025713SQL> select ch...
阅读全文
摘要:在数据库运行的时候,数据库系统的SCN不断地增长:SQL> select dbms_flashback.get_system_change_number from dual;GET_SYSTEM_CHANGE_NUMBER------------------------ 1024279SQL> 虽然...
阅读全文
摘要:例如:SQL>create table tab001(id varchar(4));SQL>select dbms_metadata.get_ddl(‘TABLE’,’tab001’) from dual;---------------------Object “tab001” not found ...
阅读全文
摘要:Select dbms_metadata.get_ddl('MATERIALIZED_VIEW','MVIEW_NAME') from dual;
阅读全文
摘要:本文只是为了个人备忘。参考eagyle的:http://www.eygle.com/archives/2005/12/oracle_howto_move_datafile_raw.html我首先挂了一块硬盘。然后执行:fdisk /dev/sdd生成了一块逻辑盘/dev/sdd1,得到扩展盘/dev...
阅读全文
摘要:参考了百度文库上的 一文。不过为了简单起见,我选择OS 为 Redhat AS 4.8 32位。准备安装数据库为Oracle10gR2 32 位。我的分区和映射关系如下:/dev/sdb5 --> /dev/raw/raw1 --> spfile/dev/sdb6 --> /dev/raw/...
阅读全文
摘要:Microsoft Windows [版本 5.2.3790](C) 版权所有 1985-2003 Microsoft Corp.C:\Documents and Settings\Administrator>net start TermService请求的服务已经启动。请键入 NET HELPMSG 2182 以获得更多的帮助。C:\Documents and Settings\Administrator>
阅读全文
摘要:第一步:命令行执行mstsc 第二步:处输入开启了远程桌面功能的计算机IP地址。
阅读全文
摘要:事实上,RMAN备份的时候,如果是使用control file 来作catalog,那么一定要把control file和spfile恢复到另外的机器上面。否则,会出现类似如下的错误:原来的实例:[oracle@localhost ~]$ rman target /Recovery Manager: Release 11.2.0.4.0 - Production on Sun Apr 6 15:54:41 2014Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.connected to ta
阅读全文
摘要:http://www.onlinedbasupport.com/2010/12/10/block-corruption-in-system-datafile/
阅读全文
摘要:SQL> startup mount;ORACLE instance started.Total System Global Area 814227456 bytesFixed Size 2257640 bytesVariable Size 528485656 bytesDatabase Buffers 281018368 bytesRedo Buffers 2465792 bytesDatabase mounted.SQL> alter tablespace system rename to system01;alter tablespace system rename to s
阅读全文
摘要:SQL> shutdown immediate;Database closed.Database dismounted.ORACLE instance shut down.SQL> startup mount;ORACLE instance started.Total System Global Area 814227456 bytesFixed Size 2257640 bytesVariable Size 528485656 bytesDatabase Buffers 281018368 bytesRedo Buffers 2465792 bytesDatabase mount
阅读全文
摘要:主要是为了学习oracle的克隆。参考:http://www.dba-oracle.com/oracle_tips_db_copy.htm执行:SQL>alter database backup controlfile to trace;对于oracle11g数据库,到 $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/ 目录下查找,进行查看:[oracle@localhost trace]$ cat orcl_ora_4195.trcTrace file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/
阅读全文
摘要:4月2日,首先查看系统状况:SQL> show parameter control NAME TYPE VALUE------------------------------------ ----------- ------------------------------control_file_record_keep_time integer 2control_files string /u01/app/oracle/oradata/orcl/c ontrol01.ctl, /u01/app/oracle/ flash_recovery_area/orcl/contr ol02.ctl
阅读全文
摘要:参考:http://stackoverflow.com/questions/1043096/how-to-list-active-open-connections-in-oracle以sys身份连接进入,执行如下sql 语句:SQL> select substr(a.spid,1,9) pid, substr(b.sid,1,5) sid, substr(b.serial#,1,5) ser#, substr(b.machine,1,6) box, substr(b.username,1,10) username,-- b.server, substr(b.osuser,1,8) os_
阅读全文
摘要:错误分析listener 可以正常启动:[oracle@o_target admin]$ cat listener.ora# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora# Generated by Oracle configuration tools.LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0
阅读全文
摘要:备忘:http://www.cnblogs.com/xwdreamer/archive/2013/10/11/3363451.html
阅读全文
摘要:SQL> create table tab01(id integer,val varchar(4));Table created.SQL> insert into tab01 values(1,'0001');1 row created.SQL> insert into tab01 values(2,'0002'); 1 row created.SQL> insert into tab01 values(3,'0003');1 row created.SQL> insert into tab01 values(4,&
阅读全文
摘要:SQL>@ORACLE_HOME/rdbms/admin/utlsampl.sql;似乎不够完整,等待补充。
阅读全文
摘要:首先要启动 listener: lsnrctl start对于dbconsole:emctl start dbconsole
阅读全文
摘要:1 linux安装盘挂载,安装日语语言包2 linux的系统语言设置为日语3 firefox的 edit-> setting -> contents -> language setting,添加日语,并设置为第一顺位4 重新启动5 启动oracle的litener,数据库,oem6 启动firefox浏览器来访问oem,发现firefox自动设置了日语语言插件,然后oem中显示的已经是日文界面了。
阅读全文
摘要:光盘挂载:mount /dev/cdrom /mnt/cdromcd /mnt/cdrom/Server以oel5.5为例:rpm -ivh fonts-japanese-0.20061016-4.el5.noarch.rpmrpm -ivh m17n-db-japanese-1.3.3-48.el5.noarch.rpm
阅读全文
摘要:通过查阅网上文章,发现很多Advanced Queue的例子无法跑起来。参考了英文网站,可以正常运行成功。http://www.orafaq.com/wiki/Advanced_Queueing第一步:建立object,建立queue table,建立queue,然后启动queue。*****************************************************************************[oracle@localhost ~]$ cat q01.sqlCREATE OR REPLACE TYPE event_msg_type AS OBJECT
阅读全文
摘要:试验:SQL> oradebug setmypid;Statement processed.SQL> 接着,进行backup:RMAN> list backup; using target database control file instead of recovery catalogspecification does not match any backup in the repositoryRMAN> backup database;Starting backup at 02-APR-14allocated channel: ORA_DISK_1channel
阅读全文
摘要:如何查看自己的电脑是32位还是64位方法如下:点击开始——运行——输入wmic cpu get addresswidth
阅读全文