ORACLE12C Open Scott Account

Source: Internet
Author: User

In the Oracle directory app\orcl\product\12.1.0\dbhome_1\network\admin\ tnsnames.ora file, add the following:

  PDBORCL =1521)    )=      = dedicated)      =     pdborcl)   ))

Then enter Sqlplus to connect to the login sys account and run the following statement

SQL > Conn Sysyoupassword asSysdba; SQL> Alter SESSIONSetcontainer =PDBORCL; SQL>Startupsql> conn [email protected] asSysdba; SQL>alter user Scott account unlock identified by Tiger; SQL> Conn Sysyoupassword asSysdba; SQL>CREATE OR REPLACE TRIGGER Open_all_pdbs after STARTUP on DATABASE BEGIN EXECUTE IMMEDIATE'Alter pluggable database all open';    END Open_all_pdbs; SQL>shutdown Immediatesql> Startup

Now you can use the account [email protected] Password Tiger login

ORACLE12C Open Scott Account

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.