重庆思庄Oracle、Redhat认证学习论坛

标题: 登录即提示连接用户及数据库 [打印本页]

作者: 郑全    时间: 2023-6-12 16:39
标题: 登录即提示连接用户及数据库
可以通过GLOGIN来实现
在 $ORACLE_HOME/sqlplus/admin/glogin.sql 文件中,写下下面的内容,即可:

set sqlprompt "_user'@'_connect_identifier> "


[oracle@dbserver admin]$ sqlplus /nolog

SQL*Plus: Release 19.0.0.0.0 - Production on Mon Jun 12 16:35:12 2023
Version 19.19.0.0.0

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

@> conn sys@192.168.133.120:1521/pdb1 as sysdba
Connected.
SYS@192.168.133.120:1521/pdb1>


SYS@192.168.133.120:1521/pdb1> conn sys@cdb1 as sysdba
Enter password:
Connected.
SYS@cdb1>



@> conn system@cdb1
Enter password:
Connected.
SYSTEM@cdb1>














欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2