Oracle formatting time and basic operation commands

Source: Internet
Author: User

Update fpi_warehousingentry t set T. warehousingdate = to_date ('2017-11-29 12:00:00 ', 'yyyy-mm-dd hh24: MI: ss ')

";" Cannot be added at the end of the logon to the database using the command line sqlplus. Otherwise, an error is reported.

For example, you need to write sqlplus username/password @ database instead of sqlplus username/password @ database;

1. Create a user

Generally, use sqlplus system/manager @ database to log on to the database first. Do not add ";". The manager here is the default. If the last modification is made during database creation

In this case, you should change it to your own password.

Then use

Create username identified by password; note that ";" is required here. ";" Is required for each command after logon.

2. Grant Permissions

The simplest method is grant DBA to username;

It can also be complicated: grant create table, create view to username; that is, grant specific permissions to users.

3. exit;

In this way, you can use the newly created user to log on: sqlplus username/password @ database. Do not add ";".

OK.

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: [email protected] 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.