Oracle startup and Change Time

Source: Internet
Author: User
Tags import database

Oracle startup

1. Start the database (Oracle 9i ):
> Sqlplus/nolog
> Connect/As sysdba
> Startup
> Quit
> LSNRCTL
> Start
Quit
2. Close the database (Oracle 9i ):
The premise is that the user connection is closed.
> Sqlplus/nolog
> Connect sys/passwd as sysdba
> Shutdown immediate
> Shutdown immediate
PL/SQL:
String connection "|", for example, update student set email = studentno | '@ doit.net.cn' Where studentno = '000000 ';
3. Modify the sysdba password:
Sqlplus/nolog
> Conn as sysdba
> Alter user SYS identified by nosmoking
4. Export Database files:
> Exp test/test@test_192.168.0.1
Export File: Test. dmp
...
5. Import database files:
> Imp
> User: Test
> Password: Test
Import file: Test. dmp
...

(If you want to import 9i database content to 8i database, you can use the 8i client to export 9i database files? *. DMP, and then import the DMP file to the 8i database)

Change Time in Oracle

Update ksxx t set T. csny = to_date ('1970-1-1 0:0', 'yyyy-mm-dd hh24: MI: ss') where 1 = 1;

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.