Oracle常見的QA

來源:互聯網
上載者:User

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.