exp-00091错误
OS : windows 2003 serverDB: oracle 10.2.0.1用exp 导出的时候,每导出一个表都会报错:EXP-00091 Exporting questionable statistics解决办法:select * from nls_database_parameters t where t.parameter='NLS_CHARACTERSET'选出结果NLS_CHARACTERSET AL32UTF8windows: set NLS_LANG=AMERICAN_AMERICA.AL32UTF8LINUX/UNIX: export NLS_LANG=AMERICAN_AMERICA.AL32UTF8在导出数据库,就一定会报这个错误了。[@more@]
关于process,vession 调整
1:process,session设置过小,会报12156错误2:修改参数命令;alter system set processes=.. scope=spfile;3:create pfile from spfile;4;关闭服务器,重启数据库。5:验证参数,session=1.1process+5SQL> show paramete process; NAME TYPE VALUE------------------------------------ ----------- ------------------------------aq_tm_processes integer 1db_writer_processes integer 1job_queue_processes integer
RMAN 一些命令复习
作业命令rman>run {allocate channel d1 type disk;backup format 'd:backup%d_%s.bak' tablespace users;release channel d1;}configure default device type to sbt;configure default device type to disk;recover database until cancelalter database open resetlogsreport schema;报告陈旧备份report obsolete redundancy 2;list backup of tablespace user01;list buackup of controlfile;list backup of archivelog all;delete obsolete;delete noprompt obsolete;delete noprompt backupset 19;delete backup delete noprompt
HP-UX 常用命令
1,机型# model9000/861/D2702,CPU个数# topLOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS0.15 0.4% 0.0% 0.6% 99.0% 0.0% 0.0% 0.0% 0.0%3,硬盘个数# ioscan -funC diskClass I H/W Path Driver S/W State H/W Type Description=====================================================================disk 0 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0disk 5 8/16/5.5.0 sdisk CLAIMED DEVICE SEAGATE ST34572N /dev/dsk/c2t5d0 /dev/rdsk/c2t5d0disk 1 8/16/5.6.0 sdisk CLAIMED DEV
create the volume group and activate it
To create the volume group and activate it, enter commands similar to the following:# /sbin/mknod /dev/vg_name/group c 64 0xnn0000# /sbin/vgcreate /dev/vg_name /dev/dsk/cxtydz . . .# /sbin/vgchange -a y vg_name In this example:vg_name is the name that you want to give to the volume group 0xnn0000 is a minor number that is unused on all nodes in the cluster /dev/dsk/cxtydz... is a list of one or more block device names for the disks that you want to add to the volume group 1,为卷组创建一个目录,比
RAC 配置和命令
grep MemTotal /proc/meminfogrep SwapTotal /proc/meminfo/etc/sysctl.conf中编辑kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 262144net.core.rmem_max = 262144net.core.wmem_default = 262144net.core.wmem_max = 262144/sbin/sysctl –p在/etc/rc.local中加入(数值以具体情况而定,以下是默认值)modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180# /usr/sbin/user
RAC ssh 配置——官方文献
2.3.7.1 Configuring SSH on Cluster Member NodesTo configure SSH, you must first create RSA and DSA keys on each cluster node, and then copy the keys from all cluster node members into an authorized keys file on each node. To do this task, complete the following steps:Create RSA and DSA keys on each node: Complete the following steps on each node:Log in as the oracle user.If necessary, create the .ssh directory in the oracle user's home directory and set the correct permissions on it:$ mkdir ~/.s
NTP 配置
Linux 时间同步配置 收藏 一. 使用ntpdate 命令1.1 服务器可链接外网时 # crontab -e 加入一行: */1 * * * * ntpdate 210.72.145.44 210.72.145.44 为中国国家授时中心服务器地址,这样该机每隔1分重就可以与国家授时中心进行同步了。 注意: 在使用ntpdate 命令时, ntpd 服务必须是关闭的, 否则会报the NTP socket is in use, exiting 错误。关闭 ntpd 服务命令如下:[root@node2 init.d]# /etc/init.d/ntpd stopShutting down ntpd: [ OK ]1.2. 架设本地时间服务器需要修
linux nfs方式共享文件
Linux下NFS文件共享操作详解 1) 新建NFS共享操作方法: 0, 已root身份登录系统 1,在默认情况下系统是没有启动nfs服务的,需要启动 service nfs status service nfs start 2,修改NFS的配置文件/etc/exports, 示例# more /etc/exports/nfs 192.168.XX.XXX(rw,sync,no_root_squash) 192.168.XX.XXX(rw,sync,no_root_squash) 192.168.XX.XXX(rw,sync,no_root_squash) 其中/nfs 表示将哪个目录共享出来 , 192.168.XX.XXX及以后的IP表示允许访问的IP地址 , rw表示可读可写, sync表示内存硬盘同步,no_root_squash表示如果以root身份mount该NFS服
rac 修改节点SGA
1.修改第一个节点:alter system set sga_max_size=2G sid="rac1 "scope=spfile;alter system set sga_target=2G sid="rac1 "scope=spfile;shutdown immediatestartup2.当第一个节点启动后,修改第2个节点:alter system set sga_max_size=2G sid = "rac2 "scope=spfile;alter system set sga_target=2G sid = "rac2 "scope=spfile;shutdown immediatestartup[@more@]rac
rac的典型的listener.ora and tnsnames.ora设置(双实例)
rac的典型的listener.ora and tnsnames.ora设置(双实例)rac 2010-11-05 15:08:43 阅读104 评论0 字号:大中小 订阅 [root@node1 admin]# cat /etc/hosts# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.localdomain localhost192.168.0.11 node1192.168.0.22 node2192.168.0.201 node1-vip192.168.0.202 node2-vip10.10.10.11 node1-priv10.10.10.22 node2-priv[root@node1 admin]# [root@node1 admin]# cat listener.ora # listener.ora.
Oracle RAC之名词解惑~~
http://space.itpub.net/7607759/viewspace-429388[@more@]
ORACLE RAC工作原理
ORACLE RAC工作原理 在一个应用环境当中,所有的服务器使用和管理同一个数据库,目的是为了分散每一台服务器的工作量,硬件上至少需要两台以上的服务器,而且还需要一个共享存储设备。同时还需要两类软件,一个是集群软件,另外一个就是Oracle数据库中的RAC组件。同时所有服务器上的OS都应该是同一类OS,根据负载均衡的配置策略,当一个客户端发送请求到某一台服务的listener后,这台服务器根据我们的负载均衡策略,会把请求发送给本机的RAC组件处理也可能会发送给另外一台服务器的RAC组件处理,处理完请求后,RAC会通过集群软件
临时表空间损坏——两个处理方式
1:在受损的临时表空间内添加一个临时文件2:将受损的临时文件脱机3:删除受损的临时文件另外一个方法:1:创建一个新的临时表空间2:通过alter database 命令将用户切换到这个新的临时表空间。SQL> shutdown immediate;数据库已经关闭。已经卸载数据库。ORACLE 例程已经关闭。SQL> startupORACLE 例程已经启动。Total System Global Area 135338868 bytesFixed Size 453492 bytesVariable Size 109051904 bytesDatabase Buffers 25165824 bytesRedo Buffers 667648 byte
数据文件的损坏恢复过程
create tablespace pengpeng2datafile '/oracle/oradata/mis/pengpeng02.dbf' size 10m;create table test_3(peng int)tablespace pengpeng2;insert into test_3 values(1);insert into test_3 values(2);insert into test_3 values(3);commit;alter system switch logfile;alter system checkpoint;select file#, name from v$datafile;rman>connect target /rman>backup datafile 30RMAN> backup datafile 30;Starting backup at 25-MAR-11using target database controlfile instead of recovery catalogallocated channel
rman catalog创建步骤
1.新建RMAN恢复目录数据库(实例=rman).第一步,在目录数据库中创建恢复目录所用表空间:create tablespace rman_tar datafile '/oracle/oradata/rman/rman_tar.dbf' size 20M;第二步,在目录数据库中创建RMAN 用户并授权:create user rman identified by rman default tablespace rman_tar;grant recovery_catalog_owner to rman;grant connect to rman;grant resource to rman;第三步,在目录数据库中创建恢复目录$rman catalog rman/rman如果未安装恢复目录 (执行)create catalog tablespace rman_tar;2.注册目标数据库第一步:启动恢复
oracle官方文档介绍
oracle官方文档介绍 原则:凡是Reference相关的文档都无需精读,碰到问题时速查即可1.ORACLE新功能 Oracle Database New Features Guide每次新版本的ORACLE RELEASE以后,看一下《Oracle Database New Features Guide》,以了解一下最新的FEATURE,此文档可以粗略地阅读,不需精读。2.ORACLE,RDBMS的概念及体系结构 Oracle Database Concepts入门级,系统级地读物。如果你想了解ORACLE的相关概念和体系结构,《Oracle Database Concepts》是不错的文档。另外,从这个文档中,你可以了解到其它的文档中提及的名词和概念
9个重要的动态视图
v$session + v$session_wait (在10g里功能被整合,凑合算1个吧.)v$processv$sqlv$sqltextv$bh (更宁愿是x$bh)v$lockv$latch_childrenv$sysstatv$system_event[@more@]
dataguard步骤
物理备用数据库1:准备阶段归档日志模式,强制日志,密码文件2:部署阶段创建控制文件初始化参数复制和传输:控制文件,初始化参数文件,口令文件,ORACLE_HOME目录,adminMULU (包括子目录)3:设置网络环境listner.ora,tnsnames.ora,sqlnet.ora4:可选项创建备用重做日志(SRL)清除备用数据库上的在线重做日志文件启动DG BROKER5:启动备用数据库创建临时表空间alter database revover managed standby database disconnect from session6:测试备用数据库备用数据库现有的归档日志文件:select sequence#,first_time,next_time from v$a
7*24大型和小型数据库备份策略
原则:1:小型数据库 每天在线全备份2:大型数据库 每周末进行一次完全在线全备份,而平时进行增量在线备份3:超大型数据库 经常需要轮换备份计划,使得每晚备份一个或一组表空间。这样也许要几天才能得到一个完整的备份。从而可以缩短每晚备份的时间。4:活动表空间 若没写表空间活动性很强,应定位这些表空间并经常对其备份。5:不可恢复的操作对数据库执行不可恢复的操作时候,应进行完全脱机备份。若无法保证这一点,就应该 避免执行不可恢复的操作。6:归档日志 备份归档日志,防止归档日志损坏。[@more@]