1、開啟Oracle SQL Developer 2.1工具出現“Unable to create an instance of the Java Virtual Machine ”
解決方案:修改工具路徑下的 ide\bin\ide.conf AddVMOption –Xmx 256M
具體參照:http://www.faisalmb.com/blog/post/2009/06/23/Oracle-SQL-Developer-Unable-to-create-an-instance-of-the-Java-Virtual-Machine.aspx
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
解決方案:
查看使用者的到期日期
Select * from dba_users;
修改使用者的到期時間
select limit from dba_profiles where profile = ( select profile from dba_users where username='**') and RESOURCE_NAME='PASSWORD_LIFE_TIME';
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
修改後查看修改結果
select limit from dba_profiles where profile=(select profile from dba_users where username='**')and resource_name='PASSWORD_LIFE_TIME';
如果查詢結果為: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.
具體參照:http://203.208.39.132/search?q=cache:LDZXxnZVhMgJ:www.itpub.net/thread-201747-1-1.html+ora-28002+the+password+will+expire+within+2+days+oracle&cd=3&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy281IX57xFNimIe1ffNpzSJ8TyEXvg
3.Oracle timeten 資料庫連接字串的寫法
通過配置本機資料源DSN連接字串方便書寫,直接指定資料來源名稱即可,但不便於程式的移植,可換用此方式串連timeten:
<connectionStrings>
<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
在使用過程中對資料庫進行限制:
ALTER SYSTEM ENABLE RESTRICTED SESSION
取消限制:
ALTER SYSTEM DISABLE RESTRICTED SESSION
5.字元集更改的內部操作
alter database character set INTERNAL_CONVERT/ INTERNAL_USE ZHS16GBK
具體可參考:http://www.eygle.com/archives/2004/09/nls_character_set_07.html