SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled

本文介绍了当使用SQL Plus时遇到无法启用自动跟踪功能的问题及其解决办法。问题出现的原因通常是由于当前用户缺少必要的PLUSTRACE角色权限。文章提供了一个详细的步骤指南来帮助用户为指定账户授予所需的权限。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

SQL> set autotrace on
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report


Cause:

这是因为所使用的用户没有plustrce角色导致的


Solution:
             1)以sysdba角色进入数据库。
             2)@$ORACLE_HOME/sqlplus/admin/plustrce.sql
             3)grant plustrace to scott; 这里是有a的啊!
-- A start job for unit iscsi.service has finished with a failure. -- -- The job identifier is 2343 and the job result is failed. Apr 01 15:59:31 iscsi systemd[1]: Starting Login and scanning of iSCSI devices... -- Subject: A start job for unit iscsi.service has begun execution -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- A start job for unit iscsi.service has begun execution. -- -- The job identifier is 2537. Apr 01 15:59:31 iscsi iscsiadm[22805]: iscsiadm: default: 1 session requested, but 1 already present. Apr 01 15:59:31 iscsi iscsiadm[22805]: iscsiadm: default: 1 session requested, but 1 already present. Apr 01 15:59:31 iscsi iscsiadm[22805]: iscsiadm: default: 1 session requested, but 1 already present. Apr 01 15:59:31 iscsi iscsiadm[22805]: iscsiadm: default: 1 session requested, but 1 already present. Apr 01 15:59:31 iscsi iscsiadm[22805]: iscsiadm: Could not log into all portals Apr 01 15:59:31 iscsi systemd[1]: iscsi.service: Main process exited, code=exited, status=15/n/a -- Subject: Unit process exited -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- An ExecStart= process belonging to unit iscsi.service has exited. -- -- The process' exit code is 'exited' and its exit status is 15. Apr 01 15:59:31 iscsi systemd[1]: iscsi.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The unit iscsi.service has entered the 'failed' state with result 'exit-code'. Apr 01 15:59:31 iscsi systemd[1]: Failed to start Login and scanning of iSCSI devices. -- Subject: A start job for unit iscsi.service has failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- A start job for unit iscsi.service has finished with a failure. -- -- The job identifier is 2537 and the job result is failed.
最新发布
04-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值