自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(38)
  • 收藏
  • 关注

原创 oracle 添加服务

修改service_names,添加一个test服务SQL> show parameter service_namesNAME TYPE VALUE------------------------------------ ----------- ---------service_names

2016-05-14 09:37:18 3044

原创 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

在配置zabbix连接mysql时出现下面报错:Error connecting to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)系统的配置如下:mysql> show grants for zabbix;+------------------------

2015-10-08 10:43:27 9926 2

转载 Centos使用yum命令安装中文语言包(fonts-chinese.noarch,m17n-db-common-cjk)

Centos使用yum命令安装中文语言包(fonts-chinese.noarch,m17n-db-common-cjk)执行以下命令 [[email protected] ~]# yum install fonts-chinese.noarch [[email protected] ~]# yum install m17n-db-common-cjk [[email protected] ~]# yum insta

2015-09-28 10:07:28 34167

原创 ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []

SQL> startup nomount;ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []产生这个问题的根本原因是服务器hostname没有正确配置,通过hostname命令得到的主机名无法ping通,Oracle10g认为主机无法达到所以启动数据库报错。解决方法:

2015-08-30 16:44:45 850

原创 oracle中无法查询中文条件

但通过下面语句却无法查出带中文的记录:select drdl01 from prodctl.F0005 where trim(drdl01) like 'China,中国%';查看当前数据库字符集:SQL> SELECT * FROM v$nls_parameters where parameter='NLS_CHARACTERSET';PARAMETER VALUE----

2015-08-24 14:41:48 8997

原创 ORA-1092 : opitsk aborting process---killed by oom killer

oracle version:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Productionos version:Linux x86 64-bit oracle alert日志报错:opiodr aborting process unknown ospid (19506) as a result of ORA

2015-07-16 14:33:39 10100

原创 ERROR-Agent is blocked. Blocked reason is: Agent is out-of-sync with repository

[oracle@node2-prod1 bin]$ ./emctl status agentOracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0 Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.----------------------

2015-07-08 22:56:57 1638

原创 【GC】Grid Control Agent完整删除方法

当需要删除Grid Control Agent的时候,往往会因为删除不完整导致无法重新顺利部署Agent的问题。 这里给出Grid Control Agent的完整删除方法。供大家参考。1.确认Agent当前状态 [oracle@secdb1 ~]cd/u01/app/oracle/agent/agent10g/bin[oracle@secdb1bin] cd /u01/app/oracle

2015-06-30 21:42:32 1587

原创 连接时出现:Can't open display: localhost:10.0

解决方法:在/etc/hosts 中加入 127.0.0.1 localhostipaddress hostname 之后能进入图形界面,注意是实际ip和机器名

2015-06-24 11:32:07 27109

原创 [MySQL][ODBC 5.2(w) Driver]Access denied for user

需要在这里添加用户映射。

2015-06-01 15:16:52 7490 1

原创 expdp 后台查看

今天在执行导数据的命令expdp之后发现少放了一个参数,赶紧CTRL+C,谁这个操作只能表面cancel这个操作,其实后台还在运行。system/******** schemas=CEN_DEV_OWNER20130506,CEN_DEV_USER20130506 directory=exp_dir dumpfile=expdp_cen052701.dmp,expdp_cen052702.dmp,e

2015-05-27 14:48:54 3174

原创 TNSPING time out/响应慢

E:\s01\app\oracle\product\11.2.0\dbhome_1\BIN>tnsping CENORCLTNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 25-MAY-2015 10:26:59Copyright (c) 1997, 2010, Oracle. All rights re

2015-05-25 11:08:46 1695 1

原创 File attachment or query results size exceeds allowable value of 1000000 bytes

DECLARE @tab char(1) = CHAR(9)EXEC msdb.dbo.sp_send_dbmail @profile_name = 'backupNotify', @recipients = '[email protected]', @query = 'select cardno,badge,empname,empdep,s

2015-05-21 11:18:36 1498

原创 record is locked by another user

在更新数据的时候报这个错: 在操作表时没有commit,导致表被锁,只要执行下面两行语句,就可以了将行锁解锁了。查看被锁表的sid 和 serialSelect t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid; kill 相应的se

2015-04-15 10:10:04 955

原创 user,group,or role 'test' already exists in the current database,error 15023

目录目录报错信息解决方案- 方法1- 方法2报错信息解决方案- 方法1先创建用户帐户,不进行授权,然后通过下面的SQL语句将该用户帐户关联至对应的数据库用户。优点是避免了重新授权的操作。 USE {目标数据库} EXEC sp_change_users_login 'Update_One', '{目标数据库已存在的用户名}', '{创建的登录用户名}'- 方法2在创建用户帐户(或者授权)

2015-04-10 11:37:54 5086

原创 简单查看oracle client 位数 32bit or 64 bit

目录目录linux平台windows平台linux平台进入到client的安装目录(CLIENT_HOME)的bin目录下$ cd CLIENT_HOME/bin 使用file 命令检证其中的可执行文件 $ file sqlplus sqlplus: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Lin

2015-04-10 11:09:04 7011

转载 SQL Server 2008如何压缩日志(log)文件?

转载自:http://www.cnblogs.com/downmoon/archive/2011/11/04/1623004.html在SQL Server 2000/2005中可以快速压缩日志log文件,通过SQL,方法一:–BigData为数据库名 DUMP TRANSACTION BigData WITH NO_LOG BACKUP LOG BigData WITH NO_LOG DBC

2015-04-08 17:12:42 776

原创 The transaction log for database 'xx' is full,Error: 9002, Severity: 17, State: 2

检查数据库日志,有如下报错信息:Error: 9002, Severity: 17, State: 4.The transaction log for database 'SharedServices1_Search_DB' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc

2015-04-08 15:17:16 3239

原创 SQL SERVER 2005删除维护作业报错:The DELETE statement conflicted with the REFERENCE constraint "FK_subplan_jo

下面是网上找的一些资料来解决这个问题: 先获取这个job_id: USE [msdb]GO/****** Object: Job [dbbackup_diff.Subplan_1] Script Date: 04/08/2015 10:22:46 ******/EXEC msdb.dbo.sp_delete_job @job_id=N'588acfb8-630b-41c3-aa47

2015-04-08 10:46:44 4299

原创 Warning. Log sequence in archive filename wrapped to fix length as indicated by %S in LOG_ARCHIVE_F

最近在做数据库检查的时候发现有下面警告信息:Thu Apr 02 10:34:39 2015 Current log# 1 seq# 235103 mem# 0: D:\ORADATA\ORCL\REDO01.LOGThu Apr 02 10:34:40 2015ARC1: Evaluating archive log 3 thread 1 sequence 235102Thu Apr

2015-04-04 09:04:18 2224

原创 主键和索引的区别

1. 主键一定是唯一性索引,唯一性索引并不一定就是主键. 所谓主键就是能够唯一标识表中某一行的属性或属性组,一个表只能有一个主键,但可以有多个候选索引。因为主键可以唯一标识某一行记录,所以可以确保执行数 据更新、删除的时 候不会出现张冠李戴的错误。主键除了上述作用外,常常与外键构成参照完整性约束,防止出现数据不一致。数据库在设计时,主键起到了很重要的作用。 主键可以保

2015-03-30 09:35:13 14534 1

原创 查看Oracle数据库SQL执行历史

方法1:使用LogMiner工具优点:可以完全挖掘日志内容,找出所有执行过的SQL语句缺点:如果没有启用归档日志,则只能对联机日志进行挖掘需要掌握LogMiner的用法方法2:查看HIST视图优点:简单,只要使用普通的select语句查询缺点:Oracle保留约1周的历史,所以要查太早的就不可能了举例:-- 找出哪个数据库用户用什么程序在最近三天执行过delete或truncate table

2015-03-26 23:20:29 24220

原创 bat 获取系统时间,并去掉时间小时前面的空格

有时候我们需要获取当前系统的时间,如果小时小于10的话,获取小时会出现空格的情况:c:\>time当前时间: 8:52:38.05c:\>echo %time:~0,2% 8 ------这个8前面是有空格的c:\>如何去掉空格让时间正确的显示呢?其实只需要将空格替换成0就可以了。c:\>set h=%time:~0,2%c:\>echo %h: =0% -----这里的‘=’就是‘

2015-03-24 11:04:09 11315 1

原创 Transport Tablespace Set(三) ----transport single tablespace

源端字符集与endian查看: SQL> select userenv(‘language’) from dual; USERENV(‘LANGUAGE’) SIMPLIFIED CHINESE_CHINA.ZHS16GBKSQL> SELECT d.PLATFORM_NAME, ENDIAN_FORMAT 2 FROM VTRANSPORTABLEPLATFORMtp,VT

2015-03-18 14:00:23 629

原创 在与sql server 建立连接时出现与网络相关的或特定于实例的错误

今天在配置MSSQL 2005 数据库备份JOB后,在运行JOB时出现下图错误: 在搜索一番后认为可能与mssql协议相关,并且与本地配置进行核对后,发现本地确实未启用named pipes协议,于是采用下面办法:在SQLServer 实例上启用远程连接 1.指向“开始->程序->Microsoft SQL Server 2005->配置工具->SQL Server 外围应用配置器” 2.在“

2015-03-10 21:35:00 1058

原创 SQL 列转行

普通行列转换 (爱新觉罗.毓华 2007-11-18于海南三亚)假设有张学生成绩表(tb)如下: Name Subject Result 张三 语文  74 张三 数学  83 张三 物理  93 李四 语文  74 李四 数学  84 李四 物理  94 *//* 想变成 姓名 语文 数学 物理 李四

2015-03-08 22:39:38 692

原创 oracle asm alias 文件别名

今天在网上看到一个朋友问:为什么在ASM存储管理的方式下明明只设置了log_archive_dest_1来指定归档的路径,却在ASM下发现了两处归档日志文件?(未开闪回) 我查了一些资料,认为是这样的: Every file created in ASM gets a system-generated filename, otherwise known as a fully qualifie

2015-03-06 20:45:41 2437

原创 linux 环境oracle sqlplus下使用退格backspace回删出现^H的解决办法

1、进入sqlplus前设置回删 在进入sqlplus之前,在当前terminal 执行如下命令: stty erase ‘^H’ 就可以了。 stty: 修改终端参数。如果不想每次进入终端都敲入这个命令,在当前用户的.profile里面加入这个命令。这个命令的意思就是使用 BackSpace键作为删除键。 2、在sqlplus里面用ctrl+backspace代替back

2015-03-06 14:38:08 3928 1

原创 普通用户授予select any table 权限

基于应用的需要,让普通用户有访问sys表的权限,于是就想到了select any table 的权限,可是当授权以后发现还是不能访问sys的表,经过查一系列资料,发现select any table不是真正的any table。下面做这个实验: SQL> select * from v$version where rownum<2; **BANNER ————————————————————

2015-03-06 14:35:05 31557

原创 数据库改名,包括实例名

基于某些特定的需要我们需要改数据库名,下面是实验: version: Linux chartis 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux SQL*Plus: Release 11.2.0.1.0 Production on Mon Jan 7 16:23:

2015-03-05 16:59:12 568

原创 windows client连linux下的oracle server,ORA-12560: TNS: 协议适配器错误

暂不讨论其它原因的ORA-12560,只说今天碰到的情况: oracle server 是安装在linux上的,然后在windows 7客户端安装oracle11gr2的client 并配置网络服务名chnpelt1-vip。 C:\Users\mdu>sqlplus system@chnpelt1-vip SQL*Plus: Release 11.2.0.1.0 Production on

2015-03-05 16:49:07 3519

原创 Oracle Resumable Space Allocation

—————The following is quoted from Concept 10g Oracle provides a means for suspending, and later resuming, the execution of large database operations in the event of space allocation failures. T

2015-03-05 15:50:14 995

原创 Oracle安装图形界面显示 putty+xming

OS:[oracle@node1 ~]$ uname -aLinux node1 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/LinuxDB Version:[oracle@node1 ~]$ sqlplusSQL*Plus: Release 11.2.0.1.0 Produc

2015-03-05 15:35:10 1564

原创 QUESTION 113 -- 10g OCP 升级11g OCP 1Z0-053

QUESTION 113 ENCRYPT_TS is an encrypted tablespace that contains tables with data. Which statement is true regarding the effect of queries and data manipulation language (DML) statements on

2015-02-25 13:30:33 671

原创 QUESTION 5 -- 10g OCP 升级11g OCP 1Z0-053

QUESTION 5 USER_DATA is a nonencrypted tablespace that contains a set of tables with data. You want to convert all existing data in the USER_DATA tablespace and the new data into the encrypted forma

2015-02-25 13:18:18 694

原创 QUESTION 90 -- 10g OCP 升级11g OCP 1Z0-053

QUESTION 90 You need to perform an online table redefinition of an existing SALES table to partition it into two tablespaces TBS1 and TBS2.The SALES table has a materialized view, materialized lo

2015-02-16 16:43:43 1044

原创 QUESTION 4 -- 10g OCP 升级11g OCP 1Z0-053

Which statement describes the effect of table redefinition on the triggers attached to the table? A. All triggers on the table remain valid. B. All triggers on the table are invalidated and are a

2015-02-16 16:13:30 471

原创 这是一个测试文章

本文只是用于测试目的。 写一些自己觉得有用的东西。希望自己能够坚持下去。

2015-02-16 15:05:14 480

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除