Oracle 用自带工具 SQL*Plus工具运行login.sql出错!
脚本:
1 define _editor=Notepad 2 set serveroutput on size 1000000 3 set trimspool on 4 set long 5000 5 set linesize 100 6 set pagesize 9999 7 column plan_plus_exp format a80 8 column global_name new_value gname 9 set termout off 10 define gname=idle 11 column global_name new_value gname 12 select lower(user) || '@' || substr(global_name,1,decode(dot,0,length(global_name),dot-1)) global_name 13 from(select global_name ,instr(global_name,'.') dot from global_name); 14 set sqlpropmt '&gname> ' 15 set termout on
脚本放置位置:C:\app\ganqiyin\product\11.2.0\dbhome_1\sqlplus\admin\login.sql
错误提示:
问题已经解决了,执行命令是@
sqlplus sys/密码@数据库名 as sysdba
需要数据库名称?sys 直接登录进去不是直接登录默认的数据库么?
还是一样的问题
问题已解决 执行命令是@