Oracle's frequently asked questions and solutions

Source: Internet
Author: User
Tags administrator password

Just contact Oracle, in the learning process encountered a lot of problems, this article will collect my problems and how to solve.

Error one: Ora-28009:connection as sys should be as SYSDBA
Workaround: User name: sys, password: password, host string: ORCL as SYSDBA (the global database I set is named ORCL)

Error Two: ora-28000:the account is locked
Workaround:
(1) Conn Sys/sys as SYSDBA; Log in as a DBA
(2) Alter user Scott account unlock;//then unlock
(3) Conn Scott/tiger//Popup A Password Change dialog box, modify the password can be
Cause: Oracle 10 default Scott cannot log on

Error Three: Ora-01861:literal does not match format string

WORKAROUND: Alter session set Nls_date_format = ' Yyyy-mm-dd hh24:mi:ss '; Modifying the Oracle Default time format

Reason: Oracle default time Format ' dd-mm month-yy '

Supplement: To_char (Sysdate, ' yyyy-mm-dd HH12:MI:SS AM ') 12-hour system
To_char (sysdate, ' yyyy-mm-dd HH24:MI:SS AM ') 24-hour system
To_date (' 1986-4-3 ', ' yyyy-mm-dd ')

Error four : Error-ora-12560:tns:protocol adapter Error
WORKAROUND: The listener service is not up. Open Oracle Services in the service

Error Five: System administrator password forgotten
Workaround: Open cmd, enter Sqlplus/nolog, enter Conn/as SYSDBA; Enter alter user SYS identified by new password (note that the password starts with a letter)

Change Password: alter user identified by values ' password ';

Oracle Paging

The first type: SELECT * FROM (select A1.*,rownum rn from (select query column from table where condition Order by column) A1 whererownum<10) where rn>6;

Second type: Select query column from table where rowID in (select Rid from (select RowNum rn,rid from (select rowID RID from table order by column) where R OWNUM<10) where rn>6) order by column;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.