Oracle常见的QA
1、打开Oracle SQL Developer 2.1工具出现“Unable to create an instance of the Java Virtual Machine ”
解决方法:修改工具路径下的 ide\bin\ide.conf AddVMOption –Xmx 256M
2、在用户登录时出现错误提示:
ORA-28002:the password will expire within 2 days
28002. 00000 - "the password will expire within %s days"
*Cause: The user's account is about to expired and the password needs to be changed
解决方法:
查看用户的过期日期
修改用户的过期时间
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
修改后查看修改结果
如果查询结果为:UNLIMITED ,仍有出错提示,出现该问题是因为:
This change only affects accounts who have not entered their grace period (and started getting ORA-28002 on connection).
Accounts that have entered their grace period will have to change their passwords.
3.Oracle timeten 数据库连接字符串的写法
通过配置本地数据源DSN连接字符串方便书写,直接指定数据源名称即可,但不便于程序的移植,可换用此方式连接timeten:
<add name="DSN" connectionString="Driver={TimesTen Client 7.0};TTC_SERVER_DSN=**;TTC_SERVER=**;TCP_PORT=***;UID=***;PWD=***;"/>
</connectionStrings>
4.Oracle 连接时出现错误提示如下:
ORA-12526: TNS:listener: all appropriate instances are in restricted mode
在使用过程中对数据库进行限制:
取消限制:
5.字符集更改的内部操作
具体可参考:http://www.eygle.com/archives/2004/09/nls_character_set_07.html