Oracle Database FAQ

Source: Internet
Author: User

/* Login/*

c:>sqlplus/nolog;
...
Sql> conn/as sysdba (Local database)
sql> conn user/passwd  ; (Switch User)


/* Create an empty table with the same table column name and type as already exists.

CREATE TABLE Table_bak

As SELECT * FROM table where 1<>1;


* * Resolve ora-28001 The password has expired problem

1, login with SYSDBA user

2, view account information, select Username,account_status from Dba_users;

3, if the account is locked/expired first unlock

Alter user USERNAME account unlock;

Change Password again:

Alter user USERNAME identified by NewPassword;


/*oracle Example * *

Oracle's running structure is: Operating system-->oracle Program--> instance, that is, an operating system can create multiple instances, each instance has its own memory structure and process scheduling, so not exactly the same as SQL Server.
Default instance: Oracle will create a ORCL instance when choosing a default installation


/* Create sequence * *

Create sequence sequence name increment by 1 start with 100;


/* Delete sequence * *
Drop sequence sequence name;


/* Modify the table name * *

Rename TableName to tablename1;


/* Delete the primary key of the table * *
ALTER TABLE name drop constraint primary key name;

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.