check the OS support version before install the oracle 11g
Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2) [ID 169706.1][@more@]
HP-UX: 11gR2 runInstaller Fails with "An internal error occurred within cluster verification framewo
HP-UX: 11gR2 runInstaller Fails with "An internal error occurred within cluster verification framework" [ID 983713.1] 修改时间 05-JUL-2010 类型 PROBLEM 状态 MODERATED In this Document Symptoms Cause SolutionPlatforms: 1-914CU; This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.Applies to: Oracle Server - Enterprise Edition - Version: 11.2.0.1 to 11.2.0.1 - Release:
EXEC SP_CONFIGURE 'xp_cmdshell';
EXEC master.dbo.sp_configure 'show advanced options', 1RECONFIGUREEXEC master.dbo.sp_configure 'xp_cmdshell', 1RECONFIGUREEXEC SP_CONFIGURE 'show advanced option', '1'; RECONFIGURE WITH OVERRIDE; EXEC SP_CONFIGURE 'xp_cmdshell';[@more@]
_allow_resetlogs_corruption=TRUE 相当给力ORA-01194已成浮云
要restore databse, rman resstore好了但是db 怎么都open 不了因为事情着急,所以直接用了传说中的隐藏参数_allow_resetlogs_corruption=TRUESQL> alter database open resetlogs;alter database open resetlogs*ERROR at line 1:ORA-01194: file 1 needs more recovery to be consistentORA-01110: data file 1: '/oracle/oradata/LFE/system01.dbf'SQL> alter system set _allow_resetlogs_corruption=TRUE scope=spfile;alter system set _allow_resetlogs_corruption=TRUE scope=spfile*ERROR at line 1:ORA-00911: invalid char
ORA-16014: log 2 sequence# 59 not archived, no available destinations
SQL> select status from v$instance;STATUS------------------------MOUNTEDSQL> alter database open;alter database open*ERROR at line 1:ORA-16014: log 3 sequence# 107 not archived, no available destinationsORA-00312: online log 3 thread 1: 'D:ORACLEORADATAORA10GDBREDO03.LOG'ORA-00312: online log 3 thread 1: 'D:ORACLEORADATAORA10GDBREDO3_B.LOG'SQL> archive log list;Database log mode Archive ModeAutomatic archival EnabledArchive destination USE_DB_RECOVERY
Cannot find folder "Maintenance Plans".
when I try to create a Maintenance Plan through the Wizard, I got error as belos:TITLE: Microsoft SQL Server Management Studio------------------------------Exception has been thrown by the target of an invocation. (mscorlib)------------------------------ADDITIONAL INFORMATION:Cannot find folder "Maintenance Plans".------------------------------Cannot find folder "Maintenance Plans".------------------------------BUTTONS:OK------------------------------then I open profile and f
about temp tablespaces
1.临时表空间无法扩展的错误提示警告日志中记录了下面的信息 ORA-1652: unable to extend temp segment by 128 in tablespace TEMP 2.确认临时表空间属性 sys@ora10g> col tablespace_name for a15 sys@ora10g> col file_name for a30 sys@ora10g> select tablespace_name,file_name,AUTOEXTENSIBLE,maxbytes/1024/1024/1024 GB,maxblocks from dba_temp_files; TABLESPACE_NAME FILE_NAME AUT GB MAXBLOCKS --------------- --------------------------------- --- ---------- --------- TEMP /oracle/oradata/ora10g/temp01.db
(转)查看sql server 数据库连接数方法
1.通过系统的“性能”来查看:开始->管理工具->性能(或者是运行里面输入 mmc)然后通过添加计数器添加 SQL 的常用统计 然后在下面列出的项目里面选择用户连接就可以时时查询到数据库的连接数了。不过此方法的话需要有访问那台计算机的权限,就是要通过windows账户登陆进去才可以添加此计数器。2.通过系统表来查询:SELECT * FROM [Master].[dbo].[SYSPROCESSES] WHERE [DBID] IN ( SELECT [DBID] FROM [Master].[dbo].[SYSDATABASES] WHERE NAME='databaseName')databaseName 是需要查看的数据库,然后查询出来的行数
转 查看net framework 的版本的方法
今天上午Edward同学问我一个问题:如何知道自己本机安装的.NET Framework版本呢?以前这个问题我也遇到过,那就是在写自动部署程序的时候,如果客户的机器已经安装了.NET Framework就不再安装。作为安装包的制作者,自己应该是知道程序是用哪个版本.NET Framework编译的。目前.NET Framework的版本有1.1(基本上已经退出舞台)、2.0.50727、3.0和3.5。如何获取它们呢?方法一:通过Visual Studio 2008的菜单项“Help”来查看(有点无厘头的办法)方法二:在Visual Studio 2008 Command Prompt(或者.NET SDK的命令行工具) 里输入csc,然后
sql语句引起的CPU占用国高
SQL效率问题, SQL code 1.用top看下那个进程占cpu资源比较多,记下SPID, 2:查询当前耗时的会话ID,用户名,sqlID等: select sid,serial#,machine,username,program,sql_hash_value,sql_id, to_char(logon_time,'yyyy/mm/dd hh24:mi:ss') as login_time from v$session where paddr in (select addr from v$process where spid in ('5648612','256523')); 3:如果上一步sql_id或者 hash_value不为空,则可用v$sqlarea查出当前正在使用的sql select * from v$sql where sql_id='' select s.sid,s.serial#,p.program,p.spid from v$sessi
“Cannot generate SSPI context”(无法生成 SSPI 上下文)
http://support.microsoft.com/kb/811889/zh-cn本文分步介绍如何排查“Cannot generate SSPI context”错误消息最常见的根源。在下列情形中,您可能会收到此错误消息: 正在与 SQL Server 建立连接。 正在使用集成安全性。 使用 Kerberos 执行安全委派。回到顶端了解 Kerberos 术语和服务主体名称客户端计算机上的 SQL Server 驱动程序利用集成安全性来使用用户帐户的 Windows 安全令牌,以便成功连接到运行 SQL Server 的计算机。Windows 安全令牌从客户端委派到运行 SQL Server 的计算机。当使用下列某一配置将用户的安全令牌从一台计算
原来MSSQL也有shutdown的状态
SQL Express by default has 'AUTO_CLOSE' database option set to true. This means when your database has no users connected, the database status will show 'Shutdown Normal'. When a user connects to the database, it is started up and status is changed to 'Normal'. To leave the database on and available all the time, set the 'AUTO_CLOSE' option to FALSE. It can be done by running this script against each user database upon creation or after the fact: Code Block ALTER DATABASE SET AUTO_CLOSE OFF[@mor
重建wmsys
Ceate wmsys and related objests$ORACLE_HOME/rdbms/admin/owminst.plbFor uninstall$ORACLE_HOME/rdbms/admin/owmuinst.plbhttps://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocTitle=How%20to%20De-install%20Oracle%20Workspace%20Manager&viewingMode=1143&bmDocDsrc=KB&bmDocType=HOWTO&bmDocID=263428.1&from=BOOKMARK)) [@more@]
ora-00020超出最大进程数的解决方法
ora-00020超出最大进程数的解决方法 一般原因是因为你的应用程序的连接数超过了ORACLE系统设置的最大连接数。你可以到ORACLE的OEM下,用SYS as/sysdba进入OEM,在Instance的 Configuration下打开All initialization parameters,打到指定的Processes项,该项系统安装一般默认为150,你可以修改到你想需要的,一般200~2000之间。修改之后需要重新启动数据库,建议最好重新启动操作系统。当然你也可以在windows上,在dos命令符下键入:set oracle_sid=xxx ,一样的道理。 ORACLE的连接数(sessions)与其参数文件中的进程数(process)有关,它们的
关于索引何时需要重建 [转]
关于索引何时需要重建。通过一个视图(index_stats),参考里面的数值来判断是否需要重建select name,del_lf_rows,lf_rows, round(del_lf_rows/decode(lf_rows,0,1,lf_rows)*100,0)||'%' frag_pct from index_stats where round(del_lf_rows/decode(lf_rows,0,1,lf_rows)*100,0)>10;del_lf_rows:索引删除行数lf_rows:索引总行数这里 round(del_lf_rows/decode(lf_rows,0,1,lf_rows)*100,0) 求的是删除行数除以总行数的百分比,我在相关书籍上看到是,比率大于10%需要重建,当然看情况而定,也可以是是20%,但不要超过30%。当
查login 的info
/*--获取连接SQL服务器的信息 所有连接本机的:操作的数据库名,计算机名,用户名,网卡物理地址,IP地址,程序名 -*/ /*--调用示例 --显示所有本机的连接信息 exec p_getlinkinfo --显示所有本机的连接信息,包含ip地址 exec p_getlinkinfo @includeip=1 --显示连接指定数据库的信息 exec p_getlinkinfo '客户资料' --*/ if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[p_getlinkinfo]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[p_getlinkinfo] GO create proc p_getlinkinfo @dbname sys
【INSERT】逐行提交、批量提交及极限提速方法 <转>
在Oracle数据库中,不是提交越频繁越好。恰恰相反,批量提交可以得到更好的性能。这篇文章给大家简单展示一下在Oracle数据库中逐行提交于批量提交两者之间的性能差别。最后再给出一种可以极大改变性能的方法。1.创建表t_ref,并初始化880992条数据,用于后面的实验。sec@ora10g> create table t_ref as select * from all_objects;sec@ora10g> insert into t_ref select * from t;220248 rows created.sec@ora10g> /sec@ora10g> /sec@ora10g> /sec@ora10g> /sec@ora10g> /440496 rows created.2.编写一个简单的PL/SQ
使用SQL Server Profiler
1. 了解SQL Server Profiler SQL Server Profiler 是图形化实时监视工具,能帮助系统管理员监视数据库和服务器之行为, 比如死锁之数量,致命之错误,跟踪Transact-SQL 语句和存储过程。可以把这些监视数据存入表或文件中,并在以后某一时间重新显示这些事件来一步一步之进行分析。 通常我们使用SQL Server Profiler 仅监视某些插入事件,这些事件主要有:登录连接之失败、成功或断开连接;DELETE、 INSERT、 UPDATE 命令;远程存储过程调用(RPC) 之状态;存储过程之开始或结束,以及存储过程中之每一条语句;写入SQL Server 错误
Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space
今天连db结果遇到如下错误:SQL SERVER – FIX : Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server error log for details第一直觉就是dbf的权限问题,一查果然。。。。由于空间不够还顺便把dbf文件移动了下再attach上sql模板如下:CREATE DATABASE [ALS_LFE] ON PRIMARY ( NAME = N'DXXXXXXXXXXXXXXXXX', FILENAME = N'DXXXXXXXXXXXXXXXXX.mdf' , MAXSIZE = XXXXKB, FILEGROWTH = XXXXKB )LOG ON ( NAME = N'DXXXXXXXXXXXXXXXXX_log', FILENAME = N'DXXXXXXXXX
归档和非归档恢复实验,ORA-00312 ORA-00313日志损坏
公司的db是noarchive模 式的 So回家试了一把备份恢复,归档和非归档都有 实验如下 archieve模式 1. 先是最基本的把要做冷备的数据文件和控制文件找到: select name from v$datafile union select name from control file;shutdowm immediatehost copy *******control01.ctl ***back host copy *******users01.dbf ***back环境准备: creat table tt(x number,y varchar2(10)); insert into tt values (1,’a’); 强制切换logfile alter system switch