zoukankan      html  css  js  c++  java
  • oracle重置dba用户密码

    1、进入sqlplus里面:

    [oracle@master ~]$ sqlplus / as sysdba

    SQL*Plus: Release 12.1.0.2.0 Production on Tue Dec 25 15:06:28 2018

    Copyright (c) 1982, 2014, Oracle.  All rights reserved.


    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

    SQL> alter user sys identified by admin;

    User altered.

    SQL> conn sys/admin as sysdba;
    Connected.
    SQL> alter user system identified by admin;      

    User altered.
    连接plsql时,首要起监听

    [oracle@master ~]$ lsnrctl start

    查看监听状态:

    [oracle@master ~]$ lsnrctl status

    LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 25-DEC-2018 15:14:55

    Copyright (c) 1991, 2014, Oracle.  All rights reserved.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=master)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production
    Start Date                25-DEC-2018 15:03:27
    Uptime                    0 days 0 hr. 11 min. 28 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/master/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=master)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=master)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/orcl/xdb_wallet))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "orcl" has 2 instance(s).
      Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
      Instance "shenlan", status READY, has 1 handler(s) for this service...
    Service "pdborcl" has 1 instance(s).
      Instance "shenlan", status READY, has 1 handler(s) for this service...
    Service "shenlanXDB" has 1 instance(s).
      Instance "shenlan", status READY, has 1 handler(s) for this service...
    The command completed successfully

    《完》

  • 相关阅读:
    Windows的本地时间(LocalTime)、系统时间(SystemTime)、格林威治时间(UTCTime)、文件时间(FileTime)之间的转换
    VS2008驱动开发环境配置
    delete和delete[]的区别
    手动加载NT式驱动(非工具)修改注册表实现
    结构体的内存空间分配原理
    NT式驱动的卸载
    NT式驱动的安装
    struct tm>time() localtime() gmtime()
    64位驱动数字签名
    SQL Server 数据库错误修改
  • 原文地址:https://www.cnblogs.com/hello-wei/p/10174106.html
Copyright © 2011-2022 走看看